Interface AdministrativeDomainManagerSvr
- All Known Implementing Classes:
StandardAdministrativeDomainManager
Supported API: true
Extendable: false
-
Method Summary
Modifier and TypeMethodDescriptionreplaceAdministrativeDomain(DomainAdministered from, DomainAdministered to, boolean commit_change) Copies the domain reference in the 'from' object to the 'to' object and sets theinheritedDomainattribute to true.replaceAdministrativeDomain(DomainAdministered from, WTList to_objs, boolean commit_change) Multi-object version of the replaceAdministrativeDomain() API.replaceAdministrativeDomain(WTList from_objs, WTList to_objs, boolean commit_change) Multi-object version of the replaceAdministrativeDomain() API.
-
Method Details
-
replaceAdministrativeDomain
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 theinheritedDomainattribute to true. Posts PRE_CHANGE_DOMAIN and POST_CHANGE_DOMAIN events. Persists the changes and returns the changed object ifcommit_changeis 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
WTList replaceAdministrativeDomain(DomainAdministered from, WTList to_objs, boolean commit_change) throws WTException Multi-object version of the replaceAdministrativeDomain() API. The domain reference in thefromDomainAdministeredobject is copied to eachDomainAdministeredobject in theto_objscollection and each object'sinheritedDomainattribute is set to true.The
to_objscollection must contain one or moreDomainAdministeredobjects.The exception is if you want to replace the domain that anAdministrativeDomainobject belongs to. In this case theto_objscollection can contain only oneDomainAdministeredobject which is theAdministrativeDomainobject 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_DOMAINandPOST_CHANGE_DOMAINevents are posted before and after modifying theDomainAdministeredobjects in theto_objscollection.If
commit_changeis true, the domain changes for eachDomainAdministeredobject in theto_objscollection are persisted.A collection of the modified
DomainAdministeredobjects is returned.
Supported API: true- Parameters:
from- TheDomainAdministeredobject to copy the domain reference from. If from is null, a WTInvalidParameterException is thrown.to_objs- Collection ofDomainAdministeredobjects 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
WTList replaceAdministrativeDomain(WTList from_objs, WTList to_objs, boolean commit_change) throws WTException Multi-object version of the replaceAdministrativeDomain() API. For eachDomainAdministeredobject in thefrom_objscollection, the domain reference is copied from the from_obj object to the correspondingDomainAdministeredobject in theto_objscollection and theinheritedDomainattribute is set to true for eachto_objsobject.The
to_objscollection must contain one or moreDomainAdministeredobjects.The exception is if you want to replace the domain that anAdministrativeDomainobject belongs to. In this case theto_objscollection can contain only oneDomainAdministeredobject which is theAdministrativeDomainobject 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_objscollection must contain either 1) a singleDomainAdministeredobject or 2) the same number ofDomainAdministeredobjects as areDomainAdministeredobjects in theto_objscollection. Iffrom_objscontains oneDomainAdministeredobject, the domain reference from thisDomainAdministeredobject is copied to eachDomainAdministeredobject in theto_objscollection; otherwise, the firstfrom_objsDomainAdministeredobject's domain reference is copied to the firstto_objsDomainAdministeredobject, the secondfrom_objsDomainAdministeredobject's domain reference is copied to the secondto_objsDomainAdministeredobject, and so on. If from_objs is null, empty, or the wrong size, a WTInvalidParameterException is thrown.Multi-object
PRE_CHANGE_DOMAINandPOST_CHANGE_DOMAINevents are posted before and after modifying theDomainAdministeredobjects in theto_objscollection.If
commit_changeis true, the domain changes for eachDomainAdministeredobject in theto_objscollection are persisted.A collection of the modified
DomainAdministeredobjects is returned.
Supported API: true- Parameters:
from_objs- Collection ofDomainAdministeredobjects to copy the domain references from.to_objs- Collection ofDomainAdministeredobjects to copy the from_objs domain references to.commit_change- If true, the objects in theto_objscollection are persisted after changing their domains.- Returns:
- WTList
- Throws:
WTException
-