|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Supported API: true
Extendable: false
Method Summary | |
long[] |
getAncestorDomainIds(ObjectReference domain_ref)
Returns an array of ObjectIdentifier.ID attributes for the specified domain and all ancestor domains. |
long[] |
getDescendentDomainIds(ObjectReference domain_ref)
Returns an array of ObjectIdentifier.ID attributes for the specified domain and all descendent domains. |
String |
getLogDomainPath(AdminDomainRef domain_ref)
This is a server-side only API used to retrieve the path name in displayable form for the given domain reference to be included in log messages. |
boolean |
isAncestorDomain(AdminDomainRef ancestorDomainRef,
AdminDomainRef domainRef)
Determines if the input ancestorDomainRef is actually
an ancestor of the input domainRef . |
DomainAdministered |
replaceAdministrativeDomain(DomainAdministered from,
DomainAdministered to,
boolean commit_change)
Copies the domain reference in the 'from' object to the 'to' object and sets the inheritedDomain attribute to true. |
WTList |
replaceAdministrativeDomain(DomainAdministered from,
WTList to_objs,
boolean commit_change)
Multi-object version of the replaceAdministrativeDomain() API. |
WTList |
replaceAdministrativeDomain(WTList from_objs,
WTList to_objs,
boolean commit_change)
Multi-object version of the replaceAdministrativeDomain() API. |
Method Detail |
public long[] getAncestorDomainIds(ObjectReference domain_ref) throws WTException
domain_ref
-
WTException
public long[] getDescendentDomainIds(ObjectReference domain_ref) throws WTException
domain_ref
-
WTException
public String getLogDomainPath(AdminDomainRef domain_ref)
domain_ref
- Required. The administrative domain reference.
public boolean isAncestorDomain(AdminDomainRef ancestorDomainRef, AdminDomainRef domainRef)
ancestorDomainRef
is actually
an ancestor of the input domainRef
. If so, true is returned.
If either of the input values is null, false is returned.
ancestorDomainRef
- domainRef
-
public DomainAdministered replaceAdministrativeDomain(DomainAdministered from, DomainAdministered to, boolean commit_change) throws WTException
inheritedDomain
attribute to true. Posts
PRE_CHANGE_DOMAIN and POST_CHANGE_DOMAIN events. Persists the changes
and returns the changed object if commit_change
is true.
from
- The domain administered object to copy the domain reference from. If from is null, a WTInvalidParameterException is thrown.to
- The domain administered object to copy the domain reference to. If to is null, a WTInvalidParameterException is thrown.commit_change
-
WTException
public WTList replaceAdministrativeDomain(DomainAdministered from, WTList to_objs, boolean commit_change) throws WTException
from
DomainAdministered
object is copied to each DomainAdministered
object in
the to_objs
collection and each object's inheritedDomain
attribute is set to true.
The to_objs
collection must contain one or more DomainAdministered
objects.The exception is if you want to replace the domain that an
AdministrativeDomain
object belongs to. In this case
the to_objs
collection can contain only one DomainAdministered
object which is the AdministrativeDomain
object being
modified. If to_objs contains multiple objects and one or more of
them is an AdministrativeDomain, a AdministrativeDomainException is
thrown.
Multi-object PRE_CHANGE_DOMAIN
and POST_CHANGE_DOMAIN
events are posted before and after modifying the DomainAdministered
objects in the to_objs
collection.
If commit_change
is true, the domain changes for each
DomainAdministered
object in the to_objs
collection are persisted.
A collection of the modified DomainAdministered
objects
is returned.
Supported API: true
from
- The DomainAdministered
object to copy the domain reference from. If from is null, a WTInvalidParameterException is thrown.to_objs
- Collection of DomainAdministered
objects to copy the from object's domain reference to. If to_objs is null or empty, a WTInvalidParameterException is thrown.commit_change
- If true, the objects in the to_objs collection are persisted after changing their domains.
WTException
public WTList replaceAdministrativeDomain(WTList from_objs, WTList to_objs, boolean commit_change) throws WTException
DomainAdministered
object in the from_objs
collection, the domain reference is copied from the from_obj object
to the corresponding DomainAdministered
object in the
to_objs
collection and the inheritedDomain
attribute is set to true for each to_objs
object.
The to_objs
collection must contain one or more DomainAdministered
objects.The exception is if you want to replace the domain that an
AdministrativeDomain
object belongs to. In this case
the to_objs
collection can contain only one DomainAdministered
object which is the AdministrativeDomain
object being
modified. If to_objs contains multiple objects and one or more of
them is an AdministrativeDomain, a AdministrativeDomainException is
thrown. If to_objs is null or empty, a WTInvalidParameterException
is thrown.
The from_objs
collection must contain either 1) a single
DomainAdministered
object or 2) the same number of DomainAdministered
objects as are DomainAdministered
objects in the to_objs
collection. If from_objs
contains one DomainAdministered
object, the domain reference from this DomainAdministered
object is copied to each DomainAdministered
object in
the to_objs
collection; otherwise, the first from_objs
DomainAdministered
object's domain reference is copied
to the first to_objs
DomainAdministered
object, the second from_objs
DomainAdministered
object's domain reference is copied to the second to_objs
DomainAdministered
object, and so on. If from_objs is
null, empty, or the wrong size, a WTInvalidParameterException is thrown.
Multi-object PRE_CHANGE_DOMAIN
and POST_CHANGE_DOMAIN
events are posted before and after modifying the DomainAdministered
objects in the to_objs
collection.
If commit_change
is true, the domain changes for each
DomainAdministered
object in the to_objs
collection are persisted.
A collection of the modified DomainAdministered
objects
is returned.
Supported API: true
from_objs
- Collection of DomainAdministered
objects to copy the domain references from.to_objs
- Collection of DomainAdministered
objects to copy the from_objs domain references to.commit_change
- If true, the objects in the to_objs
collection are persisted after changing their domains.
WTException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |