wt.admin
Interface AdministrativeDomainManagerSvr

All Known Implementing Classes:
StandardAdministrativeDomainManager

public interface AdministrativeDomainManagerSvr



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

getAncestorDomainIds

public long[] getAncestorDomainIds(ObjectReference domain_ref)
                            throws WTException
Returns an array of ObjectIdentifier.ID attributes for the specified domain and all ancestor domains.

Supported API: false

Parameters:
domain_ref -
Returns:
long []
Throws:
WTException

getDescendentDomainIds

public long[] getDescendentDomainIds(ObjectReference domain_ref)
                              throws WTException
Returns an array of ObjectIdentifier.ID attributes for the specified domain and all descendent domains.

Supported API: false

Parameters:
domain_ref -
Returns:
long []
Throws:
WTException

getLogDomainPath

public 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. This method returns the domain path in the same format as the getDisplayDomainPath() methods but DOES NOT apply access control so that the entire path is visible in the log message. The domain-path is relative to the container meaning that all of the domains in the domain-path reside in the container. If the administrative domain isn't found, null is returned. This method always returns a value; either null or a domain path. The caller has to decide what to put in the log message if null is returned.

Supported API: false

Parameters:
domain_ref - Required. The administrative domain reference.
Returns:
String

isAncestorDomain

public boolean isAncestorDomain(AdminDomainRef ancestorDomainRef,
                                AdminDomainRef domainRef)
Determines if the input 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.

Supported API: false

Parameters:
ancestorDomainRef -
domainRef -
Returns:
boolean

replaceAdministrativeDomain

public DomainAdministered replaceAdministrativeDomain(DomainAdministered from,
                                                      DomainAdministered to,
                                                      boolean commit_change)
                                               throws WTException
Copies the domain reference in the 'from' object to the 'to' object and sets the 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.

Supported API: true

Parameters:
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 -
Returns:
DomainAdministered
Throws:
WTException

replaceAdministrativeDomain

public WTList replaceAdministrativeDomain(DomainAdministered from,
                                          WTList to_objs,
                                          boolean commit_change)
                                   throws WTException
Multi-object version of the replaceAdministrativeDomain() API. The domain reference in the 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

Parameters:
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.
Returns:
WTList
Throws:
WTException

replaceAdministrativeDomain

public WTList replaceAdministrativeDomain(WTList from_objs,
                                          WTList to_objs,
                                          boolean commit_change)
                                   throws WTException
Multi-object version of the replaceAdministrativeDomain() API. For each 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

Parameters:
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.
Returns:
WTList
Throws:
WTException