Class TargetInfoImpl
- java.lang.Object
-
- org.nuxeo.targetplatforms.api.impl.TargetInfoImpl
-
- All Implemented Interfaces:
Serializable
,TargetInfo
- Direct Known Subclasses:
TargetImpl
,TargetPackageInfoImpl
,TargetPlatformInfoImpl
public class TargetInfoImpl extends Object implements TargetInfo
- Since:
- 5.7.1
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field 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
-
Constructor Summary
Constructors Modifier Constructor Description protected
TargetInfoImpl()
TargetInfoImpl(String id)
TargetInfoImpl(String id, String name, String version, String refVersion, String label)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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 trackboolean
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()
-
-
-
Field Detail
-
id
protected String id
-
name
protected String name
-
version
protected String version
-
refVersion
protected String refVersion
-
label
protected String label
-
description
protected String description
-
status
protected String status
-
enabled
protected boolean enabled
-
restricted
protected boolean restricted
-
fastTrack
protected boolean fastTrack
-
trial
protected boolean trial
-
isDefault
protected boolean isDefault
-
releaseDate
protected Date releaseDate
-
endOfAvailability
protected Date endOfAvailability
-
downloadLink
protected String downloadLink
-
deprecated
protected boolean deprecated
-
overridden
protected boolean overridden
-
-
Method Detail
-
getId
public String 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
public void setId(String id)
-
getName
public String getName()
Description copied from interface:TargetInfo
The target platform name, for instance "cap".- Specified by:
getName
in interfaceTargetInfo
-
setName
public void setName(String name)
-
getVersion
public String getVersion()
Description copied from interface:TargetInfo
The target platform version, for instance "5.8".- Specified by:
getVersion
in interfaceTargetInfo
-
setVersion
public void setVersion(String version)
-
getRefVersion
public String 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
public void setRefVersion(String refVersion)
-
getStatus
public String getStatus()
Description copied from interface:TargetInfo
String marker for a dev/deprecated/new status.- Specified by:
getStatus
in interfaceTargetInfo
-
setStatus
public void setStatus(String status)
-
getLabel
public String getLabel()
Description copied from interface:TargetInfo
A user-friendly label for this platform, like "Nuxeo Platform 5.8".- Specified by:
getLabel
in interfaceTargetInfo
-
setLabel
public void setLabel(String label)
-
getDescription
public String getDescription()
Description copied from interface:TargetInfo
Returns a description for this target.Can contain HTML code.
- Specified by:
getDescription
in interfaceTargetInfo
-
setDescription
public void setDescription(String description)
-
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
public Date getReleaseDate()
Description copied from interface:TargetInfo
Returns this target release date.- Specified by:
getReleaseDate
in interfaceTargetInfo
-
setReleaseDate
public void setReleaseDate(Date releaseDate)
-
getEndOfAvailability
public Date getEndOfAvailability()
Description copied from interface:TargetInfo
Returns this target end of availability date.- Specified by:
getEndOfAvailability
in interfaceTargetInfo
-
setEndOfAvailability
public void setEndOfAvailability(Date endOfAvailability)
-
getDownloadLink
public String getDownloadLink()
Description copied from interface:TargetInfo
Returns this target download link.- Specified by:
getDownloadLink
in interfaceTargetInfo
-
setDownloadLink
public void setDownloadLink(String downloadLink)
-
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
public List<String> getTypes()
Description copied from interface:TargetInfo
String markers for feature/behaviour checks on this instance.- Specified by:
getTypes
in interfaceTargetInfo
-
matchesType
public boolean matchesType(String type)
Description copied from interface:TargetInfo
Returns true if given type is in the list of this target types.- Specified by:
matchesType
in interfaceTargetInfo
-
getSimpleName
protected String getSimpleName()
-
-