com.ebasetech.ufs.workflow.security
Class DefaultSecurityHandler

java.lang.Object
  extended by com.ebasetech.ufs.workflow.security.DefaultSecurityHandler
All Implemented Interfaces:
com.ebasetech.api.workflow.Constants, SecurityHandler
Direct Known Subclasses:
EbaseSecurityHandler

public abstract class DefaultSecurityHandler
extends java.lang.Object
implements SecurityHandler, com.ebasetech.api.workflow.Constants

Default implementation of the security handler


Field Summary
 
Fields inherited from interface com.ebasetech.api.workflow.Constants
ASSIGNMENT_ERROR, BAD_PARAMETER_VALUE_TYPE, CANNOT_LOAD_OBJECT, COLON, DOWNCAST_ERROR, EMBEDDED_SQL_EXCEPTION, ENACTMENT_INITIALISATION_EXCEPTION, ENACTMENT_NOT_ACTIVE, FAILED_SETTING_OUT_PARAM, ILLFORMED_PARAMETERS, INVALID_ASSIGNMENT, INVALID_ASSIGNMENT_EXCEPTION, INVALID_COMPLETION, INVALID_POST_EXCEPTION, INVALID_STATE_TRANSITION, INVALID_STATE_TRANSITION_EXCEPTION, MISSING_CALLER, NO_ROLLBACK, NO_SUCH_TASK, NULL_RESOURCE, NULL_TASK_NAME, NULL_VARIABLE_NAME, POOL_ASSIGNMENT_FAILED, PROCESS_ATTRIBUTE_EXCEPTION, PROCESS_STRUCTURE_EXCEPTION, RESOURCE_MANAGEMENT_EXCEPTION, SCRIPT_EXCEPTION_ERROR, SECURITY_EXCEPTION, SETUP_PROPERTIES_EXCEPTION, TRANSACTION_EXCEPTION, UNINITIALISED
 
Constructor Summary
DefaultSecurityHandler()
           
 
Method Summary
 void checkAllowable(Function function, Allowable target, java.lang.String caller)
          Check that the supplied function is allowable (using isAllowable) and throw a SecurityException if it is not allowable.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.ebasetech.ufs.workflow.security.SecurityHandler
getSecurityExpressionComponent, isAllowable, isVisibleTo
 

Constructor Detail

DefaultSecurityHandler

public DefaultSecurityHandler()
Method Detail

checkAllowable

public void checkAllowable(Function function,
                           Allowable target,
                           java.lang.String caller)
                    throws WorkflowSecurityException
Check that the supplied function is allowable (using isAllowable) and throw a SecurityException if it is not allowable. This method is provided to simplify some of the repetitive code in the Job Manager

Specified by:
checkAllowable in interface SecurityHandler
Throws:
WorkflowSecurityException