palio.security
Class InsufficientPrivilegesException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by palio.PalioException
              extended by palio.security.PalioSecurityException
                  extended by palio.security.InsufficientPrivilegesException
All Implemented Interfaces:
java.io.Serializable

public class InsufficientPrivilegesException
extends PalioSecurityException

Should be thrown when current user has insufficient privileges to execute any secure operation.

Author:
kmadyniak
See Also:
Serialized Form

Field Summary
 
Fields inherited from class palio.PalioException
BAD_PASSWORD, DEDICATED_RECONNECT
 
Constructor Summary
InsufficientPrivilegesException(java.lang.Long userId, java.util.Collection<java.lang.String> requiredPrivileges)
          InsufficientPrivilegesException(Long, Collection, Long)
InsufficientPrivilegesException(java.lang.Long userId, java.util.Collection<java.lang.String> requiredPrivileges, java.lang.Long regionId)
          Full constructor
 
Method Summary
 java.lang.Long getRegionId()
           
 java.util.Collection<java.lang.String> getRequiredPrivileges()
           
 java.lang.Long getUserId()
           
 
Methods inherited from class palio.PalioException
createTransportableException, createTransportableException, getCode, getCore, getException, getExtension, getLocalizedMessage, getLogger, getMessage, getStackTrace, printStackTrace, printStackTrace, putException, putException, putException, putException, setCode, setLogger, setMessage, setMessage, setStackTrace, toString
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, initCause, printStackTrace
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

InsufficientPrivilegesException

public InsufficientPrivilegesException(java.lang.Long userId,
                                       java.util.Collection<java.lang.String> requiredPrivileges,
                                       java.lang.Long regionId)
Full constructor

Parameters:
userId - jPALIO user id for whom privileges has been checked
requiredPrivileges - Collection of jPALIO privileges codes that are required
regionId - jPALIO region id for which privileges has been checked

InsufficientPrivilegesException

public InsufficientPrivilegesException(java.lang.Long userId,
                                       java.util.Collection<java.lang.String> requiredPrivileges)
InsufficientPrivilegesException(Long, Collection, Long)

Method Detail

getUserId

public java.lang.Long getUserId()

getRegionId

public java.lang.Long getRegionId()

getRequiredPrivileges

public java.util.Collection<java.lang.String> getRequiredPrivileges()