|
||||||||||
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<DataSet>
fr.cnes.sitools.dataset.DataSetStoreXML
public final class DataSetStoreXML
Class for managing DataSet objects persistence with XStream FilePersistenceStrategy
Constructor Summary | |
---|---|
DataSetStoreXML(org.restlet.Context context)
Default constructor |
|
DataSetStoreXML(java.io.File location,
org.restlet.Context context)
Constructor with the XML file location |
Method Summary | |
---|---|
java.lang.String |
getCollectionName()
Method to implement for collection name |
java.util.List<DataSet> |
getList(ResourceCollectionFilter filter)
Method for getting objects with specific criteria |
void |
init(java.io.File location)
XStream FilePersistenceStrategy initialization |
java.util.List<DataSet> |
retrieveByParent(java.lang.String id)
Get the list of object by parent ID |
void |
sort(java.util.List<DataSet> result,
ResourceCollectionFilter filter)
Sort the list (by default on the name) |
DataSet |
update(DataSet dataset)
Method for updating a object |
Methods inherited from class fr.cnes.sitools.common.store.SitoolsSynchronizedStoreXML |
---|
create, delete, getArray, getArray, getArrayByXQuery, retrieve |
Methods inherited from class fr.cnes.sitools.persistence.Paginable |
---|
close, getList, getListByXQuery, getLog, getPage, getPaginableClass, getRawList, 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 |
Methods inherited from interface java.io.Closeable |
---|
close |
Constructor Detail |
---|
public DataSetStoreXML(java.io.File location, org.restlet.Context context)
location
- directory of FilePersistenceStrategycontext
- the Contextpublic DataSetStoreXML(org.restlet.Context context)
context
- the ContextMethod Detail |
---|
public DataSet update(DataSet dataset)
SitoolsStore
dataset
- input
public java.util.List<DataSet> getList(ResourceCollectionFilter filter)
SitoolsStore
getList
in interface SitoolsStore<DataSet>
getList
in class SitoolsSynchronizedStoreXML<DataSet>
filter
- criteria (pagination, ...)
public void sort(java.util.List<DataSet> result, ResourceCollectionFilter filter)
sort
in class SitoolsSynchronizedStoreXML<DataSet>
result
- list to be sortedfilter
- ResourceCollectionFilter with sort properties.public void init(java.io.File location)
init
in class Paginable<DataSet>
location
- Directorypublic java.util.List<DataSet> retrieveByParent(java.lang.String id)
SitoolsStore
id
- the parent ID
public java.lang.String getCollectionName()
SitoolsSynchronizedStoreXML
getCollectionName
in class SitoolsSynchronizedStoreXML<DataSet>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |