|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectwt.inf.container.DirectoryHelperSvr
A server-side utility that encapsulates the handling of directory operations
for the wt/inf packages.
Supported API: false
Extendable: false
OrganizationServicesManager
Nested Class Summary | |
private static class |
DirectoryHelperSvr.ExchangeCreationBase
|
private static class |
DirectoryHelperSvr.PrincipalRollbackListener
|
private static class |
DirectoryHelperSvr.UnaffiliatedDomain
|
private static class |
DirectoryHelperSvr.UserDomain
|
Field Summary | |
private static String |
CLASSNAME
|
private static boolean |
DEBUG
|
private static String |
HOSTNAME
|
private static DebugWriter |
LOG
|
private static int |
MAX_INET_DOMAIN_GENERATION_ATTEMPTS
|
private static String |
NOT_INSTANCEOF
|
private static Object |
PRINCIPAL_ROLLBACK_LISTENER_KEY
|
private static String |
RESOURCE
|
private static WTUser |
USER
|
Constructor Summary | |
DirectoryHelperSvr()
|
Method Summary | |
static boolean |
addMember(WTGroup group,
WTPrincipal principal)
Supported API: false |
private static void |
appendInternetDomainComponent(String name,
StringBuffer sb)
|
static WTGroup |
create(WTGroup group,
WTContainer container)
Supported API: false |
static void |
delete(DirectoryInfrastructureNode node,
WTContainer container)
Supported API: false |
static void |
delete(DirectorySubtree subtree,
WTContainer container)
Supported API: false |
static WTGroup |
delete(WTGroup group)
Supported API: false |
static void |
filterByOrganization(WTOrganization org,
DirectoryContextProvider context)
Supported API: false |
static void |
filterOut(Class principal_class,
DirectoryContextProvider context)
Supported API: false |
private static Iterator |
findPrincipalsByUFID(String dn)
|
static String |
generateInternetDomainName(WTOrganization org)
Creates a unique internet domain name for the given WTOrganization . |
protected static String |
getContainerPath(WTPrincipal principal)
Tries to derive a container path from a distinguished name |
static AdminDomainRef |
getDomainForPrincipal(WTPrincipal principal)
Get the appropriate container-based domain for the principal. |
private static String |
getParentDn(String dn)
|
static AdminDomainRef |
getPrincipalDomainRef(WTContainer container)
|
private static AdminDomainRef |
getPrincipalDomainRef(WTContainerRef container_ref)
|
static WTGroup |
getUnrestrictedOrganizationsGroup()
|
protected static boolean |
isDefaultDomainRef(AdminDomainRef ref)
|
static DirectoryInfrastructureNode |
move(DirectoryInfrastructureNode node,
DirectoryContextProvider new_context,
WTContainer container)
Supported API: false |
static WTPrincipal |
move(WTPrincipal principal,
DirectoryContextProvider new_context)
Supported API: false |
private static void |
push(TransactionListener listener)
|
static PrincipalQueryResult |
queryPrincipals(Class principal_class,
String criteria,
int size_limit,
DirectoryContextProvider[] contexts)
Supported API: false |
static boolean |
removeMember(WTGroup group,
WTPrincipal principal)
Supported API: false |
static WTPrincipal |
rename(WTPrincipal principal,
String new_name)
Supported API: false |
static void |
save(DirectoryInfrastructureNode node,
WTContainer container)
Supported API: false |
static void |
save(DirectorySubtree subtree,
WTContainer container)
Supported API: false |
static WTGroup |
save(WTGroup group,
WTContainer container)
Supported API: false |
static WTGroup |
save(WTGroup group,
WTContainer container,
boolean internal)
Deprecated. |
static WTPrincipal |
update(WTPrincipal principal)
Supported API: false |
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
private static final boolean DEBUG
private static final DebugWriter LOG
private static final String NOT_INSTANCEOF
private static final Object PRINCIPAL_ROLLBACK_LISTENER_KEY
private static final WTUser USER
private static final String HOSTNAME
private static final int MAX_INET_DOMAIN_GENERATION_ATTEMPTS
Constructor Detail |
public DirectoryHelperSvr()
Method Detail |
public static boolean addMember(WTGroup group, WTPrincipal principal) throws WTException
group
- principal
-
WTException
public static WTGroup create(WTGroup group, WTContainer container) throws WTException
group
- container
-
WTException
public static WTGroup delete(WTGroup group) throws WTException
group
-
WTException
public static void delete(DirectoryInfrastructureNode node, WTContainer container) throws WTException
node
- container
-
WTException
public static void delete(DirectorySubtree subtree, WTContainer container) throws WTException
subtree
- container
-
WTException
public static void filterByOrganization(WTOrganization org, DirectoryContextProvider context) throws WTException
org
- context
-
WTException
public static void filterOut(Class principal_class, DirectoryContextProvider context) throws WTException
principal_class
- context
-
WTException
public static String generateInternetDomainName(WTOrganization org) throws WTException
WTOrganization
.
The name consists of:
java.rmi.server.hostname
property from wt.properties
'-'
character.
org
-
WTException
public static AdminDomainRef getDomainForPrincipal(WTPrincipal principal) throws WTException
get the user's organization
. If the user has an organization, then
return the organization's domain. If the user does not have an organization,
but does have an organization name, then return the USER domain. Otherwise,
return the UNAFFILIATED domain.
WTContainerServiceSvr.getOrganization(Object)
.
principal
-
WTException
public static WTPrincipal move(WTPrincipal principal, DirectoryContextProvider new_context) throws WTException
principal
- new_context
-
WTException
public static DirectoryInfrastructureNode move(DirectoryInfrastructureNode node, DirectoryContextProvider new_context, WTContainer container) throws WTException
node
- new_context
- container
-
WTException
public static PrincipalQueryResult queryPrincipals(Class principal_class, String criteria, int size_limit, DirectoryContextProvider[] contexts) throws WTException
principal_class
- criteria
- size_limit
- contexts
-
WTException
public static boolean removeMember(WTGroup group, WTPrincipal principal) throws WTException
group
- principal
-
WTException
public static WTPrincipal rename(WTPrincipal principal, String new_name) throws WTException
principal
- new_name
-
WTException
public static WTGroup save(WTGroup group, WTContainer container, boolean internal) throws WTException
group
- container
- internal
-
WTException
public static WTGroup save(WTGroup group, WTContainer container) throws WTException
group
- container
-
WTException
public static void save(DirectoryInfrastructureNode node, WTContainer container) throws WTException
node
- container
-
WTException
public static void save(DirectorySubtree subtree, WTContainer container) throws WTException
subtree
- container
-
WTException
public static WTPrincipal update(WTPrincipal principal) throws WTException
principal
-
WTException
protected static String getContainerPath(WTPrincipal principal) throws WTException
principal
-
WTException
private static final AdminDomainRef getPrincipalDomainRef(WTContainerRef container_ref) throws WTException
WTException
public static final AdminDomainRef getPrincipalDomainRef(WTContainer container) throws WTException
WTException
protected static boolean isDefaultDomainRef(AdminDomainRef ref) throws WTException
WTException
private static Iterator findPrincipalsByUFID(String dn) throws WTException
WTException
public static WTGroup getUnrestrictedOrganizationsGroup() throws WTException
WTException
private static void appendInternetDomainComponent(String name, StringBuffer sb) throws WTException
WTException
private static void push(TransactionListener listener) throws WTException
WTException
private static String getParentDn(String dn)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |