com.filenet.wcm.toolkit.server.util
Class WcmDistinguishedNameString

java.lang.Object
  extended bycom.filenet.wcm.toolkit.server.util.WcmDistinguishedNameString

public class WcmDistinguishedNameString
extends java.lang.Object

Utility class that provides a method to add an extra space after each comma in a SunONE formatted distinguished name.


Constructor Summary
WcmDistinguishedNameString()
           
 
Method Summary
static java.lang.String format(java.lang.String distinguishedName)
          Formats a SunONE formated distinguished name to have an extra space after each commas.
static java.lang.String getCN(java.lang.String distinguishedName)
          Returns cn= part of the name
static java.lang.String getO(java.lang.String distinguishedName)
          returns o= part of the name
static java.lang.String getOU(java.lang.String distinguishedName)
          returns ou= part of the name
static java.lang.String getRealmName(java.lang.String realmId)
          Returns the realm name given the realm id
static java.lang.String getUID(java.lang.String distinguishedName)
          returns o= part of the name
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WcmDistinguishedNameString

public WcmDistinguishedNameString()
Method Detail

format

public static java.lang.String format(java.lang.String distinguishedName)
Formats a SunONE formated distinguished name to have an extra space after each commas.

Parameters:
distinguishedName - The distinguished name string
Returns:
String The distinguished name string with the new format.

getCN

public static java.lang.String getCN(java.lang.String distinguishedName)
Returns cn= part of the name

Parameters:
distinguishedName - The distinguished name string
Returns:
cn= part of the name

getOU

public static java.lang.String getOU(java.lang.String distinguishedName)
returns ou= part of the name

Parameters:
distinguishedName - The distinguished name string
Returns:
ou= part of the name

getO

public static java.lang.String getO(java.lang.String distinguishedName)
returns o= part of the name

Parameters:
distinguishedName - The distinguished name string
Returns:
ou= part of the name

getUID

public static java.lang.String getUID(java.lang.String distinguishedName)
returns o= part of the name

Parameters:
distinguishedName - The distinguished name string
Returns:
ou= part of the name

getRealmName

public static java.lang.String getRealmName(java.lang.String realmId)
                                     throws java.lang.Exception
Returns the realm name given the realm id

Returns:
String The realm name.
Throws:
java.lang.Exception


© Copyright IBM Corp. 2002, 2007. All Rights Reserved.