Package com.highdeal.hci
Class UserOperationModel
java.lang.Object
com.highdeal.hci.UserOperationModel
- All Implemented Interfaces:
XMLMarshallable
This
Java class represents an audited user operation that has been processed and recorded by the SAP CC system; Your client application
can consult the operation results by implement the handling of audits or by using the existing user interfaces to audit operations.
An audited user operation contains:
- The reference of the user operation (its unique identifier in the system)
- The name of the operation executed
- The name of the operator (user login) that executed the operation
- The code or the reference (if no code exists) of the operand
- A message if an error occurred when executing the operation
- The date when it was recorded by the system
- The instance identifier where it was recorded by the system
Notes
- Charging operations are not recorded by the system.
- Search operations are only recorded if an error occurs.
- See Also:
XML API for HCI
The XML APIs specify the following XSD fragment:
XSD Fragment
<xs:element name="userOperation">
<xs:complexType>
<xs:attribute name="reference" type="xs:long"/>
<xs:attribute name="operationName" type="xs:string"/>
<xs:attribute name="operatorName" type="xs:string" />
<xs:attribute name="operandReference" type="xs:string" />
<xs:attribute name="message" type="xs:string" default=""/>
<xs:attribute name="recordingDate" type="xs:dateTime"/>
<xs:attribute name="instanceId" type="xs:string"/>
</xs:complexType>
</xs:element>
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an uninitialized user operation.UserOperationModel(String operationName, String operatorName, String operandReference, String message, Date recordingDate) Deprecated.UserOperationModel(String operationName, String operatorName, String operandReference, String message, Date recordingDate, String instanceId) Creates a user operation for a failed execution (an error message is specified) and an instance identifier.UserOperationModel(String operationName, String operatorName, String operandReference, Date recordingDate) Deprecated.UserOperationModel(String operationName, String operatorName, String operandReference, Date recordingDate, String instanceId) Creates a user operation for a successful execution (no error message is specified) and an instance identifier. -
Method Summary
Modifier and TypeMethodDescriptionvoidaddCharacterData(String cData) Adds character data to the content element.voidaddChild(String tagname, XMLMarshallable child) Adds a child to the object, thechildrepresenting the marshallable object which must be added to the element.Returns the instance identifier where the operation was audited.Returns the message of the error.Returns the code or the reference (if no code exists) of the operand.Returns the name of the operation executed.Returns the name of the operator (user login) which executed the operation.Returns the date when the operation was recorded by the system.longReturns the reference of the user operation (its unique identifier in the system).voidmarshal(XMLOutputter output) Gives an XML representation of this object, including its children.voidsetAttributes(XMLAttributes atts) Sets the attributes of the XML representation of the element being processed.voidsetInstanceId(String instanceId) Sets the instance identifier where the operation was audited.voidsetMessage(String message) Sets the message of the error.voidsetOperandReference(String operandReference) Sets the code or the reference (if no code exists) of the operand.voidsetOperationName(String operationName) Sets the name of the operation executed.voidsetOperatorName(String operatorName) Sets the name of the operator (user login) which executed the operation.voidsetRecordingDate(Date recordingDate) Sets the date when the operation was recorded by the system.voidsetReference(long reference) Sets the reference of the user operation (its unique identifier in the system).
-
Constructor Details
-
UserOperationModel
public UserOperationModel()Creates an uninitialized user operation. -
UserOperationModel
@Deprecated public UserOperationModel(String operationName, String operatorName, String operandReference, Date recordingDate) Deprecated.Creates a user operation for a successful execution (no error message is specified).- Parameters:
operationName- The name of the operation executedoperatorName- The name of the operator (user login) which executed the operationoperandReference- The code or the reference (if no code exists) of the operandrecordingDate- The date when the operation was recorded by the system
-
UserOperationModel
public UserOperationModel(String operationName, String operatorName, String operandReference, Date recordingDate, String instanceId) Creates a user operation for a successful execution (no error message is specified) and an instance identifier.- Parameters:
operationName- The name of the operation executedoperatorName- The name of the operator (user login) which executed the operationoperandReference- The code or the reference (if no code exists) of the operandrecordingDate- The date when the operation was recorded by the systeminstanceId- The instance identifier where the operation was audited
-
UserOperationModel
@Deprecated public UserOperationModel(String operationName, String operatorName, String operandReference, String message, Date recordingDate) Deprecated.Creates a user operation for a failed execution (an error message is specified).- Parameters:
operationName- The name of the operation executedoperatorName- The name of the operator (user login) which executed the operationoperandReference- The code or the reference (if no code exists) of the operandmessage- The code or the reference (if no code exists) of the operandrecordingDate- The date when the operation was recorded by the system
-
UserOperationModel
public UserOperationModel(String operationName, String operatorName, String operandReference, String message, Date recordingDate, String instanceId) Creates a user operation for a failed execution (an error message is specified) and an instance identifier.- Parameters:
operationName- The name of the operation executedoperatorName- The name of the operator (user login) which executed the operationoperandReference- The code or the reference (if no code exists) of the operandmessage- The code or the reference (if no code exists) of the operandrecordingDate- The date when the operation was recorded by the systeminstanceId- The instance identifier where the operation was audited
-
-
Method Details
-
getOperationName
Returns the name of the operation executed.- Returns:
- The name of the operation executed
-
setOperationName
Sets the name of the operation executed.- Parameters:
operationName- The name of the operation executed
-
getOperatorName
Returns the name of the operator (user login) which executed the operation.- Returns:
- The name of the operator (user login) which executed the operation
-
setOperatorName
Sets the name of the operator (user login) which executed the operation.- Parameters:
operatorName- The name of the operator (user login) which executed the operation
-
getOperandReference
Returns the code or the reference (if no code exists) of the operand.- Returns:
- The code or the reference (if no code exists) of the operand
-
setOperandReference
Sets the code or the reference (if no code exists) of the operand.- Parameters:
operandReference- The code or the reference (if no code exists) of the operand
-
getMessage
Returns the message of the error.- Returns:
- The message of the error
-
setMessage
Sets the message of the error.- Parameters:
message- The message of the error
-
getRecordingDate
Returns the date when the operation was recorded by the system.- Returns:
- The date when the operation was recorded by the system
-
setRecordingDate
Sets the date when the operation was recorded by the system.- Parameters:
recordingDate- The date when the operation was recorded by the system
-
getReference
public long getReference()Returns the reference of the user operation (its unique identifier in the system).- Returns:
- The reference of the user operation (its unique identifier in the system)
-
setReference
public void setReference(long reference) Sets the reference of the user operation (its unique identifier in the system).- Parameters:
reference- The reference of the user operation (its unique identifier in the system)
-
getInstanceId
Returns the instance identifier where the operation was audited.- Returns:
- The instance identifier where the operation was audited
-
setInstanceId
Sets the instance identifier where the operation was audited.- Parameters:
instanceId- The instance identifier where the operation was audited
-
addChild
Description copied from interface:XMLMarshallableAdds a child to the object, thechildrepresenting the marshallable object which must be added to the element.- Specified by:
addChildin interfaceXMLMarshallable- Parameters:
tagname- The name of tag for the childchild- The child to be added
-
addCharacterData
Description copied from interface:XMLMarshallableAdds character data to the content element.- Specified by:
addCharacterDatain interfaceXMLMarshallable- Parameters:
cData- The character data to be added
-
setAttributes
Description copied from interface:XMLMarshallableSets the attributes of the XML representation of the element being processed.- Specified by:
setAttributesin interfaceXMLMarshallable- Parameters:
atts- TheXML attributesof the current element
-
marshal
Description copied from interface:XMLMarshallableGives an XML representation of this object, including its children.- Specified by:
marshalin interfaceXMLMarshallable- Parameters:
output- TheXML outputto marshal the object into
-