|
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.DocumentRightCollectionFactory
public final class DocumentRightCollectionFactory
Document Right collection factory and utilities. This class provides methods for creating new instances of DocumentRight
collections as well as providing a number of collection based utility methods and fields. These methods are provided mainly for convenience and to provide a consistent way to create Document Right collections. Methods that take collection parameters make no assumptions about what collection implementation is used, so the use of these factory style methods is at the developers discretion.
Field Summary | |
---|---|
static Collection<DocumentRight> |
EMPTY_DOCUMENT_RIGHTS An empty Document Right collection. |
Method Summary | |
---|---|
static Collection<DocumentRight> |
copyDocumentRights(Collection<DocumentRight> collection) Create a shallow copy of a Document Right collection. |
static Collection<DocumentRight> |
createDocumentRights(DocumentRight... elements) Create a Document Right collection containing zero or more elements. |
static Collection<DocumentRight> |
createDocumentRights(int capacity) Create an empty Document Right collection with a capacity specified. |
static Map<UUID,DocumentRight> |
documentRightsAsMap(Collection<DocumentRight> collection) Create a map keyed on Uuid from a collection of Document Right elements. |
static Set<DocumentRight> |
documentRightsAsSet(Collection<DocumentRight> collection) Create a set of Document Right elements from a collection. |
static DocumentRight |
getDocumentRightByUuid(Collection<DocumentRight> collection, UUID key) Get an element from a Document Right collection by Uuid. |
static Collection<DocumentRight> |
unmodifiableDocumentRights(Collection<DocumentRight> value) Create an immutable shallow copy of a Document Right collection. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final Collection<DocumentRight> EMPTY_DOCUMENT_RIGHTS
Method Detail |
---|
public static Collection<DocumentRight> createDocumentRights(DocumentRight... elements)
elements
- The elements to add into the collection.public static Collection<DocumentRight> createDocumentRights(int capacity)
capacity
- The initial collection capacity.public static Collection<DocumentRight> copyDocumentRights(Collection<DocumentRight> collection)
collection
- The collection to copy.public static Set<DocumentRight> documentRightsAsSet(Collection<DocumentRight> collection)
collection
- The collection to copy.public static Collection<DocumentRight> unmodifiableDocumentRights(Collection<DocumentRight> value)
value
- The collection to copy.public static Map<UUID,DocumentRight> documentRightsAsMap(Collection<DocumentRight> collection)
collection
- The collection to convert to a map.public static DocumentRight getDocumentRightByUuid(Collection<DocumentRight> collection, UUID key)
collection
- The collection.key
- The key.
|
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 |