Package tigase.http.modules.rest
Class ApiKeyItem
- java.lang.Object
-
- tigase.db.comp.RepositoryItemAbstract
-
- tigase.http.modules.rest.ApiKeyItem
-
- All Implemented Interfaces:
tigase.db.comp.RepositoryItem
public class ApiKeyItem extends tigase.db.comp.RepositoryItemAbstract
-
-
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)
String
getElemName()
String
getKey()
void
initFromCommand(tigase.server.Packet packet)
void
initFromElement(tigase.xml.Element elem)
void
initFromPropertyString(String propString)
boolean
isAllowed(String key, String path)
boolean
isAllowed(String key, String domain, String path)
protected void
setKey(String key)
tigase.xml.Element
toElement()
String
toPropertyString()
-
-
-
Method Detail
-
getElemName
public String getElemName()
- Specified by:
getElemName
in classtigase.db.comp.RepositoryItemAbstract
-
setKey
protected void setKey(String key)
- Specified by:
setKey
in classtigase.db.comp.RepositoryItemAbstract
-
getKey
public String getKey()
-
addCommandFields
public void addCommandFields(tigase.server.Packet packet)
- Specified by:
addCommandFields
in interfacetigase.db.comp.RepositoryItem
- Overrides:
addCommandFields
in classtigase.db.comp.RepositoryItemAbstract
-
initFromCommand
public void initFromCommand(tigase.server.Packet packet)
- Specified by:
initFromCommand
in interfacetigase.db.comp.RepositoryItem
- Overrides:
initFromCommand
in classtigase.db.comp.RepositoryItemAbstract
-
initFromElement
public void initFromElement(tigase.xml.Element elem)
- Specified by:
initFromElement
in interfacetigase.db.comp.RepositoryItem
- Overrides:
initFromElement
in classtigase.db.comp.RepositoryItemAbstract
-
initFromPropertyString
public void initFromPropertyString(String propString)
-
toElement
public tigase.xml.Element toElement()
- Specified by:
toElement
in interfacetigase.db.comp.RepositoryItem
- Overrides:
toElement
in classtigase.db.comp.RepositoryItemAbstract
-
toPropertyString
public String toPropertyString()
-
-