Class ApiKeyItem

  • All Implemented Interfaces:
    tigase.db.comp.RepositoryItem

    public class ApiKeyItem
    extends tigase.db.comp.RepositoryItemAbstract
    • Field Summary

      • Fields inherited from class tigase.db.comp.RepositoryItemAbstract

        ADMINS_ATT, ADMINS_LABEL, OWNER_ATT, OWNER_LABEL
    • Constructor Summary

      Constructors 
      Constructor Description
      ApiKeyItem()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void addCommandFields​(tigase.server.Packet packet)  
      java.lang.String getElemName()  
      java.lang.String getKey()  
      void initFromCommand​(tigase.server.Packet packet)  
      void initFromElement​(tigase.xml.Element elem)  
      void initFromPropertyString​(java.lang.String propString)  
      boolean isAllowed​(java.lang.String key, java.lang.String path)  
      boolean isAllowed​(java.lang.String key, java.lang.String domain, java.lang.String path)  
      protected void setKey​(java.lang.String key)  
      tigase.xml.Element toElement()  
      java.lang.String toPropertyString()  
      • Methods inherited from class tigase.db.comp.RepositoryItemAbstract

        getAdmins, getOwner, isAdmin, isOwner, setAdmins, setOwner
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ApiKeyItem

        public ApiKeyItem()
    • Method Detail

      • getElemName

        public java.lang.String getElemName()
        Specified by:
        getElemName in class tigase.db.comp.RepositoryItemAbstract
      • setKey

        protected void setKey​(java.lang.String key)
        Specified by:
        setKey in class tigase.db.comp.RepositoryItemAbstract
      • getKey

        public java.lang.String getKey()
      • addCommandFields

        public void addCommandFields​(tigase.server.Packet packet)
        Specified by:
        addCommandFields in interface tigase.db.comp.RepositoryItem
        Overrides:
        addCommandFields in class tigase.db.comp.RepositoryItemAbstract
      • initFromCommand

        public void initFromCommand​(tigase.server.Packet packet)
        Specified by:
        initFromCommand in interface tigase.db.comp.RepositoryItem
        Overrides:
        initFromCommand in class tigase.db.comp.RepositoryItemAbstract
      • initFromElement

        public void initFromElement​(tigase.xml.Element elem)
        Specified by:
        initFromElement in interface tigase.db.comp.RepositoryItem
        Overrides:
        initFromElement in class tigase.db.comp.RepositoryItemAbstract
      • initFromPropertyString

        public void initFromPropertyString​(java.lang.String propString)
      • toElement

        public tigase.xml.Element toElement()
        Specified by:
        toElement in interface tigase.db.comp.RepositoryItem
        Overrides:
        toElement in class tigase.db.comp.RepositoryItemAbstract
      • toPropertyString

        public java.lang.String toPropertyString()
      • isAllowed

        public boolean isAllowed​(java.lang.String key,
                                 java.lang.String path)
      • isAllowed

        public boolean isAllowed​(java.lang.String key,
                                 java.lang.String domain,
                                 java.lang.String path)