|
||||||||||
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<TaskModel>
fr.cnes.sitools.tasks.TaskStoreXML
public final class TaskStoreXML
Implementation of TaskModelStore with XStream FilePersistenceStrategy
Constructor Summary | |
---|---|
TaskStoreXML(org.restlet.Context context)
Default constructor |
|
TaskStoreXML(java.io.File location,
org.restlet.Context context)
Constructor with the XML file location |
Method Summary | |
---|---|
TaskModel |
create(TaskModel resource)
Method for creating a object |
java.lang.String |
getCollectionName()
Method to implement for collection name |
void |
init(java.io.File location)
XStream FilePersistenceStrategy initialization |
java.util.List<TaskModel> |
retrieveByParent(java.lang.String id)
Get the list of object by parent ID |
void |
sort(java.util.List<TaskModel> result,
ResourceCollectionFilter filter)
Sort the list according to criteria specified in subclasses |
TaskModel |
update(TaskModel taskModel)
Method for updating a object |
Methods inherited from class fr.cnes.sitools.common.store.SitoolsSynchronizedStoreXML |
---|
delete, getArray, getArray, getArrayByXQuery, getList, 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 TaskStoreXML(java.io.File location, org.restlet.Context context)
location
- directory of FilePersistenceStrategycontext
- the Restlet Contextpublic TaskStoreXML(org.restlet.Context context)
context
- the Restlet ContextMethod Detail |
---|
public TaskModel update(TaskModel taskModel)
SitoolsStore
taskModel
- input
public TaskModel create(TaskModel resource)
SitoolsStore
create
in interface SitoolsStore<TaskModel>
create
in class SitoolsSynchronizedStoreXML<TaskModel>
resource
- input
public void init(java.io.File location)
init
in class Paginable<TaskModel>
location
- Directorypublic void sort(java.util.List<TaskModel> result, ResourceCollectionFilter filter)
Paginable
sort
in class SitoolsSynchronizedStoreXML<TaskModel>
result
- the listfilter
- the filterpublic java.util.List<TaskModel> retrieveByParent(java.lang.String id)
SitoolsStore
id
- the parent ID
public java.lang.String getCollectionName()
SitoolsSynchronizedStoreXML
getCollectionName
in class SitoolsSynchronizedStoreXML<TaskModel>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |