com.ibm.mashups.enabler.ac.operation
Interface AllowedOperationsModelFactory
public AllowedOperationsModelFactory
Interface for an allowed operations model factory.
Example on how to access the operation model:
var om = com.ibm.mashups.enabler.ac.operation.AllowedOperationsModelFactory.getAllowedOperationsModel();
var op = om.getOperation(com.ibm.mashups.enabler.ac.operation.Constants.EDIT_PAGE_LAYOUT, null); if (op.isAllowed(opContext))
getAllowedOperationsModel
AllowedOperationsModel getAllowedOperationsModel()
-
Returns an AllowedOperationsModel singelton that can be used for checking the operations that the user is allowed to execute. E.g. these checks can be used by context menus to decide if a specfic menu item needs to be shown or hidden.
- Returns:
-
the AllowedOperationsModel for the current user
Copyright IBM Corp. 2010 All Rights Reserved.