wt.inf.container
Class WTContainerServerHelper

java.lang.Object
  extended bywt.inf.container.WTContainerServerHelper

public final class WTContainerServerHelper
extends Object



Supported API: true

Extendable: false


Nested Class Summary
private static class WTContainerServerHelper.DomainDescription
           
 
Field Summary
private static String CLASSNAME
           
private static boolean DEBUG
           
private static String HOSTNAME
           
private static DebugWriter LOG
           
protected static int MAX_DOMAIN_CREATION_ATTEMPTS
           
private static String RESOURCE
           
static WTContainerServiceSvr service
          

Supported API: true
 
Constructor Summary
WTContainerServerHelper()
           
 
Method Summary
static String generateInternetDomainName(WTContainer container)
          Deprecated.  
static WTGroup getAdministratorsReadOnly(WTContainer container)
          Returns a read-only reference to the container's administrators property.
static WTContainer getContainer(WTContained contained, boolean bypass_access_control)
          

Supported API: false
static WTPrincipal getCreatorReadOnly(WTContainer container)
          Returns a read-only reference to the container's creator property.
static Cabinet getDefaultCabinetReadOnly(WTContainer container)
          Returns a read-only reference to the cached copy of a container's default cabinet.
static String getExchangeInternetDomain()
          Returns a cached reference to the internet domain associated with an installation's ExchangeContainer.
protected static String getLogName(WTPrincipal wtp)
           
protected static String getLogName(WTPrincipalReference ref)
           
static String getLogPath(WTContainer container)
          Returns the container's display path, with access control disabled.
static String getLogPath(WTContainerRef container_ref)
          Returns the container's display path, with access control disabled.
static WTOrganization getOrganizationReadOnly(WTContainer container)
          Returns a read-only reference to the container's organization property.
static WTPrincipal getOwnerReadOnly(WTContainer container)
          Returns a read-only reference to the container's owner property.
private static WTPrincipal getPrincipalReadOnly(WTPrincipalReference ref)
           
static Cabinet getSystemCabinetReadOnly(WTContainer container)
          Returns a read-only reference to the cached copy of a container's system cabinet.
static String getValidDomainDescription(String description)
           
protected static boolean isExchangeOrganization(WTOrganization org)
           
protected static void saveAccessControlRule(AdminDomainRef domain_ref, String type_id, String state_key, WTPrincipalReference principal_ref, boolean grant, Vector permissions)
           
protected static String toString(Object o)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

RESOURCE

private static final String RESOURCE
See Also:
Constant Field Values

CLASSNAME

private static final String CLASSNAME

service

public static final WTContainerServiceSvr service


Supported API: true


DEBUG

private static final boolean DEBUG

LOG

private static final DebugWriter LOG

MAX_DOMAIN_CREATION_ATTEMPTS

protected static final int MAX_DOMAIN_CREATION_ATTEMPTS

HOSTNAME

private static final String HOSTNAME
Constructor Detail

WTContainerServerHelper

public WTContainerServerHelper()
Method Detail

generateInternetDomainName

public static String generateInternetDomainName(WTContainer container)
                                         throws WTException
Deprecated.  



Supported API: false

Parameters:
container -
Returns:
String
Throws:
WTException

getAdministratorsReadOnly

public static WTGroup getAdministratorsReadOnly(WTContainer container)
                                         throws WTException
Returns a read-only reference to the container's administrators property. This will perform signifcantly better than WTContainer.getAdministrators() and thus should be used whenever the group does not need to be modified.

Supported API: false

Parameters:
container -
Returns:
WTGroup
Throws:
WTException

getContainer

public static WTContainer getContainer(WTContained contained,
                                       boolean bypass_access_control)
                                throws WTException


Supported API: false

Parameters:
contained -
bypass_access_control -
Returns:
WTContainer
Throws:
WTException

getCreatorReadOnly

public static WTPrincipal getCreatorReadOnly(WTContainer container)
                                      throws WTException
Returns a read-only reference to the container's creator property. This will perform signifcantly better than WTContainer.getCreator() and thus should be used whenever the principal does not need to be modified.

Supported API: false

Parameters:
container -
Returns:
WTPrincipal
Throws:
WTException

getDefaultCabinetReadOnly

public static Cabinet getDefaultCabinetReadOnly(WTContainer container)
                                         throws WTException
Returns a read-only reference to the cached copy of a container's default cabinet. Callers should never modify the returned cabinet, as this will corrupt the cache.

Supported API: false

Parameters:
container -
Returns:
Cabinet
Throws:
WTException

getExchangeInternetDomain

public static String getExchangeInternetDomain()
                                        throws WTException
Returns a cached reference to the internet domain associated with an installation's ExchangeContainer.

Supported API: false

Returns:
String
Throws:
WTException
See Also:
WTContainer.getInternetDomain()

getLogPath

public static String getLogPath(WTContainerRef container_ref)
Returns the container's display path, with access control disabled.

Supported API: false

Parameters:
container_ref -
Returns:
String
See Also:
WTContainer#getDisplayPath(WTContainerRef)

getLogPath

public static String getLogPath(WTContainer container)
Returns the container's display path, with access control disabled.

Supported API: false

Parameters:
container -
Returns:
String
See Also:
WTContainer#getDisplayPath(WTContainerRef)

getOrganizationReadOnly

public static WTOrganization getOrganizationReadOnly(WTContainer container)
                                              throws WTException
Returns a read-only reference to the container's organization property. This will perform signifcantly better than WTContainer.getOrganization() and thus should be used whenever the principal does not need to be modified.

Supported API: false

Parameters:
container -
Returns:
WTOrganization
Throws:
WTException

getOwnerReadOnly

public static WTPrincipal getOwnerReadOnly(WTContainer container)
                                    throws WTException
Returns a read-only reference to the container's owner property. This will perform signifcantly better than WTContainer.getOwner() and thus should be used whenever the principal does not need to be modified.

Supported API: false

Parameters:
container -
Returns:
WTPrincipal
Throws:
WTException

getSystemCabinetReadOnly

public static Cabinet getSystemCabinetReadOnly(WTContainer container)
                                        throws WTException
Returns a read-only reference to the cached copy of a container's system cabinet. Callers should never modify the returned cabinet, as this will corrupt the cache.

Supported API: false

Parameters:
container -
Returns:
Cabinet
Throws:
WTException

getLogName

protected static String getLogName(WTPrincipalReference ref)

getLogName

protected static String getLogName(WTPrincipal wtp)

toString

protected static String toString(Object o)

isExchangeOrganization

protected static boolean isExchangeOrganization(WTOrganization org)
                                         throws WTException
Throws:
WTException

getValidDomainDescription

public static String getValidDomainDescription(String description)
                                        throws WTException
Throws:
WTException

getPrincipalReadOnly

private static WTPrincipal getPrincipalReadOnly(WTPrincipalReference ref)
                                         throws WTException
Throws:
WTException

saveAccessControlRule

protected static void saveAccessControlRule(AdminDomainRef domain_ref,
                                            String type_id,
                                            String state_key,
                                            WTPrincipalReference principal_ref,
                                            boolean grant,
                                            Vector permissions)
                                     throws WTException
Throws:
WTException