Class WebServiceAuditMessage
java.lang.Object
com.aquima.interactions.foundation.logging.audit.impl.AuditMessage
com.aquima.interactions.foundation.logging.audit.impl.WebServiceAuditMessage
- All Implemented Interfaces:
IAuditMessage
,Serializable
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class com.aquima.interactions.foundation.logging.audit.impl.AuditMessage
AuditMessage.EventType
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic WebServiceAuditMessage
forRestCall
(DcmAuditProperties dcmAuditProperties, String sourceType, String sourceId, HttpMethodType httpMethod, String serviceName, String operationName, String statusCode) This method returns a new WebServiceAuditMessage when the AQ_RestServiceClient service is called.static IAuditMessage
forRestService
(DcmAuditProperties dcmAuditProperties, String sourceId, String operationName, String statusCode) This method returns a new WebServiceAuditMessage when a BAARS is called.static WebServiceAuditMessage
forSoapCall
(DcmAuditProperties dcmAuditProperties, String sourceType, String sourceId, String serviceName, String operationName, String faultCode) This method returns a new WebServiceAuditMessage when the AQ_SoapServiceClient service is called.static IAuditMessage
forSoapService
(DcmAuditProperties dcmAuditProperties, String sourceId, String operationName, String statusCode) This method returns a new WebServiceAuditMessage when a BAAS is called.Methods inherited from class com.aquima.interactions.foundation.logging.audit.impl.AuditMessage
addContext, getCaseId, getContext, getEventType, getProcessName, getSourceId, getSourceType, getTaskId, getTaskName, setCaseId, setContext, setEventType, setProcessName, setSourceId, setSourceType, setTaskId, setTaskName
-
Field Details
-
PROPERTY_OPERATION_NAME
- See Also:
-
PROPERTY_SERVICE_NAME
- See Also:
-
PROPERTY_HTTP_METHOD
- See Also:
-
PROPERTY_HTTP_STATUS_CODE
- See Also:
-
PROPERTY_SOAP_FOUT_CODE
- See Also:
-
-
Method Details
-
forRestCall
public static WebServiceAuditMessage forRestCall(DcmAuditProperties dcmAuditProperties, String sourceType, String sourceId, HttpMethodType httpMethod, String serviceName, String operationName, String statusCode) This method returns a new WebServiceAuditMessage when the AQ_RestServiceClient service is called.- Parameters:
dcmAuditProperties
- Dcm Audit properties which contains caseid, taskid, taskname and processname.sourceType
- SourceType, e.g. AQ_RestServiceClient.sourceId
- SourceId. e.g. getPersonService.httpMethod
- Http method of the rest service call.serviceName
- Name of the service which is used.operationName
- Name of the operation which is called.statusCode
- Status code of the rest service call.- Returns:
- WebServiceAuditMessage object which contains all the information for auditlogging.
-
forSoapCall
public static WebServiceAuditMessage forSoapCall(DcmAuditProperties dcmAuditProperties, String sourceType, String sourceId, String serviceName, String operationName, String faultCode) This method returns a new WebServiceAuditMessage when the AQ_SoapServiceClient service is called.- Parameters:
dcmAuditProperties
- Dcm Audit properties which contains caseid, taskid, taskname and processname.sourceType
- SourceType, e.g. AQ_RestServiceClient.sourceId
- SourceId. e.g. getPersonService.serviceName
- Name of the service which is used.operationName
- Name of the operation which is called.faultCode
- Fault code of the failed soap service call.- Returns:
- WebServiceAuditMessage object which contains all the information for auditlogging.
-
forSoapService
public static IAuditMessage forSoapService(DcmAuditProperties dcmAuditProperties, String sourceId, String operationName, String statusCode) This method returns a new WebServiceAuditMessage when a BAAS is called.- Parameters:
dcmAuditProperties
- Dcm Audit properties which contains caseid, taskid, taskname and processname.sourceId
- SourceId. e.g. getPersonService.operationName
- Name of the operation which is called.statusCode
- Status code of the failed BAAS.- Returns:
- WebServiceAuditMessage object which contains all the information for auditlogging.
-
forRestService
public static IAuditMessage forRestService(DcmAuditProperties dcmAuditProperties, String sourceId, String operationName, String statusCode) This method returns a new WebServiceAuditMessage when a BAARS is called.- Parameters:
dcmAuditProperties
- Dcm Audit properties which contains caseid, taskid, taskname and processname.sourceId
- SourceId. e.g. getPersonService.operationName
- Name of the operation which is called.statusCode
- Status code of the failed BAARS.- Returns:
- WebServiceAuditMessage object which contains all the information for auditlogging.
-