|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ptc.windchill.uwgm.proesrv.action.UwgmAction
com.ptc.windchill.uwgm.proesrv.action.ModelCheckAction
ModelCheckAction class is a gatekeeper that confirms model check results from the CADDoc (IBAHolder) as stored by client on saving the model. This is applicable only in the context of user agent being "Pro/Engineer".
Field Summary | |
private WTCollection |
actionObj
|
private static String |
configAlias
|
private static String |
configSetting
|
private static String |
errSetting
|
private static boolean |
isModelCheckEnabled
|
private static Log |
log
Logging |
private static String |
mcConfig
|
private WTCollection |
mcConfigFailedObjs
|
private WTCollection |
mcErrFailedObjs
|
private WTCollection |
mcTSFailedObjs
|
private static int |
numPermissibleErrors
|
private static long |
numPermissibleHours
|
private static String |
tsSetting
|
Fields inherited from class com.ptc.windchill.uwgm.proesrv.action.UwgmAction |
|
Constructor Summary | |
ModelCheckAction(RequestContext context,
WTCollection modelsToValidate)
Creates a new instance of ModelCheckAction |
Method Summary | |
private ErrorElement |
createConfigError(WTCollection configObj)
Utility method to create exception element for models checked against invalid config rules |
private ErrorElement |
createModelCheckError(WTCollection mcObj)
Utility method to create exception element for collection of invalid models |
private ErrorElement |
createNumPermissibleError(WTCollection errObj)
Utility method to create exception element for models having errors exceeding valid limits |
private ErrorElement |
createTimeStampError(WTCollection tsObj)
Utility method to create exception element for models whose checks were outdated |
protected void |
executeAction()
executes action (should be overwritten by implementation action subclasses) |
private static void |
initPermissibleConfigs()
Extract permissible configurations |
private static void |
initPermissibleErrorCondition()
Extracts the permissible number of errors from Administrative Policy |
private static void |
initPermissibleTimeRange()
Extracts number of hours within which the MC should have run prior to checkin! This seems to be a workaround; as the appropriate check would be to know: 1. |
static boolean |
isApplicable(RequestContext reqCtx)
Convenience public method to know if ModelCheck is applicable in a request context, and is enabled. |
protected boolean |
isModelCheckStale(String mcTS)
Validates whether the last MC time stamp is within permissible range |
private boolean |
isModelConfigValid(String MC_CONFIG)
Checks whether the MC Configs are valid |
private boolean |
isNumErrInPermissibleRange(String MC_ERRORS)
Checks whether the MC errors are in permissible range |
protected boolean |
scanModelCheck(IBAHolder ibah)
Scan the model check attributes of individual IBAHolders for validity |
Methods inherited from class com.ptc.windchill.uwgm.proesrv.action.UwgmAction |
addWarning, checkExecutionSuccess, execute, getContext, getWarnings |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private WTCollection actionObj
private WTCollection mcErrFailedObjs
private WTCollection mcTSFailedObjs
private WTCollection mcConfigFailedObjs
private static boolean isModelCheckEnabled
private static String errSetting
private static int numPermissibleErrors
private static String tsSetting
private static long numPermissibleHours
private static String configSetting
private static String mcConfig
private static String configAlias
private static Log log
Constructor Detail |
public ModelCheckAction(RequestContext context, WTCollection modelsToValidate)
Method Detail |
protected void executeAction() throws UwgmConflictException, UwgmErrorException
UwgmAction
executeAction
in class UwgmAction
UwgmErrorException
UwgmConflictException
protected boolean scanModelCheck(IBAHolder ibah)
private boolean isNumErrInPermissibleRange(String MC_ERRORS)
protected boolean isModelCheckStale(String mcTS)
private boolean isModelConfigValid(String MC_CONFIG)
public static boolean isApplicable(RequestContext reqCtx)
private static void initPermissibleErrorCondition() throws Exception
Exception
private static void initPermissibleTimeRange() throws Exception
Exception
private static void initPermissibleConfigs() throws Exception
Exception
private ErrorElement createModelCheckError(WTCollection mcObj)
private ErrorElement createTimeStampError(WTCollection tsObj)
private ErrorElement createNumPermissibleError(WTCollection errObj)
private ErrorElement createConfigError(WTCollection configObj)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |