|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectfr.cnes.sitools.userstorage.UserStorageStoreXML
public final class UserStorageStoreXML
Implementation of UserStorageStore with XStream FilePersistenceStrategy
Constructor Summary | |
---|---|
UserStorageStoreXML(org.restlet.Context context)
Default constructor |
|
UserStorageStoreXML(java.io.File location,
org.restlet.Context context)
Constructor with the XML file location |
Method Summary | |
---|---|
void |
close()
|
UserStorage |
create(UserStorage userStorage)
Method for creating a UserStorage |
boolean |
delete(java.lang.String id)
Method for deleting a UserStorage by its id |
UserStorage[] |
getArray()
Method for getting all objects |
UserStorage[] |
getArray(ResourceCollectionFilter filter)
Method for getting userStorages according to the specified filter |
UserStorage[] |
getArrayByXQuery(java.lang.String xquery)
Method for getting objects according to the XQuery |
java.util.List<UserStorage> |
getList()
Method for getting all userStorage |
java.util.List<UserStorage> |
getList(ResourceCollectionFilter filter)
Method for getting userStorage with specific criteria |
java.util.List<UserStorage> |
getListByXQuery(java.lang.String xquery)
Method for getting userStorage with XQuery request syntax |
java.util.List<UserStorage> |
getPage(ResourceCollectionFilter filter,
java.util.List<UserStorage> result)
Filters a list according to the pagination |
UserStorage |
retrieve(java.lang.String id)
Method for retrieving a userStorage by its id |
UserStorage |
update(UserStorage userStorage)
Method for updating a userStorage |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public UserStorageStoreXML(java.io.File location, org.restlet.Context context)
location
- directory of FilePersistenceStrategycontext
- the Restlet Contextpublic UserStorageStoreXML(org.restlet.Context context)
context
- the Restlet ContextMethod Detail |
---|
public UserStorage create(UserStorage userStorage) throws SitoolsException
UserStorageStore
create
in interface UserStorageStore
userStorage
- UserStorage input
SitoolsException
- if error occurs when creating a new UserStoragepublic UserStorage retrieve(java.lang.String id)
UserStorageStore
retrieve
in interface UserStorageStore
id
- userStorage identifier
public UserStorage update(UserStorage userStorage)
UserStorageStore
update
in interface UserStorageStore
userStorage
- input
public boolean delete(java.lang.String id)
UserStorageStore
delete
in interface UserStorageStore
id
- userStorage identifier
public UserStorage[] getArray()
UserStorageStore
getArray
in interface UserStorageStore
public UserStorage[] getArray(ResourceCollectionFilter filter)
UserStorageStore
getArray
in interface UserStorageStore
filter
- criteria (pagination, ...)
public UserStorage[] getArrayByXQuery(java.lang.String xquery)
UserStorageStore
getArrayByXQuery
in interface UserStorageStore
xquery
- String with XQuery syntax
public java.util.List<UserStorage> getList(ResourceCollectionFilter filter)
UserStorageStore
getList
in interface UserStorageStore
filter
- criteria (pagination, ...)
public java.util.List<UserStorage> getPage(ResourceCollectionFilter filter, java.util.List<UserStorage> result)
getPage
in interface UserStorageStore
filter
- for paginationresult
- source
public java.util.List<UserStorage> getList()
UserStorageStore
getList
in interface UserStorageStore
public java.util.List<UserStorage> getListByXQuery(java.lang.String xquery)
UserStorageStore
getListByXQuery
in interface UserStorageStore
xquery
- String
public void close()
close
in interface java.io.Closeable
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |