|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectfr.cnes.sitools.resources.order.utils.OrderAPI
public final class OrderAPI
Util class to simplify Order management
| Method Summary | |
|---|---|
static Order |
activateOrder(Order order,
org.restlet.Context context)
Activate the given order |
static Order |
createEvent(Order order,
org.restlet.Context context,
java.lang.String msg)
Add a event to the order |
static Order |
createOrder(java.lang.String userIdentifier,
org.restlet.Context context,
java.lang.String orderDescription)
Create an order to trace it into the Sitools order system |
static Order |
orderFailed(Order order,
org.restlet.Context context,
java.lang.String localizedMessage)
Set the order to fail |
static Order |
terminateOrder(Order order,
org.restlet.Context context)
Set to done the given order |
static Order |
updateOrder(Order order,
org.restlet.Context context)
Update the order |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static Order createOrder(java.lang.String userIdentifier,
org.restlet.Context context,
java.lang.String orderDescription)
throws SitoolsException
userIdentifier - the user identifier of the ordercontext - the contextorderDescription - the description of the order
SitoolsException - if there is an error
public static Order updateOrder(Order order,
org.restlet.Context context)
throws SitoolsException
order - the order to updatecontext - the context
SitoolsException - if there is an error
public static Order createEvent(Order order,
org.restlet.Context context,
java.lang.String msg)
throws SitoolsException
order - the order to updatecontext - the contextmsg - the message of the event to create
SitoolsException - if there is an error
public static Order activateOrder(Order order,
org.restlet.Context context)
throws SitoolsException
order - the ordercontext - the context
SitoolsException - if there is an error
public static Order terminateOrder(Order order,
org.restlet.Context context)
throws SitoolsException
order - the ordercontext - the context
SitoolsException - if there is an error
public static Order orderFailed(Order order,
org.restlet.Context context,
java.lang.String localizedMessage)
throws SitoolsException
order - the ordercontext - the contextlocalizedMessage - the message to set
SitoolsException - if something goes wrong
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||