Class TargetPlatformInstanceImpl
- java.lang.Object
-
- org.nuxeo.targetplatforms.api.impl.TargetInfoImpl
-
- org.nuxeo.targetplatforms.api.impl.TargetImpl
-
- org.nuxeo.targetplatforms.api.impl.TargetPlatformInstanceImpl
-
- All Implemented Interfaces:
Serializable,Target,TargetInfo,TargetPlatformInstance
public class TargetPlatformInstanceImpl extends TargetImpl implements TargetPlatformInstance
- Since:
- 5.7.1
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected Map<String,TargetPackage>enabledPackagesprotected TargetPlatformparent-
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 protectedTargetPlatformInstanceImpl()TargetPlatformInstanceImpl(String id)TargetPlatformInstanceImpl(String id, String name, String version, String refVersion, String label)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddEnabledPackage(TargetPackage pack)Map<String,TargetPackage>getEnabledPackages()Return the list of packages enabled on this target platform.List<String>getEnabledPackagesIds()Return the list of ids of packages enabled on this target platform.TargetPlatformgetParent()Returns this target platform parent or null if there is no inheritance.booleanhasEnabledPackageWithName(String packageName)Checks if there is any enabled package with the name packageName.voidsetEnabledPackages(Map<String,TargetPackage> packages)voidsetParent(TargetPlatform parent)-
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
-
enabledPackages
protected Map<String,TargetPackage> enabledPackages
-
-
Method Detail
-
getEnabledPackagesIds
public List<String> getEnabledPackagesIds()
Description copied from interface:TargetPlatformInstanceReturn the list of ids of packages enabled on this target platform.- Specified by:
getEnabledPackagesIdsin interfaceTargetPlatformInstance
-
getEnabledPackages
public Map<String,TargetPackage> getEnabledPackages()
Description copied from interface:TargetPlatformInstanceReturn the list of packages enabled on this target platform.- Specified by:
getEnabledPackagesin interfaceTargetPlatformInstance
-
addEnabledPackage
public void addEnabledPackage(TargetPackage pack)
-
setEnabledPackages
public void setEnabledPackages(Map<String,TargetPackage> packages)
-
hasEnabledPackageWithName
public boolean hasEnabledPackageWithName(String packageName)
Description copied from interface:TargetPlatformInstanceChecks if there is any enabled package with the name packageName.- Specified by:
hasEnabledPackageWithNamein interfaceTargetPlatformInstance
-
getParent
public TargetPlatform getParent()
Description copied from interface:TargetPlatformInstanceReturns this target platform parent or null if there is no inheritance.- Specified by:
getParentin interfaceTargetPlatformInstance
-
setParent
public void setParent(TargetPlatform parent)
-
-