|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectwt.lifecycle.LifeCycleDefinitionHandler
Handle the Definition of a LifeCycle Template. The LifeCycle Definition is passed in a TransactionContainer which is a structure
containing a set of assertions. Each assertion contains an object and the type of update: add, remove, modify.
Supported API: false
Extendable: false
Field Summary | |
private static int |
AD_HOC_ACL_LINK
|
private static int |
AD_HOC_ACL_SPEC
|
private static int |
CRITERION
|
protected static boolean |
debug
|
private static int |
DEFAULT_CRITERION_LINK
|
private static String |
INITIAL_PHASE
|
private static int |
INITIAL_PHASE_LINK
|
private static int |
LIFE_CYCLE_TEMPLATE
|
private static int |
OTHER_BC_OBJECT
|
private static int |
OTHER_RBC_OBJECT
|
private static int |
PHASE_LINK
|
private static int |
PHASE_SUCCESSION_LINK
|
private static int |
PHASE_TEMPLATE
|
private static String |
RESOURCE
|
private static String |
SERVICE_NAME
|
private static boolean |
VERBOSE
|
Constructor Summary | |
LifeCycleDefinitionHandler()
|
Method Summary | |
private static void |
deletePhaseTemplate(PhaseTemplate pt)
Process the deletion of a PhaseTemplate object. |
private static int |
getTypeOfObject(Assertion asser)
Determine the type of object in the Assertion. |
private static void |
preValidateAssertion(Assertion asser)
Prior to doing any processing, pre-validate the assertion. |
private static void |
processAdHocAclLink(Assertion asser)
Process the AdHocAclLink object's assertion. |
private static void |
processAdHocAclSpec(Assertion asser)
Process the AdHocAclSpec object's assertion. |
private static void |
processAssertion(Assertion asser)
Attempt to process the assertion. |
private static void |
processCriterion(Assertion asser)
Process the Criterion object's assertion. |
private static void |
processDefaultCriterionLink(Assertion asser)
Process the DefaultCriterion object's assertion. |
private static void |
processInitialPhaseLink(Assertion asser)
Process the InitialPhase link object's assertion. |
private static void |
processLifeCycleTemplate(Assertion asser)
Process the LifeCycleTemplate object's assertion. |
protected static TransactionResult |
processLifeCycleTemplateTransaction(TransactionContainer aTran)
Process the TransactionContainer. |
private static void |
processPhaseLink(Assertion asser)
Process the PhaseLink's link assertion. |
private static void |
processPhaseSuccessionLink(Assertion asser)
Process the PhaseSuccession link object's assertion. |
private static void |
processPhaseTemplate(Assertion asser)
Process the PhaseTemplate object's assertion. |
private static void |
validateAdHocAclSpec(AdHocAclSpec ahas)
Validate the AdHocAclSpec. |
private static void |
validateAssertion(Object targetObject)
Validate that the object remains in a valid structure. |
private static void |
validateCriterion(Criterion c)
Validate the Criterion. |
private static void |
validatePhaseTemplate(PhaseTemplate pt)
Validate the PhaseTemplate object. |
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
private static final int LIFE_CYCLE_TEMPLATE
private static final int PHASE_TEMPLATE
private static final int AD_HOC_ACL_SPEC
private static final int CRITERION
private static final int PHASE_LINK
private static final int INITIAL_PHASE_LINK
private static final int PHASE_SUCCESSION_LINK
private static final int AD_HOC_ACL_LINK
private static final int DEFAULT_CRITERION_LINK
private static final int OTHER_BC_OBJECT
private static final int OTHER_RBC_OBJECT
private static final boolean VERBOSE
private static final String SERVICE_NAME
private static final String INITIAL_PHASE
protected static boolean debug
Constructor Detail |
public LifeCycleDefinitionHandler()
Method Detail |
protected static TransactionResult processLifeCycleTemplateTransaction(TransactionContainer aTran)
aTran
- A TransactionContainer that contains a set of assertions about a LifeCycle Definition.private static void preValidateAssertion(Assertion asser) throws WTException
asser
- An assertion found in the TransactionContainer that needs to be pre-validated.
WTException
private static void processAssertion(Assertion asser) throws WTException
asser
- An assertion found in the TransactionContainer that needs to be processed.
WTException
- A WTException is thrown when the object found
in the assertion is not expected by the LifeCycleDefinitionHandler.private static int getTypeOfObject(Assertion asser)
asser
- The assertion whose object type needs to be determined
private static void processLifeCycleTemplate(Assertion asser) throws WTException
asser
- The assertion that contains the LifeCycleTemplate to be processed.
WTException
- An error occurred in the persistence of the LifeCycleTemplate object.private static void processPhaseTemplate(Assertion asser) throws WTException
asser
- The assertion that contains the PhaseTemplate to be processed.
WTException
- An error occurred in the persistence of the PhaseTemplate object.private static void processAdHocAclSpec(Assertion asser) throws WTException
asser
- The assertion that contains the AdHocAclSpec to be
processed.
WTException
- An error occurred in the persistence
of the AdHocAclSpec object.private static void processCriterion(Assertion asser) throws WTException
asser
- The assertion that contains the Criterion to be processed.
WTException
- An error occurred in the persistence of the Criterion object.private static void processPhaseLink(Assertion asser) throws WTException
asser
- The assertion that contains the PhaseLink to be processed.
WTException
- An error occurred in the persistence of the PhaseLink link object.private static void processInitialPhaseLink(Assertion asser) throws WTException
asser
- The assertion that contains the InitialPhaseLink to be processed.
WTException
- An error occurred in the persistence of the InitialPhaseLink link object.private static void processPhaseSuccessionLink(Assertion asser) throws WTException
asser
- The assertion that contains the PhaseSuccessionLink to be processed.
WTException
- An error occurred in the persistence of the PhaseSuccession link object.private static void processAdHocAclLink(Assertion asser) throws WTException
asser
- The assertion that contains the AdHocAclLink to be processed.
WTException
- An error occurred in the persistence of the AdHocAclLink link object.private static void processDefaultCriterionLink(Assertion asser) throws WTException
asser
- The assertion that contains the DefaultCriterion to be processed.
WTException
- An error occurred in the persistence of the DefaultCriterion link object.private static void deletePhaseTemplate(PhaseTemplate pt) throws WTException
pt
- The PhaseTemplate to be deleted.
WTException
- An error occurred in the processing of the PhaseTemplate delete.private static void validateAssertion(Object targetObject) throws WTException
targetObject
- object to validated
WTException
- A validation error was found on the object.private static void validatePhaseTemplate(PhaseTemplate pt) throws WTException
pt
- The PhaseTemplate object to be validated.
WTException
- A validation error was found on the object.private static void validateAdHocAclSpec(AdHocAclSpec ahas) throws WTException
ahas
- The AdHocAclSpec object to be validated.
WTException
- A validation error was found on the object.private static void validateCriterion(Criterion c) throws WTException
c
- The Criterion object to be validated.
WTException
- A validation error was found on the object.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |