public class ImportOp extends java.lang.Object implements MessageOperation
pnrObjectSet.
If an object in the set contains some elements managed in chronology, it is possible to choose in the operation request to keep or not the chronologies. If the chronologies are kept, they will be fully stored in the back-end database. Otherwise, the behavior is the same than the modification operations. Elements will be put in their chronology, with a start period corresponding to the modification date set in this import operation request, and a stop period unbounded.
Note
Refer to the Export operation for more information details about what you can export/import in this version of SAP CC.
ExportOp ImportResult The XML APIs specify the following XSD fragment:
XSD Fragment
<xs:element name="import">
<xs:complexType>
<xs:sequence>
<xs:element ref="pnrObjectSet" minOccurs="1" maxOccurs="1"/>
</xs:sequence>
<xs:attribute name="chronologyKept" type="xs:boolean" default="false"/>
<xs:attribute name="modificationDate" type="xs:dateTime" />
</xs:complexType>
</xs:element>
You can send this operation request in HCI messages to the following final target types of instances in the connected SAP CC system:
| Edition | Final Target Instances | |||||
| rater | updater | guider | bulkLoader | taxer | dispatcher | |
| charge | No | Yes | No | No | No | No |
This operation is audited by the system as part of the audit domain: CATALOG. Consult the IT administrator.
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
OPERATION_NAME
The value of this constant is the XML tag name of this operation: "import".
|
| Constructor and Description |
|---|
ImportOp()
Creates an empty operation.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addCharacterData(java.lang.String cData)
Adds character data to the content element.
|
void |
addChild(java.lang.String tagName,
XMLMarshallable child)
Adds a child to the object, the
child representing
the marshallable object which must be added to the element. |
java.util.Date |
getModificationDate()
Gets the modification date (used if chronologies are not kept).
|
java.lang.String |
getName()
Returns the name of the operation, that is "importPnrObject".
|
PnRObjectSet |
getPnRObjectSet()
Gets the PnRObjectSet.
|
boolean |
isChronologyKept()
Gets the flag that indicates if the chronologies are kept or not.
|
void |
marshal(XMLOutputter output)
Gives an XML representation of this object, including its children.
|
void |
setAttributes(XMLAttributes atts)
Sets the attributes of the XML representation of the element being
processed.
|
void |
setChronologyKept(boolean chronologyKept)
Sets the flag that indicates if the chronologies are kept or not.
|
void |
setModificationDate(java.util.Date modificationDate)
Sets the modification date (used if chronologies are not kept).
|
void |
setPnRObjectSet(PnRObjectSet pnrObjectSet)
Sets the PnRObjectSet.
|
public static final java.lang.String OPERATION_NAME
public java.util.Date getModificationDate()
public void setModificationDate(java.util.Date modificationDate)
modificationDate - The modification datepublic boolean isChronologyKept()
true if the chronologies are kept, else falsepublic void setChronologyKept(boolean chronologyKept)
chronologyKept - The flag that indicates if the chronologies are kept or notpublic java.lang.String getName()
getName in interface MessageOperationpublic PnRObjectSet getPnRObjectSet()
public void setPnRObjectSet(PnRObjectSet pnrObjectSet)
pnrObjectSet - The pnr object setpublic void setAttributes(XMLAttributes atts)
XMLMarshallablesetAttributes in interface XMLMarshallableatts - The XML attributes of the current elementpublic void addCharacterData(java.lang.String cData)
XMLMarshallableaddCharacterData in interface XMLMarshallablecData - The character data to be addedpublic void addChild(java.lang.String tagName,
XMLMarshallable child)
XMLMarshallablechild representing
the marshallable object which must be added to the element.addChild in interface XMLMarshallabletagName - The name of tag for the childchild - The child to be addedpublic void marshal(XMLOutputter output)
XMLMarshallablemarshal in interface XMLMarshallableoutput - The XML output to marshal the object into