|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectExtendedWadlServerResource
fr.cnes.sitools.common.resource.AbstractSitoolsResource
fr.cnes.sitools.common.SitoolsResource
fr.cnes.sitools.project.AbstractProjectResource
public abstract class AbstractProjectResource
Abstract Resource class for Projects management
Field Summary |
---|
Fields inherited from class fr.cnes.sitools.common.SitoolsResource |
---|
DEFAULT_MEDIATYPE |
Constructor Summary | |
---|---|
AbstractProjectResource()
Default constructor |
Method Summary | |
---|---|
Response |
checkUnicity(Project projectInput,
boolean includeProjectInput)
Check that the name and the sitoolsUserAttachment are unique over the project collection includeProjectInput is used to specify whether or not to include projectInput in the verification process ( for example when updating a project ) |
void |
doInit()
Initiate the resource |
DataSet |
getDataset(java.lang.String id)
Get the dataset object with the given id |
Project |
getObject(org.restlet.representation.Representation representation,
org.restlet.representation.Variant variant)
Get the object from the representation |
Resource |
getObjectResource(org.restlet.representation.Representation representation,
org.restlet.representation.Variant variant)
Get the object from the representation |
AbstractProjectApplication |
getProjectApplication()
Get the project application object |
java.lang.String |
getProjectId()
Get the project identifier |
org.restlet.representation.Representation |
getRepresentation(Response response,
org.restlet.data.MediaType media)
Response to Representation |
SitoolsStore<Project> |
getStore()
Get the store associated to the application |
void |
registerObserver(Project input)
Register an observer |
void |
unregisterObserver(Project input)
Unregister an observer |
Methods inherited from class fr.cnes.sitools.common.resource.AbstractSitoolsResource |
---|
getMediaType, sitoolsDescribe |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AbstractProjectResource()
Method Detail |
---|
public final void doInit()
SitoolsResource
public org.restlet.representation.Representation getRepresentation(Response response, org.restlet.data.MediaType media)
getRepresentation
in class SitoolsResource
response
- the response to treatmedia
- the media to use
public final Project getObject(org.restlet.representation.Representation representation, org.restlet.representation.Variant variant)
representation
- the representation to usevariant
- the variant to use
public final Resource getObjectResource(org.restlet.representation.Representation representation, org.restlet.representation.Variant variant) throws java.io.IOException
representation
- the representation to usevariant
- the variant to use
java.io.IOException
- if there is an error while deserializing a Java Objectpublic final void registerObserver(Project input)
input
- the project as inputpublic final void unregisterObserver(Project input)
input
- the project to unregisterpublic final DataSet getDataset(java.lang.String id)
id
- the id of the dataset
public final java.lang.String getProjectId()
public final SitoolsStore<Project> getStore()
public final AbstractProjectApplication getProjectApplication()
public final Response checkUnicity(Project projectInput, boolean includeProjectInput)
projectInput
- the project to check with the collectionincludeProjectInput
- true to include the project in the verification, false otherwise
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |