|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectwt.rule.util.InitRuleHelper
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 |
private static final String RESOURCE
public static final String NUMBER_LOGICAL_ID
public static final String MANUAL_NUMBER_MODE
public static final String XML_LIFECYCLE
public static final String XML_FOLDER
public static final String XML_TEAM_TEMPLATE
Constructor Detail |
public InitRuleHelper()
Method Detail |
public static boolean isAutoNumber(Object obj) throws WTException
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.
obj
- determine whether auto-numbering should be used for this obj
WTException
public static boolean isAutoNumber(Object obj, WTContainerRef container) throws WTException
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.
obj
- determine whether auto-numbering should be used for this objcontainer
- the container whose rules should be queried
WTException
public static FolderEntry setFolder(FolderEntry f, Map data, WTContainerRef container) throws WTException
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.
WTException
FolderHelper.assignLocation(wt.folder.FolderEntry, wt.folder.Folder)
,
FolderService.getFolder(wt.folder.FolderEntry)
public static LifeCycleManaged setLifeCycle(LifeCycleManaged lcm, Map data, WTContainerRef container) throws WTException, WTPropertyVetoException
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.
RuleException
- if the specified lifecycle cannot be found
WTException
WTPropertyVetoException
LifeCycleHelper.setLifeCycle(wt.lifecycle.LifeCycleManaged, wt.lifecycle.LifeCycleTemplate)
,
LifeCycleService.getLifeCycleTemplate(wt.lifecycle.LifeCycleManaged)
public static TeamManaged setTeamTemplate(TeamManaged tm, Map data, WTContainerRef container) throws WTException, WTPropertyVetoException
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.
WTException
WTPropertyVetoException
TeamHelper.setTeamTemplate(wt.team.TeamManaged, wt.team.TeamTemplate)
,
TeamService.getTeamTemplate(wt.team.TeamManaged)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |