|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectwt.admin.AdministrativeDomainHelper
The AdministrativeDomainHelper
class facilitates access
to the current implementation of the AdministrativeDomainManager
interface.
Access to the AdministrativeDomainManager
functionality is accomplished using the manager
field, for
example domain = AdministrativeDomainHelper.manager.getDomain (domainPath,
containerRef);
Additionally it holds the names of pre-defined
domains and a reference to the root domain.
Supported API: true
Extendable: false
Field Summary | |
static String |
ADMIN_GROUP_NAME
Constant containing name of the pre-defined default administrators group. |
static String |
ADMIN_GROUP_SERVICE
Constant containing the name of the directory service that holds the system "Administrators" group. |
static String |
ADMINISTRATOR_NAME
Constant containing name of the pre-defined default administrator. |
private static String |
CLASSNAME
|
static String |
DEFAULT_DOMAIN
Constant containing the name of the pre-defined default domain. |
private static AdminDomainRef |
defaultDomainRef
|
static char |
DOMAIN_PATH_ESC_CHAR
Constant containing the Domain path escape character. |
static String |
DOMAIN_PATH_ESC_STR
Constant containing the Domain path escape character in String form. |
static String |
DOMAIN_SEPARATOR
Constant containing the separator for domain path components. |
static char |
DOMAIN_SEPARATOR_CHAR
|
static String |
EVENT_RESOURCE
Contains the name of the file that holds the mapping between the event keys of interest and their localized displayable identifiers. |
static long |
EXTERNALIZATION_VERSION_UID
|
static AdministrativeDomainManager |
manager
Handle to access manager functionality. |
protected static long |
OLD_FORMAT_VERSION_UID
|
private static String |
RESOURCE
|
static String |
ROOT_DOMAIN
Constant containing the name of the pre-defined root domain. |
private static AdminDomainRef |
rootDomainRef
|
(package private) static long |
serialVersionUID
|
static String |
SYSTEM_DOMAIN
Constant containing the name of the pre-defined system domain. |
private static AdminDomainRef |
systemDomainRef
|
static String |
UNAFFILIATED_DOMAIN
Constant containing the path name of the default domain for principals not affiliated with an organization. |
static String |
USER_DOMAIN
Constant containing the name of the pre-defined user domain. |
private static AdminDomainRef |
userDomainRef
|
Constructor Summary | |
AdministrativeDomainHelper()
|
Method Summary | |
static String |
genFullyQualifiedDisplayDomainPath(String containerDisplayPath,
String domainPath)
Returns the Display domain path given a container path in display form and a domain path. |
static String |
genFullyQualifiedDomainPath(String containerExternalPath,
String domainPath)
Returns the External domain path given a container path in external form and a domain path. |
static AdminDomainRef |
getAdminDomainRef(String domain_name)
Deprecated. |
static AdminDomainRef |
getGlobalDomainRef(String domain_name)
Retrieves a reference to one of the four special pre-defined domains (Root, Default, System, and User) in the Exchange container, given its name. |
protected static AdminDomainRef |
getRootDomainRef()
Gets a reference to the root administrative domain. |
static AdminDomainRef |
getRootDomainReference()
This is the public form of the method that returns the reference to the root administrative domain. |
void |
readExternal(ObjectInput input)
Reads the non-transient fields of this class from an external source. |
private boolean |
readOldVersion(ObjectInput input,
long readSerialVersionUID,
boolean passThrough,
boolean superDone)
Reads the non-transient fields of this class from an external source, which is not the current version. |
protected boolean |
readVersion(AdministrativeDomainHelper thisObject,
ObjectInput input,
long readSerialVersionUID,
boolean passThrough,
boolean superDone)
Reads the non-transient fields of this class from an external source. |
protected static void |
setRootDomainRef(AdminDomainRef domain_ref)
Sets a reference to the root administrative domain. |
private static void |
validateDomain(AdministrativeDomain domain)
|
void |
writeExternal(ObjectOutput output)
Writes the non-transient fields of this class to an external source. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private static final String RESOURCE
private static final String CLASSNAME
public static final AdministrativeDomainManager manager
public static final String ROOT_DOMAIN
public static final String DEFAULT_DOMAIN
public static final String SYSTEM_DOMAIN
public static final String USER_DOMAIN
public static final String UNAFFILIATED_DOMAIN
public static final String ADMINISTRATOR_NAME
public static final String ADMIN_GROUP_NAME
public static final String ADMIN_GROUP_SERVICE
public static final String DOMAIN_SEPARATOR
public static final String EVENT_RESOURCE
public static final char DOMAIN_PATH_ESC_CHAR
public static final String DOMAIN_PATH_ESC_STR
static final long serialVersionUID
public static final long EXTERNALIZATION_VERSION_UID
protected static final long OLD_FORMAT_VERSION_UID
public static final char DOMAIN_SEPARATOR_CHAR
private static AdminDomainRef rootDomainRef
private static AdminDomainRef systemDomainRef
private static AdminDomainRef defaultDomainRef
private static AdminDomainRef userDomainRef
Constructor Detail |
public AdministrativeDomainHelper()
Method Detail |
public void writeExternal(ObjectOutput output) throws IOException
writeExternal
in interface Externalizable
output
-
IOException
public void readExternal(ObjectInput input) throws IOException, ClassNotFoundException
readExternal
in interface Externalizable
input
-
IOException
ClassNotFoundException
protected boolean readVersion(AdministrativeDomainHelper thisObject, ObjectInput input, long readSerialVersionUID, boolean passThrough, boolean superDone) throws IOException, ClassNotFoundException
thisObject
- input
- readSerialVersionUID
- passThrough
- superDone
-
IOException
ClassNotFoundException
private boolean readOldVersion(ObjectInput input, long readSerialVersionUID, boolean passThrough, boolean superDone) throws IOException, ClassNotFoundException
input
- readSerialVersionUID
- passThrough
- superDone
-
IOException
ClassNotFoundException
public static AdminDomainRef getAdminDomainRef(String domain_name) throws WTException
domain_name
-
WTException
AdministrativeDomainManager.getDomain(String domain_path)
,
AdministrativeDomainManager.getDomain(String domain_path, WTContainerRef
container_ref)
,
AdminDomainRef.newAdminDomainRef(AdministrativeDomain domain)
public static AdminDomainRef getGlobalDomainRef(String domain_name) throws WTException
Note, when specifying the special pre-defined domains, do not use
String literals. Use the AdministrativeDomainHelper constants ROOT_DOMAIN
,
DEFAULT_DOMAIN
, SYSTEM_DOMAIN
, and USER_DOMAIN
respectively. The special domain names are configurable via properties
files. Using the defined constants ensures that the proper String
literal values are used for the special domain names.
Supported API: false
domain_name
-
WTException
protected static void setRootDomainRef(AdminDomainRef domain_ref)
domain_ref
- protected static AdminDomainRef getRootDomainRef()
public static AdminDomainRef getRootDomainReference()
public static String genFullyQualifiedDisplayDomainPath(String containerDisplayPath, String domainPath)
containerDisplayPath
- The container path in Display FormdomainPath
- The domain path
public static String genFullyQualifiedDomainPath(String containerExternalPath, String domainPath)
containerExternalPath
- The container path in External FormdomainPath
- The domain path
private static void validateDomain(AdministrativeDomain domain) throws WTException
WTException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |