wt.inf.container
Class WTContainerHelper

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

public final class WTContainerHelper
extends Object



Supported API: true

Extendable: false


Nested Class Summary
private static class WTContainerHelper.Classic
           
protected static class WTContainerHelper.ContainerConfig
           
protected static class WTContainerHelper.ContainerInfo
           
private static class WTContainerHelper.Exchange
           
 
Field Summary
static String ALL_PARTICIPATING_MEMBERS_NAME
           
private static String BASE_DOMAIN_MAPPING
           
private static String CLASSNAME
           
static String CONTAINER_ID
          Deprecated. Replaced by WTContained#CONTAINER_ID
protected static WTContainerHelper.ContainerConfig containerConfig
           
static String CREATORS_NODE_NAME
           
private static boolean DEBUG
           
private static String DEFAULT_ADMINISTRATORS_NAME
           
static String DEFAULT_CABINET_NAME
           
private static String DEFAULT_CREATORS_NAME
           
protected static Class[] EMPTY_CLASS_ARRAY
           
protected static String[] EMPTY_STRING_ARRAY
           
private static DebugWriter LOG
           
static String ORG_ADMIN_MANAGED_GROUPS
          Deprecated. Replaced by #PUBLIC_NODE_NAME The place under the organization in LDAP where the managed groups are stored
static String PRIVATE_DOMAIN_NAME
           
private static String PROPERTY_FILE
           
static String PUBLIC_NODE_NAME
           
private static String PUBLIC_PARENT_DISPLAY_SEPARATOR
           
private static int PUBLIC_PARENT_DISPLAY_SEPARATOR_LENGTH
           
private static String RESOURCE
           
private static String ROLE_RESOURCE
           
static WTContainerService service
          

Supported API: true
static String SYSTEM_CABINET_NAME
           
static String UNRESTRICTED_ORG_GROUP_NAME
           
protected static String WTORG_ID
           
protected static int[] ZERO
           
 
Constructor Summary
WTContainerHelper()
           
 
Method Summary
static Role getAdminRole(Class container_class)
          Finds the Role to use to provide a localized display name for a container's administrators group.
static ContainerIterator getAncestors(WTContainerRef container_ref)
          

Supported API: false
static WTContainerRef getClassicRef()
          Return a locally cached, uninflated reference to the classic container.
static WTContainer getContainer(WTContained contained)
          

Supported API: true
static ContainerPath getContainerPath(WTContainerRef container_ref)
          Deprecated. Replaced by #getPath and #getDisplayPath.
protected static WTContainerRef getContainerRef(Object[] arr)
           
static WTContainerRef getContainerRef(WTContained contained)
          

Supported API: false
static Role getCreatorsRole(Class container_class)
          Finds the Role to use to provide a localized display name for a container's administrators group.
static boolean getDefaultAutoPopulateCreators(Class container_class)
          Returns the default autoPopulate setting for the given container class.
static Class[] getDefaultCreatorsClasses(OrgContainer container)
          Returns the list of classes for which creators groups are created by default, for the given OrgContainer

Supported API: false
protected static CreatorsMap getDefaultCreatorsMap(OrgContainer org)
           
static Map getDefaultPublicDomainMapping(Class parent_container_class)
          Given a parent container class, returns a mapping of all possible child container classes to their default base public domain names.
static String getDisplayPath(WTContainerRef container_ref)
          Returns a path consisting of the display identities of the given container and its parent containers.
static String getDisplayPath(WTContainerRef container_ref, Locale locale)
          Returns a path consisting of the display identities of the given container and its parent containers.
static WTContainerRef getExchangeRef()
          Return a locally cached, uninflated reference to the exchange container.
static String getLocalizedContainerName(WTContained contained, Locale locale)
          Returns a localized String representing the container name or a message denoting that the user does not have access to contained's WTContainer name.
protected static ObjectReference getObjectReference(Object[] arr)
           
static String getPath(WTContainerRef container_ref)
          Returns a container path that is compatabile with WTContainerService's getByPath API.
protected static String getPublicParentDisplay(String full_path, String base_path, Locale locale)
           
static String getPublicParentDisplay(WTContainer container)
          Return a display "type" for the container's public parent domain.
static String getPublicParentDisplay(WTContainer container, Locale locale)
          Return a display "type" for the container's public parent domain.
static StatementSpec getStatementForContainersIn(ContainerSpec spec)
          Returns a statement that can be used to build non-standard container queries.
static StatementSpec getStatementForSearchClasses(ContainerSpec spec, Class[] search_classes)
          Creates a StatementSpec that will find instances of the specified search classes that are either contained by or shared into a WTContainer specified by the supplied ContainerSpec

Supported API: false
static WhereExpression getWhereContainerIn(ContainerSpec spec, Class search_class)
          Deprecated. Replaced by getWhereContainerIn(ContainerSpec,Class[])
static WhereExpression getWhereContainerIn(ContainerSpec spec, Class[] search_classes)
          Utility api to append container-based where conditions to queries.
static WhereExpression getWhereContainerIn(ContainerSpec spec, Class[] search_classes, boolean negate)
          

Supported API: false
static WhereExpression getWhereContainerIn(ContainerSpec spec, ClassAttribute container_attribute)
          

Supported API: false
static WhereExpression getWhereContainerIn(WTContainerRef[] container_refs)
          

Supported API: false
static WhereExpression getWhereContainerIs(WTContainer container)
          

Supported API: false
static WhereExpression getWhereContainerIs(WTContainerRef container_ref)
          

Supported API: false
static boolean isChildOf(WTContainerRef parent_ref, WTContainerRef child_ref)
          Deprecated. Replaced by WTContainerService#isDescendedFrom(WTContainerRef,WTContainerRef)
static boolean isClassicContainer(WTContainer container)
          Determines whether or not the given container is the installation's "classic" container.
private static boolean isClassicOid(ObjectIdentifier oid)
           
static boolean isClassicRef(WTContainerRef container_ref)
          Determines whether or not the given reference refers to the installation's "classic" container.
static boolean isContainedBy(WTContained contained, WTContainerRef container_ref)
          Determine if the WTContained object is immediately contained by the given WTContainer

Supported API: false
static boolean isExchangeContainer(WTContainer container)
          Determines whether or not the given container is the installation's exchange container.
private static boolean isExchangeOid(ObjectIdentifier oid)
           
static boolean isExchangeRef(WTContainerRef container_ref)
          Determines whether or not the given reference refers to the installation's exchange container.
private static boolean isInstalled(Class container_class)
           
protected static boolean isSpecialContainer(WTContainer container)
           
static void log(String property, AdminDomainRef ref, StringBuffer sb)
           
static void log(String property, boolean value, StringBuffer sb)
           
static void log(String property, Collection values, StringBuffer sb)
           
static void log(String property, ObjectReference ref, StringBuffer sb)
           
static void log(String property, Object value, StringBuffer sb)
           
static void log(String property, WTContainerRef ref, StringBuffer sb)
           
static void log(String property, WTPrincipalReference ref, StringBuffer sb)
           
static void logContainerRefs(String property, Collection refs, StringBuffer sb)
           
static boolean sameContainer(WTContained contained1, WTContained contained2)
          

Supported API: false
static void setBusinessNamespace(WTContainer container, boolean business_namespace)
          Assigns the businessNamespace property to an unpersisted container.
protected static void setClassicOid(ObjectIdentifier oid)
           
static void setContainer(WTContained contained, WTContainerRef container_ref)
          Assigns a container reference to an unpersisted contained object.
static void setPrivateAccess(WTContainer container, boolean private_access)
          Assigns the privateAccess property to an unpersisted container.
static void setPublicParentDomain(WTContainer container, AdminDomainRef public_parent)
          Assigns the parentPublicDomain property to an unpersisted container.
static void setRestrictedDirectorySearchScope(OrgContainer container, boolean restrict)
          Assigns the restrictedDirectorySearchScope property to an unpersisted OrgContainer.
 
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 WTContainerService service


Supported API: true


DEBUG

private static final boolean DEBUG

LOG

private static final DebugWriter LOG

PROPERTY_FILE

private static final String PROPERTY_FILE

ROLE_RESOURCE

private static final String ROLE_RESOURCE

DEFAULT_ADMINISTRATORS_NAME

private static final String DEFAULT_ADMINISTRATORS_NAME

DEFAULT_CREATORS_NAME

private static final String DEFAULT_CREATORS_NAME

PUBLIC_NODE_NAME

public static final String PUBLIC_NODE_NAME

ORG_ADMIN_MANAGED_GROUPS

public static final String ORG_ADMIN_MANAGED_GROUPS
Deprecated. Replaced by #PUBLIC_NODE_NAME The place under the organization in LDAP where the managed groups are stored


PRIVATE_DOMAIN_NAME

public static final String PRIVATE_DOMAIN_NAME

DEFAULT_CABINET_NAME

public static final String DEFAULT_CABINET_NAME

SYSTEM_CABINET_NAME

public static final String SYSTEM_CABINET_NAME

UNRESTRICTED_ORG_GROUP_NAME

public static final String UNRESTRICTED_ORG_GROUP_NAME

ALL_PARTICIPATING_MEMBERS_NAME

public static final String ALL_PARTICIPATING_MEMBERS_NAME

CREATORS_NODE_NAME

public static final String CREATORS_NODE_NAME

PUBLIC_PARENT_DISPLAY_SEPARATOR

private static final String PUBLIC_PARENT_DISPLAY_SEPARATOR

PUBLIC_PARENT_DISPLAY_SEPARATOR_LENGTH

private static final int PUBLIC_PARENT_DISPLAY_SEPARATOR_LENGTH

containerConfig

protected static final WTContainerHelper.ContainerConfig containerConfig

EMPTY_CLASS_ARRAY

protected static final Class[] EMPTY_CLASS_ARRAY

EMPTY_STRING_ARRAY

protected static final String[] EMPTY_STRING_ARRAY

BASE_DOMAIN_MAPPING

private static final String BASE_DOMAIN_MAPPING
See Also:
Constant Field Values

ZERO

protected static final int[] ZERO

WTORG_ID

protected static final String WTORG_ID

CONTAINER_ID

public static final String CONTAINER_ID
Deprecated. Replaced by WTContained#CONTAINER_ID

Constructor Detail

WTContainerHelper

public WTContainerHelper()
Method Detail

getAdminRole

public static Role getAdminRole(Class container_class)
                         throws WTException
Finds the Role to use to provide a localized display name for a container's administrators group.

Supported API: false

Parameters:
container_class -
Returns:
Role
Throws:
WTException

getAncestors

public static ContainerIterator getAncestors(WTContainerRef container_ref)
                                      throws WTException


Supported API: false

Parameters:
container_ref -
Returns:
An iterator over the container's parents, starting with the container itself and working up to exchange.
Throws:
WTException

getClassicRef

public static WTContainerRef getClassicRef()
                                    throws WTException
Return a locally cached, uninflated reference to the classic container.

Returns:
WTContainerRef
Throws:
WTException

getContainer

public static WTContainer getContainer(WTContained contained)
                                throws WTException


Supported API: true

Parameters:
contained -
Returns:
the WTContained object's container.
Throws:
WTException

getContainerPath

public static ContainerPath getContainerPath(WTContainerRef container_ref)
                                      throws WTException
Deprecated. Replaced by #getPath and #getDisplayPath.



Supported API: false

Parameters:
container_ref -
Returns:
ContainerPath
Throws:
WTException

getContainerRef

public static WTContainerRef getContainerRef(WTContained contained)
                                      throws WTException


Supported API: false

Parameters:
contained -
Returns:
A reference to the WTContained object's container.
Throws:
WTException

getCreatorsRole

public static Role getCreatorsRole(Class container_class)
                            throws WTException
Finds the Role to use to provide a localized display name for a container's administrators group.

Supported API: false

Parameters:
container_class -
Returns:
Role
Throws:
WTException

getDefaultAutoPopulateCreators

public static boolean getDefaultAutoPopulateCreators(Class container_class)
                                              throws WTException
Returns the default autoPopulate setting for the given container class.

Supported API: false

Parameters:
container_class -
Returns:
boolean
Throws:
WTException

getDefaultCreatorsClasses

public static Class[] getDefaultCreatorsClasses(OrgContainer container)
                                         throws WTException
Returns the list of classes for which creators groups are created by default, for the given OrgContainer

Supported API: false

Parameters:
container -
Returns:
Class[]
Throws:
WTException

getDefaultPublicDomainMapping

public static Map getDefaultPublicDomainMapping(Class parent_container_class)
                                         throws WTException
Given a parent container class, returns a mapping of all possible child container classes to their default base public domain names.

Supported API: false

Parameters:
parent_container_class -
Returns:
Map
Throws:
WTException

getDisplayPath

public static String getDisplayPath(WTContainerRef container_ref)
                             throws WTException
Returns a path consisting of the display identities of the given container and its parent containers.

If the user does not have access to a parent container, then "Secured Information" is displayed instead of the remainder of the path.

Supported API: false

Parameters:
container_ref -
Returns:
String
Throws:
WTException
See Also:
getPath(wt.inf.container.WTContainerRef)

getDisplayPath

public static String getDisplayPath(WTContainerRef container_ref,
                                    Locale locale)
                             throws WTException
Returns a path consisting of the display identities of the given container and its parent containers.

If the user does not have access to a parent container, then "Secured Information" is displayed instead of the remainder of the path.

Supported API: false

Parameters:
container_ref -
locale -
Returns:
String
Throws:
WTException
See Also:
getPath(wt.inf.container.WTContainerRef)

getExchangeRef

public static WTContainerRef getExchangeRef()
                                     throws WTException
Return a locally cached, uninflated reference to the exchange container.

Supported API: false

Returns:
WTContainerRef
Throws:
WTException

getPath

public static String getPath(WTContainerRef container_ref)
                      throws WTException
Returns a container path that is compatabile with WTContainerService's getByPath API.

Supported API: false

Parameters:
container_ref -
Returns:
String
Throws:
WTException
See Also:
getDisplayPath(wt.inf.container.WTContainerRef), WTContainerService.getByPath(java.lang.String)

getPublicParentDisplay

public static String getPublicParentDisplay(WTContainer container)
                                     throws WTException
Return a display "type" for the container's public parent domain.

Supported API: false

Parameters:
container -
Returns:
String
Throws:
WTException

getPublicParentDisplay

public static String getPublicParentDisplay(WTContainer container,
                                            Locale locale)
                                     throws WTException
Return a display "type" for the container's public parent domain.

Supported API: false

Parameters:
container -
locale -
Returns:
String
Throws:
WTException

getStatementForContainersIn

public static StatementSpec getStatementForContainersIn(ContainerSpec spec)
                                                 throws WTException
Returns a statement that can be used to build non-standard container queries. For example:
       // Find PDMLink products that the current user
       // is a member of that have a name like the
       // given name
       QuerySpec qs = new QuerySpec(PDMLinkProduct.class);
       qs.appendWhere(new SearchCondition(PDMLinkProduct.class, PDMLinkProduct.NAME,
 SearchCondition.LIKE, "MyName"), new int[]{0});

       // Now build a container spec that we can use to filter the
       // query by membership
       ContainerSpec cs = new ContainerSpec(PDMLinkProduct.class);
       cs.setMembershipState(ContainerSpec.MEMBERS_ONLY);

       // Since we are going to use the container spec to build a
       // a sub select, only select oids
       cs.setSelectState(ContainerSpec.SELECT_OIDS);

       // Add the container statement to the query using s sub select
       StatementSpec ss = WTContainerHelper.getStatementForContainersIn(cs);
       qs.appendAnd();
       qs.appendWhere(new SearchCondition(new ClassAttribute(PDMLinkProduct.class,
 WTAttributeNameIfc.ID_NAME),
          SearchCondition.IN, new SubSelectExpression(ss)), new int[]{0});

       return PersistenceHelper.manager.find(qs);
 


Supported API: false

Parameters:
spec -
Returns:
A StatementSpec that will find the WTContainers specified by the supplied ContainerSpec
Throws:
WTException
See Also:
ContainerSpec

getStatementForSearchClasses

public static StatementSpec getStatementForSearchClasses(ContainerSpec spec,
                                                         Class[] search_classes)
                                                  throws WTException
Creates a StatementSpec that will find instances of the specified search classes that are either contained by or shared into a WTContainer specified by the supplied ContainerSpec

Supported API: false

Parameters:
spec -
search_classes -
Returns:
StatementSpec
Throws:
WTException
See Also:
ContainerSpec

getWhereContainerIn

public static WhereExpression getWhereContainerIn(ContainerSpec spec,
                                                  Class search_class)
                                           throws WTException
Deprecated. Replaced by getWhereContainerIn(ContainerSpec,Class[])



Supported API: false

Parameters:
spec -
search_class -
Returns:
WhereExpression
Throws:
WTException

getWhereContainerIn

public static WhereExpression getWhereContainerIn(ContainerSpec spec,
                                                  Class[] search_classes)
                                           throws WTException
Utility api to append container-based where conditions to queries. For example:
       // Find all WTPartMasters with the given name that
       // are selected by a container spec
       ContainerSpec cs = new ContainerSpec();
       // configure the container spec (these are just examples)
       cs.setMembershipState(ContainerSpec.CONFIRMED_ONLY);
       cs.setDeleteState(ContainerSpec.DELETED_ONLY);

       QuerySpec qs = new QuerySpec(WTPartMaster.class);
       qs.appendWhere(new SearchCondition(WTPartMaster.class, WTPartMaster.NAME,
 SearchCondition.LIKE, "MyName"), new int[]{0});
       qs.appendAnd();
       // Only find part masters that are in containers selected by
 the spec
       qs.appendWhere(WTContainerHelper.getWhereContainerIn(cs,new
 Class[]{PDMLinkProduct.class}),new int[]{0});

       return PersistenceHelper.manager.find(qs);
 


Supported API: false

Parameters:
spec -
search_classes -
Returns:
A WhereExpression that will filter a query for the object types specified in search_classes by the containers specified in the supplied ContainerSpec
Throws:
WTException
See Also:
ContainerSpec

getWhereContainerIn

public static WhereExpression getWhereContainerIn(ContainerSpec spec,
                                                  Class[] search_classes,
                                                  boolean negate)
                                           throws WTException


Supported API: false

Parameters:
spec -
search_classes -
negate -
Returns:
A WhereExpression that will filter a query for the object types specified in search_classes by the containers specified in the supplied ContainerSpec
Throws:
WTException
See Also:
ContainerSpec

getWhereContainerIn

public static WhereExpression getWhereContainerIn(ContainerSpec spec,
                                                  ClassAttribute container_attribute)
                                           throws WTException


Supported API: false

Parameters:
spec -
container_attribute -
Returns:
A WhereExpression that will filter the given ClassAttribute by the WTContainers specified in the supplied ContainerSpec. The ClassAttribute should represent a container oid.
Throws:
WTException
See Also:
ContainerSpec

getWhereContainerIn

public static WhereExpression getWhereContainerIn(WTContainerRef[] container_refs)
                                           throws WTException


Supported API: false

Parameters:
container_refs -
Returns:
A WhereExpression that wil filter a query for WTContained objects to only look in the supplied WTContainers.
Throws:
WTException

getWhereContainerIs

public static WhereExpression getWhereContainerIs(WTContainer container)
                                           throws WTException


Supported API: false

Parameters:
container -
Returns:
A WhereExpression that wil filter a query for WTContained objects to only look in the supplied WTContainer.
Throws:
WTException

getWhereContainerIs

public static WhereExpression getWhereContainerIs(WTContainerRef container_ref)
                                           throws WTException


Supported API: false

Parameters:
container_ref -
Returns:
A WhereExpression that wil filter a query for WTContained objects to only look in the supplied WTContainers.
Throws:
WTException

isChildOf

public static boolean isChildOf(WTContainerRef parent_ref,
                                WTContainerRef child_ref)
                         throws WTException
Deprecated. Replaced by WTContainerService#isDescendedFrom(WTContainerRef,WTContainerRef)



Supported API: false

Parameters:
parent_ref -
child_ref -
Returns:
boolean
Throws:
WTException

isClassicContainer

public static boolean isClassicContainer(WTContainer container)
Determines whether or not the given container is the installation's "classic" container.

Supported API: false

Parameters:
container -
Returns:
boolean

isClassicRef

public static boolean isClassicRef(WTContainerRef container_ref)
Determines whether or not the given reference refers to the installation's "classic" container.

Supported API: false

Parameters:
container_ref -
Returns:
boolean

isContainedBy

public static boolean isContainedBy(WTContained contained,
                                    WTContainerRef container_ref)
Determine if the WTContained object is immediately contained by the given WTContainer

Supported API: false

Parameters:
contained -
container_ref -
Returns:
boolean

isExchangeContainer

public static boolean isExchangeContainer(WTContainer container)
Determines whether or not the given container is the installation's exchange container.

Supported API: false

Parameters:
container -
Returns:
boolean

isExchangeRef

public static boolean isExchangeRef(WTContainerRef container_ref)
Determines whether or not the given reference refers to the installation's exchange container.

Supported API: false

Parameters:
container_ref -
Returns:
boolean

sameContainer

public static boolean sameContainer(WTContained contained1,
                                    WTContained contained2)
                             throws WTException


Supported API: false

Parameters:
contained1 -
contained2 -
Returns:
true if the objects refer to the same container
Throws:
WTException

setBusinessNamespace

public static void setBusinessNamespace(WTContainer container,
                                        boolean business_namespace)
                                 throws WTPropertyVetoException
Assigns the businessNamespace property to an unpersisted container. This property cannot be changed on a persistent container.

Parameters:
container -
business_namespace -
Throws:
WTPropertyVetoException

setContainer

public static void setContainer(WTContained contained,
                                WTContainerRef container_ref)
                         throws WTPropertyVetoException
Assigns a container reference to an unpersisted contained object.

Parameters:
contained -
container_ref -
Throws:
WTPropertyVetoException

setPrivateAccess

public static void setPrivateAccess(WTContainer container,
                                    boolean private_access)
                             throws WTPropertyVetoException
Assigns the privateAccess property to an unpersisted container. To change this property on a persistent container, use WTContainerService.makePrivate and WTContainerService.makePublic.

Supported API: true

Parameters:
container -
private_access -
Throws:
WTPropertyVetoException
See Also:
WTContainerService.makePrivate(wt.inf.container.WTContainer), WTContainerService.makePublic(wt.inf.container.WTContainer)

setPublicParentDomain

public static void setPublicParentDomain(WTContainer container,
                                         AdminDomainRef public_parent)
                                  throws WTPropertyVetoException
Assigns the parentPublicDomain property to an unpersisted container. To change this property on a persistent container, use WTContainerService.changePublicParentDomain

Supported API: true

Parameters:
container -
public_parent -
Throws:
WTPropertyVetoException
See Also:
WTContainerService.changePublicParentDomain(wt.inf.container.WTContainer, wt.admin.AdminDomainRef)

setRestrictedDirectorySearchScope

public static void setRestrictedDirectorySearchScope(OrgContainer container,
                                                     boolean restrict)
                                              throws WTPropertyVetoException
Assigns the restrictedDirectorySearchScope property to an unpersisted OrgContainer.

The OrgContainerCreator will add the WTOrganization associated with the container to the site-level All Unrestricted Organizations group if the value of this property is false. By default, members of the All Unrestricted Organizations group are granted read access to all principals in the User domain or any of its child domains.

Use WTContainerServicer#changeRestrictedDirectorySearchScope(OrgContainer,boolean) to assign this value to a persistent container.

Supported API: false

Parameters:
container -
restrict -
Throws:
WTPropertyVetoException
See Also:
OrgContainer.restrictedDirectorySearchScope

getObjectReference

protected static final ObjectReference getObjectReference(Object[] arr)
                                                   throws WTException
Throws:
WTException

getContainerRef

protected static final WTContainerRef getContainerRef(Object[] arr)
                                               throws WTException
Throws:
WTException

getPublicParentDisplay

protected static final String getPublicParentDisplay(String full_path,
                                                     String base_path,
                                                     Locale locale)

getDefaultCreatorsMap

protected static final CreatorsMap getDefaultCreatorsMap(OrgContainer org)
                                                  throws WTException
Throws:
WTException

isClassicOid

private static final boolean isClassicOid(ObjectIdentifier oid)

isExchangeOid

private static final boolean isExchangeOid(ObjectIdentifier oid)

isSpecialContainer

protected static boolean isSpecialContainer(WTContainer container)
                                     throws WTException
Throws:
WTException

isInstalled

private static boolean isInstalled(Class container_class)

setClassicOid

protected static void setClassicOid(ObjectIdentifier oid)
                             throws WTPropertyVetoException
Throws:
WTPropertyVetoException

log

public static void log(String property,
                       ObjectReference ref,
                       StringBuffer sb)

log

public static void log(String property,
                       AdminDomainRef ref,
                       StringBuffer sb)

log

public static void log(String property,
                       WTContainerRef ref,
                       StringBuffer sb)

log

public static void log(String property,
                       WTPrincipalReference ref,
                       StringBuffer sb)

log

public static void log(String property,
                       boolean value,
                       StringBuffer sb)

log

public static void log(String property,
                       Object value,
                       StringBuffer sb)

logContainerRefs

public static void logContainerRefs(String property,
                                    Collection refs,
                                    StringBuffer sb)

log

public static void log(String property,
                       Collection values,
                       StringBuffer sb)

getLocalizedContainerName

public static String getLocalizedContainerName(WTContained contained,
                                               Locale locale)
Returns a localized String representing the container name or a message denoting that the user does not have access to contained's WTContainer name.

Supported API: false

Parameters:
contained -
locale -
Returns:
String
Throws:
WTException