public class TargetInfoExtension extends Object implements TargetInfo
TargetInfo implementation relying on an original implementation, useful for override when adding additional
metadata.| Modifier and Type | Field and Description |
|---|---|
protected TargetInfo |
origInfo |
| Modifier | Constructor and Description |
|---|---|
protected |
TargetInfoExtension() |
|
TargetInfoExtension(TargetInfo orig) |
| 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.
|
String |
toString() |
protected TargetInfo origInfo
protected TargetInfoExtension()
public TargetInfoExtension(TargetInfo orig)
public String getId()
TargetInfogetId in interface TargetInfopublic String getName()
TargetInfogetName in interface TargetInfopublic String getVersion()
TargetInfogetVersion in interface TargetInfopublic String getRefVersion()
TargetInfo
Defaults to TargetInfo.getVersion() when not set.
getRefVersion in interface TargetInfopublic String getStatus()
TargetInfogetStatus in interface TargetInfopublic String getLabel()
TargetInfogetLabel in interface TargetInfopublic String getDescription()
TargetInfoCan contain HTML code.
getDescription in interface TargetInfopublic boolean isEnabled()
TargetInfoisEnabled in interface TargetInfopublic boolean isRestricted()
TargetInfoCriteria for which access should be granted or not are left to the caller.
isRestricted in interface TargetInfopublic Date getReleaseDate()
TargetInfogetReleaseDate in interface TargetInfopublic Date getEndOfAvailability()
TargetInfogetEndOfAvailability in interface TargetInfopublic String getDownloadLink()
TargetInfogetDownloadLink in interface TargetInfopublic boolean isDeprecated()
TargetInfoisDeprecated in interface TargetInfopublic boolean isTrial()
TargetInfoisTrial in interface TargetInfopublic boolean isDefault()
TargetInfoisDefault in interface TargetInfopublic boolean isFastTrack()
TargetInfoisFastTrack in interface TargetInfopublic boolean isOverridden()
TargetInfoisOverridden in interface TargetInfopublic List<String> getTypes()
TargetInfogetTypes in interface TargetInfopublic boolean matchesType(String type)
TargetInfomatchesType in interface TargetInfoprotected String getSimpleName()
Copyright © 2019 Nuxeo. All rights reserved.