|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectExtendedWadlApplication
fr.cnes.sitools.common.application.SitoolsApplication
fr.cnes.sitools.service.storage.StorageApplication
public final class StorageApplication
Application for managing directories for data storage in SITools.
Constructor Summary | |
---|---|
StorageApplication(org.restlet.Context context)
Constructor |
Method Summary | |
---|---|
org.restlet.Restlet |
createInboundRoot()
|
void |
detachDirectory(StorageDirectory storageDirectory)
Detach directory from application |
org.restlet.ext.wadl.ApplicationInfo |
getApplicationInfo(org.restlet.Request request,
org.restlet.Response response)
|
DataStorageStore |
getStore()
Get the store associated to the application |
void |
initDirectory(StorageDirectory storageDirectory)
Attach a directory in the application at start |
void |
sitoolsDescribe()
Abstract method for thinking about implementing it for each concrete application describe is the RESTlet method, but overriding, prevents the self-describing functionality. |
void |
startDirectory(StorageDirectory storageDirectory)
Start a directory by attaching it to the route |
void |
stopDirectory(StorageDirectory storageDirectory)
Stop a directory resource |
Methods inherited from class fr.cnes.sitools.common.application.SitoolsApplication |
---|
addSecurity, addSecurity, addSecurityFilter, defaultDescribe, getAttachementRef, getAuthenticationRealm, getAuthorizer, getAuthorizer, getAuthorizer, getCategory, getId, getPublicBaseRef, getRepresentationInfoReferences, getSecure, getSettings, getSitoolsApplicationInfo, getType, getUserAuthorizer, isAuthorizationSecure, isUserAuthenticationNeeded, register, setAutoRegistration, setCategory, setId, setSitoolsApplicationInfo, setType, setUserAuthenticationNeeded, start, stop, unregister, wrapToResource |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public StorageApplication(org.restlet.Context context)
context
- the RESTlet context must contain a DataStorageStore
attribute for APP_STORE keyMethod Detail |
---|
public void sitoolsDescribe()
SitoolsApplication
sitoolsDescribe
in class SitoolsApplication
public org.restlet.Restlet createInboundRoot()
public void initDirectory(StorageDirectory storageDirectory)
storageDirectory
- the directory to attachpublic void detachDirectory(StorageDirectory storageDirectory)
storageDirectory
- the directory to detachpublic void startDirectory(StorageDirectory storageDirectory)
storageDirectory
- the initial StorageDirectorypublic void stopDirectory(StorageDirectory storageDirectory)
storageDirectory
- the directory to stoppublic DataStorageStore getStore()
public org.restlet.ext.wadl.ApplicationInfo getApplicationInfo(org.restlet.Request request, org.restlet.Response response)
getApplicationInfo
in class SitoolsApplication
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |