com.ibm.mashups.enabler.ac
Interface RoleModel
- All Superinterfaces:
- ListModel, ListModelController, Locator, Model
public RoleModel
- extends ListModelController
Interface for an access control role model
Methods inherited from interface com.ibm.mashups.enabler.Locator |
find |
create
RoleNode create(JSON context)
-
Creates a new Role. The created role can be inserted into the model using an appropriate
insert
method. The node will not appear in the model unless it is inserted.
- Parameters:
context
-
json object of predefined name/value pairs used for the creation of the node. Never null
. Accepted names are:
roletype
- value: one of the role type constants (mandatory)
- Returns:
-
created role node. Returns
null
if a Role already exists for the specified role type.
getMemberModel
MemberModel getMemberModel(RoleNode roleNode)
-
Returns the member model for the given role.
- Parameters:
roleNode
-
the role to retrieve the member model for
Copyright IBM Corp. 2010 All Rights Reserved.