|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectwt.epm.ReviseManagerUtility
Field Summary | |
(package private) static String |
EPM_FAMILY_REVISE_IN_PROGRESS
|
(package private) static String |
EPM_MULTI_REVISE_IN_PROGRESS
|
private static String |
EPMRESOURCE
|
Constructor Summary | |
ReviseManagerUtility()
|
Method Summary | |
private static QueryResult |
copyAsStoredConfigForRevise(QueryResult revisedObjects)
Copy forward as-stored configurations for a set of documents. |
private static EPMBuildHistory |
getBuildHistory(WTPart part,
EPMDocument document)
|
private static EPMBuildRule |
getBuildRule(WTPart part)
|
private static EPMContainedIn |
getContainedInLink(EPMDocument generic,
EPMDocument instance)
|
private static EPMDocument |
getEPMDocumentNewVersion(QueryResult result)
|
private static ObjectIdentifier |
getOID(Persistable object)
|
private static Persistable[] |
makePair(Persistable first,
Persistable second)
|
private static Versioned |
revise(Versioned originalVersion,
TeamTemplate teamTemplate,
ReviseOptions.ObjectOptions options)
|
protected static QueryResult |
reviseAll(Collection toRevise)
|
protected static QueryResult |
reviseAll(Collection toRevise,
ReviseOptions options,
ConfigSpec partConfigSpec)
Deprecated. at R8.0, use reviseALL( WTKeyedMap) |
static WTKeyedMap |
reviseAll(WTKeyedMap toRevise)
This method creates a new in-line version of the EPMDocuments and WTParts given. |
private static Object |
reviseDocAndPart(ReviseOptions docOption,
Map toRevise,
Map revisedObjects)
|
protected static QueryResult |
reviseDocsAndParts(EPMDocument[] docsToRevise,
ReviseOptions options,
ConfigSpec partConfigSpec)
Deprecated. at R8.0, use reviseALL( WTKeyedMap) |
private static void |
reviseFamilyAndParts(EPMFamily family,
Map toRevise,
Map revisedObjects,
ObjectSetVector objectPairs)
|
protected static QueryResult |
reviseFamilyAndParts(EPMFamily family,
ReviseOptions options,
ConfigSpec partConfigSpec)
Deprecated. at R8.0, use reviseALL( WTKeyedMap) |
protected static EPMBuildRule |
revisePartAndDoc(ReviseOptions docOption,
ReviseOptions partOption,
Map revisedObjects)
|
protected static QueryResult |
revisePartsAndDoc(EPMDocument docToRevise,
ReviseOptions options,
ConfigSpec partConfigSpec)
Deprecated. Use reviseDocsAndParts(wt.epm.EPMDocument[], wt.epm.ReviseOptions, wt.vc.config.ConfigSpec) |
protected static QueryResult |
revisePartsAndDoc(ObjectVector partsToRevise,
ReviseOptions options)
Deprecated. Get the build source document and then use reviseDocsAndParts(wt.epm.EPMDocument[], wt.epm.ReviseOptions, wt.vc.config.ConfigSpec)
instead. |
protected static QueryResult |
revisePartsAndDocs(ObjectVector partsToRevise,
ReviseOptions options)
This method creates new in-line versions of the given WTParts as well as a new in-line versions of EPMDocuments that build them. |
private static void |
setEPMFamilyReviseInProgress(boolean inProgress)
|
private static void |
setEPMMultiReviseInProgress(boolean inProgress)
|
private static Versioned |
updateRevised(Versioned originalVersion,
Versioned newVersion,
TeamTemplate teamTemplate,
ReviseOptions.ObjectOptions options)
|
private static void |
validateReviseFolders(Folder partFolder,
Folder docFolder)
Perform validation on the part and doc folders specified in revise options. |
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
static final String EPM_FAMILY_REVISE_IN_PROGRESS
static final String EPM_MULTI_REVISE_IN_PROGRESS
Constructor Detail |
public ReviseManagerUtility()
Method Detail |
public static WTKeyedMap reviseAll(WTKeyedMap toRevise) throws WTException
This method returns a WTKeyedHashMap where the key is the original object and the value, the new version.
toRevise
- the key is the object to revise, the value a ReviseOptions object.
WTException
private static Versioned updateRevised(Versioned originalVersion, Versioned newVersion, TeamTemplate teamTemplate, ReviseOptions.ObjectOptions options) throws WTException, WTPropertyVetoException
WTException
WTPropertyVetoException
private static EPMBuildRule getBuildRule(WTPart part) throws WTException
WTException
private static EPMBuildHistory getBuildHistory(WTPart part, EPMDocument document) throws WTException
WTException
private static EPMContainedIn getContainedInLink(EPMDocument generic, EPMDocument instance) throws WTException
WTException
private static QueryResult copyAsStoredConfigForRevise(QueryResult revisedObjects) throws WTException
WTException
private static void validateReviseFolders(Folder partFolder, Folder docFolder) throws WTException
WTException
protected static QueryResult reviseAll(Collection toRevise) throws WTException
WTException
private static void reviseFamilyAndParts(EPMFamily family, Map toRevise, Map revisedObjects, ObjectSetVector objectPairs) throws WTException, WTPropertyVetoException
WTException
WTPropertyVetoException
protected static EPMBuildRule revisePartAndDoc(ReviseOptions docOption, ReviseOptions partOption, Map revisedObjects) throws WTException, WTPropertyVetoException
WTException
WTPropertyVetoException
private static Object reviseDocAndPart(ReviseOptions docOption, Map toRevise, Map revisedObjects) throws WTException, WTPropertyVetoException
WTException
WTPropertyVetoException
private static EPMDocument getEPMDocumentNewVersion(QueryResult result)
private static Persistable[] makePair(Persistable first, Persistable second)
private static void setEPMFamilyReviseInProgress(boolean inProgress)
private static void setEPMMultiReviseInProgress(boolean inProgress)
protected static QueryResult revisePartsAndDoc(EPMDocument docToRevise, ReviseOptions options, ConfigSpec partConfigSpec) throws WTException
reviseDocsAndParts(wt.epm.EPMDocument[], wt.epm.ReviseOptions, wt.vc.config.ConfigSpec)
This method returns a QueryResult of object pairs. If the EPMDocument does not build any WTParts, this method will return an EPMDocument[2]. If it does, this method will return one EPMBuildRule[2] for each WTPart that the EPMDocument builds. The first element in the array contains the new version or build rule while the second contains the original version or build rule.
docToRevise
- EPMDocument to reviseoptions
- list of properties to assign to the newly created versions. If
a property is not specified (i.e. set to null), the new version
inherits the value for that property from the original version.
The properties that you may specify are a folder and life cycle
template for documents, a folder and life cycle template for
parts and a project. If reviseParts property is set to false,
only documents are revised else built parts are also revised.partConfigSpec
- configuration spec used to find the appropriate version of each WTPart that the given EPMDocument builds
WTException
protected static QueryResult revisePartsAndDoc(ObjectVector partsToRevise, ReviseOptions options) throws WTException
reviseDocsAndParts(wt.epm.EPMDocument[], wt.epm.ReviseOptions, wt.vc.config.ConfigSpec)
instead.
This method returns a QueryResult of object pairs. For each WTPart that is not built by an EPMDocument, this method will return a WTPart[2]. For each WTPart that is built, this method will return an EPMBuildRule[2]. The first element in the array contains the new version or build rule while the second contains the original version or build rule.
This method does not attempt to revise family of objects together.
If you need to revise all the members of family together, use reviseFamilyAndParts(wt.epm.EPMFamily, java.util.Map, java.util.Map, wt.fc.ObjectSetVector)
method.
partsToRevise
- list of the WTParts to reviseoptions
- list of properties to assign to the newly created versions. If a property is not specified (i.e. set to null), the new version inherits the value for that property from the original version. The properties that you may specify are a folder and life cycle template for documents, a folder and life cycle template for parts and a project.
WTException
protected static QueryResult reviseDocsAndParts(EPMDocument[] docsToRevise, ReviseOptions options, ConfigSpec partConfigSpec) throws WTException
This method returns a QueryResult of object pairs. If the EPMDocument does not build any WTParts, this method will return an EPMDocument[2]. If it does, this method will return one EPMBuildRule[2] for each WTPart that the EPMDocument builds. The first element in the array contains the new version or build rule while the second contains the original version or build rule.
This method does not attempt to revise documents in a family together.
Use reviseFamilyAndParts(wt.epm.EPMFamily, java.util.Map, java.util.Map, wt.fc.ObjectSetVector)
if you need to revise all the members
of the family together.
docsToRevise
- Array of EPMDocuments to reviseoptions
- list of properties to assign to the newly created versions. If a property is not specified (i.e. set to null), the new version inherits the value for that property from the original version. The properties that you may specify are a folder and life cycle template for documents, a folder and life cycle template for parts and a project. If reviseParts property is set to false, only documents are revised else built parts are also revised.partConfigSpec
- configuration spec used to find the appropriate version of each WTPart that the given EPMDocument builds
WTException
protected static QueryResult reviseFamilyAndParts(EPMFamily family, ReviseOptions options, ConfigSpec partConfigSpec) throws WTException
EPMFamily should be complete (i.e. all the instances) should be added in family. Use EPMFamily.getEPMFamily(EPMDocument generic) to create/load EPMFamily.
This method returns a QueryResult of object pairs. If the EPMDocument does not build any WTParts, this method will return an EPMDocument[2]. If it does, this method will return one EPMBuildRule[2] for each WTPart that the EPMDocument builds. The first element in the array contains the new version or build rule while the second contains the original version or build rule.
family
- EPMFamily to be revised.options
- list of properties to assign to the newly created versions. If a property is not specified (i.e. set to null), the new version inherits the value for that property from the original version. The properties that you may specify are a folder and life cycle template for documents, a folder and life cycle template for parts and a project. If reviseParts property is set to false, only documents are revised else built parts are also revised.partConfigSpec
- configuration spec used to find the appropriate version of each WTPart that the given EPMDocument builds
WTException
protected static QueryResult reviseAll(Collection toRevise, ReviseOptions options, ConfigSpec partConfigSpec) throws WTException
EPMFamily should be complete (i.e. all the instances) should be added in family. Use EPMFamily.getEPMFamily(EPMDocument generic) to create/load EPMFamily.
PLEASE NOTE that this API is temporary and will change.
This method returns a QueryResult of object pairs. If the EPMDocument does not build any WTParts, this method will return an EPMDocument[2]. If it does, this method will return one EPMBuildRule[2] for each WTPart that the EPMDocument builds. The first element in the array contains the new version or build rule while the second contains the original version or build rule.
toRevise
- Collection of EPMDocuments and EPMFamilies to revise. Any other objects specified in the array are ignoredoptions
- list of properties to assign to the newly created versions. If a property is not specified (i.e. set to null), the new version inherits the value for that property from the original version. The properties that you may specify are a folder and life cycle template for documents, a folder and life cycle template for parts and a project. If reviseParts property is set to false, only documents are revised else built parts are also revised.partConfigSpec
- configuration spec used to find the appropriate version of each WTPart that the given EPMDocument builds
WTException
protected static QueryResult revisePartsAndDocs(ObjectVector partsToRevise, ReviseOptions options) throws WTException
This method returns a QueryResult of object pairs. For each WTPart that is not built by an EPMDocument, this method will return a WTPart[2]. For each WTPart that is built, this method will return an EPMBuildRule[2]. The first element in the array contains the new version or build rule while the second contains the original version or build rule.
This method does not attempt to revise family of objects together.
If you need to revise all the members of family together, use reviseFamilyAndParts(wt.epm.EPMFamily, java.util.Map, java.util.Map, wt.fc.ObjectSetVector)
method.
partsToRevise
- list of the WTParts to reviseoptions
- list of properties to assign to the newly created versions. If a property is not specified (i.e. set to null), the new version inherits the value for that property from the original version. The properties that you may specify are a folder and life cycle template for documents, a folder and life cycle template for parts and a project.
WTException
private static Versioned revise(Versioned originalVersion, TeamTemplate teamTemplate, ReviseOptions.ObjectOptions options) throws WTException, WTPropertyVetoException
WTException
WTPropertyVetoException
private static ObjectIdentifier getOID(Persistable object)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |