com.ibm.mashups.enabler.ac
Interface RoleModel

All Superinterfaces:
ListModel, ListModelController, Locator, Model

public RoleModel
extends ListModelController

Interface for an access control role model


Method Summary
 RoleNode create(JSON context)
           Creates a new Role.
 MemberModel getMemberModel(RoleNode roleNode)
           Returns the member model for the given role.
 
Methods inherited from interface com.ibm.mashups.enabler.ListModelController
create, confirmCreate, insert, confirmInsert, remove, confirmRemove
 
Methods inherited from interface com.ibm.mashups.enabler.ListModel
iterator
 
Methods inherited from interface com.ibm.mashups.enabler.model.Model
setStrategy, getStrategies, getStrategy, addStrategy, removeStrategy
 
Methods inherited from interface com.ibm.mashups.enabler.Locator
find
 

Method Detail

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.