Package wt.admin
Class DomainAdministeredHelper
java.lang.Object
wt.admin.DomainAdministeredHelper
- All Implemented Interfaces:
Externalizable,Serializable
The
Supported API: true
Extendable: false
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:
-
Method Summary
Modifier and TypeMethodDescriptionstatic voidcopyDomain(DomainAdministered from_obj, DomainAdministered to_obj) Copy the domain of one object to another.static AdministrativeDomainReturns the administrative domain of the object.static AdminDomainRefReturns a reference to the administrative domain of the object.static SearchConditionConstructs and returns a search condition that can be used to retrieve all objects belonging to the domain passed as argument.static booleanReturns true if both objects are in the sameAdministrativeDomain.static DomainAdministeredsetAdminDomain(DomainAdministered obj, AdminDomainRef domain_ref) Sets the administrative domain of the object to the one whose reference is passed as argument.static DomainAdministeredsetAdminDomain(DomainAdministered obj, AdministrativeDomain domain) Sets the administrative domain of the object to the one passed as argument.
-
Method Details
-
setAdminDomain
public static DomainAdministered setAdminDomain(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 DomainAdministered setAdminDomain(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
Returns the administrative domain of the object.
Supported API: true- Parameters:
obj-- Returns:
- AdministrativeDomain
- Throws:
WTException
-
getAdminDomainRef
Returns a reference to the administrative domain of the object.
Supported API: true- Parameters:
obj-- Returns:
- AdminDomainRef
- Throws:
WTException
-
getSearchCondition
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(DomainAdministered from_obj, 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(DomainAdministered obj1, DomainAdministered obj2) throws WTException Returns true if both objects are in the sameAdministrativeDomain.
Supported API: true- Parameters:
obj1-obj2-- Returns:
- boolean
- Throws:
WTException
-