public class SulisStructHelper
extends Object
| Constructor and Description |
|---|
SulisStructHelper() |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
checkCadObjs(Object o,
Hashtable okStates)
answer true or false if a Part's related CAD Objects are completely in acceptable state[s] (usually RELEASED)
|
static boolean |
checkPart(Object o,
Hashtable okStates,
boolean checkSelf)
answer true or false if a Part's children hava a (formerly) released version, and related CAD Objects are completely in acceptable state[s] (usually RELEASED)
|
static boolean |
checkPN(PromotionNotice pn,
Hashtable okStates,
boolean checkSelf,
Hashtable bad)
answer true or false if all Parts in a PN are OK
|
static boolean |
checkReps(Object o,
String name,
ConfigSpec configSpec)
answer true or false if an epmdoc or it's children hava an outdated or missing representation with a given name (short: false means we need republishing ;-)
|
static void |
fixPNLinks(PromotionNotice pn)
alter pn target links to point to the latest iteration of the promotable
|
static void |
main(String[] a)
print program usage info or call accessible checks
|
public static final int MAJOR
public static final int MINOR
public static void main(String[] a)
throws Exception
a - commandline argsExceptionpublic static void fixPNLinks(PromotionNotice pn)
throws Exception
pn - the PromotionNotice to fixWTExceptionExceptionpublic static boolean checkPN(PromotionNotice pn,
Hashtable okStates,
boolean checkSelf,
Hashtable bad)
pn - the PromotionNotice to checkokStates - valid states as String keyscheckSelf - flag if promotables should be checked against valid state toobad - result with failing objects as keysWTExceptionpublic static boolean checkReps(Object o,
String name,
ConfigSpec configSpec)
throws WTException
o - an epmdoc or an obidname - name of representation[s]configSpec - one of AS(as stored) L(latest) or LR(latest Released)WTExceptionpublic static boolean checkPart(Object o,
Hashtable okStates,
boolean checkSelf)
throws WTException
o - input part (object or obid)okStates - acceptable states as String keysWTExceptionpublic static boolean checkCadObjs(Object o,
Hashtable okStates)
throws WTException
o - input part (object or obid)okStates - acceptable states as String keysWTException