Modifier and Type | Field and Description |
---|---|
static int |
EXECUTION_STATUS_COMPLETE
Execution status that indicates that the operation has been
executed.
|
static int |
EXECUTION_STATUS_IN_PROGRESS
Execution status that indicates that the operation is being
executed.
|
static int |
EXECUTION_STATUS_NOT_EXECUTED
Execution status that indicates that the operation has not been
executed.
|
static int |
EXECUTION_STATUS_REQUESTED
Execution status that indicates that the operation has not been
requested for execution.
|
protected Hashtable |
m_Properties
Properties table.
|
Constructor and Description |
---|
OperationContext()
Construct an OperationContext.
|
OperationContext(LibrarySessionInterface session,
AttributeValue target)
Construct an OperationContext on a specified initial object, on
behalf of a session.
|
OperationContext(OperationContext context)
Construct an OperationContext based on another OperationContext.
|
Modifier and Type | Method and Description |
---|---|
AttributeValue |
getAttributeValueReturnValue()
Get the AttributeValue result from the operation state.
|
boolean |
getBooleanReturnValue()
Get the boolean result from the operation state.
|
LibraryObjectDefinition |
getDefinition()
Returns the definition containing the detials of the
operation to be performed.
|
int |
getExecutionStatus()
Gets the execution status on the Operation context.
|
String |
getOperation()
Returns the operation to be performed.
|
OperationState |
getOperationState()
Gets the pre-10g OperationState, to be forwarded to
some methods have not yet been converted to the new
operation methodology.
|
Object |
getProperty(String name)
Return a Property value.
|
Object |
getReturnValue()
Gets the "result" of the operation.
|
LibraryObjectInterface |
getTargetObject(LibrarySessionInterface session)
Returns the object that is the target of the operation.
|
AttributeValue |
getTargetObjectValue()
Returns the object that is the target of the operation.
|
void |
removeProperty(String name)
Removes a property setting.
|
void |
setDefinition(LibraryObjectDefinition def)
Sets the definition containing the details of the
operation to be performed.
|
void |
setDefinition(S_LibraryObjectDefinition def)
Sets the definition containing the details of the
operation to be performed.
|
void |
setExecutionStatus(int status)
Internal use only: set the execution status on the
Operation context.
|
void |
setOperation(String operation)
Sets the operation to be performed.
|
void |
setOperationState(OperationState opState)
Sets the pre-10g OperationState, to be forwarded to
some methods have not yet been converted to the new
operation methodology.
|
void |
setProperty(String name,
Object value)
Set a property.
|
void |
setReturnValue(Object returnValue)
Sets the value to be returned as the "result" of the operation.
|
void |
setTargetObject(LibraryObjectInterface target)
Sets the object that is the target of the operation.
|
void |
setTargetObjectValue(AttributeValue target)
Sets the object that is the target of the operation.
|
Object |
verifyReturnValue()
Verify that a non-null return value exists for this
Operation state.
|
public static final int EXECUTION_STATUS_NOT_EXECUTED
public static final int EXECUTION_STATUS_REQUESTED
public static final int EXECUTION_STATUS_IN_PROGRESS
public static final int EXECUTION_STATUS_COMPLETE
protected Hashtable m_Properties
public OperationContext() throws IfsException
IfsException
- if the operation failspublic OperationContext(LibrarySessionInterface session, AttributeValue target) throws IfsException
session
- the sessiontarget
- the initial target objectIfsException
- if the operation failspublic OperationContext(OperationContext context) throws IfsException
new OperationContext().setOperation(context.getOperation());
context
- a context whose operation will be set
for the newly constructed OperationContextIfsException
- if the operation failspublic void setOperation(String operation) throws IfsException
operation
- the operationIfsException
- if the operation failspublic void setTargetObjectValue(AttributeValue target) throws IfsException
target
- the target objectIfsException
- if the operation failspublic void setTargetObject(LibraryObjectInterface target) throws IfsException
target
- the target objectIfsException
- if the operation failspublic void setDefinition(LibraryObjectDefinition def) throws IfsException
def
- the definition for the operationIfsException
- if the operation failspublic void setDefinition(S_LibraryObjectDefinition def) throws IfsException
def
- the definition for the operationIfsException
- if the operation failspublic void setOperationState(OperationState opState) throws IfsException
opState
- the pre-10g OperationStateIfsException
- if the operation failspublic void setProperty(String name, Object value) throws IfsException
name
- The property namevalue
- The property value.IfsException
- if operation fails.public void removeProperty(String name) throws IfsException
name
- The name of the property to be removed.IfsException
- if operation fails.public void setReturnValue(Object returnValue) throws IfsException
returnValue
- the return valueIfsException
- if the operation failspublic void setExecutionStatus(int status) throws IfsException
status
- Execution statusIfsException
- if the operation failspublic String getOperation() throws IfsException
IfsException
- if the operation failspublic AttributeValue getTargetObjectValue() throws IfsException
IfsException
- if the operation failspublic LibraryObjectInterface getTargetObject(LibrarySessionInterface session) throws IfsException
IfsException
- if the operation failspublic LibraryObjectDefinition getDefinition() throws IfsException
IfsException
- if the operation failspublic OperationState getOperationState() throws IfsException
IfsException
- if the operation failspublic int getExecutionStatus() throws IfsException
IfsException
- if the operation failspublic Object getReturnValue() throws IfsException
IfsException
- if the operation failspublic Object verifyReturnValue() throws IfsException
IfsException
- (IFS-19100) if return value does not existpublic boolean getBooleanReturnValue() throws IfsException
IfsException
- (IFS-19100) if return value does not existIfsException
- (IFS-19101) if the return value is not a Booleanpublic AttributeValue getAttributeValueReturnValue() throws IfsException
IfsException
- (IFS-19100) if return value does not existIfsException
- (IFS-19101) if the return value is not an AttributeValuepublic Object getProperty(String name) throws IfsException
name
- the name of the PropertyIfsException
- if operation fails.Copyright © 2023. All rights reserved.