|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objecttigase.pubsub.repository.PubSubDAO
public class PubSubDAO
Class description
| Field Summary | |
|---|---|
static String |
CREATION_DATE_KEY
Field description |
protected Logger |
log
|
static String |
NODES_KEY
Field description |
| Constructor Summary | |
|---|---|
PubSubDAO(tigase.db.UserRepository repository,
PubSubConfig pubSubConfig)
Constructs ... |
|
| Method Summary | ||
|---|---|---|
void |
addToRootCollection(String nodeName)
Method description |
|
void |
createNode(String nodeName,
String ownerJid,
AbstractNodeConfig nodeConfig,
NodeType nodeType,
String collection)
Method description |
|
void |
deleteItem(String nodeName,
String id)
Method description |
|
void |
deleteNode(String nodeName)
Method description |
|
void |
destroy()
Method description |
|
String[] |
getBuddyGroups(tigase.xmpp.BareJID owner,
String buddy)
Method description |
|
String |
getBuddySubscription(tigase.xmpp.BareJID owner,
String buddy)
Method description |
|
tigase.xml.Element |
getItem(String nodeName,
String id)
Method description |
|
Date |
getItemCreationDate(String nodeName,
String id)
Method description |
|
String |
getItemPublisher(String nodeName,
String id)
Method description |
|
String[] |
getItemsIds(String nodeName)
Method description |
|
Date |
getItemUpdateDate(String nodeName,
String id)
Method description |
|
NodeAffiliations |
getNodeAffiliations(String nodeName)
Method description |
|
|
getNodeConfig(Class<T> nodeConfigClass,
String nodeName,
tigase.form.Form configForm)
Method description |
|
AbstractNodeConfig |
getNodeConfig(String nodeName)
Method description |
|
Date |
getNodeCreationDate(String nodeName)
Method description |
|
String[] |
getNodesList()
Method description |
|
NodeSubscriptions |
getNodeSubscriptions(String nodeName)
Method description |
|
String[] |
getRootNodes()
Method description |
|
String[] |
getUserRoster(tigase.xmpp.BareJID owner)
Method description |
|
void |
init()
Method description |
|
protected tigase.xml.Element |
itemDataToElement(char[] data)
|
|
protected String |
readNodeConfigFormData(String nodeName)
|
|
void |
removeAllFromRootCollection()
Method description |
|
void |
removeFromRootCollection(String nodeName)
Method description |
|
void |
removeSubscriptions(String nodeName,
int changedIndex)
Method description |
|
void |
update(String nodeName,
AbstractNodeConfig nodeConfig)
Method description |
|
void |
update(String nodeName,
IAffiliations affiliations)
Method description |
|
void |
updateAffiliations(String nodeName,
String serializedData)
Method description |
|
void |
updateNodeConfig(String nodeName,
String serializedData)
Method description |
|
void |
updateSubscriptions(String nodeName,
int changedIndex,
String serializedData)
Method description |
|
void |
writeItem(String nodeName,
long timeInMilis,
String id,
String publisher,
tigase.xml.Element item)
Method description |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String CREATION_DATE_KEY
public static final String NODES_KEY
protected Logger log
| Constructor Detail |
|---|
public PubSubDAO(tigase.db.UserRepository repository,
PubSubConfig pubSubConfig)
repository - pubSubConfig - | Method Detail |
|---|
public void addToRootCollection(String nodeName)
throws RepositoryException
addToRootCollection in interface IPubSubDAOnodeName -
RepositoryException
public void createNode(String nodeName,
String ownerJid,
AbstractNodeConfig nodeConfig,
NodeType nodeType,
String collection)
throws RepositoryException
createNode in interface IPubSubDAOnodeName - ownerJid - nodeConfig - nodeType - collection -
RepositoryException
public void deleteItem(String nodeName,
String id)
throws RepositoryException
deleteItem in interface IPubSubDAOnodeName - id -
RepositoryException
public void deleteNode(String nodeName)
throws RepositoryException
deleteNode in interface IPubSubDAOnodeName -
RepositoryExceptionpublic void destroy()
destroy in interface IPubSubDAO
public String[] getBuddyGroups(tigase.xmpp.BareJID owner,
String buddy)
throws RepositoryException
getBuddyGroups in interface IPubSubDAOowner - buddy -
RepositoryException
public String getBuddySubscription(tigase.xmpp.BareJID owner,
String buddy)
throws RepositoryException
getBuddySubscription in interface IPubSubDAOowner - buddy -
RepositoryException
public tigase.xml.Element getItem(String nodeName,
String id)
throws RepositoryException
getItem in interface IPubSubDAOnodeName - id -
RepositoryException
public Date getItemCreationDate(String nodeName,
String id)
throws RepositoryException
getItemCreationDate in interface IPubSubDAOnodeName - id -
RepositoryException
public String getItemPublisher(String nodeName,
String id)
throws RepositoryException
nodeName - id -
RepositoryException
public String[] getItemsIds(String nodeName)
throws RepositoryException
getItemsIds in interface IPubSubDAOnodeName -
RepositoryException
public Date getItemUpdateDate(String nodeName,
String id)
throws RepositoryException
getItemUpdateDate in interface IPubSubDAOnodeName - id -
RepositoryException
public NodeAffiliations getNodeAffiliations(String nodeName)
throws RepositoryException
getNodeAffiliations in interface IPubSubDAOnodeName -
RepositoryException
public <T extends AbstractNodeConfig> T getNodeConfig(Class<T> nodeConfigClass,
String nodeName,
tigase.form.Form configForm)
throws RepositoryException
T - nodeConfigClass - nodeName - configForm -
RepositoryException
public AbstractNodeConfig getNodeConfig(String nodeName)
throws RepositoryException
getNodeConfig in interface IPubSubDAOnodeName -
RepositoryException
public Date getNodeCreationDate(String nodeName)
throws RepositoryException
nodeName -
RepositoryException
public String[] getNodesList()
throws RepositoryException
getNodesList in interface IPubSubDAORepositoryException
public NodeSubscriptions getNodeSubscriptions(String nodeName)
throws RepositoryException
getNodeSubscriptions in interface IPubSubDAOnodeName -
RepositoryException
public String[] getRootNodes()
throws RepositoryException
getRootNodes in interface IPubSubDAORepositoryException
public String[] getUserRoster(tigase.xmpp.BareJID owner)
throws RepositoryException
getUserRoster in interface IPubSubDAOowner -
RepositoryException
public void init()
throws RepositoryException
init in interface IPubSubDAORepositoryExceptionprotected tigase.xml.Element itemDataToElement(char[] data)
protected String readNodeConfigFormData(String nodeName)
throws tigase.db.TigaseDBException
tigase.db.TigaseDBException
public void removeAllFromRootCollection()
throws RepositoryException
RepositoryException
public void removeFromRootCollection(String nodeName)
throws RepositoryException
removeFromRootCollection in interface IPubSubDAOnodeName -
RepositoryException
public void removeSubscriptions(String nodeName,
int changedIndex)
throws RepositoryException
nodeName - changedIndex -
RepositoryException
public void update(String nodeName,
AbstractNodeConfig nodeConfig)
throws RepositoryException
update in interface IPubSubDAOnodeName - nodeConfig -
RepositoryException
public void update(String nodeName,
IAffiliations affiliations)
throws RepositoryException
update in interface IPubSubDAOnodeName - affiliations -
RepositoryException
public void updateAffiliations(String nodeName,
String serializedData)
throws RepositoryException
nodeName - serializedData -
RepositoryException
public void updateNodeConfig(String nodeName,
String serializedData)
throws RepositoryException
nodeName - serializedData -
RepositoryException
public void updateSubscriptions(String nodeName,
int changedIndex,
String serializedData)
throws RepositoryException
nodeName - changedIndex - serializedData -
RepositoryException
public void writeItem(String nodeName,
long timeInMilis,
String id,
String publisher,
tigase.xml.Element item)
throws RepositoryException
writeItem in interface IPubSubDAOnodeName - timeInMilis - id - publisher - item -
RepositoryException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||