com.ptc.wvs.server.loader
Class EDRHelper

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

public class EDRHelper
extends Object


Field Summary
private static boolean editClipLocation
           
private static String editLabel
           
private static String editLink
           
private static boolean editPartLocation
           
static int EPM
           
static int EPM_PLUS_PARTS
           
static int NONE
           
static int PART
           
static int PART_AND_EPM
           
private static String RESOURCE
           
private static boolean SERVER
           
static GraphicsServerLoaderService service
           
private static boolean VERBOSE
           
private static WVSProperties wvsProperties
           
 
Constructor Summary
EDRHelper()
           
 
Method Summary
static ApplicationData addFile(ContentHolder doc, String directory, String filename, String filenameWC, String description, boolean isED, boolean isThumbnail, boolean isEDZ)
           
static ApplicationData addFile(ContentHolder doc, String directory, String filename, String filenameWC, String description, boolean isED, boolean isThumbnail, boolean isEDZ, boolean isPrimary)
           
static ApplicationData addFile(ContentHolder doc, String directory, String filename, String filenameWC, String description, boolean isED, boolean isThumbnail, boolean isEDZ, boolean isPrimary, boolean is3DThumbnail)
           
static Workable[] checkin(Workable[] objects, String type)
           
static Workable checkin(Workable object, String type)
           
static Workable checkout(Workable object, String type)
           
static Workable checkout(Workable object, String type, Folder checkoutFolder)
           
static void copyMarkupsFromPreviousIteration(Representable part, Representation newRep, Vector newMarkupSavedVector)
           
static Workable createNextIterationVersionK(Workable object, String type, String version, boolean keepFiles, String description, String title)
           
static boolean doesDirectoryExist(boolean checkWrite, String directory)
           
static boolean doesDirectoryExist(String directory)
           
static boolean doesFolderExist(String folder)
           
static boolean doesLifeCycleExist(String lifeCycle)
           
static boolean doesProjectExist(String project)
           
static Representation endCreateRepresentation(Representable part, Representation newRep, boolean repDefault)
           
static Representation endCreateRepresentation(Representable part, Representation newRep, boolean repDefault, Vector newMarkupSavedVector)
           
static String getEditLocationLabel()
           
static String getEditLocationLink(boolean partLocation)
           
static WTContainer getWTContainerByName(String InName)
           
static WTDocument getWTDocumentByNumber(String number, String revision, WTContainer container)
           
static Foldered setFolder(Foldered object, String folder)
           
static LifeCycleManaged setLifeCycle(LifeCycleManaged object, String lifecycle)
           
static TeamManaged setProject(TeamManaged object, String project)
           
static Versioned setVersion(Versioned object, String version)
           
static Versioned setVersionPlus(Versioned object, String version)
           
static Representation startCreateRepresentation(Representable part, RepresentationContributor doc, ConfigSpec configSpec, ConfigSpec partConfigSpec, String repName, String repDesc, int structureType)
           
static Representation startCreateRepresentation(Representable part, RepresentationContributor doc, ConfigSpec configSpec, ConfigSpec partConfigSpec, String repName, String repDesc, int structureType, String cadPartName, String cadFormName, boolean isPosAssy)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

service

public static final GraphicsServerLoaderService service

NONE

public static final int NONE
See Also:
Constant Field Values

EPM

public static final int EPM
See Also:
Constant Field Values

PART

public static final int PART
See Also:
Constant Field Values

EPM_PLUS_PARTS

public static final int EPM_PLUS_PARTS
See Also:
Constant Field Values

PART_AND_EPM

public static final int PART_AND_EPM
See Also:
Constant Field Values

RESOURCE

private static final String RESOURCE
See Also:
Constant Field Values

SERVER

private static final boolean SERVER

wvsProperties

private static WVSProperties wvsProperties

VERBOSE

private static boolean VERBOSE

editPartLocation

private static boolean editPartLocation

editClipLocation

private static boolean editClipLocation

editLink

private static String editLink

editLabel

private static String editLabel
Constructor Detail

EDRHelper

public EDRHelper()
Method Detail

getEditLocationLink

public static String getEditLocationLink(boolean partLocation)

getEditLocationLabel

public static String getEditLocationLabel()

createNextIterationVersionK

public static Workable createNextIterationVersionK(Workable object,
                                                   String type,
                                                   String version,
                                                   boolean keepFiles,
                                                   String description,
                                                   String title)
                                            throws WTException,
                                                   WTPropertyVetoException
Throws:
WTException
WTPropertyVetoException

setFolder

public static Foldered setFolder(Foldered object,
                                 String folder)
                          throws WTException
Throws:
WTException

setProject

public static TeamManaged setProject(TeamManaged object,
                                     String project)

setLifeCycle

public static LifeCycleManaged setLifeCycle(LifeCycleManaged object,
                                            String lifecycle)

setVersionPlus

public static Versioned setVersionPlus(Versioned object,
                                       String version)

setVersion

public static Versioned setVersion(Versioned object,
                                   String version)

checkout

public static Workable checkout(Workable object,
                                String type)
                         throws WTException,
                                WTPropertyVetoException
Throws:
WTException
WTPropertyVetoException

checkout

public static Workable checkout(Workable object,
                                String type,
                                Folder checkoutFolder)
                         throws WTException,
                                WTPropertyVetoException
Throws:
WTException
WTPropertyVetoException

checkin

public static Workable checkin(Workable object,
                               String type)
                        throws WTException,
                               WTPropertyVetoException
Throws:
WTException
WTPropertyVetoException

checkin

public static Workable[] checkin(Workable[] objects,
                                 String type)
                          throws WTException,
                                 WTPropertyVetoException
Throws:
WTException
WTPropertyVetoException

doesDirectoryExist

public static boolean doesDirectoryExist(String directory)

doesDirectoryExist

public static boolean doesDirectoryExist(boolean checkWrite,
                                         String directory)

doesProjectExist

public static boolean doesProjectExist(String project)

doesFolderExist

public static boolean doesFolderExist(String folder)

doesLifeCycleExist

public static boolean doesLifeCycleExist(String lifeCycle)

getWTDocumentByNumber

public static WTDocument getWTDocumentByNumber(String number,
                                               String revision,
                                               WTContainer container)
                                        throws WTException
Throws:
WTException

getWTContainerByName

public static WTContainer getWTContainerByName(String InName)
                                        throws WTException
Throws:
WTException

addFile

public static ApplicationData addFile(ContentHolder doc,
                                      String directory,
                                      String filename,
                                      String filenameWC,
                                      String description,
                                      boolean isED,
                                      boolean isThumbnail,
                                      boolean isEDZ)
                               throws WTException,
                                      FileNotFoundException,
                                      WTPropertyVetoException
Throws:
WTException
FileNotFoundException
WTPropertyVetoException

addFile

public static ApplicationData addFile(ContentHolder doc,
                                      String directory,
                                      String filename,
                                      String filenameWC,
                                      String description,
                                      boolean isED,
                                      boolean isThumbnail,
                                      boolean isEDZ,
                                      boolean isPrimary)
                               throws WTException,
                                      FileNotFoundException,
                                      WTPropertyVetoException
Throws:
WTException
FileNotFoundException
WTPropertyVetoException

addFile

public static ApplicationData addFile(ContentHolder doc,
                                      String directory,
                                      String filename,
                                      String filenameWC,
                                      String description,
                                      boolean isED,
                                      boolean isThumbnail,
                                      boolean isEDZ,
                                      boolean isPrimary,
                                      boolean is3DThumbnail)
                               throws WTException,
                                      FileNotFoundException,
                                      WTPropertyVetoException
Throws:
WTException
FileNotFoundException
WTPropertyVetoException

startCreateRepresentation

public static Representation startCreateRepresentation(Representable part,
                                                       RepresentationContributor doc,
                                                       ConfigSpec configSpec,
                                                       ConfigSpec partConfigSpec,
                                                       String repName,
                                                       String repDesc,
                                                       int structureType)

startCreateRepresentation

public static Representation startCreateRepresentation(Representable part,
                                                       RepresentationContributor doc,
                                                       ConfigSpec configSpec,
                                                       ConfigSpec partConfigSpec,
                                                       String repName,
                                                       String repDesc,
                                                       int structureType,
                                                       String cadPartName,
                                                       String cadFormName,
                                                       boolean isPosAssy)

endCreateRepresentation

public static Representation endCreateRepresentation(Representable part,
                                                     Representation newRep,
                                                     boolean repDefault)

endCreateRepresentation

public static Representation endCreateRepresentation(Representable part,
                                                     Representation newRep,
                                                     boolean repDefault,
                                                     Vector newMarkupSavedVector)

copyMarkupsFromPreviousIteration

public static void copyMarkupsFromPreviousIteration(Representable part,
                                                    Representation newRep,
                                                    Vector newMarkupSavedVector)