|
Oracle® Information Rights Management Server Java API Reference 11g Release 1 (11.1.1) E12907-03 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
oracle.irm.engine.rights.context.DocumentRightFactory
public final class DocumentRightFactory
Document Right factory. This class provides methods for creating new instances of DocumentRight
objects.
Method Summary | |
---|---|
static DocumentRight |
createDocumentRight(Date assignedTime, Account account, DocumentRole role, Collection<ItemCode> itemCodes, ContextInstance context) Create a new right. |
static DocumentRight |
createDocumentRight(DocumentRight right, Collection<ItemCode> itemCodes) Copy the right with altered items. |
static DocumentRight |
createDocumentRight(UUID uuid) Load an existing document right. |
static DocumentRight |
createDocumentRight(UUID uuid, Date assignedTime, Account account, DocumentRole role, Collection<ItemCode> itemCodes, ContextInstance context) Create a new right with a deterministic UUID. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static DocumentRight createDocumentRight(UUID uuid) throws UnknownDocumentRightException
uuid
- the right UUID.UnknownDocumentRightException
- the right does not exist. When a right is created, the implementation may immediately check whether the right exists or delay this until the other properties on the right are accessed. An assumption should not be made that this constructor will throw this exception if the right does not exist.public static DocumentRight createDocumentRight(Date assignedTime, Account account, DocumentRole role, Collection<ItemCode> itemCodes, ContextInstance context)
assignedTime
- the assignment time.account
- the account.role
- the roleitemCodes
- item restrictions. This parameter is optional, it is valid to pass null or an empty collection.context
- the context.public static DocumentRight createDocumentRight(UUID uuid, Date assignedTime, Account account, DocumentRole role, Collection<ItemCode> itemCodes, ContextInstance context)
uuid
- the right UUID.assignedTime
- the assignment time.account
- the account.role
- the roleitemCodes
- item restrictions. This parameter is optional, it is valid to pass null or an empty collection.context
- the context.public static DocumentRight createDocumentRight(DocumentRight right, Collection<ItemCode> itemCodes)
right
- the right.itemCodes
- item restrictions. This parameter is optional, it is valid to pass null or an empty collection.
|
Oracle® Information Rights Management Server Java API Reference 11g Release 1 (11.1.1) E12907-03 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |