public class UserOperationModel extends java.lang.Object implements XMLMarshallable
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:
Notes
AuditModelThe 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 and Description |
|---|
UserOperationModel()
Creates an uninitialized user operation.
|
UserOperationModel(java.lang.String operationName,
java.lang.String operatorName,
java.lang.String operandReference,
java.util.Date recordingDate)
Deprecated.
|
UserOperationModel(java.lang.String operationName,
java.lang.String operatorName,
java.lang.String operandReference,
java.util.Date recordingDate,
java.lang.String instanceId)
Creates a user operation for a successful execution (no error message is specified) and an instance identifier.
|
UserOperationModel(java.lang.String operationName,
java.lang.String operatorName,
java.lang.String operandReference,
java.lang.String message,
java.util.Date recordingDate)
Deprecated.
|
UserOperationModel(java.lang.String operationName,
java.lang.String operatorName,
java.lang.String operandReference,
java.lang.String message,
java.util.Date recordingDate,
java.lang.String instanceId)
Creates a user operation for a failed execution (an error message is specified) and an instance identifier.
|
| 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.lang.String |
getInstanceId()
Returns the instance identifier where the operation was audited.
|
java.lang.String |
getMessage()
Returns the message of the error.
|
java.lang.String |
getOperandReference()
Returns the code or the reference (if no code exists) of the operand.
|
java.lang.String |
getOperationName()
Returns the name of the operation executed.
|
java.lang.String |
getOperatorName()
Returns the name of the operator (user login) which executed the operation.
|
java.util.Date |
getRecordingDate()
Returns the date when the operation was recorded by the system.
|
long |
getReference()
Returns the reference of the user operation (its unique identifier in the system).
|
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 |
setInstanceId(java.lang.String instanceId)
Sets the instance identifier where the operation was audited.
|
void |
setMessage(java.lang.String message)
Sets the message of the error.
|
void |
setOperandReference(java.lang.String operandReference)
Sets the code or the reference (if no code exists) of the operand.
|
void |
setOperationName(java.lang.String operationName)
Sets the name of the operation executed.
|
void |
setOperatorName(java.lang.String operatorName)
Sets the name of the operator (user login) which executed the operation.
|
void |
setRecordingDate(java.util.Date recordingDate)
Sets the date when the operation was recorded by the system.
|
void |
setReference(long reference)
Sets the reference of the user operation (its unique identifier in the system).
|
public UserOperationModel()
@Deprecated
public UserOperationModel(java.lang.String operationName,
java.lang.String operatorName,
java.lang.String operandReference,
java.util.Date recordingDate)
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 systempublic UserOperationModel(java.lang.String operationName,
java.lang.String operatorName,
java.lang.String operandReference,
java.util.Date recordingDate,
java.lang.String instanceId)
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@Deprecated
public UserOperationModel(java.lang.String operationName,
java.lang.String operatorName,
java.lang.String operandReference,
java.lang.String message,
java.util.Date recordingDate)
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 systempublic UserOperationModel(java.lang.String operationName,
java.lang.String operatorName,
java.lang.String operandReference,
java.lang.String message,
java.util.Date recordingDate,
java.lang.String instanceId)
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 auditedpublic java.lang.String getOperationName()
public void setOperationName(java.lang.String operationName)
operationName - The name of the operation executedpublic java.lang.String getOperatorName()
public void setOperatorName(java.lang.String operatorName)
operatorName - The name of the operator (user login) which executed the operationpublic java.lang.String getOperandReference()
public void setOperandReference(java.lang.String operandReference)
operandReference - The code or the reference (if no code exists) of the operandpublic java.lang.String getMessage()
public void setMessage(java.lang.String message)
message - The message of the errorpublic java.util.Date getRecordingDate()
public void setRecordingDate(java.util.Date recordingDate)
recordingDate - The date when the operation was recorded by the systempublic long getReference()
public void setReference(long reference)
reference - The reference of the user operation (its unique identifier in the system)public java.lang.String getInstanceId()
public void setInstanceId(java.lang.String instanceId)
instanceId - The instance identifier where the operation was auditedpublic 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 addCharacterData(java.lang.String cData)
XMLMarshallableaddCharacterData in interface XMLMarshallablecData - The character data to be addedpublic void setAttributes(XMLAttributes atts)
XMLMarshallablesetAttributes in interface XMLMarshallableatts - The XML attributes of the current elementpublic void marshal(XMLOutputter output)
XMLMarshallablemarshal in interface XMLMarshallableoutput - The XML output to marshal the object into