|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectfr.cnes.sitools.persistence.Paginable<T>
fr.cnes.sitools.common.store.SitoolsSynchronizedStoreXML<T>
T
- object class to be storedpublic abstract class SitoolsSynchronizedStoreXML<T extends IResource>
Base class for XML stores
Constructor Summary | |
---|---|
SitoolsSynchronizedStoreXML(java.lang.Class<T> cl,
org.restlet.Context context)
Constructor with object class |
|
SitoolsSynchronizedStoreXML(java.lang.Class<T> cl,
java.io.File location,
org.restlet.Context context)
Constructor with file location |
Method Summary | |
---|---|
T |
create(T resource)
Method for creating a object |
boolean |
delete(java.lang.String id)
Method for deleting a object by its id |
T[] |
getArray()
Method for getting all objects |
T[] |
getArray(ResourceCollectionFilter filter)
Method for getting objects according to the specified filter |
T[] |
getArrayByXQuery(java.lang.String xquery)
Method for getting objects according to the XQuery |
abstract java.lang.String |
getCollectionName()
Method to implement for collection name |
java.util.List<T> |
getList(ResourceCollectionFilter filter)
Method for getting objects with specific criteria |
T |
retrieve(java.lang.String id)
Method for retrieving a object by its id |
void |
sort(java.util.List<T> list,
ResourceCollectionFilter filter)
Sort the list according to criteria specified in subclasses |
Methods inherited from class fr.cnes.sitools.persistence.Paginable |
---|
close, getList, getListByXQuery, getLog, getPage, getPaginableClass, getRawList, init, init, setList |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface fr.cnes.sitools.common.store.SitoolsStore |
---|
getList, getListByXQuery, getPage, retrieveByParent, update |
Methods inherited from interface java.io.Closeable |
---|
close |
Constructor Detail |
---|
public SitoolsSynchronizedStoreXML(java.lang.Class<T> cl, org.restlet.Context context)
cl
- the class to keepcontext
- TODOpublic SitoolsSynchronizedStoreXML(java.lang.Class<T> cl, java.io.File location, org.restlet.Context context)
cl
- the class to keeplocation
- the file locationcontext
- TODOMethod Detail |
---|
public final T[] getArray()
SitoolsStore
getArray
in interface SitoolsStore<T extends IResource>
public final T[] getArrayByXQuery(java.lang.String xquery)
SitoolsStore
getArrayByXQuery
in interface SitoolsStore<T extends IResource>
xquery
- String with XQuery syntax
public final T[] getArray(ResourceCollectionFilter filter)
SitoolsStore
getArray
in interface SitoolsStore<T extends IResource>
filter
- criteria (pagination, ...)
public java.util.List<T> getList(ResourceCollectionFilter filter)
SitoolsStore
getList
in interface SitoolsStore<T extends IResource>
filter
- criteria (pagination, ...)
public T create(T resource)
SitoolsStore
create
in interface SitoolsStore<T extends IResource>
resource
- input
public final T retrieve(java.lang.String id)
SitoolsStore
retrieve
in interface SitoolsStore<T extends IResource>
id
- project identifier
public final boolean delete(java.lang.String id)
SitoolsStore
delete
in interface SitoolsStore<T extends IResource>
id
- object identifier
public void sort(java.util.List<T> list, ResourceCollectionFilter filter)
Paginable
sort
in class Paginable<T extends IResource>
list
- the listfilter
- the filterpublic abstract java.lang.String getCollectionName()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |