|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ptc.windchill.cadx.common.util.GenericUtilities
Supported API: false
Extendable: false
Field Summary | |
private static String |
CLASSNAME
|
private static HashMap |
docFamilyMap
|
private static boolean |
ORGANIZATION_DISPLAY_FLAG
|
private static String |
RESOURCE
|
private static String |
RULE_CONSTANT_FOR_VERSIONING
|
static String |
WORKSPACE_VIEW
Supported API: false |
Constructor Summary | |
GenericUtilities()
|
Method Summary | |
static WTPart |
assignView(WTPart a_Part,
EPMWorkspace a_Workspace)
Assign view to the specified part as found from the view property of the workspace. |
static boolean |
compare(Persistable first,
Persistable second)
This method checks whether two persistable objects are identical in Windchill Supported API: false |
static BuildRule |
createBuildRule(Object obj1,
Object obj2)
Supported API: false |
private static BuildRule |
createBuildRule(WTPart part,
EPMDocument doc)
|
static EPMDescribeLink |
createEPMDescribeLink(Object obj1,
Object obj2,
boolean built)
Supported API: false |
private static EPMDescribeLink |
createEPMDescribeLink(WTPart part,
EPMDocument doc,
boolean built)
|
static BinaryLink |
deleteLink(Object link)
deletes the link Supported API: false |
static boolean |
deleteLinks(Object[] links)
|
static boolean |
disassociate(Object sourceObject,
Object targetObject)
disassociate sourceobject and target object. |
static boolean |
doesBelongToSameSeriesType(WTContained containedObj1,
WTContained containedObj2)
|
private static BinaryLink |
findBuildRule(WTPart part,
EPMDocument document)
search for BuildRule between part and document |
private static BinaryLink[] |
findBuildRules(WTPart part,
EPMDocument doc)
|
private static BinaryLink |
findEPMDescribeLink(WTPart part,
EPMDocument doc)
Searches for Describes link between part and document |
static BinaryLink |
findLink(Object source,
Object target)
Supported API: false |
static BinaryLink[] |
findLinks(Object source,
Object target)
This method will return the links (active/passive) between the source and target object Either source or target is of type WTPart and other is supposed to be of type EPMDocument |
static QueryResult |
getAllIterationsOfobject(Object obj)
|
static Vector |
getAllWorkspacesForIteratedObject(WTObject obj)
|
private static BinaryLink[] |
getAssociated(EPMDocument doc)
returns the BinaryLinks for EPMDocument. |
static Object[] |
getAssociated(Object object)
returns the BinaryLinks for object Supported API: false |
private static BinaryLink[] |
getAssociated(WTPart part)
returns the associated BinaryLinks for WTPart |
static EPMDocument[] |
getAssociatedDocuments(WTPart target)
This method gives all EPMDocument objects associated with a WTPart object |
private static BinaryLink[] |
getBuildRules(EPMDocument doc)
return active links for a given document |
static BinaryLink[] |
getBuildRules(Object object)
returns the active links for object Supported API: false |
private static BinaryLink[] |
getBuildRules(WTPart part)
returns active link for a give part |
static EPMFamily |
getEPMFamily(EPMDocument doc,
boolean refresh)
This method gets the Family information ie EPMFamily object for document. |
static String |
getErrorMessage(Exception ex,
Locale locale)
|
static String |
getGenericDocumentNumber(EPMDocument doc)
This method gets the number of the generic document. |
static String |
getGhostIgnoreOption()
|
static String |
getIBAValue(Object obj,
String ibaValue)
spatanka: Added this utility method to get IBA values for searchPart attribute required for AutoAssociate Functionality preference settings. |
static String |
getInstance(EPMDocument epmDoc)
This method test the document for generic The Information will be cached at client Supported API: false |
static Iterated |
getIteration(Iterated anyIteration,
ConfigSpec configSpec)
This method obtains the correct iteration of an iterated object based on the input config spec. |
static String |
getKey(Object obj)
|
static String |
getLinkId(Object link)
returns link id Supported API: false |
static boolean |
getLinkStatus(Object link)
return true if link is active Supported API: false |
static Object |
getOtherObject(Object object,
Object link)
get the other side object of the link for given object Supported API: false |
static WTOrganization |
getOwningOrganizationOfWSContextContainer(EPMWorkspace ws)
|
private static QueryResult |
getQueryResultForPart(WTPart target)
|
static Object |
getSeriesKey(WTContained containedObj)
|
static Vector |
getUsedByDocumentsByLink(QueryResult theEPMMemberLinks)
For the specified QueryResult of the EPMMemberLink objects, return a vector of EPM documents. |
static Vector |
getUsedByEPMDucuments(EPMDocument epmDoc)
For the specified EPMDocument, get a Vector of the documents for the 'usedBy' association |
static View |
getView(EPMWorkspace workspace)
This method returns View for the given workspace. |
private static boolean |
isAssociationExists(EPMDocument doc)
returns true if associate object exists for given document |
static boolean |
isAssociationExists(Object object)
returns true if associate object exists for given object Supported API: false |
private static boolean |
isAssociationExists(WTPart part)
returns true if associate object exists for given part. |
static boolean |
isAutoNumberingEnabled(WTContainer container,
Class objectClass)
|
static boolean |
isAutoNumberingEnabled(WTContainer container,
String objectClassName)
|
static boolean |
isDocumentGeneric(EPMDocument epmDoc)
This method test the document for generic The Information will be cached at client Supported API: false |
static boolean |
isDocumentInstance(EPMDocument epmDoc)
This method test the document for generic The Information will be cached at client Supported API: false |
static boolean |
isOrganizationEditable(HTTPState state)
|
static boolean |
isOrganizationExposed()
|
static boolean |
isValidDocLifeCycle(String docLifeCycle)
Supported API: false |
static boolean |
isValidPartLifeCycle(String partLifeCycle)
Supported API: false |
static boolean |
isValidTeamTemplate(String teamTemplate)
Supported API: false |
static boolean |
isValidView(String view)
Supported API: false |
static boolean |
isValueChanged(Persistable newPersistable,
Persistable currentPersistable)
Return true if the value has changed for the specified new & current (old) persistables. |
static void |
removeContainedInLinks(EPMDocument instance)
Supported API: false |
static Iterated |
rollupAndSetFirst(Iterated docorpart,
boolean isinstance)
Supported API: false |
static Vector |
rollupAndSetFirst(Vector docandparts,
boolean instances)
Supported API: false |
static EPMDescribeLink |
setDescribeLink(Object link,
boolean builtFlag)
Supported API: false |
static Versioned |
setVersionIdentifierForObject(Versioned vcObj,
String versionlabel)
|
static Versioned |
setVersionIdentifierForObject(Versioned vcObj,
String versionlabel,
boolean isNew)
|
static void |
setView(EPMWorkspace workspace,
View view)
Supported API: false |
static BinaryLink |
toggleLink(Object obj1,
Object obj2)
Supported API: false |
private static BinaryLink |
toggleLink(WTPart part,
EPMDocument doc)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private static final String RESOURCE
private static final String CLASSNAME
public static final String WORKSPACE_VIEW
private static HashMap docFamilyMap
private static boolean ORGANIZATION_DISPLAY_FLAG
private static final String RULE_CONSTANT_FOR_VERSIONING
Constructor Detail |
public GenericUtilities()
Method Detail |
public static void setView(EPMWorkspace workspace, View view)
workspace
- view
- public static boolean isValidDocLifeCycle(String docLifeCycle)
docLifeCycle
-
public static boolean isValidPartLifeCycle(String partLifeCycle)
partLifeCycle
-
public static boolean isValidView(String view)
view
-
public static boolean isValidTeamTemplate(String teamTemplate)
teamTemplate
-
public static Object[] getAssociated(Object object)
object
-
private static BinaryLink[] getAssociated(WTPart part)
part
-
private static BinaryLink[] getAssociated(EPMDocument doc)
doc
-
public static boolean isAssociationExists(Object object)
object
-
public static boolean disassociate(Object sourceObject, Object targetObject)
sourceObject
- targetObject
-
public static BinaryLink deleteLink(Object link)
link
-
private static boolean isAssociationExists(WTPart part)
part
-
private static boolean isAssociationExists(EPMDocument doc)
doc
-
public static Object getOtherObject(Object object, Object link)
object
- link
-
public static boolean getLinkStatus(Object link)
link
-
public static String getLinkId(Object link)
link
-
public static EPMDescribeLink createEPMDescribeLink(Object obj1, Object obj2, boolean built)
obj1
- obj2
- built
-
private static EPMDescribeLink createEPMDescribeLink(WTPart part, EPMDocument doc, boolean built)
part
- doc
- built
-
private static BinaryLink findBuildRule(WTPart part, EPMDocument document)
part
- document
-
private static BinaryLink findEPMDescribeLink(WTPart part, EPMDocument doc)
part
- doc
-
public static BinaryLink findLink(Object source, Object target)
source
- target
-
public static BuildRule createBuildRule(Object obj1, Object obj2)
obj1
- obj2
-
private static BuildRule createBuildRule(WTPart part, EPMDocument doc)
part
- doc
-
public static EPMDescribeLink setDescribeLink(Object link, boolean builtFlag)
link
- builtFlag
-
public static BinaryLink toggleLink(Object obj1, Object obj2)
obj1
- obj2
-
private static BinaryLink toggleLink(WTPart part, EPMDocument doc)
part
- doc
-
public static BinaryLink[] getBuildRules(Object object)
object
-
private static BinaryLink[] getBuildRules(WTPart part)
part
-
private static BinaryLink[] getBuildRules(EPMDocument doc)
doc
-
public static Vector rollupAndSetFirst(Vector docandparts, boolean instances)
docandparts
- instances
-
public static Iterated rollupAndSetFirst(Iterated docorpart, boolean isinstance)
docorpart
- isinstance
-
public static void removeContainedInLinks(EPMDocument instance) throws Exception
instance
-
Exception
public static String getGenericDocumentNumber(EPMDocument doc)
public static boolean compare(Persistable first, Persistable second)
first
- The first object to be comparedsecond
- The second object to be compared
public static EPMFamily getEPMFamily(EPMDocument doc, boolean refresh)
public static boolean isDocumentGeneric(EPMDocument epmDoc)
public static boolean isDocumentInstance(EPMDocument epmDoc)
public static String getInstance(EPMDocument epmDoc)
public static WTPart assignView(WTPart a_Part, EPMWorkspace a_Workspace)
public static View getView(EPMWorkspace workspace)
WTException
public static Vector getUsedByEPMDucuments(EPMDocument epmDoc)
public static Vector getUsedByDocumentsByLink(QueryResult theEPMMemberLinks)
public static Iterated getIteration(Iterated anyIteration, ConfigSpec configSpec) throws WTException
anyIteration
- Any iteration of the objectconfigSpec
- Config spec to be used for retrieving the iteration
WTException
public static QueryResult getAllIterationsOfobject(Object obj)
public static Vector getAllWorkspacesForIteratedObject(WTObject obj) throws WTException
WTException
public static String getKey(Object obj)
public static String getIBAValue(Object obj, String ibaValue)
public static boolean isOrganizationExposed()
public static boolean isAutoNumberingEnabled(WTContainer container, String objectClassName)
public static boolean isAutoNumberingEnabled(WTContainer container, Class objectClass)
public static WTOrganization getOwningOrganizationOfWSContextContainer(EPMWorkspace ws)
public static EPMDocument[] getAssociatedDocuments(WTPart target) throws WTException
target
- The part whose associated documents are to be obtained
WTException
public static boolean isValueChanged(Persistable newPersistable, Persistable currentPersistable)
private static QueryResult getQueryResultForPart(WTPart target) throws WTException
WTException
public static boolean isOrganizationEditable(HTTPState state) throws WTException
WTException
public static BinaryLink[] findLinks(Object source, Object target)
private static BinaryLink[] findBuildRules(WTPart part, EPMDocument doc)
public static boolean deleteLinks(Object[] links)
public static String getGhostIgnoreOption()
public static String getErrorMessage(Exception ex, Locale locale)
public static Object getSeriesKey(WTContained containedObj)
public static boolean doesBelongToSameSeriesType(WTContained containedObj1, WTContained containedObj2)
public static Versioned setVersionIdentifierForObject(Versioned vcObj, String versionlabel, boolean isNew) throws WTException, WTPropertyVetoException
WTException
WTPropertyVetoException
public static Versioned setVersionIdentifierForObject(Versioned vcObj, String versionlabel) throws WTException, WTPropertyVetoException
WTException
WTPropertyVetoException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |