fr.cnes.sitools.plugins.filters
Class FilterPluginStoreXML

java.lang.Object
  extended by fr.cnes.sitools.persistence.Paginable<T>
      extended by fr.cnes.sitools.common.store.SitoolsStoreXML<FilterModel>
          extended by fr.cnes.sitools.plugins.filters.FilterPluginStoreXML
All Implemented Interfaces:
SitoolsStore<FilterModel>, java.io.Closeable

public final class FilterPluginStoreXML
extends SitoolsStoreXML<FilterModel>

Storage for filter plugins

Author:
jp.boignard (AKKA Technologies)

Constructor Summary
FilterPluginStoreXML(org.restlet.Context context)
          Default constructor
FilterPluginStoreXML(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)
          Initialization with location method to override
 java.util.List<FilterModel> retrieveByParent(java.lang.String id)
          Get the list of filters
 FilterModel update(FilterModel filter)
          Method for updating a object
 
Methods inherited from class fr.cnes.sitools.common.store.SitoolsStoreXML
create, 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

FilterPluginStoreXML

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

Parameters:
context - the Restlet Context

FilterPluginStoreXML

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

Parameters:
location - directory of FilePersistenceStrategy
context - the Restlet Context
Method Detail

init

public void init(java.io.File location)
Description copied from class: Paginable
Initialization with location method to override

Specified by:
init in class Paginable<FilterModel>
Parameters:
location - the file location

update

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

Parameters:
filter - input
Returns:
updated object

retrieveByParent

public java.util.List<FilterModel> retrieveByParent(java.lang.String id)
Get the list of filters

Parameters:
id - the parent id
Returns:
the list

getCollectionName

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

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


Copyright © 2010-2013 CNES. All Rights Reserved.