public class Package extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
Package.GHNRequirement |
static class |
Package.MavenCoordinate |
static class |
Package.ScopeLevel |
| Modifier and Type | Field and Description |
|---|---|
protected Map<Package.MavenCoordinate,String> |
coordinates
Coordinates of the artifact in a Maven Repository
|
protected String |
description |
| Constructor and Description |
|---|
Package() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
List<Dependency> |
getDependencies()
Returns the package dependencies dependencies.
|
String |
getDescription() |
List<Package.GHNRequirement> |
getGHNRequirements()
Returns the GHN requirements for the package.
|
List<String> |
getInstallScripts()
Returns the names of the install scripts associated with the package.
|
Package.ScopeLevel |
getMandatoryLevel()
Returns the level of scope at which the package is mandatory.
|
String |
getMavenCoordinate(Package.MavenCoordinate name)
Gets a coordinate's value
|
Boolean |
getMultiVersion()
Indicates whether the package can coexist with previous versions on the same GHN.
|
String |
getName()
Returns the name of the package.
|
List<String> |
getRebootScripts()
Returns the names of the reboot scripts associated with the package.
|
Package.ScopeLevel |
getSharingLevel()
Returns the level of scope at which the package can be shared.
|
String |
getSpecificData()
Returns package-specific data.
|
PlatformDescription |
getTargetPlatform() |
List<String> |
getUninstallScripts()
Returns the names of the uninstall scripts associated with the package.
|
String |
getVersion()
Returns the package version.
|
void |
setDescription(String description) |
void |
setGHNRequirements(List<Package.GHNRequirement> arg0) |
void |
setInstallScripts(List<String> installScripts)
Sets the install scripts associated with the package.
|
void |
setMandatoryLevel(Package.ScopeLevel level)
Sets the level of scope at which the package is mandatory.
|
void |
setMavenCoordinates(String groupId,
String artifactId,
String version,
String... classifier)
Sets the maven coordinates of the package
|
void |
setMultiVersion(Boolean support)
Indicates whether the package can coexist with previous versions on the same GHN.
|
void |
setName(String arg0) |
void |
setRebootScripts(List<String> rebootScripts)
Sets the reboot scripts associated with the package
|
void |
setSharingLevel(Package.ScopeLevel level)
Sets the level of scope at which the package can be shared.
|
void |
setSpecificData(String data)
Sets package-specific data.
|
void |
setTargetPlatform(PlatformDescription targetPlatform) |
void |
setUninstallScripts(List<String> scripts) |
void |
setVersion(String version) |
protected String description
protected Map<Package.MavenCoordinate,String> coordinates
public String getName()
public List<Dependency> getDependencies()
public List<Package.GHNRequirement> getGHNRequirements()
public List<String> getInstallScripts()
public Boolean getMultiVersion()
true if it does, false otherwise.public void setMultiVersion(Boolean support)
support - true if it does, false otherwise.public List<String> getRebootScripts()
public List<String> getUninstallScripts()
public String getVersion()
public Package.ScopeLevel getMandatoryLevel()
public void setMandatoryLevel(Package.ScopeLevel level)
level - the scope levelpublic Package.ScopeLevel getSharingLevel()
public void setSharingLevel(Package.ScopeLevel level)
level - the scope levelpublic void setGHNRequirements(List<Package.GHNRequirement> arg0)
public void setName(String arg0)
public void setMavenCoordinates(String groupId, String artifactId, String version, String... classifier)
groupId - artifactId - version - classifier - public String getMavenCoordinate(Package.MavenCoordinate name)
name - the namepublic void setVersion(String version)
public void setInstallScripts(List<String> installScripts)
installScripts - the scripts.public void setRebootScripts(List<String> rebootScripts)
rebootScripts - the scripts.public String getSpecificData()
public void setSpecificData(String data)
data - the data.public String getDescription()
public void setDescription(String description)
public void setTargetPlatform(PlatformDescription targetPlatform)
targetPlatform - the targetPlatform to setpublic PlatformDescription getTargetPlatform()
Copyright © 2015. All Rights Reserved.