Package wt.ixb.actor
Class ActorTemplateForTypeDefinition
java.lang.Object
wt.ixb.actor.ActorTemplate
wt.ixb.actor.ActorTemplateForPersistable
wt.ixb.actor.ActorTemplateForVersioned
wt.ixb.actor.CheckOutActorTemplate
wt.ixb.actor.ActorTemplateForTypeDefinition
- All Implemented Interfaces:
Actor
Supported API: true
Extendable: false
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringKey used in Importer's general context for target internet domains for each XML file to be imported.protected static final StringTag to be used for import actions "Substitute Object" and "Create New Object" when importing type definitions.protected static final StringTag to be used for import action "Substitute Object" when importing type definitions.Fields inherited from class wt.ixb.actor.ActorTemplateForPersistable
_delegate, _delegateAndElementsMapFields inherited from class wt.ixb.actor.ActorTemplate
LOGGER, LOGGER_DEPRECATION -
Method Summary
Modifier and TypeMethodDescriptioncom.ptc.core.meta.type.mgmt.common.TypeDefinitionDefaultViewcreateNewTypeDefinition(wt.ixb.handlers.forclasses.ExpImpForWTTypeDefinition handler, IxbElement fileXML, Importer importer, boolean checkin) This method creates and imports and persists a brand new Type Definition.static StringgetTargetContainerFromImporter(IxbElement fileXML, Importer importer) Get the internet domain name, after container mapping (if applicable) of the working container.com.ptc.core.meta.type.mgmt.common.TypeDefinitionDefaultViewimportToCheckedoutTypeDefinition(wt.ixb.handlers.forclasses.ExpImpForWTTypeDefinition handler, IxbElement fileXML, Importer importer, com.ptc.core.meta.type.mgmt.common.TypeDefinitionNodeView nodeView, boolean checkin, boolean removeIbas, boolean removeConstraints) This method import the attributes, including attributes for the type definition itself, its soft attributes (IBA values) as well as constraints (both constraints imposed on types and IBA values), to the type definition.voidperformPostExportAction(ClassExporterImporter handler, Exporter exporter, Object object, IxbElement fileXML) Perform check out action for the type definitions during export.protected voidsetLogicalIdentifier(com.ptc.core.meta.type.mgmt.common.TypeDefinitionDefaultView defView, IxbElement fileXML) Set logic identifier from XML file to the type definition.Methods inherited from class wt.ixb.actor.CheckOutActorTemplate
checkApplicabilityOfActionMethods inherited from class wt.ixb.actor.ActorTemplateForVersioned
_storeObjects, getActorDelegate, importObjectAttributes, importObjectAttributesAfterStore, importObjectMasterAttributes, importObjectsAttributes, importObjectsAttributesAfterStore, postStoreMaster, saveTheMaster, saveTheMasters, updateObjectsAttributesMethods inherited from class wt.ixb.actor.ActorTemplateForPersistable
_checkConflicts, _checkConflicts, _createObject, _finalizeImportObject, _finalizeImportObject, _getObjectsToUpdate, _importObjectsAttributes, _previewObject, _storeObject, _updateObjects, _updateObjectsAttributes, createObject, getActorDelegate, previewObjectMethods inherited from class wt.ixb.actor.ActorTemplate
checkConflicts, checkConflicts, createObject, finalizeImportObject, finalizeImportObject, getObjectsToUpdate, performPreExportAction, previewObject, storeObject, storeObjects, updateObjects
-
Field Details
-
TYPE_FULL_PATH_2_INTERNET_DOMAIN_MAP
Key used in Importer's general context for target internet domains for each XML file to be imported.
Supported API: true- See Also:
-
XML_PARAM_NEW_PATH
Tag to be used for import action "Substitute Object" when importing type definitions.
Supported API: true- See Also:
-
XML_PARAM_NEW_NAME
Tag to be used for import actions "Substitute Object" and "Create New Object" when importing type definitions.
Supported API: true- See Also:
-
-
Method Details
-
performPostExportAction
public void performPostExportAction(ClassExporterImporter handler, Exporter exporter, Object object, IxbElement fileXML) throws WTException Perform check out action for the type definitions during export. By default, if applicable only seed objects of type definitions will be checked out.
Supported API: true- Specified by:
performPostExportActionin interfaceActor- Overrides:
performPostExportActionin classCheckOutActorTemplate- Parameters:
handler-exporter- TheExporterinstance that represents the context of the export operation.object-fileXML-- Throws:
WTException
-
createNewTypeDefinition
public com.ptc.core.meta.type.mgmt.common.TypeDefinitionDefaultView createNewTypeDefinition(wt.ixb.handlers.forclasses.ExpImpForWTTypeDefinition handler, IxbElement fileXML, Importer importer, boolean checkin) throws WTException This method creates and imports and persists a brand new Type Definition.
Supported API: true- Parameters:
handler-fileXML-importer-checkin- If this value is true, then the type definition will be checked in if it is checked out.- Returns:
- TypeDefinitionDefaultView
- Throws:
WTException
-
importToCheckedoutTypeDefinition
public com.ptc.core.meta.type.mgmt.common.TypeDefinitionDefaultView importToCheckedoutTypeDefinition(wt.ixb.handlers.forclasses.ExpImpForWTTypeDefinition handler, IxbElement fileXML, Importer importer, com.ptc.core.meta.type.mgmt.common.TypeDefinitionNodeView nodeView, boolean checkin, boolean removeIbas, boolean removeConstraints) throws WTException This method import the attributes, including attributes for the type definition itself, its soft attributes (IBA values) as well as constraints (both constraints imposed on types and IBA values), to the type definition. The type definition is assumed to be checked out prior to call this method.
Supported API: true- Parameters:
handler-fileXML-importer-nodeView- The associated type definition should be checked out.checkin- if set to true, the type definition will be checked in when import is done.removeIbas- If set to true, all IBA values inherited from its predecessor type definition will be removed, keeping IBA values inherited from its parent type definition as well as the XML file.removeConstraints- If set to true, all type constraints and IBA value constraints inherited from its predecessor type definition will be removed, keeping type constraints and IBA value constraints inherited from its parent type definition as well as the XML file.- Returns:
- TypeDefinitionDefaultView
- Throws:
WTException
-
setLogicalIdentifier
protected void setLogicalIdentifier(com.ptc.core.meta.type.mgmt.common.TypeDefinitionDefaultView defView, IxbElement fileXML) throws WTException Set logic identifier from XML file to the type definition.
Supported API: true- Parameters:
defView-fileXML-- Throws:
WTException
-
getTargetContainerFromImporter
public static String getTargetContainerFromImporter(IxbElement fileXML, Importer importer) throws WTException Get the internet domain name, after container mapping (if applicable) of the working container. If the working container is not passed from client side, the container is set to the Exchange container.
Supported API: true- Parameters:
fileXML-importer-- Returns:
- String
- Throws:
WTException
-