kaos.core.csi.registration
Interface DomainHierarchyConfiguration

All Known Subinterfaces:
Registration
All Known Implementing Classes:
RegistrationImpl

public interface DomainHierarchyConfiguration

Defines the operations to configure the parent-child domain relationship for the specified domain.


Method Summary
 void addChildToDomain(DomainDescription domain, DomainDescription childDomain)
          Add the childDomain as a child of the specified domain.
 void removeChildFromDomain(DomainDescription domain, DomainDescription childDomain)
          Add the childDomain as a child of the specified domain.
 void setParentForDomain(DomainDescription domain, DomainDescription parentDomain)
          Set as a the parent the given parentDomain for the specified domain.
 

Method Detail

setParentForDomain

void setParentForDomain(DomainDescription domain,
                        DomainDescription parentDomain)
                        throws DirectoryFailure,
                               HasParentException
Set as a the parent the given parentDomain for the specified domain.

Parameters:
domain - DomainDescription describes the domain, whose parent is to be updated.
parentDomain - DomainDescription describes the parent domain.
Throws:
DirectoryFailure - if the connection to the DS cannot be established.
HasParentException - if the specified domain has already a parent.

addChildToDomain

void addChildToDomain(DomainDescription domain,
                      DomainDescription childDomain)
                      throws DirectoryFailure,
                             HasParentException
Add the childDomain as a child of the specified domain.

Parameters:
domain - DomainDescription describes the domain, to which the childDomain will be added.
childDomain - DomainDescription describes the child domain.
Throws:
DirectoryFailure - if the connection to the DS cannot be established.
HasParentException - if the specified child domain has already a parent.

removeChildFromDomain

void removeChildFromDomain(DomainDescription domain,
                           DomainDescription childDomain)
                           throws DirectoryFailure,
                                  NotRegisteredException
Add the childDomain as a child of the specified domain.

Parameters:
domain - DomainDescription describes the domain, from which to remove the child domain.
childDomain - DomainDescription describes the child domain to be removed.
Throws:
DirectoryFailure - if the connection to the DS cannot be established.
NotRegisteredException - if the specified domain does not have the specified child domain as a child.