wt.rule.util
Class InitRuleHelper

java.lang.Object
  extended bywt.rule.util.InitRuleHelper

public class InitRuleHelper
extends Object

This class provides utilities that are useful when working with INIT rules.


Field Summary
static String MANUAL_NUMBER_MODE
          Deprecated.  
static String NUMBER_LOGICAL_ID
          Deprecated.  
private static String RESOURCE
          Deprecated.  
static String XML_FOLDER
          Deprecated.  
static String XML_LIFECYCLE
          Deprecated.  
static String XML_TEAM_TEMPLATE
          Deprecated.  
 
Constructor Summary
InitRuleHelper()
          Deprecated.  
 
Method Summary
static boolean isAutoNumber(Object obj)
          Deprecated. use wt.enterprise.EnterpriseHelper.isAutoNumber instead
static boolean isAutoNumber(Object obj, WTContainerRef container)
          Deprecated. use wt.enterprise.EnterpriseHelper.isAutoNumber instead
static FolderEntry setFolder(FolderEntry f, Map data, WTContainerRef container)
          Deprecated.  
static LifeCycleManaged setLifeCycle(LifeCycleManaged lcm, Map data, WTContainerRef container)
          Deprecated.  
static TeamManaged setTeamTemplate(TeamManaged tm, Map data, WTContainerRef container)
          Deprecated.  
 
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
Deprecated. 
See Also:
Constant Field Values

NUMBER_LOGICAL_ID

public static final String NUMBER_LOGICAL_ID
Deprecated. 
See Also:
Constant Field Values

MANUAL_NUMBER_MODE

public static final String MANUAL_NUMBER_MODE
Deprecated. 
See Also:
Constant Field Values

XML_LIFECYCLE

public static final String XML_LIFECYCLE
Deprecated. 
See Also:
Constant Field Values

XML_FOLDER

public static final String XML_FOLDER
Deprecated. 
See Also:
Constant Field Values

XML_TEAM_TEMPLATE

public static final String XML_TEAM_TEMPLATE
Deprecated. 
See Also:
Constant Field Values
Constructor Detail

InitRuleHelper

public InitRuleHelper()
Deprecated. 
Method Detail

isAutoNumber

public static boolean isAutoNumber(Object obj)
                            throws WTException
Deprecated. use wt.enterprise.EnterpriseHelper.isAutoNumber instead

Return whether or not the rules that are in the system specify that the specified obj should be auto-numbered. If obj is a type then this method returns whether or not the rules that are in the system specify that instances of the specified objType should be auto-numbered.

The Classic is used as the container for the searching for rules.

Parameters:
obj - determine whether auto-numbering should be used for this obj
Throws:
WTException

isAutoNumber

public static boolean isAutoNumber(Object obj,
                                   WTContainerRef container)
                            throws WTException
Deprecated. use wt.enterprise.EnterpriseHelper.isAutoNumber instead

Return whether or not the rules that are in the system specify that the specified obj should be auto-numbered. If obj is a type then this method returns whether or not the rules that are in the system specify that instances of the specified objType should be auto-numbered.

Parameters:
obj - determine whether auto-numbering should be used for this obj
container - the container whose rules should be queried
Throws:
WTException

setFolder

public static FolderEntry setFolder(FolderEntry f,
                                    Map data,
                                    WTContainerRef container)
                             throws WTException
Deprecated.  

Assign a location to the specified FolderEntry object based on the provided rule specification (data). If the rule specification does not provide a value for the folder then do nothing to the object. The FolderEntry object must not be persistent.

NOTE: This method should be moved to a class in the wt.folder package.

Throws:
WTException
See Also:
FolderHelper.assignLocation(wt.folder.FolderEntry, wt.folder.Folder), FolderService.getFolder(wt.folder.FolderEntry)

setLifeCycle

public static LifeCycleManaged setLifeCycle(LifeCycleManaged lcm,
                                            Map data,
                                            WTContainerRef container)
                                     throws WTException,
                                            WTPropertyVetoException
Deprecated.  

Set the lifecycle of the specified LifeCycleManaged object based on the provided rule specification (data). If the rule specification does not provide a value for the lifecycle then do nothing to the object. The LifeCycleManaged object must not be persistent.

NOTE: This method should be moved to a class in the wt.lifecycle package.

Throws:
RuleException - if the specified lifecycle cannot be found
WTException
WTPropertyVetoException
See Also:
LifeCycleHelper.setLifeCycle(wt.lifecycle.LifeCycleManaged, wt.lifecycle.LifeCycleTemplate), LifeCycleService.getLifeCycleTemplate(wt.lifecycle.LifeCycleManaged)

setTeamTemplate

public static TeamManaged setTeamTemplate(TeamManaged tm,
                                          Map data,
                                          WTContainerRef container)
                                   throws WTException,
                                          WTPropertyVetoException
Deprecated.  

Set the team template of the specified TeamManaged object based on the provided rule specification (data). If the rule specification does not provide a value for the team template then do nothing to the object. The TeamManaged object must not be persistent.

NOTE: This method should be moved to a class in the wt.team package.

Throws:
WTException
WTPropertyVetoException
See Also:
TeamHelper.setTeamTemplate(wt.team.TeamManaged, wt.team.TeamTemplate), TeamService.getTeamTemplate(wt.team.TeamManaged)