public abstract class RepositoryItemAbstract extends Object implements RepositoryItem
Modifier and Type | Field and Description |
---|---|
static String |
ADMINS_ATT
Field description
|
static String |
ADMINS_LABEL
Field description
|
static String |
OWNER_ATT
Field description
|
static String |
OWNER_LABEL
Field description
|
Constructor and Description |
---|
RepositoryItemAbstract() |
Modifier and Type | Method and Description |
---|---|
void |
addCommandFields(Packet packet)
Method description
|
String[] |
getAdmins()
Method description
|
abstract String |
getElemName()
Method description
|
String |
getOwner()
Method description
|
void |
initFromCommand(Packet packet)
Method description
|
void |
initFromElement(tigase.xml.Element elem)
Method description
|
boolean |
isAdmin(String id)
Method description
|
boolean |
isOwner(String id)
Method description
|
void |
setAdmins(String[] admins)
Method description
|
void |
setOwner(String owner)
Method description
|
tigase.xml.Element |
toElement()
Method description
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getKey, initFromPropertyString, toPropertyString
public static final String ADMINS_ATT
public static final String ADMINS_LABEL
public static final String OWNER_ATT
public static final String OWNER_LABEL
public abstract String getElemName()
public void addCommandFields(Packet packet)
addCommandFields
in interface RepositoryItem
packet
- public String[] getAdmins()
getAdmins
in interface RepositoryItem
public String getOwner()
getOwner
in interface RepositoryItem
public void initFromCommand(Packet packet)
initFromCommand
in interface RepositoryItem
packet
- public void initFromElement(tigase.xml.Element elem)
initFromElement
in interface RepositoryItem
elem
- public boolean isAdmin(String id)
isAdmin
in interface RepositoryItem
id
- public boolean isOwner(String id)
isOwner
in interface RepositoryItem
id
- public void setAdmins(String[] admins)
setAdmins
in interface RepositoryItem
admins
- public void setOwner(String owner)
setOwner
in interface RepositoryItem
owner
- public tigase.xml.Element toElement()
toElement
in interface RepositoryItem
Copyright © 2014 "Tigase, Inc.". All rights reserved.