Package org.nuxeo.connect.client.status
Class ConnectUpdateStatusInfo
- java.lang.Object
-
- org.nuxeo.connect.client.status.ConnectUpdateStatusInfo
-
public class ConnectUpdateStatusInfo extends Object
Store information about registration and possible updates- Author:
- Tiry ([email protected])
-
-
Field Summary
Fields Modifier and Type Field Description protected IntegeravailableUpdateCountprotected StringbannerPathprotected static StringCONNECT_UNREACHABLEprotected static StringEXPIREDprotected StringfeedUrlprotected static Loglogprotected static StringONLINE_REGISTEREDprotected booleanregisteredprotected Stringtypeprotected static StringUNREGISTERED
-
Constructor Summary
Constructors Constructor Description ConnectUpdateStatusInfo()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected static StringbuildFeedUrl(boolean registred)protected intcomputeAvailableUpdateCount()static ConnectUpdateStatusInfoconnectServerUnreachable()intgetAvailableUpdateCount()StringgetBannerPath()StringgetDistributionLabel()StringgetDistributionName()StringgetDistributionVersion()StringgetFeedUrl()StringgetIdentifier()StringgetType()booleanisExpired()booleanisRegistered()static ConnectUpdateStatusInfonotValid()static ConnectUpdateStatusInfook()protected voidsetBannerPath(String bannerName)static ConnectUpdateStatusInfounregistered()
-
-
-
Field Detail
-
UNREGISTERED
protected static final String UNREGISTERED
- See Also:
- Constant Field Values
-
ONLINE_REGISTERED
protected static final String ONLINE_REGISTERED
- See Also:
- Constant Field Values
-
CONNECT_UNREACHABLE
protected static final String CONNECT_UNREACHABLE
- See Also:
- Constant Field Values
-
EXPIRED
protected static final String EXPIRED
- See Also:
- Constant Field Values
-
type
protected String type
-
bannerPath
protected String bannerPath
-
availableUpdateCount
protected Integer availableUpdateCount
-
feedUrl
protected String feedUrl
-
registered
protected boolean registered
-
log
protected static Log log
-
-
Method Detail
-
unregistered
public static ConnectUpdateStatusInfo unregistered()
-
ok
public static ConnectUpdateStatusInfo ok()
-
connectServerUnreachable
public static ConnectUpdateStatusInfo connectServerUnreachable()
-
notValid
public static ConnectUpdateStatusInfo notValid()
-
buildFeedUrl
protected static String buildFeedUrl(boolean registred)
-
getIdentifier
public String getIdentifier()
-
getDistributionLabel
public String getDistributionLabel()
-
getDistributionName
public String getDistributionName()
-
getDistributionVersion
public String getDistributionVersion()
-
computeAvailableUpdateCount
protected int computeAvailableUpdateCount()
-
getBannerPath
public String getBannerPath()
-
setBannerPath
protected void setBannerPath(String bannerName)
-
getAvailableUpdateCount
public int getAvailableUpdateCount()
-
getType
public String getType()
-
getFeedUrl
public String getFeedUrl()
-
isRegistered
public boolean isRegistered()
-
isExpired
public boolean isExpired()
-
-