com.sap.tc.mobile.cfs.wdbll
Interface IPermissionChecker


public interface IPermissionChecker

Interface to check permission before performing model operations.

Author:
I032295

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

checkAuthorizationToChange

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.

Parameters:
modelObject - The model object being changed.
attribute - The descriptor of the attribute to change
value - The value to set
Returns:
true if the user has permissions to change the attribute to this value, otherwise false

checkAuthorizationToAdd

boolean checkAuthorizationToAdd(com.sap.tc.cmi.model.ICMIModelClass modelObject)
Determines if the user is authorized to add the specified model object to persistence.

Parameters:
modelObject - The model object to add.
Returns:
true if the user has permissions to add this model object to persistence, otherwise false

checkAuthorizationToDelete

boolean checkAuthorizationToDelete(com.sap.tc.cmi.model.ICMIModelClass modelObject)
Determines if the user is authorized to delete the specified model object (header or item).

Parameters:
modelObject - The model object to delete.
Returns:
true if the user has permissions to delete this model object, otherwise false

checkAuthorizationToDeleteAll

boolean checkAuthorizationToDeleteAll(java.util.Collection c)
Determines if the user is authorized to delete all data (item) in the given collection.

Parameters:
c - The collection of the items to be deleted.
Returns:
true if the user has permissions to delete all, otherwise false