Package wt.access
Class OwnerLosingAccessException
java.lang.Object
java.lang.Throwable
java.lang.Exception
wt.util.WTException
wt.access.AccessControlException
wt.access.OwnerLosingAccessException
- All Implemented Interfaces:
Serializable,wt.conflict.ConflictHolder,LocalizableMessage,Message
public class OwnerLosingAccessException
extends AccessControlException
implements wt.conflict.ConflictHolder, Serializable
Thrown when the access control service detects that a change to security labels
will cause one or more Ownable objects to become inaccessible to their owners.
The exception contains a map of the Ownable objects to the security labels
whose application would cause them to become inaccessible. The security labels
are represented as a Map<String,String> of the security label names to the
internal form of the security label value, containing only the security labels
whose application would cause the object to be inaccessible.
ConflictHolder is implemented to provide a ConflictElement when needed by a
consumer of this exception. Currently, the Edit Security Labels UI is the only
user of ConflictElement for this exception. It is not necessary to create the
ConflictElement at the time the exception is created and thrown. Instead, since
this class already carries all the information needed to create the ConflictElement
the ConflictElement isn't created until needed by a consumer calling the
getConflictElements() method.
Supported API: true
Extendable: false
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionNo argument constructor.Constructor that takes an exception as argument.Constructor that takes a non-localized message and an exception as argument.OwnerLosingAccessException(Exception e, String rb, String key, Object[] params) Constructor that takes and exception, a resource bundle, a key and additional parameters to use in the localized message.OwnerLosingAccessException(String message) Constructor that takes a non-localized message as argument. -
Method Summary
Methods inherited from class wt.util.WTException
getAdditionalMessageArray, getAdditionalMessages, getAdditionalMessages, getLocalizedMessage, getLocalizedMessage, getLocalizedMessage, getNestedExceptionString, getNestedExceptionString, getNestedThrowable, getStandardMessage, getStandardMessage, getWTMessage, printStackTrace, printStackTrace, printStackTrace, toString, toStringMethods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getMessage, getStackTrace, getSuppressed, initCause, setStackTrace
-
Constructor Details
-
OwnerLosingAccessException
public OwnerLosingAccessException()No argument constructor.
Supported API: true -
OwnerLosingAccessException
Constructor that takes a non-localized message as argument.
Supported API: true- Parameters:
message- a non-localized message
-
OwnerLosingAccessException
Constructor that takes an exception as argument. Exception can be retrieved using getNestedException method.
Supported API: true- Parameters:
e- exception
-
OwnerLosingAccessException
Constructor that takes a non-localized message and an exception as argument.
Supported API: true- Parameters:
e- exceptionmsg- a non-localized message
-
OwnerLosingAccessException
Constructor that takes and exception, a resource bundle, a key and additional parameters to use in the localized message.
Supported API: true- Parameters:
e- exceptionrb- resource bundle namekey- resource bundle keyparams- parameters to use in the localized message
-