Package com.highdeal.admin.hci
Class CleanupAllResult
java.lang.Object
com.highdeal.admin.hci.CleanupAllResult
- All Implemented Interfaces:
OperationResult,XMLMarshallable
This class represents the operation result of the
Cleanup All operation;
It includes an overall execution status.Operation Request
CleanupAllOp XML API for HCI
The XML APIs specify the following XSD fragment:
XSD Fragment
<xs:element name="cleanupAllResult">
<xs:complexType>
<xs:attribute name="cleanupCount" type="xs:integer" use="required"/> <!-- This is the count of visited subscriber accounts -->
<xs:attribute name="executionStatus" type="CleanupAllExcStatusType" use="required"/>
</xs:complexType>
</xs:element><xs:simpleType name="CleanupAllExcStatusType">
<xs:restriction base="xs:string">
<xs:enumeration value="performed"/> <!-- each rater has received the activation/cleanup order and each rater has performed its activation/cleanup -->
<xs:enumeration value="stopped"/> <!-- the global activation/cleanup process has been stopped by the user -->
<xs:enumeration value="incomplete"/> <!-- some rater instances did not confirm that they have received the activation/cleanup order from the updater -->
</xs:restriction>
</xs:simpleType>
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final StringThe XML tag name of the operation result: "cleanupAllResult"static final intstatic final int -
Constructor Summary
Constructors -
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.intGets the total count of cleaned subscriber accounts.intGets the execution status of the stop cleanup operation.Gets the execution status of the stop cleanup operation as String.Gets the code or the reference (if no code exists) that identifies the operand of the operation request; If the operation is not auditable, the operand reference isnull.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.voidsetCleanupCount(int val) voidsetCleanupDate(Date cleanupDate) voidsetExecutionStatus(int val) Sets the execution status of the full cleanup operation.
-
Field Details
-
INCOMPLETE_STATUS
public static final int INCOMPLETE_STATUS- See Also:
-
PERFORMED_STATUS
public static final int PERFORMED_STATUS- See Also:
-
STOPPED_STATUS
public static final int STOPPED_STATUS- See Also:
-
OPERATION_NAME
The XML tag name of the operation result: "cleanupAllResult"- See Also:
-
-
Constructor Details
-
CleanupAllResult
public CleanupAllResult()Builds an empty cleanup result.
-
-
Method Details
-
getExecutionStatus
public int getExecutionStatus()Gets the execution status of the stop cleanup operation.- Returns:
- The status of the stop cleanup operation
-
getExecutionStatusAsString
Gets the execution status of the stop cleanup operation as String.- Returns:
- The status of the stop cleanup operation
-
setExecutionStatus
public void setExecutionStatus(int val) Sets the execution status of the full cleanup operation.- Parameters:
val- The new status value
-
getCleanupCount
public int getCleanupCount()Gets the total count of cleaned subscriber accounts.- Returns:
- The number of cleaned subscriber accounts
-
setCleanupCount
public void setCleanupCount(int val) -
getOperandReference
Description copied from interface:OperationResultGets the code or the reference (if no code exists) that identifies the operand of the operation request; If the operation is not auditable, the operand reference isnull.- Specified by:
getOperandReferencein interfaceOperationResult- Returns:
- The operand reference of the operation result
-
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
-
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
-
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
-
setCleanupDate
-