|
Oracle® Information Rights Management Server Java API Reference 11g Release 1 (11.1.1) E12907-01 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
oracle.irm.engine.rights.context.ContextTemplateCollectionFactory
public final class ContextTemplateCollectionFactory
Context Template collection factory and utilities. This class provides methods for creating new instances of ContextTemplate
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 Context Template 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<ContextTemplate> |
EMPTY_CONTEXT_TEMPLATES An empty Context Template collection. |
Method Summary | |
---|---|
static Map<UUID,ContextTemplate> |
contextTemplatesAsMap(Collection<ContextTemplate> collection) Create a map keyed on Uuid from a collection of Context Template elements. |
static Set<ContextTemplate> |
contextTemplatesAsSet(Collection<ContextTemplate> collection) Create a set of Context Template elements from a collection. |
static Collection<ContextTemplate> |
copyContextTemplates(Collection<ContextTemplate> collection) Create a shallow copy of a Context Template collection. |
static Collection<ContextTemplate> |
createContextTemplates(ContextTemplate... elements) Create a Context Template collection containing zero or more elements. |
static Collection<ContextTemplate> |
createContextTemplates(int capacity) Create an empty Context Template collection with a capacity specified. |
static ContextTemplate |
getContextTemplateByUuid(Collection<ContextTemplate> collection, UUID key) Get an element from a Context Template collection by Uuid. |
static Collection<ContextTemplate> |
unmodifiableContextTemplates(Collection<ContextTemplate> value) Create an immutable shallow copy of a Context Template 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<ContextTemplate> EMPTY_CONTEXT_TEMPLATES
Method Detail |
---|
public static Collection<ContextTemplate> createContextTemplates(ContextTemplate... elements)
elements
- The elements to add into the collection.public static Collection<ContextTemplate> createContextTemplates(int capacity)
capacity
- The initial collection capacity.public static Collection<ContextTemplate> copyContextTemplates(Collection<ContextTemplate> collection)
collection
- The collection to copy.public static Set<ContextTemplate> contextTemplatesAsSet(Collection<ContextTemplate> collection)
collection
- The collection to copy.public static Collection<ContextTemplate> unmodifiableContextTemplates(Collection<ContextTemplate> value)
value
- The collection to copy.public static Map<UUID,ContextTemplate> contextTemplatesAsMap(Collection<ContextTemplate> collection)
collection
- The collection to convert to a map.public static ContextTemplate getContextTemplateByUuid(Collection<ContextTemplate> collection, UUID key)
collection
- The collection.key
- The key.
|
Oracle® Information Rights Management Server Java API Reference 11g Release 1 (11.1.1) E12907-01 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |