public class TargetInfoImpl extends Object implements TargetInfo
Modifier and Type | Field and Description |
---|---|
protected boolean |
deprecated |
protected String |
description |
protected String |
downloadLink |
protected boolean |
enabled |
protected Date |
endOfAvailability |
protected boolean |
fastTrack |
protected String |
id |
protected boolean |
isDefault |
protected String |
label |
protected String |
name |
protected boolean |
overridden |
protected String |
refVersion |
protected Date |
releaseDate |
protected boolean |
restricted |
protected String |
status |
protected boolean |
trial |
protected List<String> |
types |
protected String |
version |
Modifier | Constructor and Description |
---|---|
protected |
TargetInfoImpl() |
|
TargetInfoImpl(String id) |
|
TargetInfoImpl(String id,
String name,
String version,
String refVersion,
String label) |
Modifier and Type | Method and Description |
---|---|
String |
getDescription()
Returns a description for this target.
|
String |
getDownloadLink()
Returns this target download link.
|
Date |
getEndOfAvailability()
Returns this target end of availability date.
|
String |
getId()
This target unique identifier (usually some kind of concatenation of name and version).
|
String |
getLabel()
A user-friendly label for this platform, like "Nuxeo Platform 5.8".
|
String |
getName()
The target platform name, for instance "cap".
|
String |
getRefVersion()
The target platform reference version used for behaviour checks.
|
Date |
getReleaseDate()
Returns this target release date.
|
protected String |
getSimpleName() |
String |
getStatus()
String marker for a dev/deprecated/new status.
|
List<String> |
getTypes()
String markers for feature/behaviour checks on this instance.
|
String |
getVersion()
The target platform version, for instance "5.8".
|
boolean |
isDefault()
Returns true if given target information is marked as default.
|
boolean |
isDeprecated()
Returns true if given target is deprecated.
|
boolean |
isEnabled()
Returns true if the corresponding target platform is enabled.
|
boolean |
isFastTrack()
Returns true if given target platform is a fast track
|
boolean |
isOverridden()
Returns true if given target information is overridden by directory information.
|
boolean |
isRestricted()
Returns true if access to the corresponding target platform is restricted.
|
boolean |
isTrial()
Returns true if given target information is available for trials.
|
boolean |
matchesType(String type)
Returns true if given type is in the list of this target types.
|
void |
setDefault(boolean isDefault) |
void |
setDeprecated(boolean deprecated) |
void |
setDescription(String description) |
void |
setDownloadLink(String downloadLink) |
void |
setEnabled(boolean enabled) |
void |
setEndOfAvailability(Date endOfAvailability) |
void |
setFastTrack(boolean fastTrack) |
void |
setId(String id) |
void |
setLabel(String label) |
void |
setName(String name) |
void |
setOverridden(boolean overridden) |
void |
setRefVersion(String refVersion) |
void |
setReleaseDate(Date releaseDate) |
void |
setRestricted(boolean restricted) |
void |
setStatus(String status) |
void |
setTrial(boolean trial) |
void |
setTypes(List<String> types) |
void |
setVersion(String version) |
String |
toString() |
protected String refVersion
protected String description
protected boolean enabled
protected boolean restricted
protected boolean fastTrack
protected boolean trial
protected boolean isDefault
protected Date releaseDate
protected Date endOfAvailability
protected String downloadLink
protected boolean deprecated
protected boolean overridden
protected TargetInfoImpl()
public TargetInfoImpl(String id)
public String getId()
TargetInfo
getId
in interface TargetInfo
public String getName()
TargetInfo
getName
in interface TargetInfo
public String getVersion()
TargetInfo
getVersion
in interface TargetInfo
public void setVersion(String version)
public String getRefVersion()
TargetInfo
Defaults to TargetInfo.getVersion()
when not set.
getRefVersion
in interface TargetInfo
public void setRefVersion(String refVersion)
public String getStatus()
TargetInfo
getStatus
in interface TargetInfo
public String getLabel()
TargetInfo
getLabel
in interface TargetInfo
public String getDescription()
TargetInfo
Can contain HTML code.
getDescription
in interface TargetInfo
public void setDescription(String description)
public boolean isEnabled()
TargetInfo
isEnabled
in interface TargetInfo
public void setEnabled(boolean enabled)
public boolean isRestricted()
TargetInfo
Criteria for which access should be granted or not are left to the caller.
isRestricted
in interface TargetInfo
public void setRestricted(boolean restricted)
public Date getReleaseDate()
TargetInfo
getReleaseDate
in interface TargetInfo
public void setReleaseDate(Date releaseDate)
public Date getEndOfAvailability()
TargetInfo
getEndOfAvailability
in interface TargetInfo
public void setEndOfAvailability(Date endOfAvailability)
public String getDownloadLink()
TargetInfo
getDownloadLink
in interface TargetInfo
public void setDownloadLink(String downloadLink)
public boolean isDeprecated()
TargetInfo
isDeprecated
in interface TargetInfo
public void setDeprecated(boolean deprecated)
public boolean isTrial()
TargetInfo
isTrial
in interface TargetInfo
public void setTrial(boolean trial)
public boolean isDefault()
TargetInfo
isDefault
in interface TargetInfo
public void setDefault(boolean isDefault)
public boolean isFastTrack()
TargetInfo
isFastTrack
in interface TargetInfo
public void setFastTrack(boolean fastTrack)
public boolean isOverridden()
TargetInfo
isOverridden
in interface TargetInfo
public void setOverridden(boolean overridden)
public List<String> getTypes()
TargetInfo
getTypes
in interface TargetInfo
public boolean matchesType(String type)
TargetInfo
matchesType
in interface TargetInfo
protected String getSimpleName()
Copyright © 2018 Nuxeo. All rights reserved.