org.apache.beehive.netui.pageflow
Class UnfulfilledRolesException
Object
Throwable
Exception
RuntimeException
PageFlowManagedObjectException
PageFlowException
DeferredPageFlowException
UnfulfilledRolesException
- All Implemented Interfaces:
- Serializable
public class UnfulfilledRolesException
- extends DeferredPageFlowException
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.
- See Also:
- Serialized Form
Constructor Summary |
UnfulfilledRolesException(String[] roleNames,
String rolesList,
String actionName)
Construct on the list of roles that were allowed access to the action. |
Methods inherited from class Throwable |
fillInStackTrace, getCause, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
Methods inherited from class Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
UnfulfilledRolesException
public UnfulfilledRolesException(String[] roleNames,
String rolesList,
String actionName)
- Construct on the list of roles that were allowed access to the action.
- Parameters:
roleNames
- an array of String role names.
getRoleNames
public String[] getRoleNames()
- Get the names of the roles that were allowed access to the action.
- Returns:
- an array of String role names.
getMessageArgs
protected Object[] getMessageArgs()
- Specified by:
getMessageArgs
in class PageFlowManagedObjectException
getMessageParts
public String[] getMessageParts()
- Specified by:
getMessageParts
in class PageFlowManagedObjectException
getResponseErrorMessage
public String getResponseErrorMessage()
- Overrides:
getResponseErrorMessage
in class DeferredPageFlowException
getResponseErrorCode
public int getResponseErrorCode()
- Specified by:
getResponseErrorCode
in class DeferredPageFlowException