com.filenet.wcm.toolkit.server.util

Class WcmDistinguishedNameString

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

  1. public class WcmDistinguishedNameString
  2. 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

Constructor and Description
WcmDistinguishedNameString()

Method Summary

Modifier and Type Method and Description
  1. static
  2. java.lang.String
format(java.lang.String distinguishedName)
Formats a SunONE formated distinguished name to have an extra space after each commas.
  1. static
  2. java.lang.String
getCN(java.lang.String distinguishedName)
Returns cn= part of the name
  1. static
  2. java.lang.String
getO(java.lang.String distinguishedName)
returns o= part of the name
  1. static
  2. java.lang.String
getOU(java.lang.String distinguishedName)
returns ou= part of the name
  1. static
  2. java.lang.String
getRealmName(java.lang.String realmId)
Returns the realm name given the realm id
  1. static
  2. 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

  1. public WcmDistinguishedNameString( )

Method Detail

format

  1. 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

  1. 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

  1. 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

  1. 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

  1. 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

  1. public static java.lang.String getRealmName( java.lang.String realmId)
  2. throws java.lang.Exception
Returns the realm name given the realm id
Returns:
String The realm name.
Throws:
java.lang.Exception