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 theSubscriptionStatus
- Author:
- tiry
-
-
Field Summary
Fields Modifier and Type Field Description protected boolean
canNotReachConnectServer
protected boolean
isSecurityError
protected Calendar
refreshDate
protected boolean
versionMismatch
-
Constructor Summary
Constructors Constructor Description SubscriptionStatusWrapper(String errorMessage)
SubscriptionStatusWrapper(org.nuxeo.connect.connector.ConnectSecurityError securityException)
SubscriptionStatusWrapper(org.nuxeo.connect.data.SubscriptionStatus status)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getContractStatusLabel()
String
getinstanceTypeLabel()
Calendar
getRefreshDate()
boolean
isConnectServerUnreachable()
boolean
isError()
boolean
isSecurityError()
boolean
isVersionMismatch()
-
Methods inherited from class org.nuxeo.connect.data.SubscriptionStatus
getContractStatus, getDescription, getEndDate, getInstanceType, getMessage, loadFromJSON, loadFromJSON, setContractStatus, setDescription, setEndDate, setInstanceType, setInstanceType, setMessage, status, toString
-
-
-
-
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 classorg.nuxeo.connect.data.AbstractJSONSerializableData
-
isConnectServerUnreachable
public boolean isConnectServerUnreachable()
-
isVersionMismatch
public boolean isVersionMismatch()
-
isSecurityError
public boolean isSecurityError()
-
getRefreshDate
public Calendar getRefreshDate()
-
-