Class TargetPlatformImpl
- java.lang.Object
-
- org.nuxeo.targetplatforms.api.impl.TargetInfoImpl
-
- org.nuxeo.targetplatforms.api.impl.TargetImpl
-
- org.nuxeo.targetplatforms.api.impl.TargetPlatformImpl
-
- All Implemented Interfaces:
Serializable
,Comparable<TargetPlatform>
,Target
,TargetInfo
,TargetPlatform
public class TargetPlatformImpl extends TargetImpl implements TargetPlatform
- Since:
- 5.7.1
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected Map<String,TargetPackage>
availablePackages
protected TargetPlatform
parent
protected List<String>
testVersions
-
Fields inherited from class org.nuxeo.targetplatforms.api.impl.TargetInfoImpl
deprecated, description, downloadLink, enabled, endOfAvailability, fastTrack, id, isDefault, label, name, overridden, refVersion, releaseDate, restricted, status, trial, types, version
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
TargetPlatformImpl()
TargetPlatformImpl(String id)
TargetPlatformImpl(String id, String name, String version, String refVersion, String label)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addAvailablePackage(TargetPackage pack)
int
compareTo(TargetPlatform o)
List<TargetPackage>
getAvailablePackages()
Return the list of packages available on this target platform.List<String>
getAvailablePackagesIds()
Return the list of ids of packages available on this target platform.TargetPlatform
getParent()
Returns this target platform parent or null if there is no inheritance.List<String>
getTestVersions()
Returns the list of test versions, useful for testing of multiple branches (main target platform branch or release, maintenance branch, etc...).void
setAvailablePackages(Map<String,TargetPackage> tps)
void
setParent(TargetPlatform parent)
void
setTestVersions(List<String> testVersions)
-
Methods inherited from class org.nuxeo.targetplatforms.api.impl.TargetImpl
isAfterVersion, isAfterVersion, isStrictlyBeforeVersion, isStrictlyBeforeVersion, isVersion, isVersion
-
Methods inherited from class org.nuxeo.targetplatforms.api.impl.TargetInfoImpl
getDescription, getDownloadLink, getEndOfAvailability, getId, getLabel, getName, getRefVersion, getReleaseDate, getSimpleName, getStatus, getTypes, getVersion, isDefault, isDeprecated, isEnabled, isFastTrack, isOverridden, isRestricted, isTrial, matchesType, setDefault, setDeprecated, setDescription, setDownloadLink, setEnabled, setEndOfAvailability, setFastTrack, setId, setLabel, setName, setOverridden, setRefVersion, setReleaseDate, setRestricted, setStatus, setTrial, setTypes, setVersion, toString
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.nuxeo.targetplatforms.api.Target
isAfterVersion, isAfterVersion, isStrictlyBeforeVersion, isStrictlyBeforeVersion, isVersion, isVersion
-
Methods inherited from interface org.nuxeo.targetplatforms.api.TargetInfo
getDescription, getDownloadLink, getEndOfAvailability, getId, getLabel, getName, getRefVersion, getReleaseDate, getStatus, getTypes, getVersion, isDefault, isDeprecated, isEnabled, isFastTrack, isOverridden, isRestricted, isTrial, matchesType
-
-
-
-
Field Detail
-
parent
protected TargetPlatform parent
-
availablePackages
protected Map<String,TargetPackage> availablePackages
-
-
Method Detail
-
getAvailablePackagesIds
public List<String> getAvailablePackagesIds()
Description copied from interface:TargetPlatform
Return the list of ids of packages available on this target platform.- Specified by:
getAvailablePackagesIds
in interfaceTargetPlatform
-
getAvailablePackages
public List<TargetPackage> getAvailablePackages()
Description copied from interface:TargetPlatform
Return the list of packages available on this target platform.- Specified by:
getAvailablePackages
in interfaceTargetPlatform
-
addAvailablePackage
public void addAvailablePackage(TargetPackage pack)
-
setAvailablePackages
public void setAvailablePackages(Map<String,TargetPackage> tps)
-
getParent
public TargetPlatform getParent()
Description copied from interface:TargetPlatform
Returns this target platform parent or null if there is no inheritance.- Specified by:
getParent
in interfaceTargetPlatform
-
setParent
public void setParent(TargetPlatform parent)
-
getTestVersions
public List<String> getTestVersions()
Description copied from interface:TargetPlatform
Returns the list of test versions, useful for testing of multiple branches (main target platform branch or release, maintenance branch, etc...).- Specified by:
getTestVersions
in interfaceTargetPlatform
-
compareTo
public int compareTo(TargetPlatform o)
- Specified by:
compareTo
in interfaceComparable<TargetPlatform>
-
-