com.ptc.wvs.server.util
Class RepUpdateUtils
java.lang.Object
com.ptc.wvs.server.util.RepUpdateUtils
- public class RepUpdateUtils
- extends Object
Method Summary |
static ContentItem |
addDeferredUpdateRepresentation(Representation rep,
Persistable updateFor,
boolean addNewTypeProps)
|
static void |
copyAllContent(ContentHolder from,
ContentHolder to,
Hashtable contentLookup)
|
static void |
copyAllDerivedImages(Representable fromRep,
Representable toRep,
boolean includeMarkups,
boolean setOwnerAndLock)
|
static void |
copyAllMarkups(Viewable di,
Viewable newdi,
boolean forceAllMarkups,
boolean setOwnerAndLock)
|
static void |
copyAllMarkups(Viewable di,
Viewable newdi,
boolean forceAllMarkups,
boolean setOwnerAndLock,
WTKeyedMap oldMarkups,
WTValuedMap repables,
WTValuedMap viewablesMap,
WTValuedMap frommkMap)
|
static boolean |
copyAllMarkups(WTValuedMap fromTo,
boolean forceAllMarkups,
boolean setOwnerAndLock)
|
static DerivedImage |
copyDerivedImage(DerivedImage di,
Representable toRep,
boolean includeMarkups,
boolean includeAllMarkups,
boolean setOwnerAndLock)
|
static DerivedImage |
copyDerivedImage(DerivedImage di,
Representable toRep,
boolean includeMarkups,
boolean includeAllMarkups,
boolean setOwnerAndLock,
String newName,
boolean allowDefault)
|
static DerivedImage |
copyDerivedImage(DerivedImage di,
Representable toRep,
boolean includeMarkups,
boolean includeAllMarkups,
boolean setOwnerAndLock,
String newName,
boolean allowDefault,
boolean forCopyPaste)
|
static WTMarkUp |
copyMarkup(WTMarkUp mk,
Viewable newdi,
boolean setOwnerAndLock)
|
static WTMarkUp |
copyMarkup(WTMarkUp mk,
Viewable newdi,
String newName,
boolean setOwnerAndLock)
|
static WTMarkUp |
copyMarkup(WTMarkUp mk,
Viewable newdi,
String newName,
String fromNodeText,
String toNodeText,
boolean setOwnerAndLock)
|
private static void |
displayHelp()
|
static void |
endMultiCopyDerivedImage(boolean includeAllMarkups,
boolean setOwnerAndLock)
|
private static String |
getUserInput(String prompt)
|
static boolean |
isDeferredUpdateRepresentation(ApplicationData ci)
|
static void |
main(String[] args)
|
static void |
markRepresentationsOutOfDate(Representable p,
String repName,
String cadPartName,
String cadFormName)
|
static ConfigSpec |
prepareConfigSpec(ConfigSpec cs,
Representable rep)
|
static ApplicationData |
processDeferredUpdateRepresentation(ApplicationData ci,
ContentHolder holder)
|
static WTMarkUp |
setMarkupOwnerAndLock(WTMarkUp fromMk,
WTMarkUp toMk)
|
static void |
startMultiCopyDerivedImage()
|
static void |
updateComponentContentURL(DefaultMutableTreeNode n,
Hashtable contentLookup)
|
static void |
updateComponentLocation(DefaultMutableTreeNode n,
String locIDProp,
Hashtable locationLookup)
|
static boolean |
updateEDStructure(DefaultMutableTreeNode root,
Persistable[] updateForA,
Hashtable contentLookup,
String locIDProp,
Hashtable locationLookup,
boolean[] addNewTypePropsA,
boolean forCopyPaste)
|
static void |
updateLookupPropertyURL(Hashtable p,
String name,
Hashtable contentLookup)
|
static void |
updatePropertyURL(Hashtable p,
String name,
Hashtable contentLookup)
|
static ApplicationData |
updateRepresentation(Representation rep,
Persistable[] updateFor,
Hashtable contentLookup,
String locIDProp,
Hashtable locationLookup,
boolean[] addNewTypeProps,
boolean forCopyPaste)
|
static ApplicationData |
updateRepresentation(Representation rep,
Persistable updateFor,
Hashtable contentLookup,
String locIDProp,
Hashtable locationLookup,
boolean addNewTypeProps,
boolean forCopyPaste)
|
static void |
updateRepresentationsOf(Persistable p)
|
static void |
updateRepresentationsOf(Persistable p,
Persistable updateFor)
|
static void |
updateRepresentationsOf(WTKeyedMap map)
|
static void |
updateRepresentationsOf(WTSet set,
Persistable p)
|
static String |
updateValueURL(String value,
Hashtable contentLookup)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
UPDATEFOR
public static final String UPDATEFOR
- See Also:
- Constant Field Values
REP_UPDATE_UTILS_FROM_DI_MAP
public static final String REP_UPDATE_UTILS_FROM_DI_MAP
- See Also:
- Constant Field Values
REP_UPDATE_UTILS_REPRESENTABLE_MAP
public static final String REP_UPDATE_UTILS_REPRESENTABLE_MAP
- See Also:
- Constant Field Values
REP_UPDATE_UTILS_MAKE_DEFAULT_MAP
public static final String REP_UPDATE_UTILS_MAKE_DEFAULT_MAP
- See Also:
- Constant Field Values
REP_UPDATE_UTILS_COPY_MARKUPS_MAP
public static final String REP_UPDATE_UTILS_COPY_MARKUPS_MAP
- See Also:
- Constant Field Values
VERBOSE
private static boolean VERBOSE
RESTRICT_TO_SAME_TYPE
private static boolean RESTRICT_TO_SAME_TYPE
deferRepresentationUpdate
private static boolean deferRepresentationUpdate
RepUpdateUtils
public RepUpdateUtils()
copyAllDerivedImages
public static void copyAllDerivedImages(Representable fromRep,
Representable toRep,
boolean includeMarkups,
boolean setOwnerAndLock)
throws WTException
- Throws:
WTException
copyDerivedImage
public static DerivedImage copyDerivedImage(DerivedImage di,
Representable toRep,
boolean includeMarkups,
boolean includeAllMarkups,
boolean setOwnerAndLock)
throws WTException
- Throws:
WTException
copyDerivedImage
public static DerivedImage copyDerivedImage(DerivedImage di,
Representable toRep,
boolean includeMarkups,
boolean includeAllMarkups,
boolean setOwnerAndLock,
String newName,
boolean allowDefault)
throws WTException
- Throws:
WTException
copyDerivedImage
public static DerivedImage copyDerivedImage(DerivedImage di,
Representable toRep,
boolean includeMarkups,
boolean includeAllMarkups,
boolean setOwnerAndLock,
String newName,
boolean allowDefault,
boolean forCopyPaste)
throws WTException
- Throws:
WTException
startMultiCopyDerivedImage
public static void startMultiCopyDerivedImage()
endMultiCopyDerivedImage
public static void endMultiCopyDerivedImage(boolean includeAllMarkups,
boolean setOwnerAndLock)
prepareConfigSpec
public static ConfigSpec prepareConfigSpec(ConfigSpec cs,
Representable rep)
throws Exception
- Throws:
Exception
copyAllMarkups
public static boolean copyAllMarkups(WTValuedMap fromTo,
boolean forceAllMarkups,
boolean setOwnerAndLock)
throws WTException
- Throws:
WTException
copyAllMarkups
public static void copyAllMarkups(Viewable di,
Viewable newdi,
boolean forceAllMarkups,
boolean setOwnerAndLock)
throws WTException
- Throws:
WTException
copyAllMarkups
public static void copyAllMarkups(Viewable di,
Viewable newdi,
boolean forceAllMarkups,
boolean setOwnerAndLock,
WTKeyedMap oldMarkups,
WTValuedMap repables,
WTValuedMap viewablesMap,
WTValuedMap frommkMap)
throws WTException
- Throws:
WTException
copyMarkup
public static WTMarkUp copyMarkup(WTMarkUp mk,
Viewable newdi,
boolean setOwnerAndLock)
throws WTException
- Throws:
WTException
copyMarkup
public static WTMarkUp copyMarkup(WTMarkUp mk,
Viewable newdi,
String newName,
boolean setOwnerAndLock)
throws WTException
- Throws:
WTException
copyMarkup
public static WTMarkUp copyMarkup(WTMarkUp mk,
Viewable newdi,
String newName,
String fromNodeText,
String toNodeText,
boolean setOwnerAndLock)
throws WTException
- Throws:
WTException
setMarkupOwnerAndLock
public static WTMarkUp setMarkupOwnerAndLock(WTMarkUp fromMk,
WTMarkUp toMk)
throws Exception
- Throws:
Exception
copyAllContent
public static void copyAllContent(ContentHolder from,
ContentHolder to,
Hashtable contentLookup)
throws Exception
- Throws:
Exception
updateRepresentationsOf
public static void updateRepresentationsOf(WTSet set,
Persistable p)
throws Exception
- Throws:
Exception
updateRepresentationsOf
public static void updateRepresentationsOf(WTKeyedMap map)
throws Exception
- Throws:
Exception
updateRepresentationsOf
public static void updateRepresentationsOf(Persistable p)
throws Exception
- Throws:
Exception
updateRepresentationsOf
public static void updateRepresentationsOf(Persistable p,
Persistable updateFor)
throws Exception
- Throws:
Exception
updateRepresentation
public static ApplicationData updateRepresentation(Representation rep,
Persistable updateFor,
Hashtable contentLookup,
String locIDProp,
Hashtable locationLookup,
boolean addNewTypeProps,
boolean forCopyPaste)
throws Exception
- Throws:
Exception
updateRepresentation
public static ApplicationData updateRepresentation(Representation rep,
Persistable[] updateFor,
Hashtable contentLookup,
String locIDProp,
Hashtable locationLookup,
boolean[] addNewTypeProps,
boolean forCopyPaste)
throws Exception
- Throws:
Exception
addDeferredUpdateRepresentation
public static ContentItem addDeferredUpdateRepresentation(Representation rep,
Persistable updateFor,
boolean addNewTypeProps)
throws Exception
- Throws:
Exception
processDeferredUpdateRepresentation
public static ApplicationData processDeferredUpdateRepresentation(ApplicationData ci,
ContentHolder holder)
throws WTException,
PropertyVetoException
- Throws:
WTException
PropertyVetoException
isDeferredUpdateRepresentation
public static boolean isDeferredUpdateRepresentation(ApplicationData ci)
updateEDStructure
public static boolean updateEDStructure(DefaultMutableTreeNode root,
Persistable[] updateForA,
Hashtable contentLookup,
String locIDProp,
Hashtable locationLookup,
boolean[] addNewTypePropsA,
boolean forCopyPaste)
updateComponentLocation
public static void updateComponentLocation(DefaultMutableTreeNode n,
String locIDProp,
Hashtable locationLookup)
updateComponentContentURL
public static void updateComponentContentURL(DefaultMutableTreeNode n,
Hashtable contentLookup)
updatePropertyURL
public static void updatePropertyURL(Hashtable p,
String name,
Hashtable contentLookup)
updateValueURL
public static String updateValueURL(String value,
Hashtable contentLookup)
updateLookupPropertyURL
public static void updateLookupPropertyURL(Hashtable p,
String name,
Hashtable contentLookup)
markRepresentationsOutOfDate
public static void markRepresentationsOutOfDate(Representable p,
String repName,
String cadPartName,
String cadFormName)
main
public static void main(String[] args)
getUserInput
private static String getUserInput(String prompt)
displayHelp
private static void displayHelp()