|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectwt.ixb.publicforhandlers.IxbHndHelper
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 |
public static final int IMPORT_PRIORITY_DISPLAY_UNITS
public static final int IMPORT_PRIORITY_IBA_REFERENCEABLE
public static final int IMPORT_PRIORITY_IBA_DEFINITION
public static final int IMPORT_PRIORITY_TYPE_DEFINITION
public static final int IMPORT_PRIORITY_OBJECT
public static final int IMPORT_PRIORITY_REPRESENTATION
public static final int IMPORT_PRIORITY_LINK
public static final int IMPORT_PRIORITY_BUILD_HISTORY
public static final String NUMBER
public static final String XML_VALUE_NULL
public static final String IXB_STORE_OBJ_CONTEXT_KEY
public static final String IXB_STORE_OBJ_CONTEXT_VALUE
public static final String IXB_NEW_ITERATION_CONTEXT_KEY
public static final String IXB_NEW_ITERATION_CONTEXT_VALUE
public static final String XML_WTDOCUMENT
public static final String XML_WTPART
public static final String XML_WTPARTDESCRIBELINK
public static final String XML_WTPARTREFERENCELINK
public static final String XML_WTPARTUSAGELINK
public static final String XML_WTPRODUCT
public static final String XML_WTSERIALNUMBEREDPART
public static final String XML_TAG_OBJECT_REFERENCE
public static final String XML_TAG_UFID
public static final String XML_TAG_LOCAL_ID
public static final String XML_TAG_OBJECT_ID
public static final String XML_TAG_CUSTOMID_NUMBER
public static final String XML_TAG_CONTAINER_PATH
public static final String XML_ATTR_LOCAL_ID
public static final String XML_ATTR_UFID
public static final String XML_ATTR_OBJECT_ID
public static final String XML_ATTR_NAME
public static final String XML_ATTR_NUMBER
public static final String XML_ATTR_MASTER_UFID
public static final String XML_ATTR_DOMAIN
public static final String XML_ATTR_FOLDER
public static final String XML_ATTR_PROJECT
public static final String XML_ATTR_TEAM
public static final String XML_ATTR_VIEW
public static final String XML_ATTR_VERSION_INFO
public static final String XML_ATTR_VERSION_ID
public static final String XML_ATTR_VERSION_LEVEL
public static final String XML_ATTR_ITERATION_ID
public static final String XML_ATTR_ONE_OFF_VERSION_ID
public static final String XML_ATTR_ITERATION_ID2
public static final String XML_ATTR_LIFECYCLETEMPLATEOID
public static final String XML_ATTR_LIFECYCLENAME
public static final String XML_ATTR_LIFECYCLESTATE
public static final String XML_ATTR_CONTAINER_INFO
public static final String XML_ATTR_CONTAINER
public static final String XML_ATTR_CONTAINER_PATH
public static final String XML_ATTR_CONTAINER_FILE_ID
public static final String XML_ATTR_OBJECT_CONTAINER_PATH
public static final String XML_ATTR_ORGANIZATION_ID
public static final String XML_SHARE_MAP_SET
public static final String XML_SHARE_MAP
public static final String XML_SHARE_SPEC
public static final String XML_SHARE_TYPE
public static final String XML_SHARE_KEY
public static final String XML_SHARE_TARGET
public static final String XML_IS_VERSION
public static final String XML_SANDBOX_BASELINE
public static final String XML_BASELINED_OBJECT
public static final String XML_ATTR_DESCRIPTION
public static final String XML_ATTR_DEPARTMENT
public static final String XML_ATTR_TITLE
public static final String XML_ATTR_DOCTYPE
public static final String XML_ATTR_PARTTYPE
public static final String XML_ATTR_SOURCE
public static final String XML_ATTR_QUANTITY_AMOUNT
public static final String XML_ATTR_QUANTITY_UNIT
public static final String XML_ATTR_USES
public static final String XML_ATTR_USES_OBJ_REF
public static final String XML_ATTR_USES_NUM
public static final String XML_ATTR_USES_UFID
public static final String XML_ATTR_USES_OBJ_REF_CONTAINER_PATH
public static final String XML_ATTR_USEDBY
public static final String XML_ATTR_USEDBY_OBJ_REF
public static final String XML_ATTR_USEDBY_LOCID
public static final String XML_ATTR_USEDBY_UFID
public static final String XML_ATTR_USEDBY_OBJ_REF_CONTAINER_PATH
public static final String XML_ATTR_DESCRIBES
public static final String XML_ATTR_DESCRIBES_OBJ_REF
public static final String XML_ATTR_DESCRIBES_LOCID
public static final String XML_ATTR_DESCRIBES_UFID
public static final String XML_ATTR_DESCRIBES_OBJ_REF_CONTAINER_PATH
public static final String XML_ATTR_DESCRIBEDBY
public static final String XML_ATTR_DESCRIBEDBY_OBJ_REF
public static final String XML_ATTR_DESCRIBEDBY_LOCID
public static final String XML_ATTR_DESCRIBEDBY_UFID
public static final String XML_ATTR_DESCRIBEDBY_OBJ_REF_CONTAINER_PATH
public static final String XML_ATTR_REFERENCES
public static final String XML_ATTR_REFERENCES_OBJ_REF
public static final String XML_ATTR_REFERENCES_NUM
public static final String XML_ATTR_REFERENCES_UFID
public static final String XML_ATTR_REFERENCES_OBJ_REF_CONTAINER_PATH
public static final String XML_ATTR_REFERENCEDBY
public static final String XML_ATTR_REFERENCEDBY_OBJ_REF
public static final String XML_ATTR_REFERENCEDBY_LOCID
public static final String XML_ATTR_REFERENCEDBY_UFID
public static final String XML_ATTR_REFERENCEDBY_OBJ_REF_CONTAINER_PATH
public static final String XML_IBA
public static final String XML_EXCLUDED_IBA
public static final String XML_IBA_NAME
public static final String XML_IBA_PATH
public static final String XML_IBA_OID
public static final String XML_IBA_VALUE
public static final String XML_IBA_TYPE
public static final String XML_IBA_DEFINITIONS
public static final String XML_ATTR_DISPLAY_NAME
public static final String XML_ATTR_PARENT_PATH
public static final String XML_ATTR_HIERACHY_DISP_NAME
public static final String XML_IBA_RATIO_DENOMINATOR
public static final String XML_IBA_UNIT_PRECISION
public static final String XML_IBA_PRECISION
public static final String XML_IBA_UNIT_MEASURE_NAME
public static final String XML_IBA_UNIT_MEASURE_SYMBOL
public static final String XML_IBA_UNIT_MEASURE_DESC
public static final String XML_IBA_UNIT_MS_NAME_VALUE
public static final String XML_IBA_UNIT_DEFAULT_MS_NAME_VALUE
public static final String XML_IBA_REFERENCE_CLASS
public static final String XML_BUSINESS_ENTITY
public static final String XML_BUSINESS_ENTITY_ID
public static final String XML_CLASSIFICATION_NODE
public static final String XML_COUNTERPART_ID
public static final String XML_IMAGE_HOLDER
public static final String XML_CLASSIFICATION_STRUCT
public static final String XML_CLASS_NAME
public static final String XML_DISPLAY_UNITS
public static final String XML_QOM_SYMBOL
public static final String XML_QOM_DESC
public static final String XML_QOM_NAME
public static final String XML_QOM_MS_NAME_VALUE
public static final String XML_QOM_DEFAULT_MS_NAME_VALUE
public static final String XML_MS_NAME
public static final String XML_MS_KEY_SYMBOL
public static final String XML_MS_DESC
public static final String XML_WTTYPE_DEFINITIONS
public static final String XML_USER_ATTRIBUTEABLE
public static final String XML_TYPE_INSTANTIABLE
public static final String XML_TYPE_DELETED
public static final String XML_CONSTRAINT_TAG
public static final String XML_ENFORCE_RULE_CLASS
public static final String XML_BINDING_RULE_CLASS
public static final String XML_ENFORCE_RULE_DATA
public static final String XML_BINDING_RULE_DATA
public static final String XML_EXTERNAL_TYPE_ID
public static final String XML_TYPE_OID
public static final String XML_MASTER_EXTERNAL_TYPE_ID
public static final String XML_MASTER_TYPE_OID
public static final String XML_CONTAINER_DOMAIN_NAME
public static final String XML_LOGICAL_IDENTIFIER
public static final String XML_LOGICAL_ID
public static final String XML_IDENTIFIED_GROUP
public static final String XML_ICON_TAG
public static final String XML_ICON_NAME
public static final String XML_ATTR_LOCALE
public static final String XML_CONTENT
public static final String XML_CONTENT_ID
public static final String XML_CONTENT_CATEGORY
public static final String XML_CONTENT_ROLE
public static final String XML_CONTENT_TYPE
public static final String XML_CONTENT_FILE_NAME
public static final String XML_CONTENT_DESCRIPTION
public static final String XML_CONTENT_URL_LOCATION
public static final String XML_TAG_REPRESENTATION
public static final String XML_WT_PART_REF
public static final String XML_WT_DOCUMENT_REF
public static final String XML_WT_PRODUCT_REF
public static final String XML_WT_SERIAL_PART_REF
public static final String XML_EPM_DOC_REF
public static final String XML_ATTR_DTD
public static final String XML_ATTR_OCCURENCES_ATTRIBUTE
public static final String REGISTRY_MAIN_FILE_NAME
public static final String REGISTRY_BODY_TAG
private static final String CONFLICT_RESOURCE
private static String IXB_RESOURCE
private static ResourceBundle rb
private static String reposGuidPrefixForImport
private static Object ixbLocalPropertyKey
Constructor Detail |
public IxbHndHelper()
Method Detail |
public static void initialize() throws WTException
WTException
public static String getDisplayIdentityForIxb(Object ob, Locale locale) throws WTException
WTException
public static String getDisplayIdentityForIxb(Object ob) throws WTException
WTException
public static String getObjectIdImage(Persistable ob) throws WTException
WTException
public static void exportAttribute(Class cl, Object ob, IxbElement fileXML, Exporter exporter) throws WTException
WTException
public static void checkConflictAgainstExistingObject(String rb, String attrNameKey, String newValue, String oldValue, String newObjId, Importer importer) throws WTException
WTException
public static void checkConflictForAttribute(Class cl, Object existingOb, IxbElement fileXML, Importer importer) throws WTException
WTException
public static Object importAttribute(Class cl, Object ob, IxbElement fileXML, Importer importer) throws WTException
WTException
public static String getUfidOfObject(Federatable ob) throws WTException
WTException
public static String getBirthUfidOfObject(Federatable obj) throws WTException
WTException
public static String getUfidString(Federatable obj, ExpImporter expImp) throws WTException
obj
- Federatable objectexpImp
- Exporter or Importer which defines the context of the operation
WTException
public static Federatable getObjectOfUfid(String ufidString) throws WTException
WTException
public static Federatable getObjectOfBirthUfid(String ufidString, WTContainerRef container) throws WTException
WTException
public static Federatable getObjectOfUfidString(String ufidString, Importer importer, WTContainerRef container) throws WTException
ufidString
- String representation of object's ufidimporter
- Represents context of the operationcontainer
- Target container for import (restore)
WTException
public static void setUfidForObject(Federatable ob, String ufidXmlImage) throws WTException
WTException
public static void storeObjectsUfid(Federatable ob) throws WTException
WTException
public static void storeObjectsBirthUfid(Federatable obj, String birthUfid, String containerId) throws WTException
WTException
private static String getUfidXmlImage(Ufid ufid) throws WTException
WTException
private static Ufid getUfidOfUfidXmlImage(String ufidXmlImage) throws WTException
WTException
private static Repository getRepositoryOfString(String guid, String domain) throws WTException
WTException
public static String getReposGuidPrefixForImport() throws WTException
WTException
public static String getContainerId(WTContainerRef containerRef)
public static InputStream getRegistryDirectoryContentAsInputStream(String dirName, String extension) throws WTException
WTException
public static String getRegistryDirectoryContentAsString(String dirName, String extension) throws WTException
WTException
public static String[] getListOfFilesInDir(String path) throws WTException
WTException
private static String getFileContentAsString(String fn, String path) throws WTException
WTException
public static WTObject getWTObject(Class obj_class, String attr_name, String attr_value) throws WTException
If the above assumptions are not met, don't use this method.
WTException
public static Mastered makeSureItIsMaster(Persistable ob)
public static InputStream getSetupFileInputStream(String propertyName, String defaultFileName, String extension) throws WTException, FileNotFoundException
WTException
FileNotFoundException
public static String getSetupFileName(String propertyName, String defaultFileName) throws WTException
WTException
public static Persistable getObjectOfObjId(String objIdImage) throws WTException
WTException
public static Persistable getObjectOfObjId(ObjectIdentifier objId) throws WTException
WTException
public static void rememberNewObjectInfoForOldObjectId(Persistable newOb, boolean objectIsReallyNew, String oldObjectId, Importer importer) throws WTException
WTException
public static Boolean getObjectIsNewByOldObjectId(String oldId, Importer importer) throws WTException
WTException
public static Persistable getNewObjectByOldObjectId(String oldLocalId, Importer importer) throws WTException
WTException
public static ObjectIdentifier ObjectIdentifierOfString(String objId) throws WTException
WTException
public static WTObject getWTObjectectOfOldId(String oldId, Importer importer) throws WTException
WTException
public static Mastered getMasterObject(Class master_class, String attr_name, String attr_value) throws WTException
WTException
public static Iterated getIteratedObject(Class iterated_class, String attr_name, String attr_value) throws WTException
WTException
public static Iterated getIteratedObjectOfNumber(Class iterated_class, String number_attr_name, String number, WTContainerRef containerRef, WTOrganization org) throws WTException
iterated_class
- class to search on (should implement Iterated)number_attr_name
- 'number' attribute name as defined in Rose modelnumber
- 'number' attribute valueorg
-
WTException
public static Persistable getObjectByObjectReferenceElement(IxbElement obRef, Importer importer) throws WTException
WTException
public static boolean getObjectIsNewByObjectReferenceElement(IxbElement obRef, Importer importer) throws WTException
WTException
private static Persistable getNewObjectByElementAndTag(IxbElement obRef, String tag, Importer importer) throws WTException
WTException
private static Boolean getObjectIsNewByElementAndTag(IxbElement obRef, String tag, Importer importer) throws WTException
WTException
public static Object findAlreadyImportedVersionedObject(Class cl, IxbElement fileXML) throws WTException
cl
- fileXML
-
WTException
public static ObjectToObjectLink findAlreadyImportedLink(Class cl, Persistable usedBy, Persistable uses) throws WTException
WTException
public static VersionToVersionLink findAlreadyImportedV2VLink(Class cl, WTObject from, WTObject to) throws WTException
WTException
public static Folder getFolder(String folderPath, WTContainerRef cont) throws WTException
WTException
public static Folder getFolder(String folderPath, AdminDomainRef domain, WTContainerRef cont) throws WTException
WTException
public static Folder getFolder(String folderPath) throws WTException
WTException
public static String getIxbProperty(String propertyKey) throws WTException
WTException
public static boolean getIxbProperty(String propertyKey, boolean defaultValue) throws WTException
WTException
public static int getIxbProperty(String propertyKey, int defaultValue) throws WTException
WTException
public static String getIxbProperty(String propertyName, String defaultValue) throws WTException
WTException
public static void startIxbLocalProperties(Properties props) throws WTException
WTException
public static void finishIxbLocalProperties() throws WTException
WTException
private static void PP(String s)
public static boolean verifiesFileNameExtension(String fileName, String extension)
fileName
- full path or just single file nameextension
- extension to be verified without the period (just "ext" not ".ext")
public static boolean checkIntegrityAttributeXml(String attribute, String attributeTag) throws LogHelper.IxbException
attribute
- attribute in a xml elementattributeTag
- name of the tag associated with the attribute
LogHelper.IxbException
- (WTException) in case of null/empty valuepublic static File writeManifest(Set setObjectList, String filePath) throws WTException
WTException
public static QueryResult findAlreadyImportedLinks(Class cl, Persistable usedBy, Persistable uses) throws WTException
WTException
public static Object findAlreadyImportedVersionedObject(Class cl, Class masterClass, IxbElement fileXML, WTContainerRef containerRef) throws WTException
WTException
public static Mastered getMasterObject(Class master_class, String attr_name, String attr_value, WTContainerRef containerRef) throws WTException
WTException
public static Mastered getMasterObjectOfNumber(Class master_class, String number_attr_name, String number, WTContainerRef containerRef, WTOrganization org) throws WTException
WTException
public static boolean isLinkIgnored(IxbElement fileXML, Importer importer, String linkTag, boolean checkNotCreateLink) throws WTException
WTException
public static Persistable getEndOftheLink(IxbElement fileXML, Importer importer, String linkTag, boolean isMasterObject, Class masterClass) throws WTException
WTException
public static WTContainerRef getContainerRefFromImporter(IxbElement fileXML, Importer importer) throws WTException
WTException
public static String getPathOfContainer(WTContainerRef container) throws WTException
WTException
public static WTContainerRef getContainerOfPath(String path) throws WTException
WTException
public static boolean isRunningInPDMLink(WTContainerRef containerRef)
containerRef
- target (or source) container reference
public static String getGlobalOrgIdForObject(OrganizationOwned obj) throws WTException
obj
-
WTException
public static WTOrganization getOrganizationByGlobalOrgId(String orgIdString) throws WTException
orgIdString
- String representation of Global Org Id in format WTException
public static WTOrganization getOrganizationByGlobalOrgId(WTOrganizationIdentifier orgId) throws WTException
orgId
- global organization identifier (can be null, in which case null will be returned).
WTException
private static WTOrganizationIdentifier getGlobalOrgIdOfString(String orgIdString) throws WTException
WTException
public static boolean shouldIgnoreAttributeConflict(Object obj, IxbElement attrElem, Importer imp) throws WTException
WTException
public static boolean shouldIgnoreAttributeConflict(Object obj, IxbElement fileXML, String attrTag, Importer imp) throws WTException
WTException
public static boolean shouldIgnoreAttribute(IxbElement fileXML, String attrTag, WTContainerRef container) throws WTException
WTException
public static String getActionName(IxbElement fileXML, Importer importer) throws WTException
WTException
public static String getActionName(IxbElement fileXML) throws WTException
fileXML
-
WTException
public static String getActionName(IxbElement fileXML, boolean forExport) throws WTException
WTException
public static Persistable moveLocationIfNecessary(Persistable ob, IxbElement fileXML, Importer importer) throws WTException
WTException
public static void storeObjectsBirthUfidForMaster(Object master, IxbElement fileXML, Importer importer) throws WTException
WTException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |