com.filenet.api.action
Class Checkout
- java.lang.Object
-
- com.filenet.api.action.PendingAction
-
- com.filenet.api.action.Checkout
-
- All Implemented Interfaces:
- java.io.Serializable
public class Checkout extends PendingAction
Represents a pending action for checking out a document. When a document calls thecheckout
method, the API automatically creates an instance of theCheckout
class and adds it to the underlying object's collection ofPendingAction
objects.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor and Description Checkout(java.lang.String reservationId, ReservationType reservationType, java.lang.String reservationClass, Properties reservationProperties)
Creates a new instance of aCheckout
pending action object.
-
Method Summary
Methods Modifier and Type Method and Description java.lang.String
getReservationClass()
Returns the symbolic name of the class to which a reservation object belongs.java.lang.String
getReservationId()
Returns the GUID assigned to a reservation object.Properties
getReservationProperties()
Returns a list of property values belonging to a document's reservation object.ReservationType
getReservationType()
Returns the type of checkout reservation.-
Methods inherited from class com.filenet.api.action.PendingAction
getBinaryListValue, getBinaryValue, getBooleanListValue, getBooleanValue, getDateTimeListValue, getDateTimeValue, getEngineObjectValue, getFloat64ListValue, getFloat64Value, getIdListValue, getIdValue, getInteger32ListValue, getInteger32Value, getObjectValue, getStringListValue, getStringValue, putObjectValue, putValue, putValue, putValue, putValue, putValue, putValue, putValue, putValue, putValue, putValue, putValue, putValue, putValue, putValue, putValue, toString
-
-
-
-
Constructor Detail
-
Checkout
public Checkout(java.lang.String reservationId, ReservationType reservationType, java.lang.String reservationClass, Properties reservationProperties)
Creates a new instance of aCheckout
pending action object.- Parameters:
reservationId
- AString
specifying a GUID to be assigned to the reservation object that is created when a document is checked out, thus overriding the reservation object's ID. An assigned ID can be useful if you need to later import a series of document versions. Use with caution. Ifnull
, the API generates a new GUID for the reservation object.reservationType
- AReservationType
constant specifying the type of checkout reservation: collaborative, exclusive, or the default object store setting (DefaultReservationType property). Ifnull
, the API uses the default object store setting.reservationClass
- AString
specifying the symbolic name of a new class for the reservation object. Ifnull
, the class of the reservation object remains the same as that of the checked-out document.reservationProperties
- AProperties
object containing a list of property values to pre-assign to the reservation object. Ifnull
, no property values are pre-assigned to the reservation object.- Throws:
E_NOT_SUPPORTED
- if versioning is not enabled (IsVersioningEnabled =false
) or the document is not the current version (IsCurrentVersion =false
). Thrown when you call thesave
method.E_RESERVATION_EXISTS
- if the document is already reserved (IsReserved =false
). Thrown when you call thesave
method.E_BAD_PARAMETER
- if reservationId is not a GUID. Thrown when you call thesave
method.E_BAD_OBJECT
- if reservationClass is not the same object type as the class of the checked-out document. Thrown when you call thesave
method.
-
-
Method Detail
-
getReservationId
public java.lang.String getReservationId()
Returns the GUID assigned to a reservation object.- Returns:
- A
String
specifying a GUID.
-
getReservationType
public ReservationType getReservationType()
Returns the type of checkout reservation.- Returns:
- A
ReservationType
constant specifying the type of checkout reservation.
-
getReservationClass
public java.lang.String getReservationClass()
Returns the symbolic name of the class to which a reservation object belongs.- Returns:
- A
String
specifying the symbolic name of the class.
-
getReservationProperties
public Properties getReservationProperties()
Returns a list of property values belonging to a document's reservation object.- Returns:
- A
Properties
object containing a list of property values.
-
-