fr.cnes.sitools.dataset.filter
Class FilterStoreXML

java.lang.Object
  extended by fr.cnes.sitools.persistence.Paginable<T>
      extended by fr.cnes.sitools.common.store.SitoolsStoreXML<FilterChainedModel>
          extended by fr.cnes.sitools.dataset.filter.FilterStoreXML
All Implemented Interfaces:
SitoolsStore<FilterChainedModel>, java.io.Closeable

public final class FilterStoreXML
extends SitoolsStoreXML<FilterChainedModel>

Implementation of filterStore with XStream FilePersistenceStrategy

Author:
AKKA

Constructor Summary
FilterStoreXML(org.restlet.Context context)
          Default constructor
FilterStoreXML(java.io.File location, org.restlet.Context context)
          Constructor with the XML file location
 
Method Summary
 FilterChainedModel create(FilterChainedModel filter)
          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<FilterChainedModel> retrieveByParent(java.lang.String id)
          Get the list of object by parent ID
 FilterChainedModel update(FilterChainedModel filter)
          Method for updating a object
 
Methods inherited from class fr.cnes.sitools.common.store.SitoolsStoreXML
delete, getArray, getArray, getArrayByXQuery, getList, 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

FilterStoreXML

public FilterStoreXML(java.io.File location,
                      org.restlet.Context context)
Constructor with the XML file location

Parameters:
location - directory of FilePersistenceStrategy
context - the Context

FilterStoreXML

public FilterStoreXML(org.restlet.Context context)
Default constructor

Parameters:
context - the Context
Method Detail

create

public FilterChainedModel create(FilterChainedModel filter)
Description copied from interface: SitoolsStore
Method for creating a object

Specified by:
create in interface SitoolsStore<FilterChainedModel>
Overrides:
create in class SitoolsStoreXML<FilterChainedModel>
Parameters:
filter - input
Returns:
created object

update

public FilterChainedModel update(FilterChainedModel filter)
Description copied from interface: SitoolsStore
Method for updating a object

Parameters:
filter - input
Returns:
updated object

init

public void init(java.io.File location)
XStream FilePersistenceStrategy initialization

Specified by:
init in class Paginable<FilterChainedModel>
Parameters:
location - Directory

retrieveByParent

public java.util.List<FilterChainedModel> retrieveByParent(java.lang.String id)
Description copied from interface: SitoolsStore
Get the list of object by parent ID

Parameters:
id - the parent ID
Returns:
the list of resource objects

getCollectionName

public java.lang.String getCollectionName()
Description copied from class: SitoolsStoreXML
Method to implement for collection name

Specified by:
getCollectionName in class SitoolsStoreXML<FilterChainedModel>
Returns:
the collection name


Copyright © 2010-2013 CNES. All Rights Reserved.