com.ibm.mashups.enabler.ac
Interface AccessControlModel

All Superinterfaces:
Model

public AccessControlModel
extends Model

Interface for a access control model.


Method Summary
 Boolean isInitialized()
           Indicates if the model is initialized.for the underlying resource.
 User getOwner()
           Returns the owner of the resource
 void setOwner(User user)
           Sets a new owner for the resource
 Boolean confirmSetOwner(User user)
           Confirms whether setting a new owner is possible.
 RoleModel getRoleModel()
           Same as getRoleModel(true).
 RoleModel getRoleModel(Boolean create)
           Returns the role model for the given access control model.
 Boolean confirmGetRoleModel()
           Confirms whether getting the role model is possible
 DeferredOperation commit()
           Commits the modifications applied to this model and all dependent models.
 
Methods inherited from interface com.ibm.mashups.enabler.model.Model
setStrategy, getStrategies, getStrategy, addStrategy, removeStrategy
 

Method Detail

isInitialized

Boolean isInitialized()
Indicates if the model is initialized.for the underlying resource.

Returns:
true if the model is initialized, false otherwise

getOwner

User getOwner()
Returns the owner of the resource

Returns:
the owner of the resource; never null.

setOwner

void setOwner(User user)
Sets a new owner for the resource

Parameters:
user - the new owner for the resource. Must not be null.

confirmSetOwner

Boolean confirmSetOwner(User user)
Confirms whether setting a new owner is possible.

Parameters:
user - new owner to set; must not be null
Returns:
true if the new owner can be set, false otherwise.

getRoleModel

RoleModel getRoleModel()
Same as getRoleModel(true).

Returns:
a RoleModel object. Never null.

getRoleModel

RoleModel getRoleModel(Boolean create)
Returns the role model for the given access control model.

Parameters:
create - defines whether the role model should be created if it is not available
Returns:
a RoleModel object. May be null if called with create equals false.

confirmGetRoleModel

Boolean confirmGetRoleModel()
Confirms whether getting the role model is possible

Returns:
true if retrieving the role model is possible, false otherwise

commit

DeferredOperation commit()
Commits the modifications applied to this model and all dependent models.

Returns:
a deferred object used to start this operation. The return value when executed through the deferred object is null


Copyright IBM Corp. 2010 All Rights Reserved.