|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectwt.epm.CADNamespaceManager
CADNamespaceManager is a class that handles all related functions
for EPMCADNamespace class.
Supported API: false
Extendable: false
Field Summary | |
private static String |
EPMRESOURCE
|
Constructor Summary | |
CADNamespaceManager()
|
Method Summary | |
protected static void |
add(WTCollection masters)
Creates EPMCADNamespace for the given masters. |
private static void |
addToNamespace(WTCollection documents,
WTCollection masters,
WTContainer sandbox)
Adds entries for masters to CAD Name space of the Sandbox |
protected static void |
clean(Collection sharedContainerMaps)
Cleans CADNamespace |
private static WTCollection |
createCADNamespaces(WTCollection masters)
|
private static void |
deleteCADNamespaces(WTCollection excludeMasters,
WTContainerRef containerRef)
|
private static WTCollection |
findDuplicates(WTCollection namespaces)
|
private static String |
formatNamespaceError(WTCollection nonUniqueNamespaces,
Map mastersById)
|
private static List |
getCADName(WTCollection namespaces)
|
private static WTSet |
getCADNamespaces(WTCollection masters)
|
private static WTSet |
getCADNamespaces(WTCollection excludeMasters,
ObjectReference containerRef)
|
private static WTSet |
getDependentMasters(WTCollection objects,
boolean checkAuthoringApp)
|
private static QueryResult |
getEPMDocumentsInSandbox(WTContainerRef sandboxRef)
Returns all the EPMDocuments in given container, which includes locally created and sandbox checkout. |
private static WTCollection |
getMasters(WTCollection masters,
WTContainer sandbox)
|
protected static void |
processPreMultiSBCheckinEvent(WTKeyedMap initialCheckinWorkingCopyToDataMap)
|
private static WTCollection |
saveCADNamespaces(WTCollection namespaces)
|
protected static void |
update(WTCollection docs,
WTContainer sandbox)
|
protected static void |
update(WTKeyedMap masters)
Given a map of EPMDocumentMaster objects and their new CADName, updates EPMCADNamespace with new CAD names. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private static final String EPMRESOURCE
Constructor Detail |
public CADNamespaceManager()
Method Detail |
protected static void add(WTCollection masters) throws WTException
masters
- a list of EPMDocumentMaster objects.
WTException
protected static void processPreMultiSBCheckinEvent(WTKeyedMap initialCheckinWorkingCopyToDataMap) throws WTException
WTException
protected static void update(WTKeyedMap masters) throws WTException
WTException
protected static void update(WTCollection docs, WTContainer sandbox) throws WTException
WTException
private static WTSet getDependentMasters(WTCollection objects, boolean checkAuthoringApp) throws WTException
WTException
private static WTCollection getMasters(WTCollection masters, WTContainer sandbox) throws WTException
WTException
private static void addToNamespace(WTCollection documents, WTCollection masters, WTContainer sandbox) throws WTException
documents
- List of documents that are getting checkedout or shared to Sandbox.
The list is only used for giving better error messages.masters
- List of EPMDocumentMaster objects that are dependents, instances or generic of the documents.sandbox
- The container
WTException
- exception if CAD Name already exists in Sandbox Containerprotected static void clean(Collection sharedContainerMaps) throws WTException, WTPropertyVetoException
sharedContainerMaps
- collection of SharedContainerMap
WTException
WTPropertyVetoException
private static QueryResult getEPMDocumentsInSandbox(WTContainerRef sandboxRef) throws WTException
sandboxRef
- container ref
WTException
private static WTCollection createCADNamespaces(WTCollection masters) throws WTException
WTException
private static WTCollection saveCADNamespaces(WTCollection namespaces) throws WTException
WTException
private static WTCollection findDuplicates(WTCollection namespaces) throws WTException
WTException
private static String formatNamespaceError(WTCollection nonUniqueNamespaces, Map mastersById) throws WTException
WTException
private static WTSet getCADNamespaces(WTCollection masters) throws WTException
WTException
private static WTSet getCADNamespaces(WTCollection excludeMasters, ObjectReference containerRef) throws WTException
WTException
private static void deleteCADNamespaces(WTCollection excludeMasters, WTContainerRef containerRef) throws WTException
WTException
private static List getCADName(WTCollection namespaces) throws WTException
WTException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |