com.ibm.mashups.enabler.ac.operation
Interface AllowedOperationsModel
- All Superinterfaces:
- Model
public AllowedOperationsModel
- extends Model
Interface for an allowed operations model. This model allows to check for operations that the user may execute. E.g. it can be used by context menus to determine the operations allowed for the current user. Operations can be registered in the ibmConfig object with "operations" or dynamically via the setOperations method.
Method Summary |
Deferred |
getOperation(String operationName,
JSON context)
Returns the requested operation. |
getOperation
Deferred getOperation(String operationName,
JSON context)
-
Returns the requested operation.
- Parameters:
operationName
-
name of the operation. A few valid operations can be found hereConstants
.context
-
JSON context passed to the operation. Each operation needs to define the format.
- Returns:
-
the requested operation as a deferred object;
null
if no operation with the given name was found. The return value when executed through the deferred object is a Operation
.
Copyright IBM Corp. 2010 All Rights Reserved.