UnfulfilledRolesException Class
- public class UnfulfilledRolesException
extends PageFlowException
Exception that is thrown when an action method marked with @jpf:action
roles-allowed="
roles"
is hit when there is a logged-in user
who does not fulfil any of the given roles.
-
Hierarchy
-
Object
Throwable
Exception
RuntimeException
PageFlowException
UnfulfilledRolesException
-
All Implemented Interfaces
-
Serializable
Methods from java.lang.Throwable |
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
Methods from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
UnfulfilledRolesException
public UnfulfilledRolesException(String
[] roleNames,
String
rolesList,
String
actionName,
FlowController
fc)
- Construct on the list of roles that were allowed access to the action.
getMessageArgs() Method
protected Object
[] getMessageArgs()
-
Overrides
-
PageFlowException.getMessageArgs()
getMessageParts() Method
public String
[] getMessageParts()
-
Overrides
-
PageFlowException.getMessageParts()
getRoleNames() Method
public String
[] getRoleNames()
Get the names of the roles that were allowed access to the action.
Returns
- an array of String role names.