Package org.nuxeo.connect.client.status
Class SubscriptionStatusWrapper
java.lang.Object
org.nuxeo.connect.data.AbstractJSONSerializableData
org.nuxeo.connect.data.SubscriptionStatus
org.nuxeo.connect.client.status.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 Summary
Modifier and TypeFieldDescriptionprotected boolean
protected boolean
protected Calendar
protected boolean
Fields inherited from class org.nuxeo.connect.data.SubscriptionStatus
contractStatus, description, endDate, instanceType, message
Fields inherited from class org.nuxeo.connect.data.AbstractJSONSerializableData
errorMessage
-
Constructor Summary
ConstructorDescriptionSubscriptionStatusWrapper
(String errorMessage) SubscriptionStatusWrapper
(org.nuxeo.connect.connector.ConnectSecurityError securityException) SubscriptionStatusWrapper
(org.nuxeo.connect.data.SubscriptionStatus status) -
Method Summary
Methods inherited from class org.nuxeo.connect.data.SubscriptionStatus
getContractStatus, getDescription, getEndDate, getInstanceType, getInstanceTypeAsJson, getMessage, loadFromJSON, loadFromJSON, setContractStatus, setDescription, setEndDate, setInstanceType, setInstanceType, setMessage, status, toString
Methods inherited from class org.nuxeo.connect.data.AbstractJSONSerializableData
asJSON, asJSONold, doLoadFromJSON, getErrorMessage, loadFromJSON, loadFromJSON, serializeAsJSON, setErrorMessage
-
Field Details
-
isSecurityError
protected boolean isSecurityError -
canNotReachConnectServer
protected boolean canNotReachConnectServer -
versionMismatch
protected boolean versionMismatch -
refreshDate
-
-
Constructor Details
-
SubscriptionStatusWrapper
-
SubscriptionStatusWrapper
public SubscriptionStatusWrapper(org.nuxeo.connect.connector.ConnectSecurityError securityException) -
SubscriptionStatusWrapper
public SubscriptionStatusWrapper(org.nuxeo.connect.data.SubscriptionStatus status)
-
-
Method Details
-
getinstanceTypeLabel
-
getContractStatusLabel
-
isError
public boolean isError()- Overrides:
isError
in classorg.nuxeo.connect.data.AbstractJSONSerializableData
-
isConnectServerUnreachable
public boolean isConnectServerUnreachable() -
isVersionMismatch
public boolean isVersionMismatch() -
isSecurityError
public boolean isSecurityError() -
getRefreshDate
-