Class SubscriptionStatusWrapper

  • Direct Known Subclasses:
    UnresgistedSubscriptionStatusWrapper

    public class SubscriptionStatusWrapper
    extends org.nuxeo.connect.data.SubscriptionStatus
    Simple Wrapper to add label computation to the SubscriptionStatus
    Author:
    tiry
    • Field Detail

      • isSecurityError

        protected boolean isSecurityError
      • canNotReachConnectServer

        protected boolean canNotReachConnectServer
      • versionMismatch

        protected boolean versionMismatch
      • refreshDate

        protected Calendar refreshDate
    • Constructor Detail

      • SubscriptionStatusWrapper

        public SubscriptionStatusWrapper​(String errorMessage)
      • SubscriptionStatusWrapper

        public SubscriptionStatusWrapper​(org.nuxeo.connect.connector.ConnectSecurityError securityException)
      • SubscriptionStatusWrapper

        public SubscriptionStatusWrapper​(org.nuxeo.connect.data.SubscriptionStatus status)
    • Method Detail

      • getinstanceTypeLabel

        public String getinstanceTypeLabel()
      • getContractStatusLabel

        public String getContractStatusLabel()
      • isError

        public boolean isError()
        Overrides:
        isError in class org.nuxeo.connect.data.AbstractJSONSerializableData
      • isConnectServerUnreachable

        public boolean isConnectServerUnreachable()
      • isVersionMismatch

        public boolean isVersionMismatch()
      • isSecurityError

        public boolean isSecurityError()
      • getRefreshDate

        public Calendar getRefreshDate()