wt.admin
Class DomainAdministeredHelper

java.lang.Object
  extended by wt.admin.DomainAdministeredHelper
All Implemented Interfaces:
Externalizable, Serializable

public class DomainAdministeredHelper
extends Object
implements Externalizable

The DomainAdministeredHelper class provides methods for manipulating the administrative domain reference information held by objects that implement the DomainAdministered interface.

Supported API: true

Extendable: false

See Also:
Serialized Form

Method Summary
static void copyDomain(wt.admin.DomainAdministered from_obj, wt.admin.DomainAdministered to_obj)
          Copy the domain of one object to another.
static AdministrativeDomain getAdminDomain(wt.admin.DomainAdministered obj)
          Returns the administrative domain of the object.
static AdminDomainRef getAdminDomainRef(wt.admin.DomainAdministered obj)
          Returns a reference to the administrative domain of the object.
static SearchCondition getSearchCondition(AdministrativeDomain domain)
          Constructs and returns a search condition that can be used to retrieve all objects belonging to the domain passed as argument.
static boolean sameAdministrativeDomain(wt.admin.DomainAdministered obj1, wt.admin.DomainAdministered obj2)
          Returns true if both objects are in the same AdministrativeDomain.
static wt.admin.DomainAdministered setAdminDomain(wt.admin.DomainAdministered obj, AdminDomainRef domain_ref)
          Sets the administrative domain of the object to the one whose reference is passed as argument.
static wt.admin.DomainAdministered setAdminDomain(wt.admin.DomainAdministered obj, AdministrativeDomain domain)
          Sets the administrative domain of the object to the one passed as argument.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

setAdminDomain

public static wt.admin.DomainAdministered setAdminDomain(wt.admin.DomainAdministered obj,
                                                         AdministrativeDomain domain)
                                                  throws WTException
Sets the administrative domain of the object to the one passed as argument.

Supported API: true

Parameters:
obj -
domain -
Returns:
DomainAdministered
Throws:
WTRuntimeException - If the object is Persistable and is already Persistent.
WTException
See Also:
AdministrativeDomainManager.changeAdministrativeDomain(DomainAdministered obj, AdminDomainRef domain_ref), AdministrativeDomainManager.changeAdministrativeDomain(DomainAdministered obj, AdminDomainRef domain_ref, boolean inheritedDomain), AdministrativeDomainManagerSvr.replaceAdministrativeDomain(DomainAdministered from, DomainAdministered to, boolean commit_change)

setAdminDomain

public static wt.admin.DomainAdministered setAdminDomain(wt.admin.DomainAdministered obj,
                                                         AdminDomainRef domain_ref)
                                                  throws WTException
Sets the administrative domain of the object to the one whose reference is passed as argument.

Supported API: true

Parameters:
obj -
domain_ref -
Returns:
DomainAdministered
Throws:
WTRuntimeException - If the object is Persistable and is already Persistent.
WTException
See Also:
AdministrativeDomainManager.changeAdministrativeDomain(DomainAdministered obj, AdminDomainRef domain_ref), AdministrativeDomainManager.changeAdministrativeDomain(DomainAdministered obj, AdminDomainRef domain_ref, boolean inheritedDomain), AdministrativeDomainManagerSvr.replaceAdministrativeDomain(DomainAdministered from, DomainAdministered to, boolean commit_change)

getAdminDomain

public static AdministrativeDomain getAdminDomain(wt.admin.DomainAdministered obj)
                                           throws WTException
Returns the administrative domain of the object.

Supported API: true

Parameters:
obj -
Returns:
AdministrativeDomain
Throws:
WTException

getAdminDomainRef

public static AdminDomainRef getAdminDomainRef(wt.admin.DomainAdministered obj)
                                        throws WTException
Returns a reference to the administrative domain of the object.

Supported API: true

Parameters:
obj -
Returns:
AdminDomainRef
Throws:
WTException

getSearchCondition

public static SearchCondition getSearchCondition(AdministrativeDomain domain)
                                          throws WTException
Constructs and returns a search condition that can be used to retrieve all objects belonging to the domain passed as argument.

Supported API: true

Parameters:
domain -
Returns:
SearchCondition
Throws:
WTException

copyDomain

public static void copyDomain(wt.admin.DomainAdministered from_obj,
                              wt.admin.DomainAdministered to_obj)
                       throws WTException
Copy the domain of one object to another.

Supported API: true

Parameters:
from_obj -
to_obj -
Throws:
WTException

sameAdministrativeDomain

public static boolean sameAdministrativeDomain(wt.admin.DomainAdministered obj1,
                                               wt.admin.DomainAdministered obj2)
                                        throws WTException
Returns true if both objects are in the same AdministrativeDomain.

Supported API: true

Parameters:
obj1 -
obj2 -
Returns:
boolean
Throws:
WTException