wt.ixb.util
Class ActorHelper

java.lang.Object
  extended bywt.ixb.util.ActorHelper

public class ActorHelper
extends Object


Field Summary
private static IxbDocument actorRegistry
           
static boolean DEBUG
           
private static Hashtable exportActions
           
private static Hashtable importActions
           
static String XML_TAG_ACTOR
           
static String XML_TAG_ACTOR_CLASS_NAME
           
static String XML_TAG_ACTOR_NAME
           
static String XML_TAG_DISPLAY
           
static String XML_TAG_HANDLER_TAG
           
static String XML_TAG_IS_FOR_EXPORT
           
static String XML_TAG_LOCALIZED_MSG_CLASS
           
static String XML_TAG_LOCALIZED_MSG_KEY
           
static String XML_TAG_SET_ACTOR
           
static String XML_TAG_SPECIFICATION
           
 
Constructor Summary
ActorHelper()
           
 
Method Summary
static String getActorClassName(String _actorName, String _handlerTagName, boolean forExport)
           
static String getActorName(String displayName)
           
static Vector getListOfActors(Locale locale)
          --- The following is the genral format of how to specify actions for both import and export --- PickExistingObject wt.ixb.actor.actorResource PICKINGEXISTINGOBJECT_ACTOR_NAME true : optional; default to true, which means this action can be displayed to the client : can have 1 or more occurrences false : optional; if not set, default to false and it is for IMPORT.
static Vector getListOfExportActors(boolean displayableOnly, Locale locale)
          This method is likely to be invoked by client (indirectly) -- one time per client session so the performance can be ignored here
static Vector getListOfImportActors(boolean displayableOnly, Locale locale)
          This method is likely to be invoked by client (indirectly) -- one time per client session so the performance can be ignored here
private static void PP(String s)
           
private static void prepareActorsRegistry()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

actorRegistry

private static IxbDocument actorRegistry

XML_TAG_SET_ACTOR

public static final String XML_TAG_SET_ACTOR
See Also:
Constant Field Values

XML_TAG_ACTOR

public static final String XML_TAG_ACTOR
See Also:
Constant Field Values

XML_TAG_ACTOR_NAME

public static final String XML_TAG_ACTOR_NAME
See Also:
Constant Field Values

XML_TAG_ACTOR_CLASS_NAME

public static final String XML_TAG_ACTOR_CLASS_NAME
See Also:
Constant Field Values

XML_TAG_LOCALIZED_MSG_CLASS

public static final String XML_TAG_LOCALIZED_MSG_CLASS
See Also:
Constant Field Values

XML_TAG_LOCALIZED_MSG_KEY

public static final String XML_TAG_LOCALIZED_MSG_KEY
See Also:
Constant Field Values

XML_TAG_DISPLAY

public static final String XML_TAG_DISPLAY
See Also:
Constant Field Values

XML_TAG_SPECIFICATION

public static final String XML_TAG_SPECIFICATION
See Also:
Constant Field Values

XML_TAG_IS_FOR_EXPORT

public static final String XML_TAG_IS_FOR_EXPORT
See Also:
Constant Field Values

XML_TAG_HANDLER_TAG

public static final String XML_TAG_HANDLER_TAG
See Also:
Constant Field Values

DEBUG

public static boolean DEBUG

exportActions

private static Hashtable exportActions

importActions

private static Hashtable importActions
Constructor Detail

ActorHelper

public ActorHelper()
Method Detail

prepareActorsRegistry

private static void prepareActorsRegistry()
                                   throws WTException
Throws:
WTException

getActorName

public static String getActorName(String displayName)

getActorClassName

public static String getActorClassName(String _actorName,
                                       String _handlerTagName,
                                       boolean forExport)

getListOfImportActors

public static Vector getListOfImportActors(boolean displayableOnly,
                                           Locale locale)
                                    throws WTException
This method is likely to be invoked by client (indirectly) -- one time per client session so the performance can be ignored here

Throws:
WTException

getListOfExportActors

public static Vector getListOfExportActors(boolean displayableOnly,
                                           Locale locale)
                                    throws WTException
This method is likely to be invoked by client (indirectly) -- one time per client session so the performance can be ignored here

Throws:
WTException

getListOfActors

public static Vector getListOfActors(Locale locale)
                              throws WTException
--- The following is the genral format of how to specify actions for both import and export --- PickExistingObject wt.ixb.actor.actorResource PICKINGEXISTINGOBJECT_ACTOR_NAME true : optional; default to true, which means this action can be displayed to the client : can have 1 or more occurrences false : optional; if not set, default to false and it is for IMPORT. The value must be either "true" or "false" WTTypeDefinitions : optional and can have multi-value for this tag wt.ixb.actor.PickingExistingObjectActorForTypeDefinition

Supported API: false

Throws:
WTException

PP

private static void PP(String s)