wt.prefs
Class PrefsContainerHelper

java.lang.Object
  extended bywt.prefs.PrefsContainerHelper

public class PrefsContainerHelper
extends Object

This class is a holder for preference framework specific utility methods related to WTContainer. The operations include getting the exchange container reference, getting the preference division for a given container, getting the container given a division, etc.

Supported API: false


Field Summary
private static ReferenceFactory rf
           
private static boolean VERBOSE
           
 
Constructor Summary
PrefsContainerHelper()
           
 
Method Summary
static String getContainerDivision(WTContainerRef aContainer)
          This method will return the division for a given container

Supported API: false
static String getContainerDivision(WTContainerRef aContainer, boolean policy)
          This method will return the division for a given container

Supported API: false
static WTContainer getContainerFromDivision(String division)
          Will return the instance of the container given the division string.
private static WTContainer getContainerFromReference(String container)
          Will return the instance of the container given the reference string.
protected static WTContainerRef getContainerRefFromReference(String ref)
          getExchangeRefStr : returns the reference string of the exchange container for the installation.
static WTContainerRef getExchangeRef()
          Will return the reference of the exchange container.
static String getExchangeRefStr()
          getExchangeRefStr : returns the reference string of the exchange container for the installation.
private static void printStack(Throwable t)
           
private static void printVerbose(String s)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

rf

private static ReferenceFactory rf

VERBOSE

private static boolean VERBOSE
Constructor Detail

PrefsContainerHelper

public PrefsContainerHelper()
Method Detail

printVerbose

private static void printVerbose(String s)

printStack

private static void printStack(Throwable t)

getExchangeRef

public static WTContainerRef getExchangeRef()
Will return the reference of the exchange container.

Supported API: false


getContainerFromDivision

public static WTContainer getContainerFromDivision(String division)
Will return the instance of the container given the division string.

Supported API: false

Parameters:
division - The division for which container instance needs to be extracted.
Returns:
WTContainer Instance of a container, if the division corresponds to a container, else null.

getContainerFromReference

private static WTContainer getContainerFromReference(String container)
Will return the instance of the container given the reference string.

Supported API: false

Parameters:
container - The reference string for which container instance needs to be extracted.
Returns:
WTContainer Instance of container, if the reference string corresponds to a container, else null.

getContainerDivision

public static String getContainerDivision(WTContainerRef aContainer)
This method will return the division for a given container

Supported API: false

Parameters:
aContainer - the container for which division string is created
Returns:
String division

getContainerDivision

public static String getContainerDivision(WTContainerRef aContainer,
                                          boolean policy)
This method will return the division for a given container

Supported API: false

Parameters:
aContainer - the container for which division string is created
policy - whether to create a policy context
Returns:
String division

getExchangeRefStr

public static String getExchangeRefStr()
getExchangeRefStr : returns the reference string of the exchange container for the installation. This is used in the Preference Administrator, when no container is passed as a part of the query.


getContainerRefFromReference

protected static WTContainerRef getContainerRefFromReference(String ref)
getExchangeRefStr : returns the reference string of the exchange container for the installation. This is used in the Preference Administrator, when no container is passed as a part of the query.