com.ptc.wvs.server.loader
Class PartGenericStructure

java.lang.Object
  extended bycom.ptc.wvs.server.loader.PartGenericStructure

public class PartGenericStructure
extends Object


Field Summary
private  Folder checkoutFolder
           
private  boolean creatingForRepresentation
           
private static String ED_SPACE
           
private static String epmPropGroup
           
private static String epmPropGroupSkip
           
private static String gatewayURL
           
private static boolean includeEPMProperties
           
private  boolean includeMasters
           
private static boolean includePartMastersDefault
           
private static String jspPartStructure
           
private  int levelCount
           
private  int nLevels
           
private  Cache nodeCache
           
private  int occurrenceIDCount
           
private  ConfigSpec partConfig
           
static String PARTPATHOCC_NAME
           
static String PARTPATHOCC_OBJECT_ID
           
private static String partPropGroup
           
static String PARTSERIALNUMBER
           
static String PARTUSESOCC_NAME
           
static String PARTUSESOCC_OBJECT_ID
           
private  CabinetReference personalCabinet
           
private  WTProductConfiguration productConfig
           
private  WTProductInstance2 productInst
           
private  boolean propsOnRoot
           
private  boolean recursive
           
private  DefaultMutableTreeNode root
           
private  WTProduct rootProduct
           
private  String sessionId
           
private static boolean SHOW_PROP_PAGE_LINK
           
private  boolean skipCheckOut
           
private  WTPrincipal user
           
private static boolean VERBOSE
           
 
Constructor Summary
PartGenericStructure()
           
 
Method Summary
static void addNonBuiltParts(DefaultMutableTreeNode n, Representable p, ConfigSpec partConfig)
           
private  void addPartLink(DefaultMutableTreeNode parent, Persistable part)
           
private  void addPartMaster(DefaultMutableTreeNode parent, WTPartUsageLink parentLink, PartUsesOccurrence parentUses, PartPathOccurrence parentPath, WTPartMaster pm, int siblingNumber)
           
private  void addRootProperties(Hashtable p, WTPart part)
           
private  void addUpdateLocationLink(Hashtable p, WTPartUsageLink partLink, String occID)
           
static WTPart copyTransformData(WTPart part, DefaultMutableTreeNode rootNode, boolean over, int levels)
           
 Folder getCheckoutFolder()
           
 ConfigSpec getConfigSpec()
           
private  ConfigSpec getConfigSpec(WTProductInstance2 productInstance)
           
private  WTPart getInstancedPartObject(WTProductInstance2 productInstance, WTPartMaster partMaster)
           
private  WTPart getInstancedPartObject(WTSerialNumberedPartInstance partInstance, WTPartMaster partMaster)
           
 int getNumberOfLevels()
           
private  WTPart getOverridePart(PartPathOccurrence pathOccurrence)
           
private  WTSerialNumberedPartInstance getOverridePartInstance(PartPathOccurrence pathOccurrence)
           
private  WTProductInstance2 getOverrideProductInstance(PartPathOccurrence pathOccurrence)
           
static String getPartStructureED(Persistable p, ConfigSpec partConfigSpec, String configString, WTContainerRef currentContainer, int levels, HTTPResponse response, String sid)
           
static String getPartStructureED(Persistable p, ConfigSpec partConfigSpec, String configString, WTContainerRef currentContainer, WTPart startPart, PartPathOccurrence startPath, int levels, HTTPResponse response, String sid)
           
static String getPartStructureED(Persistable p, ConfigSpec partConfigSpec, String configString, WTContainerRef currentContainer, WTPart startPart, PartPathOccurrence startPath, int levels, HTTPResponse response, String sid, DefaultMutableTreeNode[] rootArray)
           
 CabinetReference getPersonalCabinet()
           
 WTPrincipal getPrincipal()
           
 WTProductConfiguration getProductConfiguration()
           
 WTProductInstance2 getProductInstance()
           
 DefaultMutableTreeNode getRoot()
           
 WTProduct getRootProduct()
           
 String getSessionId()
           
 boolean isCreatingForRepresentation()
           
 boolean isIncludeMasters()
           
 boolean isPropsOnRoot()
           
 boolean isRecursive()
           
 boolean isSkipCheckOut()
           
static void printMemoryStatus()
           
private  DefaultMutableTreeNode readStructure(DefaultMutableTreeNode parentNode, WTPartUsageLink parentLink, PartUsesOccurrence parentUses, PartPathOccurrence parentPath, String parentSerialNumber, WTPart part, WTProductInstance2 currentProductInstance, int siblingNumber)
           
 void readStructure(WTPart part)
          reading of WTPart structure into node structure
 void readStructure(WTPart part, WTPart startPart, PartPathOccurrence startPath)
           
private  PartUsesOccurrence saveOccurrence(WTPartUsageLink partLink, QueryResult occ, DefaultMutableTreeNode n, String unit, int count)
           
 void setConfigSpec(ConfigSpec c)
           
 void setCreatingForRepresentation(boolean b)
           
 void setIncludeMasters(boolean b)
           
private  void setInstanceProperties(Hashtable p, WTPartUsageLink plink, PartUsesOccurrence puo, PartPathOccurrence ppo, String ser, int siblingNumber)
           
 void setNumberOfLevels(int c)
           
 void setPrincipalInfo()
           
 void setProductConfiguration(WTProductConfiguration c)
           
 void setProductInstance(WTProductInstance2 c)
           
 void setPropsOnRoot(boolean b)
           
 void setRecursive(boolean b)
           
 void setRootProduct(WTProduct c)
           
 void setSessionId(String s)
           
 void setSkipCheckOut(boolean b)
           
 PartUsesOccurrence updateStructureTransform(WTPartUsageLink partLink, PartUsesOccurrence partOcc, String location, String units)
          populate WTPart structure with orientations
static PartUsesOccurrence updateTransformData(WTPartUsageLink partLink, PartUsesOccurrence partOcc, String location, String units)
           
 WTPart writeStructureTransform(WTPart part, DefaultMutableTreeNode n)
           
private  WTPart writeStructureTransformInternal(WTPart part, DefaultMutableTreeNode n)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PARTUSESOCC_OBJECT_ID

public static final String PARTUSESOCC_OBJECT_ID
See Also:
Constant Field Values

PARTUSESOCC_NAME

public static final String PARTUSESOCC_NAME
See Also:
Constant Field Values

PARTPATHOCC_OBJECT_ID

public static final String PARTPATHOCC_OBJECT_ID
See Also:
Constant Field Values

PARTPATHOCC_NAME

public static final String PARTPATHOCC_NAME
See Also:
Constant Field Values

PARTSERIALNUMBER

public static final String PARTSERIALNUMBER
See Also:
Constant Field Values

ED_SPACE

private static final String ED_SPACE
See Also:
Constant Field Values

VERBOSE

private static boolean VERBOSE

SHOW_PROP_PAGE_LINK

private static boolean SHOW_PROP_PAGE_LINK

includePartMastersDefault

private static boolean includePartMastersDefault

includeEPMProperties

private static boolean includeEPMProperties

jspPartStructure

private static String jspPartStructure

epmPropGroup

private static String epmPropGroup

partPropGroup

private static String partPropGroup

epmPropGroupSkip

private static String epmPropGroupSkip

gatewayURL

private static String gatewayURL

recursive

private boolean recursive

propsOnRoot

private boolean propsOnRoot

creatingForRepresentation

private boolean creatingForRepresentation

includeMasters

private boolean includeMasters

root

private DefaultMutableTreeNode root

partConfig

private ConfigSpec partConfig

productConfig

private WTProductConfiguration productConfig

productInst

private WTProductInstance2 productInst

rootProduct

private WTProduct rootProduct

nLevels

private int nLevels

levelCount

private int levelCount

sessionId

private String sessionId

user

private WTPrincipal user

personalCabinet

private CabinetReference personalCabinet

checkoutFolder

private Folder checkoutFolder

skipCheckOut

private boolean skipCheckOut

nodeCache

private Cache nodeCache

occurrenceIDCount

private int occurrenceIDCount
Constructor Detail

PartGenericStructure

public PartGenericStructure()
Method Detail

getRoot

public DefaultMutableTreeNode getRoot()

setRecursive

public void setRecursive(boolean b)

isRecursive

public boolean isRecursive()

setPropsOnRoot

public void setPropsOnRoot(boolean b)

isPropsOnRoot

public boolean isPropsOnRoot()

setCreatingForRepresentation

public void setCreatingForRepresentation(boolean b)

isCreatingForRepresentation

public boolean isCreatingForRepresentation()

setSkipCheckOut

public void setSkipCheckOut(boolean b)

isSkipCheckOut

public boolean isSkipCheckOut()

setIncludeMasters

public void setIncludeMasters(boolean b)

isIncludeMasters

public boolean isIncludeMasters()

setConfigSpec

public void setConfigSpec(ConfigSpec c)

getConfigSpec

public ConfigSpec getConfigSpec()

setProductConfiguration

public void setProductConfiguration(WTProductConfiguration c)

getProductConfiguration

public WTProductConfiguration getProductConfiguration()

setProductInstance

public void setProductInstance(WTProductInstance2 c)

getProductInstance

public WTProductInstance2 getProductInstance()

setRootProduct

public void setRootProduct(WTProduct c)

getRootProduct

public WTProduct getRootProduct()

setNumberOfLevels

public void setNumberOfLevels(int c)

getNumberOfLevels

public int getNumberOfLevels()

setSessionId

public void setSessionId(String s)

getSessionId

public String getSessionId()

setPrincipalInfo

public void setPrincipalInfo()

getPrincipal

public WTPrincipal getPrincipal()

getPersonalCabinet

public CabinetReference getPersonalCabinet()

getCheckoutFolder

public Folder getCheckoutFolder()

addNonBuiltParts

public static void addNonBuiltParts(DefaultMutableTreeNode n,
                                    Representable p,
                                    ConfigSpec partConfig)

getPartStructureED

public static String getPartStructureED(Persistable p,
                                        ConfigSpec partConfigSpec,
                                        String configString,
                                        WTContainerRef currentContainer,
                                        int levels,
                                        HTTPResponse response,
                                        String sid)

getPartStructureED

public static String getPartStructureED(Persistable p,
                                        ConfigSpec partConfigSpec,
                                        String configString,
                                        WTContainerRef currentContainer,
                                        WTPart startPart,
                                        PartPathOccurrence startPath,
                                        int levels,
                                        HTTPResponse response,
                                        String sid)

getPartStructureED

public static String getPartStructureED(Persistable p,
                                        ConfigSpec partConfigSpec,
                                        String configString,
                                        WTContainerRef currentContainer,
                                        WTPart startPart,
                                        PartPathOccurrence startPath,
                                        int levels,
                                        HTTPResponse response,
                                        String sid,
                                        DefaultMutableTreeNode[] rootArray)

copyTransformData

public static WTPart copyTransformData(WTPart part,
                                       DefaultMutableTreeNode rootNode,
                                       boolean over,
                                       int levels)

updateTransformData

public static PartUsesOccurrence updateTransformData(WTPartUsageLink partLink,
                                                     PartUsesOccurrence partOcc,
                                                     String location,
                                                     String units)

updateStructureTransform

public PartUsesOccurrence updateStructureTransform(WTPartUsageLink partLink,
                                                   PartUsesOccurrence partOcc,
                                                   String location,
                                                   String units)
populate WTPart structure with orientations


writeStructureTransform

public WTPart writeStructureTransform(WTPart part,
                                      DefaultMutableTreeNode n)

writeStructureTransformInternal

private WTPart writeStructureTransformInternal(WTPart part,
                                               DefaultMutableTreeNode n)

saveOccurrence

private PartUsesOccurrence saveOccurrence(WTPartUsageLink partLink,
                                          QueryResult occ,
                                          DefaultMutableTreeNode n,
                                          String unit,
                                          int count)

readStructure

public void readStructure(WTPart part)
reading of WTPart structure into node structure


readStructure

public void readStructure(WTPart part,
                          WTPart startPart,
                          PartPathOccurrence startPath)

readStructure

private DefaultMutableTreeNode readStructure(DefaultMutableTreeNode parentNode,
                                             WTPartUsageLink parentLink,
                                             PartUsesOccurrence parentUses,
                                             PartPathOccurrence parentPath,
                                             String parentSerialNumber,
                                             WTPart part,
                                             WTProductInstance2 currentProductInstance,
                                             int siblingNumber)

setInstanceProperties

private void setInstanceProperties(Hashtable p,
                                   WTPartUsageLink plink,
                                   PartUsesOccurrence puo,
                                   PartPathOccurrence ppo,
                                   String ser,
                                   int siblingNumber)

addUpdateLocationLink

private void addUpdateLocationLink(Hashtable p,
                                   WTPartUsageLink partLink,
                                   String occID)

addPartLink

private void addPartLink(DefaultMutableTreeNode parent,
                         Persistable part)

addPartMaster

private void addPartMaster(DefaultMutableTreeNode parent,
                           WTPartUsageLink parentLink,
                           PartUsesOccurrence parentUses,
                           PartPathOccurrence parentPath,
                           WTPartMaster pm,
                           int siblingNumber)

addRootProperties

private void addRootProperties(Hashtable p,
                               WTPart part)

printMemoryStatus

public static void printMemoryStatus()

getOverridePart

private WTPart getOverridePart(PartPathOccurrence pathOccurrence)
                        throws WTException
Throws:
WTException

getOverridePartInstance

private WTSerialNumberedPartInstance getOverridePartInstance(PartPathOccurrence pathOccurrence)
                                                      throws WTException
Throws:
WTException

getOverrideProductInstance

private WTProductInstance2 getOverrideProductInstance(PartPathOccurrence pathOccurrence)
                                               throws WTException
Throws:
WTException

getInstancedPartObject

private WTPart getInstancedPartObject(WTProductInstance2 productInstance,
                                      WTPartMaster partMaster)
                               throws WTException
Throws:
WTException

getInstancedPartObject

private WTPart getInstancedPartObject(WTSerialNumberedPartInstance partInstance,
                                      WTPartMaster partMaster)
                               throws WTException
Throws:
WTException

getConfigSpec

private ConfigSpec getConfigSpec(WTProductInstance2 productInstance)
                          throws WTException
Throws:
WTException