wt.ixb.publicforhandlers
Class IxbHndHelper

java.lang.Object
  extended bywt.ixb.publicforhandlers.IxbHndHelper
Direct Known Subclasses:
IxbHndObjectcolHelper

public class IxbHndHelper
extends Object


Field Summary
private static String CONFLICT_RESOURCE
           
static int IMPORT_PRIORITY_BUILD_HISTORY
           
static int IMPORT_PRIORITY_DISPLAY_UNITS
           
static int IMPORT_PRIORITY_IBA_DEFINITION
           
static int IMPORT_PRIORITY_IBA_REFERENCEABLE
           
static int IMPORT_PRIORITY_LINK
           
static int IMPORT_PRIORITY_OBJECT
           
static int IMPORT_PRIORITY_REPRESENTATION
           
static int IMPORT_PRIORITY_TYPE_DEFINITION
           
static String IXB_NEW_ITERATION_CONTEXT_KEY
           
static String IXB_NEW_ITERATION_CONTEXT_VALUE
           
private static String IXB_RESOURCE
           
static String IXB_STORE_OBJ_CONTEXT_KEY
           
static String IXB_STORE_OBJ_CONTEXT_VALUE
           
private static Object ixbLocalPropertyKey
           
static String NUMBER
           
private static ResourceBundle rb
           
static String REGISTRY_BODY_TAG
           
static String REGISTRY_MAIN_FILE_NAME
           
private static String reposGuidPrefixForImport
           
static String XML_ATTR_CONTAINER
           
static String XML_ATTR_CONTAINER_FILE_ID
           
static String XML_ATTR_CONTAINER_INFO
           
static String XML_ATTR_CONTAINER_PATH
           
static String XML_ATTR_DEPARTMENT
           
static String XML_ATTR_DESCRIBEDBY
           
static String XML_ATTR_DESCRIBEDBY_LOCID
           
static String XML_ATTR_DESCRIBEDBY_OBJ_REF
           
static String XML_ATTR_DESCRIBEDBY_OBJ_REF_CONTAINER_PATH
           
static String XML_ATTR_DESCRIBEDBY_UFID
           
static String XML_ATTR_DESCRIBES
           
static String XML_ATTR_DESCRIBES_LOCID
           
static String XML_ATTR_DESCRIBES_OBJ_REF
           
static String XML_ATTR_DESCRIBES_OBJ_REF_CONTAINER_PATH
           
static String XML_ATTR_DESCRIBES_UFID
           
static String XML_ATTR_DESCRIPTION
           
static String XML_ATTR_DISPLAY_NAME
           
static String XML_ATTR_DOCTYPE
           
static String XML_ATTR_DOMAIN
           
static String XML_ATTR_DTD
           
static String XML_ATTR_FOLDER
           
static String XML_ATTR_HIERACHY_DISP_NAME
           
static String XML_ATTR_ITERATION_ID
           
static String XML_ATTR_ITERATION_ID2
           
static String XML_ATTR_LIFECYCLENAME
           
static String XML_ATTR_LIFECYCLESTATE
           
static String XML_ATTR_LIFECYCLETEMPLATEOID
           
static String XML_ATTR_LOCAL_ID
           
static String XML_ATTR_LOCALE
           
static String XML_ATTR_MASTER_UFID
           
static String XML_ATTR_NAME
           
static String XML_ATTR_NUMBER
           
static String XML_ATTR_OBJECT_CONTAINER_PATH
           
static String XML_ATTR_OBJECT_ID
           
static String XML_ATTR_OCCURENCES_ATTRIBUTE
           
static String XML_ATTR_ONE_OFF_VERSION_ID
           
static String XML_ATTR_ORGANIZATION_ID
           
static String XML_ATTR_PARENT_PATH
           
static String XML_ATTR_PARTTYPE
           
static String XML_ATTR_PROJECT
          Deprecated. at R6.2 use XML_ATTR_TEAM instead.
static String XML_ATTR_QUANTITY_AMOUNT
           
static String XML_ATTR_QUANTITY_UNIT
           
static String XML_ATTR_REFERENCEDBY
           
static String XML_ATTR_REFERENCEDBY_LOCID
           
static String XML_ATTR_REFERENCEDBY_OBJ_REF
           
static String XML_ATTR_REFERENCEDBY_OBJ_REF_CONTAINER_PATH
           
static String XML_ATTR_REFERENCEDBY_UFID
           
static String XML_ATTR_REFERENCES
           
static String XML_ATTR_REFERENCES_NUM
           
static String XML_ATTR_REFERENCES_OBJ_REF
           
static String XML_ATTR_REFERENCES_OBJ_REF_CONTAINER_PATH
           
static String XML_ATTR_REFERENCES_UFID
           
static String XML_ATTR_SOURCE
           
static String XML_ATTR_TEAM
           
static String XML_ATTR_TITLE
           
static String XML_ATTR_UFID
           
static String XML_ATTR_USEDBY
           
static String XML_ATTR_USEDBY_LOCID
           
static String XML_ATTR_USEDBY_OBJ_REF
           
static String XML_ATTR_USEDBY_OBJ_REF_CONTAINER_PATH
           
static String XML_ATTR_USEDBY_UFID
           
static String XML_ATTR_USES
           
static String XML_ATTR_USES_NUM
           
static String XML_ATTR_USES_OBJ_REF
           
static String XML_ATTR_USES_OBJ_REF_CONTAINER_PATH
           
static String XML_ATTR_USES_UFID
           
static String XML_ATTR_VERSION_ID
           
static String XML_ATTR_VERSION_INFO
           
static String XML_ATTR_VERSION_LEVEL
           
static String XML_ATTR_VIEW
           
static String XML_BASELINED_OBJECT
           
static String XML_BINDING_RULE_CLASS
           
static String XML_BINDING_RULE_DATA
           
static String XML_BUSINESS_ENTITY
           
static String XML_BUSINESS_ENTITY_ID
           
static String XML_CLASS_NAME
           
static String XML_CLASSIFICATION_NODE
           
static String XML_CLASSIFICATION_STRUCT
           
static String XML_CONSTRAINT_TAG
           
static String XML_CONTAINER_DOMAIN_NAME
           
static String XML_CONTENT
           
static String XML_CONTENT_CATEGORY
           
static String XML_CONTENT_DESCRIPTION
           
static String XML_CONTENT_FILE_NAME
           
static String XML_CONTENT_ID
           
static String XML_CONTENT_ROLE
           
static String XML_CONTENT_TYPE
           
static String XML_CONTENT_URL_LOCATION
           
static String XML_COUNTERPART_ID
           
static String XML_DISPLAY_UNITS
           
static String XML_ENFORCE_RULE_CLASS
           
static String XML_ENFORCE_RULE_DATA
           
static String XML_EPM_DOC_REF
           
static String XML_EXCLUDED_IBA
           
static String XML_EXTERNAL_TYPE_ID
           
static String XML_IBA
           
static String XML_IBA_DEFINITIONS
           
static String XML_IBA_NAME
           
static String XML_IBA_OID
           
static String XML_IBA_PATH
           
static String XML_IBA_PRECISION
           
static String XML_IBA_RATIO_DENOMINATOR
           
static String XML_IBA_REFERENCE_CLASS
           
static String XML_IBA_TYPE
           
static String XML_IBA_UNIT_DEFAULT_MS_NAME_VALUE
           
static String XML_IBA_UNIT_MEASURE_DESC
           
static String XML_IBA_UNIT_MEASURE_NAME
           
static String XML_IBA_UNIT_MEASURE_SYMBOL
           
static String XML_IBA_UNIT_MS_NAME_VALUE
           
static String XML_IBA_UNIT_PRECISION
           
static String XML_IBA_VALUE
           
static String XML_ICON_NAME
           
static String XML_ICON_TAG
           
static String XML_IDENTIFIED_GROUP
           
static String XML_IMAGE_HOLDER
           
static String XML_IS_VERSION
           
static String XML_LOGICAL_ID
           
static String XML_LOGICAL_IDENTIFIER
           
static String XML_MASTER_EXTERNAL_TYPE_ID
           
static String XML_MASTER_TYPE_OID
           
static String XML_MS_DESC
           
static String XML_MS_KEY_SYMBOL
           
static String XML_MS_NAME
           
static String XML_QOM_DEFAULT_MS_NAME_VALUE
           
static String XML_QOM_DESC
           
static String XML_QOM_MS_NAME_VALUE
           
static String XML_QOM_NAME
           
static String XML_QOM_SYMBOL
           
static String XML_SANDBOX_BASELINE
           
static String XML_SHARE_KEY
           
static String XML_SHARE_MAP
           
static String XML_SHARE_MAP_SET
           
static String XML_SHARE_SPEC
           
static String XML_SHARE_TARGET
           
static String XML_SHARE_TYPE
           
static String XML_TAG_CONTAINER_PATH
           
static String XML_TAG_CUSTOMID_NUMBER
           
static String XML_TAG_LOCAL_ID
           
static String XML_TAG_OBJECT_ID
           
static String XML_TAG_OBJECT_REFERENCE
           
static String XML_TAG_REPRESENTATION
           
static String XML_TAG_UFID
           
static String XML_TYPE_DELETED
           
static String XML_TYPE_INSTANTIABLE
           
static String XML_TYPE_OID
           
static String XML_USER_ATTRIBUTEABLE
           
static String XML_VALUE_NULL
           
static String XML_WT_DOCUMENT_REF
           
static String XML_WT_PART_REF
           
static String XML_WT_PRODUCT_REF
           
static String XML_WT_SERIAL_PART_REF
           
static String XML_WTDOCUMENT
           
static String XML_WTPART
           
static String XML_WTPARTDESCRIBELINK
           
static String XML_WTPARTREFERENCELINK
           
static String XML_WTPARTUSAGELINK
           
static String XML_WTPRODUCT
           
static String XML_WTSERIALNUMBEREDPART
           
static String XML_WTTYPE_DEFINITIONS
           
 
Constructor Summary
IxbHndHelper()
           
 
Method Summary
static void checkConflictAgainstExistingObject(String rb, String attrNameKey, String newValue, String oldValue, String newObjId, Importer importer)
           
static void checkConflictForAttribute(Class cl, Object existingOb, IxbElement fileXML, Importer importer)
           
static boolean checkIntegrityAttributeXml(String attribute, String attributeTag)
          Checks integrity of attribute after parsing a xml element.
In case of null or empty value, it displays msg informing of missing attribute in xml.
static void exportAttribute(Class cl, Object ob, IxbElement fileXML, Exporter exporter)
           
static ObjectToObjectLink findAlreadyImportedLink(Class cl, Persistable usedBy, Persistable uses)
          This method is used to find an ObjectToObjectLink by its two ends.
static QueryResult findAlreadyImportedLinks(Class cl, Persistable usedBy, Persistable uses)
          This method is used to find all ObjectToObjectLinks based on two ends of the Link.
static VersionToVersionLink findAlreadyImportedV2VLink(Class cl, WTObject from, WTObject to)
           
static Object findAlreadyImportedVersionedObject(Class cl, Class masterClass, IxbElement fileXML, WTContainerRef containerRef)
           
static Object findAlreadyImportedVersionedObject(Class cl, IxbElement fileXML)
          Deprecated. Use findAlreadyImportedVersionedObject (Class cl, IxbElement fileXML, WTContainerRef cont))
static void finishIxbLocalProperties()
           
static String getActionName(IxbElement fileXML)
          Deprecated. Use getActionName(IxbElement fileXML, Importer importer)
static String getActionName(IxbElement fileXML, boolean forExport)
           
static String getActionName(IxbElement fileXML, Importer importer)
           
static String getBirthUfidOfObject(Federatable obj)
          We want to export 'original' UFID of object, which can be different from 'local' UFID returned by UFID service.
static String getContainerId(WTContainerRef containerRef)
           
static WTContainerRef getContainerOfPath(String path)
           
static WTContainerRef getContainerRefFromImporter(IxbElement fileXML, Importer importer)
           
static String getDisplayIdentityForIxb(Object ob)
           
static String getDisplayIdentityForIxb(Object ob, Locale locale)
           
static Persistable getEndOftheLink(IxbElement fileXML, Importer importer, String linkTag, boolean isMasterObject, Class masterClass)
           
private static String getFileContentAsString(String fn, String path)
           
static Folder getFolder(String folderPath)
           
static Folder getFolder(String folderPath, AdminDomainRef domain, WTContainerRef cont)
          Gets a folder, by default we will create any folders that are not found.
static Folder getFolder(String folderPath, WTContainerRef cont)
          Deprecated. use getFolder(String folderPath, AdminDomainRef domain, WTContainerRef cont)
static String getGlobalOrgIdForObject(OrganizationOwned obj)
           
private static WTOrganizationIdentifier getGlobalOrgIdOfString(String orgIdString)
           
static Iterated getIteratedObject(Class iterated_class, String attr_name, String attr_value)
          Deprecated. This method is container unaware and Org Id unaware. Use explicit query to search by globally unique attribute. Use getIteratedObjectOfNumber() to search by number.
static Iterated getIteratedObjectOfNumber(Class iterated_class, String number_attr_name, String number, WTContainerRef containerRef, WTOrganization org)
          In 7.0 identity of business objects can include: number + namespace + organization.
static String getIxbProperty(String propertyKey)
           
static boolean getIxbProperty(String propertyKey, boolean defaultValue)
           
static int getIxbProperty(String propertyKey, int defaultValue)
           
static String getIxbProperty(String propertyName, String defaultValue)
           
static String[] getListOfFilesInDir(String path)
           
static Mastered getMasterObject(Class master_class, String attr_name, String attr_value)
          Returns the Mastered object of a given class given an attribute and its value.
static Mastered getMasterObject(Class master_class, String attr_name, String attr_value, WTContainerRef containerRef)
          Returns the Mastered object of a given class given an attribute and its value and container to search in Assumes that there is at most one object and the search is case insensitive.
static Mastered getMasterObjectOfNumber(Class master_class, String number_attr_name, String number, WTContainerRef containerRef, WTOrganization org)
           
private static Persistable getNewObjectByElementAndTag(IxbElement obRef, String tag, Importer importer)
           
static Persistable getNewObjectByOldObjectId(String oldLocalId, Importer importer)
           
static Persistable getObjectByObjectReferenceElement(IxbElement obRef, Importer importer)
           
static String getObjectIdImage(Persistable ob)
           
private static Boolean getObjectIsNewByElementAndTag(IxbElement obRef, String tag, Importer importer)
           
static boolean getObjectIsNewByObjectReferenceElement(IxbElement obRef, Importer importer)
           
static Boolean getObjectIsNewByOldObjectId(String oldId, Importer importer)
           
static Federatable getObjectOfBirthUfid(String ufidString, WTContainerRef container)
           
static Persistable getObjectOfObjId(ObjectIdentifier objId)
           
static Persistable getObjectOfObjId(String objIdImage)
           
static Federatable getObjectOfUfid(String ufidString)
           
static Federatable getObjectOfUfidString(String ufidString, Importer importer, WTContainerRef container)
          In Restore context, will use 'classic' ufid table.
static WTOrganization getOrganizationByGlobalOrgId(String orgIdString)
           
static WTOrganization getOrganizationByGlobalOrgId(WTOrganizationIdentifier orgId)
          This method should be implemented in org package, but it is not, so implement it here.
static String getPathOfContainer(WTContainerRef container)
           
static InputStream getRegistryDirectoryContentAsInputStream(String dirName, String extension)
           
static String getRegistryDirectoryContentAsString(String dirName, String extension)
           
static String getReposGuidPrefixForImport()
           
private static Repository getRepositoryOfString(String guid, String domain)
           
static InputStream getSetupFileInputStream(String propertyName, String defaultFileName, String extension)
           
static String getSetupFileName(String propertyName, String defaultFileName)
           
static String getUfidOfObject(Federatable ob)
           
private static Ufid getUfidOfUfidXmlImage(String ufidXmlImage)
           
static String getUfidString(Federatable obj, ExpImporter expImp)
          In export/import context, returns 'birth ufid' for the object as stored in the UfidMapping table.
private static String getUfidXmlImage(Ufid ufid)
           
static WTObject getWTObject(Class obj_class, String attr_name, String attr_value)
          Returns object of a given class such that one of its attribute has the given value.
static WTObject getWTObjectectOfOldId(String oldId, Importer importer)
           
static Object importAttribute(Class cl, Object ob, IxbElement fileXML, Importer importer)
           
static void initialize()
           
static boolean isLinkIgnored(IxbElement fileXML, Importer importer, String linkTag, boolean checkNotCreateLink)
           
static boolean isRunningInPDMLink(WTContainerRef containerRef)
          Helper method to find out if import or export runs in PDM Link container.
static Mastered makeSureItIsMaster(Persistable ob)
           
static Persistable moveLocationIfNecessary(Persistable ob, IxbElement fileXML, Importer importer)
           
static ObjectIdentifier ObjectIdentifierOfString(String objId)
           
private static void PP(String s)
           
static void rememberNewObjectInfoForOldObjectId(Persistable newOb, boolean objectIsReallyNew, String oldObjectId, Importer importer)
           
static void setUfidForObject(Federatable ob, String ufidXmlImage)
           
static boolean shouldIgnoreAttribute(IxbElement fileXML, String attrTag, WTContainerRef container)
          To be used when object is not available yet (eg in finder methods).
static boolean shouldIgnoreAttributeConflict(Object obj, IxbElement attrElem, Importer imp)
          Checks to see whether the attribute should be ignored for the current container type, assuming that import is done to a single target container.
static boolean shouldIgnoreAttributeConflict(Object obj, IxbElement fileXML, String attrTag, Importer imp)
          More general variant of the above.
static void startIxbLocalProperties(Properties props)
           
static void storeObjectsBirthUfid(Federatable obj, String birthUfid, String containerId)
          This method will store information about 'original' UFID of the object, which can be lost by UFID service because of its 'container unawareness'.
static void storeObjectsBirthUfidForMaster(Object master, IxbElement fileXML, Importer importer)
           
static void storeObjectsUfid(Federatable ob)
           
static boolean verifiesFileNameExtension(String fileName, String extension)
          Verifies if a file (full path or just single file name) is of extension specified as the argument.
Checks that independent of case of extension.
static File writeManifest(Set setObjectList, String filePath)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

IMPORT_PRIORITY_DISPLAY_UNITS

public static final int IMPORT_PRIORITY_DISPLAY_UNITS
See Also:
Constant Field Values

IMPORT_PRIORITY_IBA_REFERENCEABLE

public static final int IMPORT_PRIORITY_IBA_REFERENCEABLE
See Also:
Constant Field Values

IMPORT_PRIORITY_IBA_DEFINITION

public static final int IMPORT_PRIORITY_IBA_DEFINITION
See Also:
Constant Field Values

IMPORT_PRIORITY_TYPE_DEFINITION

public static final int IMPORT_PRIORITY_TYPE_DEFINITION
See Also:
Constant Field Values

IMPORT_PRIORITY_OBJECT

public static final int IMPORT_PRIORITY_OBJECT
See Also:
Constant Field Values

IMPORT_PRIORITY_REPRESENTATION

public static final int IMPORT_PRIORITY_REPRESENTATION
See Also:
Constant Field Values

IMPORT_PRIORITY_LINK

public static final int IMPORT_PRIORITY_LINK
See Also:
Constant Field Values

IMPORT_PRIORITY_BUILD_HISTORY

public static final int IMPORT_PRIORITY_BUILD_HISTORY
See Also:
Constant Field Values

NUMBER

public static final String NUMBER
See Also:
Constant Field Values

XML_VALUE_NULL

public static final String XML_VALUE_NULL
See Also:
Constant Field Values

IXB_STORE_OBJ_CONTEXT_KEY

public static final String IXB_STORE_OBJ_CONTEXT_KEY
See Also:
Constant Field Values

IXB_STORE_OBJ_CONTEXT_VALUE

public static final String IXB_STORE_OBJ_CONTEXT_VALUE
See Also:
Constant Field Values

IXB_NEW_ITERATION_CONTEXT_KEY

public static final String IXB_NEW_ITERATION_CONTEXT_KEY
See Also:
Constant Field Values

IXB_NEW_ITERATION_CONTEXT_VALUE

public static final String IXB_NEW_ITERATION_CONTEXT_VALUE
See Also:
Constant Field Values

XML_WTDOCUMENT

public static final String XML_WTDOCUMENT
See Also:
Constant Field Values

XML_WTPART

public static final String XML_WTPART
See Also:
Constant Field Values

XML_WTPARTDESCRIBELINK

public static final String XML_WTPARTDESCRIBELINK
See Also:
Constant Field Values

XML_WTPARTREFERENCELINK

public static final String XML_WTPARTREFERENCELINK
See Also:
Constant Field Values

XML_WTPARTUSAGELINK

public static final String XML_WTPARTUSAGELINK
See Also:
Constant Field Values

XML_WTPRODUCT

public static final String XML_WTPRODUCT
See Also:
Constant Field Values

XML_WTSERIALNUMBEREDPART

public static final String XML_WTSERIALNUMBEREDPART
See Also:
Constant Field Values

XML_TAG_OBJECT_REFERENCE

public static final String XML_TAG_OBJECT_REFERENCE
See Also:
Constant Field Values

XML_TAG_UFID

public static final String XML_TAG_UFID
See Also:
Constant Field Values

XML_TAG_LOCAL_ID

public static final String XML_TAG_LOCAL_ID
See Also:
Constant Field Values

XML_TAG_OBJECT_ID

public static final String XML_TAG_OBJECT_ID
See Also:
Constant Field Values

XML_TAG_CUSTOMID_NUMBER

public static final String XML_TAG_CUSTOMID_NUMBER
See Also:
Constant Field Values

XML_TAG_CONTAINER_PATH

public static final String XML_TAG_CONTAINER_PATH
See Also:
Constant Field Values

XML_ATTR_LOCAL_ID

public static final String XML_ATTR_LOCAL_ID
See Also:
Constant Field Values

XML_ATTR_UFID

public static final String XML_ATTR_UFID
See Also:
Constant Field Values

XML_ATTR_OBJECT_ID

public static final String XML_ATTR_OBJECT_ID
See Also:
Constant Field Values

XML_ATTR_NAME

public static final String XML_ATTR_NAME
See Also:
Constant Field Values

XML_ATTR_NUMBER

public static final String XML_ATTR_NUMBER
See Also:
Constant Field Values

XML_ATTR_MASTER_UFID

public static final String XML_ATTR_MASTER_UFID
See Also:
Constant Field Values

XML_ATTR_DOMAIN

public static final String XML_ATTR_DOMAIN
See Also:
Constant Field Values

XML_ATTR_FOLDER

public static final String XML_ATTR_FOLDER
See Also:
Constant Field Values

XML_ATTR_PROJECT

public static final String XML_ATTR_PROJECT
Deprecated. at R6.2 use XML_ATTR_TEAM instead.

See Also:
Constant Field Values

XML_ATTR_TEAM

public static final String XML_ATTR_TEAM
See Also:
Constant Field Values

XML_ATTR_VIEW

public static final String XML_ATTR_VIEW
See Also:
Constant Field Values

XML_ATTR_VERSION_INFO

public static final String XML_ATTR_VERSION_INFO
See Also:
Constant Field Values

XML_ATTR_VERSION_ID

public static final String XML_ATTR_VERSION_ID
See Also:
Constant Field Values

XML_ATTR_VERSION_LEVEL

public static final String XML_ATTR_VERSION_LEVEL
See Also:
Constant Field Values

XML_ATTR_ITERATION_ID

public static final String XML_ATTR_ITERATION_ID
See Also:
Constant Field Values

XML_ATTR_ONE_OFF_VERSION_ID

public static final String XML_ATTR_ONE_OFF_VERSION_ID
See Also:
Constant Field Values

XML_ATTR_ITERATION_ID2

public static final String XML_ATTR_ITERATION_ID2
See Also:
Constant Field Values

XML_ATTR_LIFECYCLETEMPLATEOID

public static final String XML_ATTR_LIFECYCLETEMPLATEOID
See Also:
Constant Field Values

XML_ATTR_LIFECYCLENAME

public static final String XML_ATTR_LIFECYCLENAME
See Also:
Constant Field Values

XML_ATTR_LIFECYCLESTATE

public static final String XML_ATTR_LIFECYCLESTATE
See Also:
Constant Field Values

XML_ATTR_CONTAINER_INFO

public static final String XML_ATTR_CONTAINER_INFO
See Also:
Constant Field Values

XML_ATTR_CONTAINER

public static final String XML_ATTR_CONTAINER
See Also:
Constant Field Values

XML_ATTR_CONTAINER_PATH

public static final String XML_ATTR_CONTAINER_PATH
See Also:
Constant Field Values

XML_ATTR_CONTAINER_FILE_ID

public static final String XML_ATTR_CONTAINER_FILE_ID
See Also:
Constant Field Values

XML_ATTR_OBJECT_CONTAINER_PATH

public static final String XML_ATTR_OBJECT_CONTAINER_PATH
See Also:
Constant Field Values

XML_ATTR_ORGANIZATION_ID

public static final String XML_ATTR_ORGANIZATION_ID
See Also:
Constant Field Values

XML_SHARE_MAP_SET

public static final String XML_SHARE_MAP_SET
See Also:
Constant Field Values

XML_SHARE_MAP

public static final String XML_SHARE_MAP
See Also:
Constant Field Values

XML_SHARE_SPEC

public static final String XML_SHARE_SPEC
See Also:
Constant Field Values

XML_SHARE_TYPE

public static final String XML_SHARE_TYPE
See Also:
Constant Field Values

XML_SHARE_KEY

public static final String XML_SHARE_KEY
See Also:
Constant Field Values

XML_SHARE_TARGET

public static final String XML_SHARE_TARGET
See Also:
Constant Field Values

XML_IS_VERSION

public static final String XML_IS_VERSION
See Also:
Constant Field Values

XML_SANDBOX_BASELINE

public static final String XML_SANDBOX_BASELINE
See Also:
Constant Field Values

XML_BASELINED_OBJECT

public static final String XML_BASELINED_OBJECT
See Also:
Constant Field Values

XML_ATTR_DESCRIPTION

public static final String XML_ATTR_DESCRIPTION
See Also:
Constant Field Values

XML_ATTR_DEPARTMENT

public static final String XML_ATTR_DEPARTMENT
See Also:
Constant Field Values

XML_ATTR_TITLE

public static final String XML_ATTR_TITLE
See Also:
Constant Field Values

XML_ATTR_DOCTYPE

public static final String XML_ATTR_DOCTYPE
See Also:
Constant Field Values

XML_ATTR_PARTTYPE

public static final String XML_ATTR_PARTTYPE
See Also:
Constant Field Values

XML_ATTR_SOURCE

public static final String XML_ATTR_SOURCE
See Also:
Constant Field Values

XML_ATTR_QUANTITY_AMOUNT

public static final String XML_ATTR_QUANTITY_AMOUNT
See Also:
Constant Field Values

XML_ATTR_QUANTITY_UNIT

public static final String XML_ATTR_QUANTITY_UNIT
See Also:
Constant Field Values

XML_ATTR_USES

public static final String XML_ATTR_USES
See Also:
Constant Field Values

XML_ATTR_USES_OBJ_REF

public static final String XML_ATTR_USES_OBJ_REF
See Also:
Constant Field Values

XML_ATTR_USES_NUM

public static final String XML_ATTR_USES_NUM
See Also:
Constant Field Values

XML_ATTR_USES_UFID

public static final String XML_ATTR_USES_UFID
See Also:
Constant Field Values

XML_ATTR_USES_OBJ_REF_CONTAINER_PATH

public static final String XML_ATTR_USES_OBJ_REF_CONTAINER_PATH
See Also:
Constant Field Values

XML_ATTR_USEDBY

public static final String XML_ATTR_USEDBY
See Also:
Constant Field Values

XML_ATTR_USEDBY_OBJ_REF

public static final String XML_ATTR_USEDBY_OBJ_REF
See Also:
Constant Field Values

XML_ATTR_USEDBY_LOCID

public static final String XML_ATTR_USEDBY_LOCID
See Also:
Constant Field Values

XML_ATTR_USEDBY_UFID

public static final String XML_ATTR_USEDBY_UFID
See Also:
Constant Field Values

XML_ATTR_USEDBY_OBJ_REF_CONTAINER_PATH

public static final String XML_ATTR_USEDBY_OBJ_REF_CONTAINER_PATH
See Also:
Constant Field Values

XML_ATTR_DESCRIBES

public static final String XML_ATTR_DESCRIBES
See Also:
Constant Field Values

XML_ATTR_DESCRIBES_OBJ_REF

public static final String XML_ATTR_DESCRIBES_OBJ_REF
See Also:
Constant Field Values

XML_ATTR_DESCRIBES_LOCID

public static final String XML_ATTR_DESCRIBES_LOCID
See Also:
Constant Field Values

XML_ATTR_DESCRIBES_UFID

public static final String XML_ATTR_DESCRIBES_UFID
See Also:
Constant Field Values

XML_ATTR_DESCRIBES_OBJ_REF_CONTAINER_PATH

public static final String XML_ATTR_DESCRIBES_OBJ_REF_CONTAINER_PATH
See Also:
Constant Field Values

XML_ATTR_DESCRIBEDBY

public static final String XML_ATTR_DESCRIBEDBY
See Also:
Constant Field Values

XML_ATTR_DESCRIBEDBY_OBJ_REF

public static final String XML_ATTR_DESCRIBEDBY_OBJ_REF
See Also:
Constant Field Values

XML_ATTR_DESCRIBEDBY_LOCID

public static final String XML_ATTR_DESCRIBEDBY_LOCID
See Also:
Constant Field Values

XML_ATTR_DESCRIBEDBY_UFID

public static final String XML_ATTR_DESCRIBEDBY_UFID
See Also:
Constant Field Values

XML_ATTR_DESCRIBEDBY_OBJ_REF_CONTAINER_PATH

public static final String XML_ATTR_DESCRIBEDBY_OBJ_REF_CONTAINER_PATH
See Also:
Constant Field Values

XML_ATTR_REFERENCES

public static final String XML_ATTR_REFERENCES
See Also:
Constant Field Values

XML_ATTR_REFERENCES_OBJ_REF

public static final String XML_ATTR_REFERENCES_OBJ_REF
See Also:
Constant Field Values

XML_ATTR_REFERENCES_NUM

public static final String XML_ATTR_REFERENCES_NUM
See Also:
Constant Field Values

XML_ATTR_REFERENCES_UFID

public static final String XML_ATTR_REFERENCES_UFID
See Also:
Constant Field Values

XML_ATTR_REFERENCES_OBJ_REF_CONTAINER_PATH

public static final String XML_ATTR_REFERENCES_OBJ_REF_CONTAINER_PATH
See Also:
Constant Field Values

XML_ATTR_REFERENCEDBY

public static final String XML_ATTR_REFERENCEDBY
See Also:
Constant Field Values

XML_ATTR_REFERENCEDBY_OBJ_REF

public static final String XML_ATTR_REFERENCEDBY_OBJ_REF
See Also:
Constant Field Values

XML_ATTR_REFERENCEDBY_LOCID

public static final String XML_ATTR_REFERENCEDBY_LOCID
See Also:
Constant Field Values

XML_ATTR_REFERENCEDBY_UFID

public static final String XML_ATTR_REFERENCEDBY_UFID
See Also:
Constant Field Values

XML_ATTR_REFERENCEDBY_OBJ_REF_CONTAINER_PATH

public static final String XML_ATTR_REFERENCEDBY_OBJ_REF_CONTAINER_PATH
See Also:
Constant Field Values

XML_IBA

public static final String XML_IBA
See Also:
Constant Field Values

XML_EXCLUDED_IBA

public static final String XML_EXCLUDED_IBA
See Also:
Constant Field Values

XML_IBA_NAME

public static final String XML_IBA_NAME
See Also:
Constant Field Values

XML_IBA_PATH

public static final String XML_IBA_PATH
See Also:
Constant Field Values

XML_IBA_OID

public static final String XML_IBA_OID
See Also:
Constant Field Values

XML_IBA_VALUE

public static final String XML_IBA_VALUE
See Also:
Constant Field Values

XML_IBA_TYPE

public static final String XML_IBA_TYPE
See Also:
Constant Field Values

XML_IBA_DEFINITIONS

public static final String XML_IBA_DEFINITIONS
See Also:
Constant Field Values

XML_ATTR_DISPLAY_NAME

public static final String XML_ATTR_DISPLAY_NAME
See Also:
Constant Field Values

XML_ATTR_PARENT_PATH

public static final String XML_ATTR_PARENT_PATH
See Also:
Constant Field Values

XML_ATTR_HIERACHY_DISP_NAME

public static final String XML_ATTR_HIERACHY_DISP_NAME
See Also:
Constant Field Values

XML_IBA_RATIO_DENOMINATOR

public static final String XML_IBA_RATIO_DENOMINATOR
See Also:
Constant Field Values

XML_IBA_UNIT_PRECISION

public static final String XML_IBA_UNIT_PRECISION
See Also:
Constant Field Values

XML_IBA_PRECISION

public static final String XML_IBA_PRECISION
See Also:
Constant Field Values

XML_IBA_UNIT_MEASURE_NAME

public static final String XML_IBA_UNIT_MEASURE_NAME
See Also:
Constant Field Values

XML_IBA_UNIT_MEASURE_SYMBOL

public static final String XML_IBA_UNIT_MEASURE_SYMBOL
See Also:
Constant Field Values

XML_IBA_UNIT_MEASURE_DESC

public static final String XML_IBA_UNIT_MEASURE_DESC
See Also:
Constant Field Values

XML_IBA_UNIT_MS_NAME_VALUE

public static final String XML_IBA_UNIT_MS_NAME_VALUE
See Also:
Constant Field Values

XML_IBA_UNIT_DEFAULT_MS_NAME_VALUE

public static final String XML_IBA_UNIT_DEFAULT_MS_NAME_VALUE
See Also:
Constant Field Values

XML_IBA_REFERENCE_CLASS

public static final String XML_IBA_REFERENCE_CLASS
See Also:
Constant Field Values

XML_BUSINESS_ENTITY

public static final String XML_BUSINESS_ENTITY
See Also:
Constant Field Values

XML_BUSINESS_ENTITY_ID

public static final String XML_BUSINESS_ENTITY_ID
See Also:
Constant Field Values

XML_CLASSIFICATION_NODE

public static final String XML_CLASSIFICATION_NODE
See Also:
Constant Field Values

XML_COUNTERPART_ID

public static final String XML_COUNTERPART_ID
See Also:
Constant Field Values

XML_IMAGE_HOLDER

public static final String XML_IMAGE_HOLDER
See Also:
Constant Field Values

XML_CLASSIFICATION_STRUCT

public static final String XML_CLASSIFICATION_STRUCT
See Also:
Constant Field Values

XML_CLASS_NAME

public static final String XML_CLASS_NAME
See Also:
Constant Field Values

XML_DISPLAY_UNITS

public static final String XML_DISPLAY_UNITS
See Also:
Constant Field Values

XML_QOM_SYMBOL

public static final String XML_QOM_SYMBOL
See Also:
Constant Field Values

XML_QOM_DESC

public static final String XML_QOM_DESC
See Also:
Constant Field Values

XML_QOM_NAME

public static final String XML_QOM_NAME
See Also:
Constant Field Values

XML_QOM_MS_NAME_VALUE

public static final String XML_QOM_MS_NAME_VALUE
See Also:
Constant Field Values

XML_QOM_DEFAULT_MS_NAME_VALUE

public static final String XML_QOM_DEFAULT_MS_NAME_VALUE
See Also:
Constant Field Values

XML_MS_NAME

public static final String XML_MS_NAME
See Also:
Constant Field Values

XML_MS_KEY_SYMBOL

public static final String XML_MS_KEY_SYMBOL
See Also:
Constant Field Values

XML_MS_DESC

public static final String XML_MS_DESC
See Also:
Constant Field Values

XML_WTTYPE_DEFINITIONS

public static final String XML_WTTYPE_DEFINITIONS
See Also:
Constant Field Values

XML_USER_ATTRIBUTEABLE

public static final String XML_USER_ATTRIBUTEABLE
See Also:
Constant Field Values

XML_TYPE_INSTANTIABLE

public static final String XML_TYPE_INSTANTIABLE
See Also:
Constant Field Values

XML_TYPE_DELETED

public static final String XML_TYPE_DELETED
See Also:
Constant Field Values

XML_CONSTRAINT_TAG

public static final String XML_CONSTRAINT_TAG
See Also:
Constant Field Values

XML_ENFORCE_RULE_CLASS

public static final String XML_ENFORCE_RULE_CLASS
See Also:
Constant Field Values

XML_BINDING_RULE_CLASS

public static final String XML_BINDING_RULE_CLASS
See Also:
Constant Field Values

XML_ENFORCE_RULE_DATA

public static final String XML_ENFORCE_RULE_DATA
See Also:
Constant Field Values

XML_BINDING_RULE_DATA

public static final String XML_BINDING_RULE_DATA
See Also:
Constant Field Values

XML_EXTERNAL_TYPE_ID

public static final String XML_EXTERNAL_TYPE_ID
See Also:
Constant Field Values

XML_TYPE_OID

public static final String XML_TYPE_OID
See Also:
Constant Field Values

XML_MASTER_EXTERNAL_TYPE_ID

public static final String XML_MASTER_EXTERNAL_TYPE_ID
See Also:
Constant Field Values

XML_MASTER_TYPE_OID

public static final String XML_MASTER_TYPE_OID
See Also:
Constant Field Values

XML_CONTAINER_DOMAIN_NAME

public static final String XML_CONTAINER_DOMAIN_NAME
See Also:
Constant Field Values

XML_LOGICAL_IDENTIFIER

public static final String XML_LOGICAL_IDENTIFIER
See Also:
Constant Field Values

XML_LOGICAL_ID

public static final String XML_LOGICAL_ID
See Also:
Constant Field Values

XML_IDENTIFIED_GROUP

public static final String XML_IDENTIFIED_GROUP
See Also:
Constant Field Values

XML_ICON_TAG

public static final String XML_ICON_TAG
See Also:
Constant Field Values

XML_ICON_NAME

public static final String XML_ICON_NAME
See Also:
Constant Field Values

XML_ATTR_LOCALE

public static final String XML_ATTR_LOCALE
See Also:
Constant Field Values

XML_CONTENT

public static final String XML_CONTENT
See Also:
Constant Field Values

XML_CONTENT_ID

public static final String XML_CONTENT_ID
See Also:
Constant Field Values

XML_CONTENT_CATEGORY

public static final String XML_CONTENT_CATEGORY
See Also:
Constant Field Values

XML_CONTENT_ROLE

public static final String XML_CONTENT_ROLE
See Also:
Constant Field Values

XML_CONTENT_TYPE

public static final String XML_CONTENT_TYPE
See Also:
Constant Field Values

XML_CONTENT_FILE_NAME

public static final String XML_CONTENT_FILE_NAME
See Also:
Constant Field Values

XML_CONTENT_DESCRIPTION

public static final String XML_CONTENT_DESCRIPTION
See Also:
Constant Field Values

XML_CONTENT_URL_LOCATION

public static final String XML_CONTENT_URL_LOCATION
See Also:
Constant Field Values

XML_TAG_REPRESENTATION

public static final String XML_TAG_REPRESENTATION
See Also:
Constant Field Values

XML_WT_PART_REF

public static final String XML_WT_PART_REF
See Also:
Constant Field Values

XML_WT_DOCUMENT_REF

public static final String XML_WT_DOCUMENT_REF
See Also:
Constant Field Values

XML_WT_PRODUCT_REF

public static final String XML_WT_PRODUCT_REF
See Also:
Constant Field Values

XML_WT_SERIAL_PART_REF

public static final String XML_WT_SERIAL_PART_REF
See Also:
Constant Field Values

XML_EPM_DOC_REF

public static final String XML_EPM_DOC_REF
See Also:
Constant Field Values

XML_ATTR_DTD

public static final String XML_ATTR_DTD
See Also:
Constant Field Values

XML_ATTR_OCCURENCES_ATTRIBUTE

public static final String XML_ATTR_OCCURENCES_ATTRIBUTE
See Also:
Constant Field Values

REGISTRY_MAIN_FILE_NAME

public static final String REGISTRY_MAIN_FILE_NAME
See Also:
Constant Field Values

REGISTRY_BODY_TAG

public static final String REGISTRY_BODY_TAG
See Also:
Constant Field Values

CONFLICT_RESOURCE

private static final String CONFLICT_RESOURCE
See Also:
Constant Field Values

IXB_RESOURCE

private static String IXB_RESOURCE

rb

private static ResourceBundle rb

reposGuidPrefixForImport

private static String reposGuidPrefixForImport

ixbLocalPropertyKey

private static Object ixbLocalPropertyKey
Constructor Detail

IxbHndHelper

public IxbHndHelper()
Method Detail

initialize

public static void initialize()
                       throws WTException
Throws:
WTException

getDisplayIdentityForIxb

public static String getDisplayIdentityForIxb(Object ob,
                                              Locale locale)
                                       throws WTException
Throws:
WTException

getDisplayIdentityForIxb

public static String getDisplayIdentityForIxb(Object ob)
                                       throws WTException
Throws:
WTException

getObjectIdImage

public static String getObjectIdImage(Persistable ob)
                               throws WTException
Throws:
WTException

exportAttribute

public static void exportAttribute(Class cl,
                                   Object ob,
                                   IxbElement fileXML,
                                   Exporter exporter)
                            throws WTException
Throws:
WTException

checkConflictAgainstExistingObject

public static void checkConflictAgainstExistingObject(String rb,
                                                      String attrNameKey,
                                                      String newValue,
                                                      String oldValue,
                                                      String newObjId,
                                                      Importer importer)
                                               throws WTException
Throws:
WTException

checkConflictForAttribute

public static void checkConflictForAttribute(Class cl,
                                             Object existingOb,
                                             IxbElement fileXML,
                                             Importer importer)
                                      throws WTException
Throws:
WTException

importAttribute

public static Object importAttribute(Class cl,
                                     Object ob,
                                     IxbElement fileXML,
                                     Importer importer)
                              throws WTException
Throws:
WTException

getUfidOfObject

public static String getUfidOfObject(Federatable ob)
                              throws WTException
Throws:
WTException

getBirthUfidOfObject

public static String getBirthUfidOfObject(Federatable obj)
                                   throws WTException
We want to export 'original' UFID of object, which can be different from 'local' UFID returned by UFID service.

Throws:
WTException

getUfidString

public static String getUfidString(Federatable obj,
                                   ExpImporter expImp)
                            throws WTException
In export/import context, returns 'birth ufid' for the object as stored in the UfidMapping table. In archive/restore context, returns String representation of regular Ufid for the object.

Parameters:
obj - Federatable object
expImp - Exporter or Importer which defines the context of the operation
Returns:
String
Throws:
WTException

getObjectOfUfid

public static Federatable getObjectOfUfid(String ufidString)
                                   throws WTException
Throws:
WTException

getObjectOfBirthUfid

public static Federatable getObjectOfBirthUfid(String ufidString,
                                               WTContainerRef container)
                                        throws WTException
Throws:
WTException

getObjectOfUfidString

public static Federatable getObjectOfUfidString(String ufidString,
                                                Importer importer,
                                                WTContainerRef container)
                                         throws WTException
In Restore context, will use 'classic' ufid table. In Import context, will use ufid mapping table.

Parameters:
ufidString - String representation of object's ufid
importer - Represents context of the operation
container - Target container for import (restore)
Returns:
Throws:
WTException

setUfidForObject

public static void setUfidForObject(Federatable ob,
                                    String ufidXmlImage)
                             throws WTException
Throws:
WTException

storeObjectsUfid

public static void storeObjectsUfid(Federatable ob)
                             throws WTException
Throws:
WTException

storeObjectsBirthUfid

public static void storeObjectsBirthUfid(Federatable obj,
                                         String birthUfid,
                                         String containerId)
                                  throws WTException
This method will store information about 'original' UFID of the object, which can be lost by UFID service because of its 'container unawareness'. Namely, in case of import of the same object to multiple containers, the information will be lost because UFID table cannot store Ufid more then once

Throws:
WTException

getUfidXmlImage

private static String getUfidXmlImage(Ufid ufid)
                               throws WTException
Throws:
WTException

getUfidOfUfidXmlImage

private static Ufid getUfidOfUfidXmlImage(String ufidXmlImage)
                                   throws WTException
Throws:
WTException

getRepositoryOfString

private static Repository getRepositoryOfString(String guid,
                                                String domain)
                                         throws WTException
Throws:
WTException

getReposGuidPrefixForImport

public static String getReposGuidPrefixForImport()
                                          throws WTException
Throws:
WTException

getContainerId

public static String getContainerId(WTContainerRef containerRef)

getRegistryDirectoryContentAsInputStream

public static InputStream getRegistryDirectoryContentAsInputStream(String dirName,
                                                                   String extension)
                                                            throws WTException
Throws:
WTException

getRegistryDirectoryContentAsString

public static String getRegistryDirectoryContentAsString(String dirName,
                                                         String extension)
                                                  throws WTException
Throws:
WTException

getListOfFilesInDir

public static String[] getListOfFilesInDir(String path)
                                    throws WTException
Throws:
WTException

getFileContentAsString

private static String getFileContentAsString(String fn,
                                             String path)
                                      throws WTException
Throws:
WTException

getWTObject

public static WTObject getWTObject(Class obj_class,
                                   String attr_name,
                                   String attr_value)
                            throws WTException
Returns object of a given class such that one of its attribute has the given value. This method makes the following assumptions:

If the above assumptions are not met, don't use this method.

Throws:
WTException

makeSureItIsMaster

public static Mastered makeSureItIsMaster(Persistable ob)

getSetupFileInputStream

public static InputStream getSetupFileInputStream(String propertyName,
                                                  String defaultFileName,
                                                  String extension)
                                           throws WTException,
                                                  FileNotFoundException
Throws:
WTException
FileNotFoundException

getSetupFileName

public static String getSetupFileName(String propertyName,
                                      String defaultFileName)
                               throws WTException
Throws:
WTException

getObjectOfObjId

public static Persistable getObjectOfObjId(String objIdImage)
                                    throws WTException
Throws:
WTException

getObjectOfObjId

public static Persistable getObjectOfObjId(ObjectIdentifier objId)
                                    throws WTException
Throws:
WTException

rememberNewObjectInfoForOldObjectId

public static void rememberNewObjectInfoForOldObjectId(Persistable newOb,
                                                       boolean objectIsReallyNew,
                                                       String oldObjectId,
                                                       Importer importer)
                                                throws WTException
Throws:
WTException

getObjectIsNewByOldObjectId

public static Boolean getObjectIsNewByOldObjectId(String oldId,
                                                  Importer importer)
                                           throws WTException
Throws:
WTException

getNewObjectByOldObjectId

public static Persistable getNewObjectByOldObjectId(String oldLocalId,
                                                    Importer importer)
                                             throws WTException
Throws:
WTException

ObjectIdentifierOfString

public static ObjectIdentifier ObjectIdentifierOfString(String objId)
                                                 throws WTException
Throws:
WTException

getWTObjectectOfOldId

public static WTObject getWTObjectectOfOldId(String oldId,
                                             Importer importer)
                                      throws WTException
Throws:
WTException

getMasterObject

public static Mastered getMasterObject(Class master_class,
                                       String attr_name,
                                       String attr_value)
                                throws WTException
Returns the Mastered object of a given class given an attribute and its value. Assumes that there is at most one object with the given value and the search is case insensitive. This method is container-unaware.

Throws:
WTException

getIteratedObject

public static Iterated getIteratedObject(Class iterated_class,
                                         String attr_name,
                                         String attr_value)
                                  throws WTException
Deprecated. This method is container unaware and Org Id unaware. Use explicit query to search by globally unique attribute. Use getIteratedObjectOfNumber() to search by number.

Throws:
WTException

getIteratedObjectOfNumber

public static Iterated getIteratedObjectOfNumber(Class iterated_class,
                                                 String number_attr_name,
                                                 String number,
                                                 WTContainerRef containerRef,
                                                 WTOrganization org)
                                          throws WTException
In 7.0 identity of business objects can include: number + namespace + organization. This method attempts to take into account all of it.

Parameters:
iterated_class - class to search on (should implement Iterated)
number_attr_name - 'number' attribute name as defined in Rose model
number - 'number' attribute value
org -
Returns:
Throws:
WTException

getObjectByObjectReferenceElement

public static Persistable getObjectByObjectReferenceElement(IxbElement obRef,
                                                            Importer importer)
                                                     throws WTException
Throws:
WTException

getObjectIsNewByObjectReferenceElement

public static boolean getObjectIsNewByObjectReferenceElement(IxbElement obRef,
                                                             Importer importer)
                                                      throws WTException
Throws:
WTException

getNewObjectByElementAndTag

private static Persistable getNewObjectByElementAndTag(IxbElement obRef,
                                                       String tag,
                                                       Importer importer)
                                                throws WTException
Throws:
WTException

getObjectIsNewByElementAndTag

private static Boolean getObjectIsNewByElementAndTag(IxbElement obRef,
                                                     String tag,
                                                     Importer importer)
                                              throws WTException
Throws:
WTException

findAlreadyImportedVersionedObject

public static Object findAlreadyImportedVersionedObject(Class cl,
                                                        IxbElement fileXML)
                                                 throws WTException
Deprecated. Use findAlreadyImportedVersionedObject (Class cl, IxbElement fileXML, WTContainerRef cont))

Parameters:
cl -
fileXML -
Returns:
Throws:
WTException

findAlreadyImportedLink

public static ObjectToObjectLink findAlreadyImportedLink(Class cl,
                                                         Persistable usedBy,
                                                         Persistable uses)
                                                  throws WTException
This method is used to find an ObjectToObjectLink by its two ends.

Throws:
WTException

findAlreadyImportedV2VLink

public static VersionToVersionLink findAlreadyImportedV2VLink(Class cl,
                                                              WTObject from,
                                                              WTObject to)
                                                       throws WTException
Throws:
WTException

getFolder

public static Folder getFolder(String folderPath,
                               WTContainerRef cont)
                        throws WTException
Deprecated. use getFolder(String folderPath, AdminDomainRef domain, WTContainerRef cont)

Throws:
WTException

getFolder

public static Folder getFolder(String folderPath,
                               AdminDomainRef domain,
                               WTContainerRef cont)
                        throws WTException
Gets a folder, by default we will create any folders that are not found.

Throws:
WTException

getFolder

public static Folder getFolder(String folderPath)
                        throws WTException
Throws:
WTException

getIxbProperty

public static String getIxbProperty(String propertyKey)
                             throws WTException
Throws:
WTException

getIxbProperty

public static boolean getIxbProperty(String propertyKey,
                                     boolean defaultValue)
                              throws WTException
Throws:
WTException

getIxbProperty

public static int getIxbProperty(String propertyKey,
                                 int defaultValue)
                          throws WTException
Throws:
WTException

getIxbProperty

public static String getIxbProperty(String propertyName,
                                    String defaultValue)
                             throws WTException
Throws:
WTException

startIxbLocalProperties

public static void startIxbLocalProperties(Properties props)
                                    throws WTException
Throws:
WTException

finishIxbLocalProperties

public static void finishIxbLocalProperties()
                                     throws WTException
Throws:
WTException

PP

private static void PP(String s)

verifiesFileNameExtension

public static boolean verifiesFileNameExtension(String fileName,
                                                String extension)
Verifies if a file (full path or just single file name) is of extension specified as the argument.
Checks that independent of case of extension.

Parameters:
fileName - full path or just single file name
extension - extension to be verified without the period (just "ext" not ".ext")
Returns:
true   if file is of that extension
false   otherwise
Since:
Windchill R6 - DSU 01

checkIntegrityAttributeXml

public static boolean checkIntegrityAttributeXml(String attribute,
                                                 String attributeTag)
                                          throws LogHelper.IxbException
Checks integrity of attribute after parsing a xml element.
In case of null or empty value, it displays msg informing of missing attribute in xml.

Parameters:
attribute - attribute in a xml element
attributeTag - name of the tag associated with the attribute
Returns:
true   if attribute is ok
false   never returns false, it throws IxbException instead
Throws:
LogHelper.IxbException - (WTException) in case of null/empty value
Since:
Windchill R6 - DSU 02

writeManifest

public static File writeManifest(Set setObjectList,
                                 String filePath)
                          throws WTException
Throws:
WTException

findAlreadyImportedLinks

public static QueryResult findAlreadyImportedLinks(Class cl,
                                                   Persistable usedBy,
                                                   Persistable uses)
                                            throws WTException
This method is used to find all ObjectToObjectLinks based on two ends of the Link.

Throws:
WTException

findAlreadyImportedVersionedObject

public static Object findAlreadyImportedVersionedObject(Class cl,
                                                        Class masterClass,
                                                        IxbElement fileXML,
                                                        WTContainerRef containerRef)
                                                 throws WTException
Throws:
WTException

getMasterObject

public static Mastered getMasterObject(Class master_class,
                                       String attr_name,
                                       String attr_value,
                                       WTContainerRef containerRef)
                                throws WTException
Returns the Mastered object of a given class given an attribute and its value and container to search in Assumes that there is at most one object and the search is case insensitive. Since number is not unique in 7.0, use getMasterObjectOfNumber(Class master_class, String number_attr_name, String number, WTContainerRef containerRef, WTOrganization org) to search by number.

Throws:
WTException

getMasterObjectOfNumber

public static Mastered getMasterObjectOfNumber(Class master_class,
                                               String number_attr_name,
                                               String number,
                                               WTContainerRef containerRef,
                                               WTOrganization org)
                                        throws WTException
Throws:
WTException

isLinkIgnored

public static boolean isLinkIgnored(IxbElement fileXML,
                                    Importer importer,
                                    String linkTag,
                                    boolean checkNotCreateLink)
                             throws WTException
Throws:
WTException

getEndOftheLink

public static Persistable getEndOftheLink(IxbElement fileXML,
                                          Importer importer,
                                          String linkTag,
                                          boolean isMasterObject,
                                          Class masterClass)
                                   throws WTException
Throws:
WTException

getContainerRefFromImporter

public static WTContainerRef getContainerRefFromImporter(IxbElement fileXML,
                                                         Importer importer)
                                                  throws WTException
Throws:
WTException

getPathOfContainer

public static String getPathOfContainer(WTContainerRef container)
                                 throws WTException
Throws:
WTException

getContainerOfPath

public static WTContainerRef getContainerOfPath(String path)
                                         throws WTException
Throws:
WTException

isRunningInPDMLink

public static boolean isRunningInPDMLink(WTContainerRef containerRef)
Helper method to find out if import or export runs in PDM Link container. To be used when we need some specific behavior, such as for Cabinet.

Parameters:
containerRef - target (or source) container reference
Returns:
true if containerRef is PDM Link Product or Library

getGlobalOrgIdForObject

public static String getGlobalOrgIdForObject(OrganizationOwned obj)
                                      throws WTException
Parameters:
obj -
Returns:
String representation of Global Org Id in format $; null if there is no Global Org Id
Throws:
WTException

getOrganizationByGlobalOrgId

public static WTOrganization getOrganizationByGlobalOrgId(String orgIdString)
                                                   throws WTException
Parameters:
orgIdString - String representation of Global Org Id in format $. Can be null, in which case null will be returned.
Returns:
Throws:
WTException

getOrganizationByGlobalOrgId

public static WTOrganization getOrganizationByGlobalOrgId(WTOrganizationIdentifier orgId)
                                                   throws WTException
This method should be implemented in org package, but it is not, so implement it here.

Parameters:
orgId - global organization identifier (can be null, in which case null will be returned).
Returns:
WTOrganization of this global identifier (null if not found).
Throws:
WTException

getGlobalOrgIdOfString

private static WTOrganizationIdentifier getGlobalOrgIdOfString(String orgIdString)
                                                        throws WTException
Throws:
WTException

shouldIgnoreAttributeConflict

public static boolean shouldIgnoreAttributeConflict(Object obj,
                                                    IxbElement attrElem,
                                                    Importer imp)
                                             throws WTException
Checks to see whether the attribute should be ignored for the current container type, assuming that import is done to a single target container. //Lookup table is a Map of Maps. container-->IgnorableAttrs for the current container. Ignorable attrs are keyed by XML_Path and point to a boolean Unless the map has been populated we return false.

Throws:
WTException

shouldIgnoreAttributeConflict

public static boolean shouldIgnoreAttributeConflict(Object obj,
                                                    IxbElement fileXML,
                                                    String attrTag,
                                                    Importer imp)
                                             throws WTException
More general variant of the above.

Throws:
WTException

shouldIgnoreAttribute

public static boolean shouldIgnoreAttribute(IxbElement fileXML,
                                            String attrTag,
                                            WTContainerRef container)
                                     throws WTException
To be used when object is not available yet (eg in finder methods). Potentially, we may need to ignore conflict but still process attribute.

Throws:
WTException

getActionName

public static String getActionName(IxbElement fileXML,
                                   Importer importer)
                            throws WTException
Throws:
WTException

getActionName

public static String getActionName(IxbElement fileXML)
                            throws WTException
Deprecated. Use getActionName(IxbElement fileXML, Importer importer)

Parameters:
fileXML -
Returns:
Throws:
WTException

getActionName

public static String getActionName(IxbElement fileXML,
                                   boolean forExport)
                            throws WTException
Throws:
WTException

moveLocationIfNecessary

public static Persistable moveLocationIfNecessary(Persistable ob,
                                                  IxbElement fileXML,
                                                  Importer importer)
                                           throws WTException
Throws:
WTException

storeObjectsBirthUfidForMaster

public static void storeObjectsBirthUfidForMaster(Object master,
                                                  IxbElement fileXML,
                                                  Importer importer)
                                           throws WTException
Throws:
WTException