|
||||||||||
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.common.resource.SitoolsParameterizedResource
fr.cnes.sitools.resources.order.AbstractOrderResource
fr.cnes.sitools.resources.order.cart.common.AbstractCartOrderResource
public abstract class AbstractCartOrderResource
Abstract class to override for your own CartOrder process
Field Summary |
---|
Fields inherited from class fr.cnes.sitools.common.SitoolsResource |
---|
DEFAULT_MEDIATYPE |
Constructor Summary | |
---|---|
AbstractCartOrderResource()
|
Method Summary | |
---|---|
void |
doInit()
Initiate the resource To initialize shared instance of objects between resources, get the component Context from the Settings and put the object in the Context ((SitoolsSettings)getContext().getAttributes().get(ContextAttributes.SETTINGS)).getComponent() .getContext().getAttributes().put(SOME KEY, SOME OBJECT) |
void |
doInitialiseOrder()
Actual method to initialize the order. |
CartSelections |
getObject(org.restlet.representation.Representation representation,
org.restlet.representation.Variant variant)
Parse a CartSelections object from the given representation |
java.lang.String |
getOrderName()
Return the name of the order |
ListReferencesAPI |
listFilesToOrder()
Abstract method to list all the files to order. |
void |
terminateOrder()
Last step of the order, terminate it and notify the administrator |
Methods inherited from class fr.cnes.sitools.resources.order.AbstractOrderResource |
---|
checkUser, doTerminateOrder, executeOrder, getFileName, initialiseOrder, notifyAdminEnd, orderGet, orderPost, processOrder |
Methods inherited from class fr.cnes.sitools.common.resource.SitoolsParameterizedResource |
---|
addStandardResponseInfo, getId, getModel, getOverrideParameterValue, getOverrideParameterValueObject, getOverrideParams, getParameterValue, getParent, setId, setModel, setParent, sitoolsDescribe |
Methods inherited from class fr.cnes.sitools.common.resource.AbstractSitoolsResource |
---|
getMediaType |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface fr.cnes.sitools.common.model.IResource |
---|
getDescription, getName |
Constructor Detail |
---|
public AbstractCartOrderResource()
Method Detail |
---|
public void doInit()
SitoolsParameterizedResource
doInit
in class AbstractOrderResource
public void doInitialiseOrder() throws SitoolsException
AbstractOrderResource
doInitialiseOrder
in class AbstractOrderResource
SitoolsException
- if there is an error while creating the orderpublic ListReferencesAPI listFilesToOrder() throws SitoolsException
AbstractOrderResource
listFilesToOrder
in class AbstractOrderResource
ListReferencesAPI
containing the list of Reference to
order
SitoolsException
- if there is any errorpublic java.lang.String getOrderName()
AbstractOrderResource
getOrderName
in class AbstractOrderResource
public void terminateOrder() throws SitoolsException
AbstractOrderResource
terminateOrder
in class AbstractOrderResource
SitoolsException
- if there is any errorpublic final CartSelections getObject(org.restlet.representation.Representation representation, org.restlet.representation.Variant variant)
CartSelections
object from the given representation
representation
- the representationvariant
- the variant
CartSelections
object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |