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 Integer
availableUpdateCount
protected String
bannerPath
protected static String
CONNECT_UNREACHABLE
protected static String
EXPIRED
protected String
feedUrl
protected static Log
log
protected static String
ONLINE_REGISTERED
protected boolean
registered
protected String
type
protected static String
UNREGISTERED
-
Constructor Summary
Constructors Constructor Description ConnectUpdateStatusInfo()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected static String
buildFeedUrl(boolean registred)
protected int
computeAvailableUpdateCount()
static ConnectUpdateStatusInfo
connectServerUnreachable()
int
getAvailableUpdateCount()
String
getBannerPath()
String
getDistributionLabel()
String
getDistributionName()
String
getDistributionVersion()
String
getFeedUrl()
String
getIdentifier()
String
getType()
boolean
isExpired()
boolean
isRegistered()
static ConnectUpdateStatusInfo
notValid()
static ConnectUpdateStatusInfo
ok()
protected void
setBannerPath(String bannerName)
static ConnectUpdateStatusInfo
unregistered()
-
-
-
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()
-
-