|
||||||||||
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.SitoolsStoreXML<ProjectModuleModel>
fr.cnes.sitools.project.modules.ProjectModuleStoreXML
public final class ProjectModuleStoreXML
Implementation of ProjectModuleStore with XStream FilePersistenceStrategy
Constructor Summary | |
---|---|
ProjectModuleStoreXML(org.restlet.Context context)
Default constructor |
|
ProjectModuleStoreXML(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 |
void |
init(java.io.File location)
XStream FilePersistenceStrategy initialization |
java.util.List<ProjectModuleModel> |
retrieveByParent(java.lang.String id)
Get the list of object by parent ID |
void |
sort(java.util.List<ProjectModuleModel> result,
ResourceCollectionFilter filter)
Sort the list (by default on the name) |
ProjectModuleModel |
update(ProjectModuleModel module)
Method for updating a object |
Methods inherited from class fr.cnes.sitools.common.store.SitoolsStoreXML |
---|
create, 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 ProjectModuleStoreXML(java.io.File location, org.restlet.Context context)
location
- directory of FilePersistenceStrategycontext
- the Restlet Contextpublic ProjectModuleStoreXML(org.restlet.Context context)
context
- the Restlet ContextMethod Detail |
---|
public ProjectModuleModel update(ProjectModuleModel module)
SitoolsStore
module
- input
public void sort(java.util.List<ProjectModuleModel> result, ResourceCollectionFilter filter)
sort
in class SitoolsStoreXML<ProjectModuleModel>
result
- list to be sortedfilter
- ResourceCollectionFilter with sort properties.public void init(java.io.File location)
init
in class Paginable<ProjectModuleModel>
location
- Directorypublic java.util.List<ProjectModuleModel> retrieveByParent(java.lang.String id)
SitoolsStore
id
- the parent ID
public java.lang.String getCollectionName()
SitoolsStoreXML
getCollectionName
in class SitoolsStoreXML<ProjectModuleModel>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |