|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ace.moab.api.request.CreateReservationRequest
com.ace.moab.api.request.CreateStandingRsvRequest
public class CreateStandingRsvRequest
This class represents a request to create a Standing Reservation. To use the request, the user
must specify a Standing reservation to create. Although most attributes may be null or empty for the
reservation, a list of necessary reservation attributes can be viewed by examining
verifyReservation()
. These requirements will be checked if the user attempts to get
moab commands using getMoabCommands()
.
The following is a list of reservation attributes that are currently implemented:
Field Summary |
---|
Fields inherited from class com.ace.moab.api.request.CreateReservationRequest |
---|
MOAB_RSV_DATE_FORMAT |
Constructor Summary | |
---|---|
CreateStandingRsvRequest(StandingReservation reservation)
Default constructor. |
Method Summary | |
---|---|
java.util.List<java.lang.String> |
getMoabCommands()
Creates a list of moab commands needed to create this standing reservation This method performs checks on the internal reservation object as defined by verifyReservation() in this class |
boolean |
hasChanges()
Returns true if changes exist for the request. |
void |
verifyReservation()
Verifies the reservation object is complete enough to create it in Moab. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CreateStandingRsvRequest(StandingReservation reservation)
reservation
- The reservation as explained in class javadocsMethod Detail |
---|
public void verifyReservation() throws com.moab.api.connect.exception.RequestException
getMoabCommands()
, this method is used to make sure the reservation is
complete to create a list of commands to create it.
Specifically, these values are checked:
NOTE: According to Dave Jackson as of 1/17/08, Reservations no longer need a start or end time
com.moab.api.connect.exception.RequestException
public java.util.List<java.lang.String> getMoabCommands() throws com.moab.api.connect.exception.RequestException
verifyReservation()
in this class
com.moab.api.connect.exception.RequestException
- Throws this exception if verifyReservation failsverifyReservation()
public boolean hasChanges()
com.moab.api.commands.Request
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |