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>availablePackagesprotected TargetPlatformparentprotected 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 protectedTargetPlatformImpl()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 voidaddAvailablePackage(TargetPackage pack)intcompareTo(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.TargetPlatformgetParent()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...).voidsetAvailablePackages(Map<String,TargetPackage> tps)voidsetParent(TargetPlatform parent)voidsetTestVersions(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:TargetPlatformReturn the list of ids of packages available on this target platform.- Specified by:
getAvailablePackagesIdsin interfaceTargetPlatform
-
getAvailablePackages
public List<TargetPackage> getAvailablePackages()
Description copied from interface:TargetPlatformReturn the list of packages available on this target platform.- Specified by:
getAvailablePackagesin interfaceTargetPlatform
-
addAvailablePackage
public void addAvailablePackage(TargetPackage pack)
-
setAvailablePackages
public void setAvailablePackages(Map<String,TargetPackage> tps)
-
getParent
public TargetPlatform getParent()
Description copied from interface:TargetPlatformReturns this target platform parent or null if there is no inheritance.- Specified by:
getParentin interfaceTargetPlatform
-
setParent
public void setParent(TargetPlatform parent)
-
getTestVersions
public List<String> getTestVersions()
Description copied from interface:TargetPlatformReturns the list of test versions, useful for testing of multiple branches (main target platform branch or release, maintenance branch, etc...).- Specified by:
getTestVersionsin interfaceTargetPlatform
-
compareTo
public int compareTo(TargetPlatform o)
- Specified by:
compareToin interfaceComparable<TargetPlatform>
-
-