Class TargetInfoImpl
java.lang.Object
org.nuxeo.targetplatforms.api.impl.TargetInfoImpl
- All Implemented Interfaces:
Serializable
,TargetInfo
- Direct Known Subclasses:
TargetImpl
,TargetPackageInfoImpl
,TargetPlatformInfoImpl
- Since:
- 5.7.1
- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionprotected boolean
protected String
protected String
protected boolean
protected Date
protected boolean
protected String
protected boolean
protected String
protected String
protected boolean
protected String
protected Date
protected boolean
protected String
protected boolean
protected String
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionReturns a description for this target.Returns this target download link.Returns this target end of availability date.getId()
This target unique identifier (usually some kind of concatenation of name and version).getLabel()
A user-friendly label for this platform, like "Nuxeo Platform 5.8".getName()
The target platform name, for instance "cap".The target platform reference version used for behaviour checks.Returns this target release date.protected String
String marker for a dev/deprecated/new status.getTypes()
String markers for feature/behaviour checks on this instance.The target platform version, for instance "5.8".boolean
Returns true if given target information is marked as default.boolean
Returns true if given target is deprecated.boolean
Returns true if the corresponding target platform is enabled.boolean
Returns true if given target platform is a fast trackboolean
Returns true if given target information is overridden by directory information.boolean
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
void
void
void
setOverridden
(boolean overridden) void
setRefVersion
(String refVersion) void
setReleaseDate
(Date releaseDate) void
setRestricted
(boolean restricted) void
void
setTrial
(boolean trial) void
void
setVersion
(String version) toString()
-
Field Details
-
id
-
name
-
version
-
refVersion
-
label
-
description
-
status
-
enabled
protected boolean enabled -
restricted
protected boolean restricted -
fastTrack
protected boolean fastTrack -
trial
protected boolean trial -
isDefault
protected boolean isDefault -
releaseDate
-
endOfAvailability
-
downloadLink
-
deprecated
protected boolean deprecated -
overridden
protected boolean overridden -
types
-
-
Constructor Details
-
TargetInfoImpl
protected TargetInfoImpl() -
TargetInfoImpl
-
TargetInfoImpl
-
-
Method Details
-
getId
Description copied from interface:TargetInfo
This target unique identifier (usually some kind of concatenation of name and version).- Specified by:
getId
in interfaceTargetInfo
-
setId
-
getName
Description copied from interface:TargetInfo
The target platform name, for instance "cap".- Specified by:
getName
in interfaceTargetInfo
-
setName
-
getVersion
Description copied from interface:TargetInfo
The target platform version, for instance "5.8".- Specified by:
getVersion
in interfaceTargetInfo
-
setVersion
-
getRefVersion
Description copied from interface:TargetInfo
The target platform reference version used for behaviour checks.Defaults to
TargetInfo.getVersion()
when not set.- Specified by:
getRefVersion
in interfaceTargetInfo
-
setRefVersion
-
getStatus
Description copied from interface:TargetInfo
String marker for a dev/deprecated/new status.- Specified by:
getStatus
in interfaceTargetInfo
-
setStatus
-
getLabel
Description copied from interface:TargetInfo
A user-friendly label for this platform, like "Nuxeo Platform 5.8".- Specified by:
getLabel
in interfaceTargetInfo
-
setLabel
-
getDescription
Description copied from interface:TargetInfo
Returns a description for this target.Can contain HTML code.
- Specified by:
getDescription
in interfaceTargetInfo
-
setDescription
-
isEnabled
public boolean isEnabled()Description copied from interface:TargetInfo
Returns true if the corresponding target platform is enabled.- Specified by:
isEnabled
in interfaceTargetInfo
-
setEnabled
public void setEnabled(boolean enabled) -
isRestricted
public boolean isRestricted()Description copied from interface:TargetInfo
Returns true if access to the corresponding target platform is restricted.Criteria for which access should be granted or not are left to the caller.
- Specified by:
isRestricted
in interfaceTargetInfo
-
setRestricted
public void setRestricted(boolean restricted) -
getReleaseDate
Description copied from interface:TargetInfo
Returns this target release date.- Specified by:
getReleaseDate
in interfaceTargetInfo
-
setReleaseDate
-
getEndOfAvailability
Description copied from interface:TargetInfo
Returns this target end of availability date.- Specified by:
getEndOfAvailability
in interfaceTargetInfo
-
setEndOfAvailability
-
getDownloadLink
Description copied from interface:TargetInfo
Returns this target download link.- Specified by:
getDownloadLink
in interfaceTargetInfo
-
setDownloadLink
-
isDeprecated
public boolean isDeprecated()Description copied from interface:TargetInfo
Returns true if given target is deprecated.- Specified by:
isDeprecated
in interfaceTargetInfo
-
setDeprecated
public void setDeprecated(boolean deprecated) -
isTrial
public boolean isTrial()Description copied from interface:TargetInfo
Returns true if given target information is available for trials.- Specified by:
isTrial
in interfaceTargetInfo
-
setTrial
public void setTrial(boolean trial) -
isDefault
public boolean isDefault()Description copied from interface:TargetInfo
Returns true if given target information is marked as default.- Specified by:
isDefault
in interfaceTargetInfo
-
setDefault
public void setDefault(boolean isDefault) -
isFastTrack
public boolean isFastTrack()Description copied from interface:TargetInfo
Returns true if given target platform is a fast track- Specified by:
isFastTrack
in interfaceTargetInfo
-
setFastTrack
public void setFastTrack(boolean fastTrack) -
isOverridden
public boolean isOverridden()Description copied from interface:TargetInfo
Returns true if given target information is overridden by directory information.- Specified by:
isOverridden
in interfaceTargetInfo
-
setOverridden
public void setOverridden(boolean overridden) -
getTypes
Description copied from interface:TargetInfo
String markers for feature/behaviour checks on this instance.- Specified by:
getTypes
in interfaceTargetInfo
-
setTypes
-
matchesType
Description copied from interface:TargetInfo
Returns true if given type is in the list of this target types.- Specified by:
matchesType
in interfaceTargetInfo
-
getSimpleName
-
toString
-