|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectwt.ixb.actor.ActorTemplate
wt.ixb.actor.SubstituteObjectActorForVersioned
Title: SubstituteObjectActor
Description: This actor substitute the object in XML file with one object in the database
The identities of object in the database will be provided in the policy file
Copyright: Copyright PTC (c)
Company: PTC
Field Summary | |
private String |
newIteration
|
private String |
newName
|
private String |
newNumber
|
private String |
newVersion
|
private static String |
RESOURCE
|
private static String |
XML_PARAM_ITERATION
|
private static String |
XML_PARAM_NAME
|
private static String |
XML_PARAM_NUMBER
XML tags bellows are used to get values of action parameters They should be removed if Anna implements them in IxbActionsHelper |
private static String |
XML_PARAM_VERSION
|
Fields inherited from class wt.ixb.actor.ActorTemplate |
|
Constructor Summary | |
SubstituteObjectActorForVersioned()
|
Method Summary | |
void |
checkApplicabilityOfAction(Object obj)
Check if this action is applicable to the specified object. |
Object |
createObject(ClassExporterImporter _handler,
IxbElement fileXML,
Importer importer)
Create an object instance. |
private void |
parseNewIdentities(IxbElement fileXML)
get new identities of an object from newId The identities are XML elements |
void |
previewObject(ClassExporterImporter _handler,
IxbElement fileXML,
Importer importer)
Preview the import, including conflicts checking, without performing the real import. |
private static void |
printout(String s)
|
Object |
storeObject(ClassExporterImporter _handler,
Object object,
IxbElement fileXML,
Importer importer)
Persists the specified object as created by createObject(ClassExporterImporter
handler, IxbElement fileXML, Importer importer)
Supported API: true |
Methods inherited from class wt.ixb.actor.ActorTemplate |
importObjectAttributes, importObjectAttributesAfterStore, performPostExportAction, performPreExportAction |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private static final String RESOURCE
private String newNumber
private String newName
private String newVersion
private String newIteration
private static final String XML_PARAM_NUMBER
private static final String XML_PARAM_NAME
private static final String XML_PARAM_VERSION
private static final String XML_PARAM_ITERATION
Constructor Detail |
public SubstituteObjectActorForVersioned()
Method Detail |
public Object createObject(ClassExporterImporter _handler, IxbElement fileXML, Importer importer) throws WTException
ActorTemplate
createObject
in interface Actor
createObject
in class ActorTemplate
_handler
- The import class handler for the corresponding XML file.fileXML
- the XML element to be imported.importer
- The Importer
instance that represents the context of the import operation.
WTException
method storeObject( ClassExporterImporter handler,
Object object, IxbElement fileXML, Importer importer )
public Object storeObject(ClassExporterImporter _handler, Object object, IxbElement fileXML, Importer importer) throws WTException
ActorTemplate
createObject(ClassExporterImporter
handler, IxbElement fileXML, Importer importer)
storeObject
in interface Actor
storeObject
in class ActorTemplate
_handler
- The import class handler for the corresponding XML file.object
- The object to be persisted.fileXML
- the XML element to be imported.importer
- The Importer
instance that represents the context of the import operation.
WTException
public void checkApplicabilityOfAction(Object obj) throws IxbInapplicableActionException
ActorTemplate
wt.util.WTException
checkApplicabilityOfAction
in interface Actor
checkApplicabilityOfAction
in class ActorTemplate
obj
-
IxbInapplicableActionException
private void parseNewIdentities(IxbElement fileXML) throws WTException
WTException
public void previewObject(ClassExporterImporter _handler, IxbElement fileXML, Importer importer) throws WTException
ActorTemplate
previewObject
in interface Actor
previewObject
in class ActorTemplate
_handler
- The import class handler for the corresponding XML file.fileXML
- the XML element to be imported.importer
- The Importer
instance that represents the context of the import operation.
WTException
private static void printout(String s)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |