Class AbstractComplianceCheckImpl

  • All Implemented Interfaces:
    com.hack23.cia.service.api.action.kpi.ComplianceCheck, java.io.Serializable
    Direct Known Subclasses:
    PartyComplianceCheckImpl, PoliticianComplianceCheckImpl

    public abstract class AbstractComplianceCheckImpl
    extends java.lang.Object
    implements com.hack23.cia.service.api.action.kpi.ComplianceCheck
    The Class AbstractComplianceCheckImpl.
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      AbstractComplianceCheckImpl​(com.hack23.cia.service.api.action.kpi.ResourceType resourceType)
      Instantiates a new abstract compliance check impl.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void addViolation​(com.hack23.cia.service.api.action.kpi.Status status, java.lang.String ruleName, java.lang.String ruleGroup, java.lang.String ruleDescription, java.lang.String positive)
      Adds the violation.
      boolean equals​(java.lang.Object obj)  
      int getNumberRuleViolations()
      Gets the number rule violations.
      com.hack23.cia.service.api.action.kpi.ResourceType getResourceType()
      Gets the resource type.
      java.lang.String getRuleSummary()
      Gets the rule summary.
      java.util.List<com.hack23.cia.service.api.action.kpi.RuleViolation> getRuleViolations()
      Gets the rule violations.
      int hashCode()  
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
      • Methods inherited from interface com.hack23.cia.service.api.action.kpi.ComplianceCheck

        getId, getName
    • Constructor Detail

      • AbstractComplianceCheckImpl

        public AbstractComplianceCheckImpl​(com.hack23.cia.service.api.action.kpi.ResourceType resourceType)
        Instantiates a new abstract compliance check impl.
        Parameters:
        resourceType - the resource type
    • Method Detail

      • getResourceType

        public com.hack23.cia.service.api.action.kpi.ResourceType getResourceType()
        Gets the resource type.
        Specified by:
        getResourceType in interface com.hack23.cia.service.api.action.kpi.ComplianceCheck
        Returns:
        the resource type
      • getRuleViolations

        public final java.util.List<com.hack23.cia.service.api.action.kpi.RuleViolation> getRuleViolations()
        Gets the rule violations.
        Specified by:
        getRuleViolations in interface com.hack23.cia.service.api.action.kpi.ComplianceCheck
        Returns:
        the rule violations
      • getNumberRuleViolations

        public int getNumberRuleViolations()
        Gets the number rule violations.
        Specified by:
        getNumberRuleViolations in interface com.hack23.cia.service.api.action.kpi.ComplianceCheck
        Returns:
        the number rule violations
      • getRuleSummary

        public final java.lang.String getRuleSummary()
        Gets the rule summary.
        Specified by:
        getRuleSummary in interface com.hack23.cia.service.api.action.kpi.ComplianceCheck
        Returns:
        the rule summary
      • addViolation

        public final void addViolation​(com.hack23.cia.service.api.action.kpi.Status status,
                                       java.lang.String ruleName,
                                       java.lang.String ruleGroup,
                                       java.lang.String ruleDescription,
                                       java.lang.String positive)
        Adds the violation.
        Parameters:
        status - the status
        ruleName - the rule name
        ruleGroup - the rule group
        ruleDescription - the rule description
        positive - the positive
      • equals

        public final boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
      • toString

        public final java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • hashCode

        public final int hashCode()
        Overrides:
        hashCode in class java.lang.Object