|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface IPermissionChecker
Interface to check permission before performing model operations.
| Method Summary | |
|---|---|
boolean |
checkAuthorizationToAdd(com.sap.tc.cmi.model.ICMIModelClass modelObject)
Determines if the user is authorized to add the specified model object to persistence. |
boolean |
checkAuthorizationToChange(com.sap.tc.cmi.model.ICMIModelClass modelObject,
AttributeDescriptor attribute,
java.lang.Object value)
Determines if the user is authorized to change the attribute on the specified model object to the given value. |
boolean |
checkAuthorizationToDelete(com.sap.tc.cmi.model.ICMIModelClass modelObject)
Determines if the user is authorized to delete the specified model object (header or item). |
boolean |
checkAuthorizationToDeleteAll(java.util.Collection c)
Determines if the user is authorized to delete all data (item) in the given collection. |
| Method Detail |
|---|
boolean checkAuthorizationToChange(com.sap.tc.cmi.model.ICMIModelClass modelObject,
AttributeDescriptor attribute,
java.lang.Object value)
modelObject - The model object being changed.attribute - The descriptor of the attribute to changevalue - The value to set
true if the user has permissions to change the
attribute to this value, otherwise falseboolean checkAuthorizationToAdd(com.sap.tc.cmi.model.ICMIModelClass modelObject)
modelObject - The model object to add.
true if the user has permissions to add this model
object to persistence, otherwise falseboolean checkAuthorizationToDelete(com.sap.tc.cmi.model.ICMIModelClass modelObject)
modelObject - The model object to delete.
true if the user has permissions to delete this
model object, otherwise falseboolean checkAuthorizationToDeleteAll(java.util.Collection c)
c - The collection of the items to be deleted.
true if the user has permissions to delete all,
otherwise false
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||