| java.lang.Object org.openharmonise.rm.security.authorization.AuthorizationValidator
AuthorizationValidator | public class AuthorizationValidator implements EditEventListener,CacheListener(Code) | | Utility class that provides methods to handle the role based security
validations within Harmonise.
author: Michael Bell version: $Revision: 1.3 $ |
ATTRIB_IS_VIEWABLE | final public static String ATTRIB_IS_VIEWABLE(Code) | | |
isCommandAvailable | public static boolean isCommandAvailable(User usr, Class objClass, String sCommand) throws AuthorizationException(Code) | | Compares the User's profile against the profiled object's profile to find
if the command is available to the user
Parameters: usr - User to perform the command Parameters: profObj - AbstractProfiledObject command will be performed on Parameters: sCommand - Command name to perform |
isCommandAvailable | public static boolean isCommandAvailable(User usr, AbstractEditableObject edObj, String sCommand) throws AuthorizationException(Code) | | Compares the User's profile against the profiled object's profile to find
if the command is available to the user.
Parameters: usr - User to perform the command Parameters: profObj - AbstractProfiledObject command will be performed on Parameters: sCommand - Command name to perform |
isVisible | public static boolean isVisible(User usr, AbstractProfiledObject pobj) throws AuthorizationException(Code) | | Compares the secuirty profile of the user against that of the profiled
object to check if the object is visible to the user.
Parameters: usr - User to view the object Parameters: pobj - Object to be viewed throws: Exception - |
mergeSecurityProfiles | public static void mergeSecurityProfiles(Profile primaryProfile, Profile referenceProfile) throws AuthorizationException(Code) | | Merges the secondary profile with the primary profile, ensuring that the
resultant is at least as restrictive as the secondary profile.
Parameters: primaryProfile - Primary security profile, the one to be altered Parameters: referenceProfile - Secondary security profile, the profile to merged in to the primary security profile |
workflowObjectArchived | public void workflowObjectArchived(EditEvent event)(Code) | | |
workflowObjectLocked | public void workflowObjectLocked(EditEvent event)(Code) | | |
workflowObjectReactivated | public void workflowObjectReactivated(EditEvent event)(Code) | | |
workflowObjectStatusChanged | public void workflowObjectStatusChanged(EditEvent event)(Code) | | |
workflowObjectUnlocked | public void workflowObjectUnlocked(EditEvent event)(Code) | | |
|
|