public class UserOperationFilterModel extends java.lang.Object implements XMLMarshallable
Java class represents the user operation filter as seen by your client application.
A user operation filter allows to filter the user operations containing specific fields:
SAP CC user)The operand reference can be a code or a reference if no code exists.
An operand type can be specified if some user operation results or user operation errors have to be filtered.
Note
If a field of the user operation filter is null, then all values are valid for this field.
AuditModelThe XML APIs specify the following XSD fragment:
XSD Fragment
<xs:element name="userOperationFilter">
<xs:complexType>
<xs:attribute name="operationName" type="xs:string"/>
<xs:attribute name="operatorName" type="xs:string" />
<xs:attribute name="operandType" type="OperandType" default="all"/>
<xs:attribute name="operandReference" type="xs:string" />
</xs:complexType>
</xs:element><xs:simpleType name="OperandType">
<xs:restriction base="xs:string">
<xs:enumeration value="result"/>
<xs:enumeration value="error"/>
<xs:enumeration value="all"/>
</xs:restriction>
</xs:simpleType>
| Modifier and Type | Field and Description |
|---|---|
static int |
ALL_TYPE
All the types (result type and error type) for filter
|
static int |
ERROR_TYPE
The error type for filter
|
static int |
RESULT_TYPE
The result type for filter
|
| Constructor and Description |
|---|
UserOperationFilterModel()
Builds a UserOperationFilterModel object for
ALL_TYPE of result. |
UserOperationFilterModel(java.lang.String operationName,
java.lang.String operatorName,
int operandType,
java.lang.String operandReference)
Builds a UserOperationFilterModel object.
|
UserOperationFilterModel(java.lang.String operationName,
java.lang.String operatorName,
int operandType,
java.lang.String operandReference,
java.lang.String message)
Builds a UserOperationFilterModel object.
|
| 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 |
getMessage()
Returns the message to be filtered.
|
java.lang.String |
getOperandReference()
Returns the reference of the operand to be filtered.
|
int |
getOperandType()
Returns the type of the operand (result, error, all) to be filtered.
|
java.lang.String |
getOperationName()
Returns the name of the operation to be filtered.
|
java.lang.String |
getOperatorName()
Returns the name of the operator to be filtered.
|
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 |
setMessage(java.lang.String message)
Sets the message to be filtered.
|
void |
setOperandReference(java.lang.String operandReference)
Sets the reference of the operand to be filtered.
|
void |
setOperandType(int operandType)
Sets the type of the operand (result, error, all) to be filtered.
|
void |
setOperationName(java.lang.String operationName)
Sets the name of the operation to be filtered.
|
void |
setOperatorName(java.lang.String operatorName)
Sets the name of the operator to be filtered.
|
public static final int RESULT_TYPE
public static final int ERROR_TYPE
public static final int ALL_TYPE
public UserOperationFilterModel()
ALL_TYPE of result.public UserOperationFilterModel(java.lang.String operationName,
java.lang.String operatorName,
int operandType,
java.lang.String operandReference,
java.lang.String message)
operationName - The name of the user operationoperatorName - The name of operatoroperandType - The type of operatoroperandReference - The reference of the operandmessage - The message of the operandpublic UserOperationFilterModel(java.lang.String operationName,
java.lang.String operatorName,
int operandType,
java.lang.String operandReference)
operationName - The name of the users operationoperatorName - The name of operatoroperandType - The type of operatoroperandReference - The reference of the operandpublic java.lang.String getOperationName()
public void setOperationName(java.lang.String operationName)
operationName - The name of the operation to be filteredpublic java.lang.String getOperatorName()
public void setOperatorName(java.lang.String operatorName)
operatorName - The name of the operator to be filteredpublic int getOperandType()
public void setOperandType(int operandType)
operandType - The type of the operand to be filteredpublic java.lang.String getOperandReference()
public void setOperandReference(java.lang.String operandReference)
operandReference - The reference of the operand to be filteredpublic java.lang.String getMessage()
public void setMessage(java.lang.String message)
message - The message to be filteredpublic void setAttributes(XMLAttributes atts)
XMLMarshallablesetAttributes in interface XMLMarshallableatts - The XML attributes of the current elementpublic 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 marshal(XMLOutputter output)
XMLMarshallablemarshal in interface XMLMarshallableoutput - The XML output to marshal the object into