|
||||||||||
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<ConverterChainedModel>
fr.cnes.sitools.dataset.converter.ConverterStoreXML
public final class ConverterStoreXML
Implementation of converterStore with XStream FilePersistenceStrategy
Constructor Summary | |
---|---|
ConverterStoreXML(org.restlet.Context context)
Default constructor |
|
ConverterStoreXML(java.io.File location,
org.restlet.Context context)
Constructor with the XML file location |
Method Summary | |
---|---|
ConverterChainedModel |
create(ConverterChainedModel converter)
Method for creating a object |
java.lang.String |
getCollectionName()
Method to implement for collection name |
java.util.List<ConverterChainedModel> |
getList(ResourceCollectionFilter filter)
Method for getting objects with specific criteria |
void |
init(java.io.File location)
XStream FilePersistenceStrategy initialization |
java.util.List<ConverterChainedModel> |
retrieveByParent(java.lang.String id)
Get the list of object by parent ID |
ConverterChainedModel |
update(ConverterChainedModel converter)
Method for updating a object |
Methods inherited from class fr.cnes.sitools.common.store.SitoolsStoreXML |
---|
delete, getArray, getArray, getArrayByXQuery, retrieve, sort |
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 ConverterStoreXML(java.io.File location, org.restlet.Context context)
location
- directory of FilePersistenceStrategycontext
- the Contextpublic ConverterStoreXML(org.restlet.Context context)
context
- the ContextMethod Detail |
---|
public ConverterChainedModel create(ConverterChainedModel converter)
SitoolsStore
create
in interface SitoolsStore<ConverterChainedModel>
create
in class SitoolsStoreXML<ConverterChainedModel>
converter
- input
public ConverterChainedModel update(ConverterChainedModel converter)
SitoolsStore
converter
- input
public java.util.List<ConverterChainedModel> getList(ResourceCollectionFilter filter)
SitoolsStore
getList
in interface SitoolsStore<ConverterChainedModel>
getList
in class SitoolsStoreXML<ConverterChainedModel>
filter
- criteria (pagination, ...)
public void init(java.io.File location)
init
in class Paginable<ConverterChainedModel>
location
- Directorypublic java.util.List<ConverterChainedModel> retrieveByParent(java.lang.String id)
SitoolsStore
id
- the parent ID
public java.lang.String getCollectionName()
SitoolsStoreXML
getCollectionName
in class SitoolsStoreXML<ConverterChainedModel>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |