BundleInformation

public class BundleInformation

Class acting as a DTO for a Bundle in the system. Aggregates information about a single bundle.

Fields

BUNDLE_NAME

protected static final String BUNDLE_NAME

DOC_URL

public static final String DOC_URL

Constructors

BundleInformation

public BundleInformation(Bundle bundle)

Constructor.

Parameters:
  • bundle – the bundle which this BundleInformation instance will represent

Methods

equals

public boolean equals(Object arg0)

getAngularModule

public String getAngularModule()
Returns:the name of the angular module

getBundleId

public long getBundleId()
Returns:the id of the bundle

getDocURL

public String getDocURL()
Returns:the documentation URL for this bundle

getLocation

public String getLocation()
Returns:the bundle’s location identifier

getModuleName

public String getModuleName()
Returns:the module name

getName

public String getName()
Returns:the name of the bundle

getSettingsURL

public String getSettingsURL()
Returns:the url to the settings page of the bundle

getState

public State getState()
Returns:a string representation of the state of the bundle

getSymbolicName

public String getSymbolicName()
Returns:the symbolic name of the bundle

getVersion

public Version getVersion()
Returns:the version of the bundle

hasStatus

public boolean hasStatus(int status)

hashCode

public int hashCode()

setAngularModule

public void setAngularModule(String angularModule)

Sets the angular module name.

Parameters:
  • angularModule – the name of the angular module

setModuleName

public void setModuleName(String moduleName)

Sets the module name.

Parameters:
  • moduleName – the name of the module

setSettingsURL

public void setSettingsURL(String settingsURL)

Sets the url to the settings page.

Parameters:
  • settingsURL – the url to the settings page