Package wt.access

Class 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 Details

    • OwnerLosingAccessException

      public OwnerLosingAccessException()
      No argument constructor.

      Supported API: true
    • OwnerLosingAccessException

      public OwnerLosingAccessException(String message)
      Constructor that takes a non-localized message as argument.

      Supported API: true
      Parameters:
      message - a non-localized message
    • OwnerLosingAccessException

      public OwnerLosingAccessException(Exception e)
      Constructor that takes an exception as argument. Exception can be retrieved using getNestedException method.

      Supported API: true
      Parameters:
      e - exception
    • OwnerLosingAccessException

      public OwnerLosingAccessException(Exception e, String msg)
      Constructor that takes a non-localized message and an exception as argument.

      Supported API: true
      Parameters:
      e - exception
      msg - a non-localized message
    • OwnerLosingAccessException

      public 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.

      Supported API: true
      Parameters:
      e - exception
      rb - resource bundle name
      key - resource bundle key
      params - parameters to use in the localized message