com.ptc.windchill.cadx.common.util
Class PageServerHelper

java.lang.Object
  extended bycom.ptc.windchill.cadx.common.util.PageServerHelper

public class PageServerHelper
extends Object


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

J01_ND

public static final String J01_ND
See Also:
Constant Field Values

J03_ND

public static final String J03_ND
See Also:
Constant Field Values

ASSOCIATED_TAG

public static final String ASSOCIATED_TAG
See Also:
Constant Field Values

DEPENDENT_REQUIRED_TAG

public static final String DEPENDENT_REQUIRED_TAG
See Also:
Constant Field Values

DEPENDENT_OPTIONAL_TAG

public static final String DEPENDENT_OPTIONAL_TAG
See Also:
Constant Field Values

DRAWING_TAG

public static final String DRAWING_TAG
See Also:
Constant Field Values

INSTANCES_TAG

public static final String INSTANCES_TAG
See Also:
Constant Field Values

GENERIC_TAG

public static final String GENERIC_TAG
See Also:
Constant Field Values

DEPENDENT_REQUIRED_ASSOCIATED_TAG

public static final String DEPENDENT_REQUIRED_ASSOCIATED_TAG
See Also:
Constant Field Values

DEPENDENT_OPTIONAL_ASSOCIATED_TAG

public static final String DEPENDENT_OPTIONAL_ASSOCIATED_TAG
See Also:
Constant Field Values

DRAWING_ASSOCIATED_TAG

public static final String DRAWING_ASSOCIATED_TAG
See Also:
Constant Field Values

INSTANCE_ASSOCIATED_TAG

public static final String INSTANCE_ASSOCIATED_TAG
See Also:
Constant Field Values

WORKSPACE_OBJ_DEFAULT

public static final String WORKSPACE_OBJ_DEFAULT
See Also:
Constant Field Values

INCLUDE_DEPENDENTS_NONE

public static final int INCLUDE_DEPENDENTS_NONE
See Also:
Constant Field Values

INCLUDE_DEPENDENTS_REQUIRED

public static final int INCLUDE_DEPENDENTS_REQUIRED
See Also:
Constant Field Values

INCLUDE_DEPENDENTS_ALL

public static final int INCLUDE_DEPENDENTS_ALL
See Also:
Constant Field Values

INCLUDE_DRAWINGS_NONE

public static final int INCLUDE_DRAWINGS_NONE
See Also:
Constant Field Values

INCLUDE_DRAWINGS_SELECTED

public static final int INCLUDE_DRAWINGS_SELECTED
See Also:
Constant Field Values

INCLUDE_DRAWINGS_ALL

public static final int INCLUDE_DRAWINGS_ALL
See Also:
Constant Field Values

INCLUDE_INSTANCES_NONE

public static final int INCLUDE_INSTANCES_NONE
See Also:
Constant Field Values

INCLUDE_INSTANCES_SELECTED

public static final int INCLUDE_INSTANCES_SELECTED
See Also:
Constant Field Values

INCLUDE_INSTANCES_ALL

public static final int INCLUDE_INSTANCES_ALL
See Also:
Constant Field Values

INCLUDE_BUSINESS_OBJECTS_NONE

public static final int INCLUDE_BUSINESS_OBJECTS_NONE
See Also:
Constant Field Values

INCLUDE_BUSINESS_OBJECTS_SELECTED

public static final int INCLUDE_BUSINESS_OBJECTS_SELECTED
See Also:
Constant Field Values

INCLUDE_BUSINESS_OBJECTS_ALL

public static final int INCLUDE_BUSINESS_OBJECTS_ALL
See Also:
Constant Field Values

CADDRAWING_TYPE

static final EPMDocumentType CADDRAWING_TYPE

CADASSEMBLY_TYPE

static final EPMDocumentType CADASSEMBLY_TYPE

CADCOMPONENT_TYPE

static final EPMDocumentType CADCOMPONENT_TYPE

INCLUDE_DEPENDENTS_OPTIONAL

static final int INCLUDE_DEPENDENTS_OPTIONAL
See Also:
Constant Field Values

ND_DEP_T_EXTRASSY_COMP

static final int ND_DEP_T_EXTRASSY_COMP
See Also:
Constant Field Values

ND_DEP_T_EXTRASSY_PARTL_COMP

static final int ND_DEP_T_EXTRASSY_PARTL_COMP
See Also:
Constant Field Values

EXTERNALSIMPREP

static final String EXTERNALSIMPREP
See Also:
Constant Field Values

OBJ_ID

static final String OBJ_ID
See Also:
Constant Field Values

MASTER_ID

static final String MASTER_ID
See Also:
Constant Field Values

BRANCH_ID

static final String BRANCH_ID
See Also:
Constant Field Values

ROLEA_ID

static final String ROLEA_ID
See Also:
Constant Field Values

ROLEB_ID

static final String ROLEB_ID
See Also:
Constant Field Values

REQUIRED

static final String REQUIRED
See Also:
Constant Field Values

LATEST_ITERATION

static final String LATEST_ITERATION
See Also:
Constant Field Values

DOC_TYPE

static final String DOC_TYPE
See Also:
Constant Field Values

EPMDOC

static final int EPMDOC
See Also:
Constant Field Values

WTPART

static final int WTPART
See Also:
Constant Field Values

iterCl

static final Class[] iterCl

VERBOSE

static boolean VERBOSE

CHUNK_SIZE

static int CHUNK_SIZE

AVERAGE_DEPENDENTS

static int AVERAGE_DEPENDENTS

selectedObjs

List[] selectedObjs

ws

EPMWorkspace ws

container

WTContainer container

isProjectLinkContext

boolean isProjectLinkContext

isActiveWs

boolean isActiveWs

cs

ConfigSpec[] cs

dependentsMode

int dependentsMode

drawingsMode

int drawingsMode

instancesMode

int instancesMode

businessMode

int businessMode

selectedMap

Map selectedMap

allMap

Map allMap

wsMap

Map wsMap

dependentsMap

Map dependentsMap

drawingsMap

Map drawingsMap

associatedMap

Map associatedMap

holdersMap

Map holdersMap

instancesMap

Map instancesMap

genericsMap

Map genericsMap

latestsMap

Map latestsMap

mastersHavingGreaterOneIterationMap

Map mastersHavingGreaterOneIterationMap

itersFromWorkspaceFolderMap

Map itersFromWorkspaceFolderMap

sharedToMap

Map sharedToMap

sharedRefreshCandidatesMap

Map sharedRefreshCandidatesMap

wsContent

QueryResult wsContent

optionalObjs

Map optionalObjs

requiredObjs

Map requiredObjs

drawingObjs

Map drawingObjs

associatedObjs

Map associatedObjs
Constructor Detail

PageServerHelper

public PageServerHelper(Collection a_objs,
                        EPMWorkspace a_ws,
                        boolean a_isActiveWs)
                 throws WTException
constructors


PageServerHelper

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

PageServerHelper

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

PageServerHelper

public PageServerHelper(String selectedOIDs,
                        EPMWorkspace a_ws,
                        boolean a_isActiveWs)
                 throws WTException

PageServerHelper

public PageServerHelper(String selectedOIDs,
                        EPMWorkspace a_ws,
                        boolean a_isActiveWs,
                        int a_dependentsMode,
                        int a_drawingsMode,
                        int a_instancesMode,
                        int a_businessMode)
                 throws WTException

PageServerHelper

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

getSelectedWTParts

public List getSelectedWTParts()
Returns the selected by user WTParts.

Returns:
List of WTParts

getSelectedEPMDocuments

public List getSelectedEPMDocuments()
Returns the selected by user EPMDocuments.

Returns:
List of EPMDocuments

getSelectedEPMDocumentsAndWTParts

public List getSelectedEPMDocumentsAndWTParts()
Returns the selected by user objects.

Returns:
List of objects

getAllObjects

public List getAllObjects()
                   throws WTException
Returns all built objects including dependents, drawings, instances, generics, associated objects

Returns:
List of all built objects
Throws:
WTException

isUserSelected

public boolean isUserSelected(Workable obj)
Check if object selected by user

Returns:
true, if selected by user

isRequiredDependent

public boolean isRequiredDependent(Workable obj)
                            throws WTException
Check if object is required dependent

Returns:
true, if object is required dependent
Throws:
WTException

isOptionalDependent

public boolean isOptionalDependent(Workable obj)
                            throws WTException
Check if object is optional dependent

Returns:
true, if object is optional dependent
Throws:
WTException

isDrawing

public boolean isDrawing(Workable obj)
                  throws WTException
Check if object is drawing

Returns:
true, if object is drawing
Throws:
WTException

isInstance

public boolean isInstance(Workable obj)
                   throws WTException
Check if object is an instance

Returns:
true, if object is an instance
Throws:
WTException

isGeneric

public boolean isGeneric(Workable obj)
                  throws WTException
Check if object is a generic

Returns:
true, if object is a generic
Throws:
WTException

isAssociated

public boolean isAssociated(Workable obj)
                     throws WTException
Check if object is an associated

Returns:
true, if object is an associated
Throws:
WTException

getAssociatedRule

public String getAssociatedRule(Workable obj)
                         throws WTException
Returns ruel of associated object: ASSOCIATED_TAG DEPENDENT_REQUIRED_ASSOCIATED_TAG DEPENDENT_OPTIONAL_ASSOCIATED_TAG DRAWING_ASSOCIATED_TAG INSTANCE_ASSOCIATED_TAG

Returns:
String
Throws:
WTException

getRequiredDependents

public List getRequiredDependents(Workable obj)
                           throws WTException
Returns a list of required dependents from the given object

Returns:
List of required dependents of the given object
Throws:
WTException

getOptionalDependents

public List getOptionalDependents(Workable obj)
                           throws WTException
Returns a list of optional dependents from the given object

Returns:
List of optional dependents of the given object
Throws:
WTException

getDrawings

public List getDrawings(Workable obj)
                 throws WTException
Returns a list of drawings from the given object

Returns:
List of drawings of the given object
Throws:
WTException

getInstances

public List getInstances(Workable obj)
                  throws WTException
Returns a list of instances from the given generic

Returns:
List of instances of the given generic
Throws:
WTException

getGeneric

public Workable getGeneric(Workable obj)
                    throws WTException
Returns a generic from the given instance

Returns:
Workable generic of the given instance
Throws:
WTException

getBusinessObjects

public List getBusinessObjects(Workable obj)
                        throws WTException
Returns a list of associated with the given object

Returns:
List of associated with the given object
Throws:
WTException

getRequiredDependentsWithParent

public List getRequiredDependentsWithParent()
                                     throws WTException
Returns a list of required dependents with parent

Returns:
List of items where an item is ObjectDependentsList
Throws:
WTException

getOptionalDependentsWithParent

public List getOptionalDependentsWithParent()
                                     throws WTException
Returns a list of optional dependents with parent

Returns:
List of items where an item is ObjectDependentsList
Throws:
WTException

getDependents

public Map getDependents()
                  throws WTException
Returns a map of dependents, where key is ObjectIdentifier of parent value is List of items, where item is DependentObject

Returns:
Map of dependents
Throws:
WTException

getDrawingsWithParent

public List getDrawingsWithParent()
                           throws WTException
Returns a list of drawings with parent

Returns:
List of items, where an item is ObjectDependentsList
Throws:
WTException

getDrawings

public Map getDrawings()
                throws WTException
Returns a map of dependents, where key is ObjectIdentifier of parent value is List of items, where item is a drawing

Returns:
Map of dependents
Throws:
WTException

getGenericsWithParent

public List getGenericsWithParent()
                           throws WTException
Returns a list of instances with generic parent

Returns:
List of items, where an item is ObjectDependentsList
Throws:
WTException

getGenerics

public Map getGenerics()
                throws WTException
Returns a map of generics, where key is ObjectIdentifier of generic value is FamilyInfo object

Returns:
Map of generics
Throws:
WTException

getInstancesWithParent

public List getInstancesWithParent()
                            throws WTException
Returns a list of instances

Returns:
List of items, where an item is ObjectDependentsList
Throws:
WTException

getInstances

public Map getInstances()
                 throws WTException
Returns a map of instances, where key is ObjectIdentifier of instance value is FamilyInfo object

Returns:
Map of instances
Throws:
WTException

getBusinessObjectsWithParentFromSelected

public List getBusinessObjectsWithParentFromSelected()
                                              throws WTException
Returns a list of associated with parent from selected by user objects

Returns:
List of items, where an item is ObjectDependentsList
Throws:
WTException

getBusinessObjectsWithParentFromAll

public List getBusinessObjectsWithParentFromAll()
                                         throws WTException
Returns a list of associated with parent from all objects

Returns:
List of items, where an item is ObjectDependentsList
Throws:
WTException

getBusinessObjects

public Map getBusinessObjects()
                       throws WTException
Returns a map of associated, where key is ObjectIdentifier of object value is List of associated with it

Returns:
Map of associated
Throws:
WTException

getPDMObjType

public String getPDMObjType(Workable obj)
                     throws WTException
Returns a PDMObjType of the given object

Returns:
String PDMObjType
Throws:
WTException

getDocumentType

public int getDocumentType(Workable obj)
                    throws WTException
Returns a DocumentType of the given object

Returns:
int document type
Throws:
WTException

getPDMObjState

public int getPDMObjState(CabinetBased obj)

getWorkspaceContentState

public String getWorkspaceContentState(CabinetBased obj)
                                throws WTException,
                                       WTPropertyVetoException
Returns a workspace content state

Returns:
String workspace content state
Throws:
WTException
WTPropertyVetoException

getRefreshedObjects

public boolean[] getRefreshedObjects(Object[] objectsToBeRefreshed,
                                     ConfigSpec docConfigSpec,
                                     ConfigSpec partConfigSpec)
                              throws WTException
Checks if passed objects match the passed config spec

Returns:
Array of boolean: true if object matchs to passed config spec, else false
Throws:
WTException

setWorkspaceContent

public void setWorkspaceContent(QueryResult wsContent)

getDependentsWithParent

protected List getDependentsWithParent(int a_dependentsMode)
                                throws WTException
protected methods

Throws:
WTException

getLatestIteration

protected Workable getLatestIteration(Workable obj)
                               throws WTException
Throws:
WTException

buildLatestsMap

protected Map buildLatestsMap()
                       throws WTException
Throws:
WTException

buildDrawingsMap

protected Map buildDrawingsMap()
                        throws WTException
Throws:
WTException

isNewDocument

protected boolean isNewDocument(Workable obj)
                         throws WTException
Throws:
WTException

isSharedTo

protected boolean isSharedTo(Workable obj)
                      throws WTException
Throws:
WTException

getSharedToMap

protected Map getSharedToMap()
                      throws WTException
Throws:
WTException

buildSharedToMap

protected Map buildSharedToMap()
                        throws WTException
Throws:
WTException

getSharedRefreshCandidate

protected Workable getSharedRefreshCandidate(Workable obj)
                                      throws WTException
Throws:
WTException

getSharedRefreshCandidatesMap

protected Map getSharedRefreshCandidatesMap()
                                     throws WTException
Throws:
WTException

isAlone

protected boolean isAlone(Workable obj)
                   throws WTException
Throws:
WTException

getMastersHavingGreaterOneIterationMap

protected Map getMastersHavingGreaterOneIterationMap()
                                              throws WTException
Throws:
WTException

buildMastersHavingGreaterOneIterationMap

protected Map buildMastersHavingGreaterOneIterationMap()
                                                throws WTException
Throws:
WTException

existInWorkspaceFolder

protected boolean existInWorkspaceFolder(Workable obj)
                                  throws WTException
Throws:
WTException

getItersFromWorkspaceFolderMap

protected Map getItersFromWorkspaceFolderMap()
                                      throws WTException
Throws:
WTException

buildItersFromWorkspaceFolderMap

protected Map buildItersFromWorkspaceFolderMap()
                                        throws WTException
Throws:
WTException

isContentHolder

protected boolean isContentHolder(ObjectIdentifier docID)
                           throws WTException
Throws:
WTException

getHolders

protected Map getHolders()
                  throws WTException
Throws:
WTException

getDocumentType

protected int getDocumentType(ObjectIdentifier docID)
                       throws WTException
Throws:
WTException

buildFamilyMap

protected void buildFamilyMap()
                       throws WTException
Throws:
WTException

buildHoldersMap

protected Map buildHoldersMap()
                       throws WTException
Throws:
WTException

buildBusinessObjectsMap

public Map buildBusinessObjectsMap()
                            throws WTException
Throws:
WTException

buildDependencesMap

protected Map buildDependencesMap()
                           throws WTException
Throws:
WTException

traceDependences

protected void traceDependences(List parents,
                                Map dependents,
                                Map visited)
                         throws WTException
Throws:
WTException

getDependentFromEPMLinks

protected List getDependentFromEPMLinks(List source,
                                        Map dependents,
                                        Map visited)
                                 throws WTException
Throws:
WTException

buildAssociatedMap

protected Map buildAssociatedMap(List[] list)
                          throws WTException
Throws:
WTException

getAssociatedFromEPMBuildHistory

protected void getAssociatedFromEPMBuildHistory(Map associated,
                                                List[] list)
                                         throws WTException
Throws:
WTException

getAssociatedFromEPMBuildRule

protected void getAssociatedFromEPMBuildRule(Map associated,
                                             List[] list)
                                      throws WTException
Throws:
WTException

getAssociatedFromEPMDescribesLink

protected void getAssociatedFromEPMDescribesLink(Map associated,
                                                 List[] list)
                                          throws WTException
Throws:
WTException

getFromLink

protected List getFromLink(Class linkCl,
                           List source,
                           Class targetCl,
                           boolean isTargetARole)
                    throws WTException
Throws:
WTException

getFromLink

protected List getFromLink(Class linkCl,
                           List source,
                           Class targetCl,
                           boolean isTargetARole,
                           Map sourceMap)
                    throws WTException
Throws:
WTException

getFromLink

protected List getFromLink(Class linkCl,
                           List source,
                           Class targetCl,
                           boolean isTargetARole,
                           Map sourceMap,
                           boolean isAll,
                           boolean isLatestOnly)
                    throws WTException
Throws:
WTException

retrieveSelectedIterations

protected void retrieveSelectedIterations(List refs)
                                   throws WTException
Throws:
WTException

retrieveSelectedIterations

protected void retrieveSelectedIterations(Class iterCl,
                                          List keys)
                                   throws WTException
Throws:
WTException

retrieveDrawings

protected void retrieveDrawings(Map masters,
                                Map drawings)
                         throws WTException
Throws:
WTException

retrieveLatestIterations

protected void retrieveLatestIterations(Class iterCl,
                                        Map masters,
                                        Map latests)
                                 throws WTException
Throws:
WTException

buildSelectedMap

protected void buildSelectedMap()

addObjectDependentsList

protected void addObjectDependentsList(Workable obj,
                                       List dependences,
                                       String tag,
                                       List dependentsList)

createObjectDependentsList

protected ObjectDependentsList createObjectDependentsList(Workable obj,
                                                          List dependences,
                                                          String tag)

getSelectedNumber

protected int getSelectedNumber()

setContainer

protected void setContainer()
                     throws WTException
Throws:
WTException

getWsMap

protected Map getWsMap()
                throws WTException
Throws:
WTException

buildWsMap

protected Map buildWsMap()
                  throws WTException
Throws:
WTException

getFilteredIterations

protected void getFilteredIterations(int indCl,
                                     List masters,
                                     ConfigSpec configSpec,
                                     Map filteredIters)
                              throws WTException
Throws:
WTException

getDependents

protected List getDependents(List dep,
                             boolean isRequired)

getOptionalDependents

protected Map getOptionalDependents()
                             throws WTException
Throws:
WTException

getRequiredDependents

protected Map getRequiredDependents()
                             throws WTException
Throws:
WTException

getDrawingObjects

protected Map getDrawingObjects()
                         throws WTException
Throws:
WTException

getAssociatedObjects

protected Map getAssociatedObjects()
                            throws WTException
Throws:
WTException

addToAssociatedObjs

protected void addToAssociatedObjs(ObjectDependentsList odl)

retrieveObjectMaps

protected void retrieveObjectMaps(List iters,
                                  int enabled_status,
                                  boolean retrieveByBranchId,
                                  Map sharedTo)
                           throws WTException
Throws:
WTException

retrieveIterations

protected void retrieveIterations(Class iterCl,
                                  Map masters,
                                  Map mastersHavingGreaterOneIteration)
                           throws WTException
Throws:
WTException

retrieveIterationsFromWorkspaceFolder

protected void retrieveIterationsFromWorkspaceFolder(Map iters,
                                                     Map itersFromWorkspaceFolder)
                                              throws WTException
Throws:
WTException