Package com.polarion.platform.security
Class PermissionDeniedException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.polarion.platform.security.PermissionDeniedException
- All Implemented Interfaces:
IUserFriendlyException
,Serializable
Thrown when checked permission is denied.
- Author:
- dobisekm
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionPermissionDeniedException
(String user, IPermission permission, IContextId contextId) Constructor.PermissionDeniedException
(String user, IPermission originalPermission, IContextId contextId, IPermission reason) Constructor.PermissionDeniedException
(String user, IPermission permission, IContextId contextId, String message) Constructor. -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
PermissionDeniedException
public PermissionDeniedException(String user, IPermission permission, IContextId contextId, String message) Constructor.- Parameters:
user
- user (can benull
)permission
- permission (notnull
)contextId
- context id (can benull
)message
- (can benull
)- Since:
- 3.5.1
-
PermissionDeniedException
Constructor.- Parameters:
user
- user (can benull
)permission
- permission (notnull
)contextId
- context id (can benull
)
-
PermissionDeniedException
public PermissionDeniedException(String user, IPermission originalPermission, IContextId contextId, IPermission reason) Constructor.- Parameters:
user
- user (can benull
)originalPermission
- permission (notnull
)contextId
- context id (can benull
)reason
- The reason for decision (notnull
)- Since:
- 3.8.2
-
-
Method Details
-
getContextId
- Returns:
- the contextId
-
getPermission
- Returns:
- the permission
-
getUser
- Returns:
- the user
-