public class SimpleOperationContext extends SimpleBrowseContext implements OperationContext
Constructor and Description |
---|
SimpleOperationContext(AtomConfig config,
Connector connector,
OperationType opType,
Map<String,Object> connProps,
Map<String,Object> opProps,
String objectTypeId,
Map<ObjectDefinitionRole,String> cookies)
Constructs a new SimpleOperationContext.
|
SimpleOperationContext(AtomConfig config,
Connector connector,
OperationType opType,
Map<String,Object> connProps,
Map<String,Object> opProps,
String objectTypeId,
Map<ObjectDefinitionRole,String> cookies,
List<String> selectedFields) |
Modifier and Type | Method and Description |
---|---|
PayloadMetadata |
createMetadata() |
String |
getObjectDefinitionCookie(ObjectDefinitionRole role)
Returns an object definition cookie constructed by the object profile retrieval during a browsing request.
|
String |
getObjectTypeId()
Returns the id of the object type for which this operation is being executed.
|
List<String> |
getSelectedFields()
Returns a field list describing the fields to be retrieved.
|
getConnectionProperties, getConnector, getConnectorCache, getCustomOperationType, getOperationProperties, getOperationType, getSSLContext
createSSLContext, createTempOutputStream, getConfig, tempOutputStreamToInputStream, tempOutputStreamToPayload
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getCustomOperationType, getOperationProperties, getOperationType, getSSLContext
getConnectionProperties, getConnector, getConnectorCache
createTempOutputStream, getConfig, tempOutputStreamToInputStream, tempOutputStreamToPayload
public SimpleOperationContext(AtomConfig config, Connector connector, OperationType opType, Map<String,Object> connProps, Map<String,Object> opProps, String objectTypeId, Map<ObjectDefinitionRole,String> cookies)
config
- the basic config for for operation executionopType
- the type of operation for operation executionconnProps
- the connection properties for operation execution, may be null
opProps
- the operation properties for operation execution, may be null
objectTypeId
- the type of the object for operation executioncookies
- any cookies from the ObjectDefinition for the relevant object type, may be null
public SimpleOperationContext(AtomConfig config, Connector connector, OperationType opType, Map<String,Object> connProps, Map<String,Object> opProps, String objectTypeId, Map<ObjectDefinitionRole,String> cookies, List<String> selectedFields)
public String getObjectTypeId()
OperationContext
getObjectTypeId
in interface OperationContext
public String getObjectDefinitionCookie(ObjectDefinitionRole role)
OperationContext
getObjectDefinitionCookie
in interface OperationContext
role
- the role identifying the profile for which the profile is desirednull
if no cookie was stored for the profilepublic List<String> getSelectedFields()
OperationContext
null
, indicating that all fields
should be retrievedgetSelectedFields
in interface OperationContext
public PayloadMetadata createMetadata()
createMetadata
in interface PayloadMetadataFactory