public class DomainComponentTree extends Object
o=internet | ------------------------------ | | | dc=com dc=net dc=edu | --------- | | dc=sun dc=iplanet | | dc=eng dc=redDomainComponentTree allows the user to create a dc tree capturing virtual domain names in a network (hosted or enterprise) environment with each low level dc node being mapped to an organizational DIT.
DomainComponent
Constructor and Description |
---|
DomainComponentTree()
Default constructor
|
DomainComponentTree(SSOToken token,
Guid dcRoot)
Constructs a
DomainComponentTree with an authenticated
prinicipal and an identification of the root of the dc index tree. |
Modifier and Type | Method and Description |
---|---|
DomainComponent |
addDomain(String domain)
Add a virtual domain into the domain component
tree.
|
Hashtable |
getChildDomainIDs()
Get all virtual domains present in the dctree.
|
PersistentObject |
getDCRoot()
Gets the root of the domain component tree (dc
tree)
|
DomainComponent |
getDomainComponent(String domain)
Given a virtual domain name such as
"javasoft.sun.com", returns the domain component entry in the dc index
tree.
|
String |
getDomainStatus(String domain)
Gets the domain status of a given virtual domain
|
PersistentObject |
getOrganization(String domain)
Given a virtual domain name such as
"javasoft.sun.com", return the organization, organizationalunit or any
DIT entry that is assoicated from the domain compoent tree (dctree) to
the customer oranization DIT (the convergence tree as outlined in nortel
spec)
|
User |
getUser(String uid,
String domain)
Given a uid for a user, lookup the user under a
specified virtual domain name.
|
User |
getUser(String namingAttribute,
String value,
String domain)
Given identification of a user with a naming
attribute and value, lookup the user under a virtual domain specified.
|
String |
mapDCToDomainName(DomainComponent dc)
Given a domain component in a dctree, maps it to a
virtual domain name
|
String |
mapDomainToDN(String domain)
Given a fully qualified domain name, maps it to the
corresponding DN in the DCtree
|
void |
removeDomain(String domain)
Remove a virtual domain in the dctree
|
void |
setDCRoot(Guid root)
Sets the root of the domain component tree (dc
tree).
|
void |
setDomainMapping(String domain,
Guid orgGuid)
Set the domain mapping so that the dc entry maps to
an organization in the convergence tree.
|
void |
setDomainMapping(String domain,
PersistentObject org)
Set the domain mapping so that the dc entry maps to
an organization in the the organization DIT hosting user data (the
convergence tree in Nortel spec)
|
void |
setDomainStatus(String domain,
String status)
Sets the domain status for a given virtual domain
|
public DomainComponentTree()
public DomainComponentTree(SSOToken token, Guid dcRoot) throws InvalidDCRootException, UMSException
DomainComponentTree
with an authenticated
prinicipal and an identification of the root of the dc index tree.token
- Single sign on token of authenticated principal with
priviledge for accessing the domain component index tree (dctree).dcRoot
- Identification of root, a DN, of the dc tree such as
o=internet
.InvalidDCRootException
- if invalid root specification.UMSException
- if other read error occurred.public void setDCRoot(Guid root) throws UMSException
root
- Identification of the root of the tree such as o=internetUMSException
public PersistentObject getDCRoot()
public DomainComponent addDomain(String domain) throws UMSException
domain
- Fully qualified domain nameInvalidDCRootException
- if dcroot is not definedUMSException
- for write problem in adding domain to dctreepublic void removeDomain(String domain) throws UMSException
domain
- Virtual domain name to be removedUMSException
- upon failure to remove the corresponding dc entry in the
dctreepublic void setDomainMapping(String domain, PersistentObject org) throws UMSException
domain
- Fully qualified domain nameorg
- Organization entry to be mapped from dctree to organization
DIT (the convergence tree in nortel spec)DomainNotFoundException
- if domain id not definedUMSException
- upon write failurepublic void setDomainMapping(String domain, Guid orgGuid) throws UMSException
domain
- Virtual domain name.orgGuid
- Identifiication of Organization entry to be mapped from
dctree to organization DIT (the convergence tree in nortel spec).UMSException
- if write failed.public void setDomainStatus(String domain, String status) throws DomainNotFoundException, UMSException
domain
- Virtual domain namestatus
- Domain status to be setDomainNotFoundException
- if domain is not found in dctreeUMSException
- upon write failurepublic String getDomainStatus(String domain) throws DomainNotFoundException, UMSException
domain
- Virtual domain nameDomainNotFoundException
- if domain not found in dctreeUMSException
- upon read failurepublic String mapDomainToDN(String domain)
domain
- Fully qualified domain namepublic DomainComponent getDomainComponent(String domain) throws DomainNotFoundException, UMSException
domain
- Virtual domain name such as "javasoft.sun.com"DomainNotFoundException
- if given domain is not found in the dctreeUMSException
- upon read errorpublic PersistentObject getOrganization(String domain) throws DomainNotFoundException, UMSException
domain
- Fully qualified virtual domain nameDomainNotFoundException
- if domain is not foundUMSException
- for reading problem in instantiating the mapped organizationpublic User getUser(String uid, String domain) throws DomainNotFoundException, UMSException
DomainComponentTree dctree = new DomainComponentTree(ctx, "red.iplanet.com"); User user = dctree.getUser("hman", "red.iplanet.com");
uid
- User id for the entry to be searcheddomain
- Fully qualified domain name such as "red.iplanet.com"DomainNotFoundException
- if domain is not foundUMSException
- upon failure in instantiating the user objectpublic User getUser(String namingAttribute, String value, String domain) throws DomainNotFoundException, UMSException
DomainComponentTree dctree = new DomainComponentTree(ctx, "red.iplanet.com"); User user = dctree.getUser("cn", "Hin Man", "red.iplanet.com");
namingAttribute
- Naming attribute for the user object such as "uid" or "mail".
The naming attribute has to provide a unique identifier for
the user.value
- attribute value for the naming attributedomain
- Fully qualified domain name such as "red.iplanet.com"DomainNotFoundException
- if domain is not foundUMSException
- upon failure in instantiating the user objectpublic String mapDCToDomainName(DomainComponent dc)
dc
- A domain component that lives in the dctreepublic Hashtable getChildDomainIDs() throws UMSException
This function can be used as a cache function for the complete DCTree. The returning hastable provides all the virtual domain name as keys that maps to organization mapping linked in the domain component dc nodes
UMSException
- upon failure in searching all mapped domainsCopyright © 2010–2025 Open Identity Platform Community. All rights reserved.