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 DomainFactory

java.lang.Object
  extended by oracle.irm.engine.rights.context.DomainFactory


public final class DomainFactory
extends Object

Domain factory. This class provides methods for creating new instances of Domain objects.


Method Summary
static Domain createDomain(UUID uuid)
          Recreate a domain.
static Domain createDomain(UUID uuid, Collection<Label> labels)
          Recreate a domain from it's properties.

 

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

 

Method Detail

createDomain

public static Domain createDomain(UUID uuid)
                           throws UnknownDomainException
Recreate a domain. This constructor allows a domain object to be created with a well known UUID. The properties of the domain (such as Labels) will then be retrievable.

Lazy Loading

A lazy loading algorithm is employed when creating Domain objects using this method. The Domain object will load it's state if a property not provided on construction is accessed. This algorithm is thread safe so it is safe to allow multiple threads to access this lazy loaded object. The following properties are provided on construction and can be accessed without lazy loading being triggered:

Accessing any other properties will cause the object's state to be loaded automatically.
Parameters:
uuid - the UUID.
Returns:
a new Domain instance.
Throws:
UnknownDomainException - the domain does not exist. When a domain is created, the implementation may immediately check whether the domain exists or delay this until the other properties on the domain are accessed. An assumption should not be made that this constructor will throw this exception if the domain does not exist.

createDomain

public static Domain createDomain(UUID uuid,
                                  Collection<Label> labels)
Recreate a domain from it's properties. This method can be used to recreate a domain that already exists.
Parameters:
uuid - the UUID.
labels - labels for the domain. This parameter is optional, it is valid to pass null or an empty collection.
Returns:
a new Domain instance.

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.