Class PolicyAgreementState


  • public class PolicyAgreementState
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Constructor Description
      PolicyAgreementState​(java.lang.Long policyDocumentId, java.lang.Integer policyDocumentRevision, pl.edu.icm.unity.types.policyAgreement.PolicyAgreementAcceptanceStatus acceptanceStatus, java.util.Date decisionTs)  
    • Field Detail

      • policyDocumentId

        public final long policyDocumentId
      • policyDocumentRevision

        public final int policyDocumentRevision
      • acceptanceStatus

        public final pl.edu.icm.unity.types.policyAgreement.PolicyAgreementAcceptanceStatus acceptanceStatus
      • decisionTs

        public final java.util.Date decisionTs
    • Constructor Detail

      • PolicyAgreementState

        public PolicyAgreementState​(java.lang.Long policyDocumentId,
                                    java.lang.Integer policyDocumentRevision,
                                    pl.edu.icm.unity.types.policyAgreement.PolicyAgreementAcceptanceStatus acceptanceStatus,
                                    java.util.Date decisionTs)
    • Method Detail

      • toJson

        public java.lang.String toJson()
                                throws pl.edu.icm.unity.exceptions.EngineException
        Throws:
        pl.edu.icm.unity.exceptions.EngineException
      • fromJson

        public static PolicyAgreementState fromJson​(java.lang.String jsonConfig)
                                             throws pl.edu.icm.unity.exceptions.EngineException
        Throws:
        pl.edu.icm.unity.exceptions.EngineException
      • equals

        public boolean equals​(java.lang.Object other)
        Overrides:
        equals in class java.lang.Object
      • hashCode

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