|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ptc.windchill.cadx.common.util.PageServerHelper
Field Summary | |
(package private) Map |
allMap
|
static String |
ASSOCIATED_TAG
|
(package private) Map |
associatedMap
|
(package private) Map |
associatedObjs
|
(package private) static int |
AVERAGE_DEPENDENTS
|
(package private) static String |
BRANCH_ID
|
(package private) int |
businessMode
|
(package private) static EPMDocumentType |
CADASSEMBLY_TYPE
|
(package private) static EPMDocumentType |
CADCOMPONENT_TYPE
|
(package private) static EPMDocumentType |
CADDRAWING_TYPE
|
(package private) static int |
CHUNK_SIZE
|
(package private) WTContainer |
container
|
(package private) ConfigSpec[] |
cs
|
static String |
DEPENDENT_OPTIONAL_ASSOCIATED_TAG
|
static String |
DEPENDENT_OPTIONAL_TAG
|
static String |
DEPENDENT_REQUIRED_ASSOCIATED_TAG
|
static String |
DEPENDENT_REQUIRED_TAG
|
(package private) Map |
dependentsMap
|
(package private) int |
dependentsMode
|
(package private) static String |
DOC_TYPE
|
static String |
DRAWING_ASSOCIATED_TAG
|
static String |
DRAWING_TAG
|
(package private) Map |
drawingObjs
|
(package private) Map |
drawingsMap
|
(package private) int |
drawingsMode
|
(package private) static int |
EPMDOC
|
(package private) static String |
EXTERNALSIMPREP
|
static String |
GENERIC_TAG
|
(package private) Map |
genericsMap
|
(package private) Map |
holdersMap
|
static int |
INCLUDE_BUSINESS_OBJECTS_ALL
|
static int |
INCLUDE_BUSINESS_OBJECTS_NONE
|
static int |
INCLUDE_BUSINESS_OBJECTS_SELECTED
|
static int |
INCLUDE_DEPENDENTS_ALL
|
static int |
INCLUDE_DEPENDENTS_NONE
|
(package private) static int |
INCLUDE_DEPENDENTS_OPTIONAL
|
static int |
INCLUDE_DEPENDENTS_REQUIRED
|
static int |
INCLUDE_DRAWINGS_ALL
|
static int |
INCLUDE_DRAWINGS_NONE
|
static int |
INCLUDE_DRAWINGS_SELECTED
|
static int |
INCLUDE_INSTANCES_ALL
|
static int |
INCLUDE_INSTANCES_NONE
|
static int |
INCLUDE_INSTANCES_SELECTED
|
static String |
INSTANCE_ASSOCIATED_TAG
|
static String |
INSTANCES_TAG
|
(package private) Map |
instancesMap
|
(package private) int |
instancesMode
|
(package private) boolean |
isActiveWs
|
(package private) boolean |
isProjectLinkContext
|
(package private) static Class[] |
iterCl
|
(package private) Map |
itersFromWorkspaceFolderMap
|
static String |
J01_ND
|
static String |
J03_ND
|
(package private) static String |
LATEST_ITERATION
|
(package private) Map |
latestsMap
|
(package private) static String |
MASTER_ID
|
(package private) Map |
mastersHavingGreaterOneIterationMap
|
(package private) static int |
ND_DEP_T_EXTRASSY_COMP
|
(package private) static int |
ND_DEP_T_EXTRASSY_PARTL_COMP
|
(package private) static String |
OBJ_ID
|
(package private) Map |
optionalObjs
|
(package private) static String |
REQUIRED
|
(package private) Map |
requiredObjs
|
(package private) static String |
ROLEA_ID
|
(package private) static String |
ROLEB_ID
|
(package private) Map |
selectedMap
|
(package private) List[] |
selectedObjs
|
(package private) Map |
sharedRefreshCandidatesMap
|
(package private) Map |
sharedToMap
|
(package private) static boolean |
VERBOSE
|
static String |
WORKSPACE_OBJ_DEFAULT
|
(package private) EPMWorkspace |
ws
|
(package private) QueryResult |
wsContent
|
(package private) Map |
wsMap
|
(package private) static int |
WTPART
|
Constructor Summary | |
PageServerHelper(Collection a_objs,
EPMWorkspace a_ws,
boolean a_isActiveWs)
constructors |
|
PageServerHelper(Collection a_selectedObjs,
EPMWorkspace a_ws,
boolean a_isActiveWs,
ConfigSpec a_dcs,
ConfigSpec a_pcs,
int a_dependentsMode,
int a_drawingsMode,
int a_instancesMode,
int a_businessMode)
|
|
PageServerHelper(Collection a_objs,
EPMWorkspace a_ws,
boolean a_isActiveWs,
int a_dependentsMode,
int a_drawingsMode,
int a_instancesMode,
int a_businessMode)
|
|
PageServerHelper(String selectedOIDs,
EPMWorkspace a_ws,
boolean a_isActiveWs)
|
|
PageServerHelper(String selectedOIDs,
EPMWorkspace a_ws,
boolean a_isActiveWs,
ConfigSpec a_dcs,
ConfigSpec a_pcs,
int a_dependentsMode,
int a_drawingsMode,
int a_instancesMode,
int a_businessMode)
|
|
PageServerHelper(String selectedOIDs,
EPMWorkspace a_ws,
boolean a_isActiveWs,
int a_dependentsMode,
int a_drawingsMode,
int a_instancesMode,
int a_businessMode)
|
Method Summary | |
protected void |
addObjectDependentsList(Workable obj,
List dependences,
String tag,
List dependentsList)
|
protected void |
addToAssociatedObjs(ObjectDependentsList odl)
|
protected Map |
buildAssociatedMap(List[] list)
|
Map |
buildBusinessObjectsMap()
|
protected Map |
buildDependencesMap()
|
protected Map |
buildDrawingsMap()
|
protected void |
buildFamilyMap()
|
protected Map |
buildHoldersMap()
|
protected Map |
buildItersFromWorkspaceFolderMap()
|
protected Map |
buildLatestsMap()
|
protected Map |
buildMastersHavingGreaterOneIterationMap()
|
protected void |
buildSelectedMap()
|
protected Map |
buildSharedToMap()
|
protected Map |
buildWsMap()
|
protected ObjectDependentsList |
createObjectDependentsList(Workable obj,
List dependences,
String tag)
|
protected boolean |
existInWorkspaceFolder(Workable obj)
|
List |
getAllObjects()
Returns all built objects including dependents, drawings, instances, generics, associated objects |
protected void |
getAssociatedFromEPMBuildHistory(Map associated,
List[] list)
|
protected void |
getAssociatedFromEPMBuildRule(Map associated,
List[] list)
|
protected void |
getAssociatedFromEPMDescribesLink(Map associated,
List[] list)
|
protected Map |
getAssociatedObjects()
|
String |
getAssociatedRule(Workable obj)
Returns ruel of associated object: ASSOCIATED_TAG DEPENDENT_REQUIRED_ASSOCIATED_TAG DEPENDENT_OPTIONAL_ASSOCIATED_TAG DRAWING_ASSOCIATED_TAG INSTANCE_ASSOCIATED_TAG |
Map |
getBusinessObjects()
Returns a map of associated, where key is ObjectIdentifier of object value is List of associated with it |
List |
getBusinessObjects(Workable obj)
Returns a list of associated with the given object |
List |
getBusinessObjectsWithParentFromAll()
Returns a list of associated with parent from all objects |
List |
getBusinessObjectsWithParentFromSelected()
Returns a list of associated with parent from selected by user objects |
protected List |
getDependentFromEPMLinks(List source,
Map dependents,
Map visited)
|
Map |
getDependents()
Returns a map of dependents, where key is ObjectIdentifier of parent value is List of items, where item is DependentObject |
protected List |
getDependents(List dep,
boolean isRequired)
|
protected List |
getDependentsWithParent(int a_dependentsMode)
protected methods |
protected int |
getDocumentType(ObjectIdentifier docID)
|
int |
getDocumentType(Workable obj)
Returns a DocumentType of the given object |
protected Map |
getDrawingObjects()
|
Map |
getDrawings()
Returns a map of dependents, where key is ObjectIdentifier of parent value is List of items, where item is a drawing |
List |
getDrawings(Workable obj)
Returns a list of drawings from the given object |
List |
getDrawingsWithParent()
Returns a list of drawings with parent |
protected void |
getFilteredIterations(int indCl,
List masters,
ConfigSpec configSpec,
Map filteredIters)
|
protected List |
getFromLink(Class linkCl,
List source,
Class targetCl,
boolean isTargetARole)
|
protected List |
getFromLink(Class linkCl,
List source,
Class targetCl,
boolean isTargetARole,
Map sourceMap)
|
protected List |
getFromLink(Class linkCl,
List source,
Class targetCl,
boolean isTargetARole,
Map sourceMap,
boolean isAll,
boolean isLatestOnly)
|
Workable |
getGeneric(Workable obj)
Returns a generic from the given instance |
Map |
getGenerics()
Returns a map of generics, where key is ObjectIdentifier of generic value is FamilyInfo object |
List |
getGenericsWithParent()
Returns a list of instances with generic parent |
protected Map |
getHolders()
|
Map |
getInstances()
Returns a map of instances, where key is ObjectIdentifier of instance value is FamilyInfo object |
List |
getInstances(Workable obj)
Returns a list of instances from the given generic |
List |
getInstancesWithParent()
Returns a list of instances |
protected Map |
getItersFromWorkspaceFolderMap()
|
protected Workable |
getLatestIteration(Workable obj)
|
protected Map |
getMastersHavingGreaterOneIterationMap()
|
protected Map |
getOptionalDependents()
|
List |
getOptionalDependents(Workable obj)
Returns a list of optional dependents from the given object |
List |
getOptionalDependentsWithParent()
Returns a list of optional dependents with parent |
int |
getPDMObjState(CabinetBased obj)
|
String |
getPDMObjType(Workable obj)
Returns a PDMObjType of the given object |
boolean[] |
getRefreshedObjects(Object[] objectsToBeRefreshed,
ConfigSpec docConfigSpec,
ConfigSpec partConfigSpec)
Checks if passed objects match the passed config spec |
protected Map |
getRequiredDependents()
|
List |
getRequiredDependents(Workable obj)
Returns a list of required dependents from the given object |
List |
getRequiredDependentsWithParent()
Returns a list of required dependents with parent |
List |
getSelectedEPMDocuments()
Returns the selected by user EPMDocuments. |
List |
getSelectedEPMDocumentsAndWTParts()
Returns the selected by user objects. |
protected int |
getSelectedNumber()
|
List |
getSelectedWTParts()
Returns the selected by user WTParts. |
protected Workable |
getSharedRefreshCandidate(Workable obj)
|
protected Map |
getSharedRefreshCandidatesMap()
|
protected Map |
getSharedToMap()
|
String |
getWorkspaceContentState(CabinetBased obj)
Returns a workspace content state |
protected Map |
getWsMap()
|
protected boolean |
isAlone(Workable obj)
|
boolean |
isAssociated(Workable obj)
Check if object is an associated |
protected boolean |
isContentHolder(ObjectIdentifier docID)
|
boolean |
isDrawing(Workable obj)
Check if object is drawing |
boolean |
isGeneric(Workable obj)
Check if object is a generic |
boolean |
isInstance(Workable obj)
Check if object is an instance |
protected boolean |
isNewDocument(Workable obj)
|
boolean |
isOptionalDependent(Workable obj)
Check if object is optional dependent |
boolean |
isRequiredDependent(Workable obj)
Check if object is required dependent |
protected boolean |
isSharedTo(Workable obj)
|
boolean |
isUserSelected(Workable obj)
Check if object selected by user |
protected void |
retrieveDrawings(Map masters,
Map drawings)
|
protected void |
retrieveIterations(Class iterCl,
Map masters,
Map mastersHavingGreaterOneIteration)
|
protected void |
retrieveIterationsFromWorkspaceFolder(Map iters,
Map itersFromWorkspaceFolder)
|
protected void |
retrieveLatestIterations(Class iterCl,
Map masters,
Map latests)
|
protected void |
retrieveObjectMaps(List iters,
int enabled_status,
boolean retrieveByBranchId,
Map sharedTo)
|
protected void |
retrieveSelectedIterations(Class iterCl,
List keys)
|
protected void |
retrieveSelectedIterations(List refs)
|
protected void |
setContainer()
|
void |
setWorkspaceContent(QueryResult wsContent)
|
protected void |
traceDependences(List parents,
Map dependents,
Map visited)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final String J01_ND
public static final String J03_ND
public static final String ASSOCIATED_TAG
public static final String DEPENDENT_REQUIRED_TAG
public static final String DEPENDENT_OPTIONAL_TAG
public static final String DRAWING_TAG
public static final String INSTANCES_TAG
public static final String GENERIC_TAG
public static final String DEPENDENT_REQUIRED_ASSOCIATED_TAG
public static final String DEPENDENT_OPTIONAL_ASSOCIATED_TAG
public static final String DRAWING_ASSOCIATED_TAG
public static final String INSTANCE_ASSOCIATED_TAG
public static final String WORKSPACE_OBJ_DEFAULT
public static final int INCLUDE_DEPENDENTS_NONE
public static final int INCLUDE_DEPENDENTS_REQUIRED
public static final int INCLUDE_DEPENDENTS_ALL
public static final int INCLUDE_DRAWINGS_NONE
public static final int INCLUDE_DRAWINGS_SELECTED
public static final int INCLUDE_DRAWINGS_ALL
public static final int INCLUDE_INSTANCES_NONE
public static final int INCLUDE_INSTANCES_SELECTED
public static final int INCLUDE_INSTANCES_ALL
public static final int INCLUDE_BUSINESS_OBJECTS_NONE
public static final int INCLUDE_BUSINESS_OBJECTS_SELECTED
public static final int INCLUDE_BUSINESS_OBJECTS_ALL
static final EPMDocumentType CADDRAWING_TYPE
static final EPMDocumentType CADASSEMBLY_TYPE
static final EPMDocumentType CADCOMPONENT_TYPE
static final int INCLUDE_DEPENDENTS_OPTIONAL
static final int ND_DEP_T_EXTRASSY_COMP
static final int ND_DEP_T_EXTRASSY_PARTL_COMP
static final String EXTERNALSIMPREP
static final String OBJ_ID
static final String MASTER_ID
static final String BRANCH_ID
static final String ROLEA_ID
static final String ROLEB_ID
static final String REQUIRED
static final String LATEST_ITERATION
static final String DOC_TYPE
static final int EPMDOC
static final int WTPART
static final Class[] iterCl
static boolean VERBOSE
static int CHUNK_SIZE
static int AVERAGE_DEPENDENTS
List[] selectedObjs
EPMWorkspace ws
WTContainer container
boolean isProjectLinkContext
boolean isActiveWs
ConfigSpec[] cs
int dependentsMode
int drawingsMode
int instancesMode
int businessMode
Map selectedMap
Map allMap
Map wsMap
Map dependentsMap
Map drawingsMap
Map associatedMap
Map holdersMap
Map instancesMap
Map genericsMap
Map latestsMap
Map mastersHavingGreaterOneIterationMap
Map itersFromWorkspaceFolderMap
Map sharedToMap
Map sharedRefreshCandidatesMap
QueryResult wsContent
Map optionalObjs
Map requiredObjs
Map drawingObjs
Map associatedObjs
Constructor Detail |
public PageServerHelper(Collection a_objs, EPMWorkspace a_ws, boolean a_isActiveWs) throws WTException
public PageServerHelper(Collection a_objs, EPMWorkspace a_ws, boolean a_isActiveWs, int a_dependentsMode, int a_drawingsMode, int a_instancesMode, int a_businessMode) throws WTException
public PageServerHelper(Collection a_selectedObjs, EPMWorkspace a_ws, boolean a_isActiveWs, ConfigSpec a_dcs, ConfigSpec a_pcs, int a_dependentsMode, int a_drawingsMode, int a_instancesMode, int a_businessMode) throws WTException
public PageServerHelper(String selectedOIDs, EPMWorkspace a_ws, boolean a_isActiveWs) throws WTException
public PageServerHelper(String selectedOIDs, EPMWorkspace a_ws, boolean a_isActiveWs, int a_dependentsMode, int a_drawingsMode, int a_instancesMode, int a_businessMode) throws WTException
public PageServerHelper(String selectedOIDs, EPMWorkspace a_ws, boolean a_isActiveWs, ConfigSpec a_dcs, ConfigSpec a_pcs, int a_dependentsMode, int a_drawingsMode, int a_instancesMode, int a_businessMode) throws WTException
Method Detail |
public List getSelectedWTParts()
public List getSelectedEPMDocuments()
public List getSelectedEPMDocumentsAndWTParts()
public List getAllObjects() throws WTException
WTException
public boolean isUserSelected(Workable obj)
public boolean isRequiredDependent(Workable obj) throws WTException
WTException
public boolean isOptionalDependent(Workable obj) throws WTException
WTException
public boolean isDrawing(Workable obj) throws WTException
WTException
public boolean isInstance(Workable obj) throws WTException
WTException
public boolean isGeneric(Workable obj) throws WTException
WTException
public boolean isAssociated(Workable obj) throws WTException
WTException
public String getAssociatedRule(Workable obj) throws WTException
WTException
public List getRequiredDependents(Workable obj) throws WTException
WTException
public List getOptionalDependents(Workable obj) throws WTException
WTException
public List getDrawings(Workable obj) throws WTException
WTException
public List getInstances(Workable obj) throws WTException
WTException
public Workable getGeneric(Workable obj) throws WTException
WTException
public List getBusinessObjects(Workable obj) throws WTException
WTException
public List getRequiredDependentsWithParent() throws WTException
WTException
public List getOptionalDependentsWithParent() throws WTException
WTException
public Map getDependents() throws WTException
WTException
public List getDrawingsWithParent() throws WTException
WTException
public Map getDrawings() throws WTException
WTException
public List getGenericsWithParent() throws WTException
WTException
public Map getGenerics() throws WTException
WTException
public List getInstancesWithParent() throws WTException
WTException
public Map getInstances() throws WTException
WTException
public List getBusinessObjectsWithParentFromSelected() throws WTException
WTException
public List getBusinessObjectsWithParentFromAll() throws WTException
WTException
public Map getBusinessObjects() throws WTException
WTException
public String getPDMObjType(Workable obj) throws WTException
WTException
public int getDocumentType(Workable obj) throws WTException
WTException
public int getPDMObjState(CabinetBased obj)
public String getWorkspaceContentState(CabinetBased obj) throws WTException, WTPropertyVetoException
WTException
WTPropertyVetoException
public boolean[] getRefreshedObjects(Object[] objectsToBeRefreshed, ConfigSpec docConfigSpec, ConfigSpec partConfigSpec) throws WTException
WTException
public void setWorkspaceContent(QueryResult wsContent)
protected List getDependentsWithParent(int a_dependentsMode) throws WTException
WTException
protected Workable getLatestIteration(Workable obj) throws WTException
WTException
protected Map buildLatestsMap() throws WTException
WTException
protected Map buildDrawingsMap() throws WTException
WTException
protected boolean isNewDocument(Workable obj) throws WTException
WTException
protected boolean isSharedTo(Workable obj) throws WTException
WTException
protected Map getSharedToMap() throws WTException
WTException
protected Map buildSharedToMap() throws WTException
WTException
protected Workable getSharedRefreshCandidate(Workable obj) throws WTException
WTException
protected Map getSharedRefreshCandidatesMap() throws WTException
WTException
protected boolean isAlone(Workable obj) throws WTException
WTException
protected Map getMastersHavingGreaterOneIterationMap() throws WTException
WTException
protected Map buildMastersHavingGreaterOneIterationMap() throws WTException
WTException
protected boolean existInWorkspaceFolder(Workable obj) throws WTException
WTException
protected Map getItersFromWorkspaceFolderMap() throws WTException
WTException
protected Map buildItersFromWorkspaceFolderMap() throws WTException
WTException
protected boolean isContentHolder(ObjectIdentifier docID) throws WTException
WTException
protected Map getHolders() throws WTException
WTException
protected int getDocumentType(ObjectIdentifier docID) throws WTException
WTException
protected void buildFamilyMap() throws WTException
WTException
protected Map buildHoldersMap() throws WTException
WTException
public Map buildBusinessObjectsMap() throws WTException
WTException
protected Map buildDependencesMap() throws WTException
WTException
protected void traceDependences(List parents, Map dependents, Map visited) throws WTException
WTException
protected List getDependentFromEPMLinks(List source, Map dependents, Map visited) throws WTException
WTException
protected Map buildAssociatedMap(List[] list) throws WTException
WTException
protected void getAssociatedFromEPMBuildHistory(Map associated, List[] list) throws WTException
WTException
protected void getAssociatedFromEPMBuildRule(Map associated, List[] list) throws WTException
WTException
protected void getAssociatedFromEPMDescribesLink(Map associated, List[] list) throws WTException
WTException
protected List getFromLink(Class linkCl, List source, Class targetCl, boolean isTargetARole) throws WTException
WTException
protected List getFromLink(Class linkCl, List source, Class targetCl, boolean isTargetARole, Map sourceMap) throws WTException
WTException
protected List getFromLink(Class linkCl, List source, Class targetCl, boolean isTargetARole, Map sourceMap, boolean isAll, boolean isLatestOnly) throws WTException
WTException
protected void retrieveSelectedIterations(List refs) throws WTException
WTException
protected void retrieveSelectedIterations(Class iterCl, List keys) throws WTException
WTException
protected void retrieveDrawings(Map masters, Map drawings) throws WTException
WTException
protected void retrieveLatestIterations(Class iterCl, Map masters, Map latests) throws WTException
WTException
protected void buildSelectedMap()
protected void addObjectDependentsList(Workable obj, List dependences, String tag, List dependentsList)
protected ObjectDependentsList createObjectDependentsList(Workable obj, List dependences, String tag)
protected int getSelectedNumber()
protected void setContainer() throws WTException
WTException
protected Map getWsMap() throws WTException
WTException
protected Map buildWsMap() throws WTException
WTException
protected void getFilteredIterations(int indCl, List masters, ConfigSpec configSpec, Map filteredIters) throws WTException
WTException
protected List getDependents(List dep, boolean isRequired)
protected Map getOptionalDependents() throws WTException
WTException
protected Map getRequiredDependents() throws WTException
WTException
protected Map getDrawingObjects() throws WTException
WTException
protected Map getAssociatedObjects() throws WTException
WTException
protected void addToAssociatedObjs(ObjectDependentsList odl)
protected void retrieveObjectMaps(List iters, int enabled_status, boolean retrieveByBranchId, Map sharedTo) throws WTException
WTException
protected void retrieveIterations(Class iterCl, Map masters, Map mastersHavingGreaterOneIteration) throws WTException
WTException
protected void retrieveIterationsFromWorkspaceFolder(Map iters, Map itersFromWorkspaceFolder) throws WTException
WTException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |