Package tigase.pubsub.repository.cached
Class Items<T>
- java.lang.Object
-
- tigase.pubsub.repository.cached.Items<T>
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface tigase.pubsub.repository.IItems
IItems.IItem, IItems.IItemBase, IItems.IListnener, IItems.Item, IItems.ItemBase, IItems.ItemMeta
-
-
Constructor Summary
Constructors Constructor Description Items(T nodeId, tigase.xmpp.jid.BareJID serviceJid, java.lang.String nodeName, IPubSubDAO dao, IItems.IListnener listnener)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
deleteItem(java.lang.String id)
IItems.IItem
getItem(java.lang.String id)
java.lang.String[]
getItemsIds(CollectionItemsOrdering order)
java.lang.String[]
getItemsIdsSince(CollectionItemsOrdering order, java.util.Date since)
java.util.List<IItems.ItemMeta>
getItemsMeta()
IItems.IItem
getLastItem(CollectionItemsOrdering order)
void
writeItem(java.lang.String id, java.lang.String publisher, tigase.xml.Element item, java.lang.String uuid)
-
-
-
Constructor Detail
-
Items
public Items(T nodeId, tigase.xmpp.jid.BareJID serviceJid, java.lang.String nodeName, IPubSubDAO dao, IItems.IListnener listnener)
-
-
Method Detail
-
deleteItem
public void deleteItem(java.lang.String id) throws tigase.component.exceptions.RepositoryException
- Specified by:
deleteItem
in interfaceIItems
- Throws:
tigase.component.exceptions.RepositoryException
-
getItem
public IItems.IItem getItem(java.lang.String id) throws tigase.component.exceptions.RepositoryException
-
getItemsIds
public java.lang.String[] getItemsIds(CollectionItemsOrdering order) throws tigase.component.exceptions.RepositoryException
- Specified by:
getItemsIds
in interfaceIItems
- Throws:
tigase.component.exceptions.RepositoryException
-
getItemsIdsSince
public java.lang.String[] getItemsIdsSince(CollectionItemsOrdering order, java.util.Date since) throws tigase.component.exceptions.RepositoryException
- Specified by:
getItemsIdsSince
in interfaceIItems
- Throws:
tigase.component.exceptions.RepositoryException
-
getItemsMeta
public java.util.List<IItems.ItemMeta> getItemsMeta() throws tigase.component.exceptions.RepositoryException
- Specified by:
getItemsMeta
in interfaceIItems
- Throws:
tigase.component.exceptions.RepositoryException
-
getLastItem
public IItems.IItem getLastItem(CollectionItemsOrdering order) throws tigase.component.exceptions.RepositoryException
- Specified by:
getLastItem
in interfaceIItems
- Throws:
tigase.component.exceptions.RepositoryException
-
writeItem
public void writeItem(java.lang.String id, java.lang.String publisher, tigase.xml.Element item, java.lang.String uuid) throws tigase.component.exceptions.RepositoryException, PubSubException
- Specified by:
writeItem
in interfaceIItems
- Throws:
tigase.component.exceptions.RepositoryException
PubSubException
-
-