Skip navigation links

Oracle® Information Rights Management Server Java API Reference
11g Release 1 (11.1.1)

E12907-03


oracle.irm.engine.rights.context
Class ImmutableDocumentRoleException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by oracle.irm.engine.rights.context.ImmutableDocumentRoleException

All Implemented Interfaces:
Serializable

public class ImmutableDocumentRoleException
extends Exception

Immutable document role. If a role has been assigned to a user or group the role item constraints cannot be changed. Changing item constraints for an assigned role would change the semantics of the assigned role, changing item locks into item exclusions (or vice-versa).

The error message associated with this exception is:

IRM-01076: The item constraints for role \"{0}\" cannot be altered as the role has been assigned to a user or group.
See Also:
Serialized Form

Constructor Summary
ImmutableDocumentRoleException(DocumentRole role)
          Constructor.
ImmutableDocumentRoleException(DocumentRole role, Throwable cause)
          Constructor.

 

Method Summary
 DocumentRole getRole()
          The document role.

 

Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString

 

Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

 

Constructor Detail

ImmutableDocumentRoleException

public ImmutableDocumentRoleException(DocumentRole role)
Constructor.
Parameters:
role - The document role.

ImmutableDocumentRoleException

public ImmutableDocumentRoleException(DocumentRole role,
                                      Throwable cause)
Constructor.
Parameters:
role - The document role.
cause - Cause of the exception.

Method Detail

getRole

public final DocumentRole getRole()
The document role.
Returns:
the value of the property. This method will never return null.

Skip navigation links

Oracle® Information Rights Management Server Java API Reference
11g Release 1 (11.1.1)

E12907-03


Copyright © 2011, Oracle. All rights reserved.