Framework Professional Edition Package


com.prosyst.mbs.services.kitmanager
Class KitStatus

java.lang.Object
  extended by com.prosyst.mbs.services.kitmanager.KitStatus

public class KitStatus
extends java.lang.Object

A class holding info for the success or failure of the bundle installations.

Author:
Sofia Doncheva

Field Summary
static int BAD_SCRIPT
          In the case when the locations of the scripts are read from a file and not collected dynamically, some of the locations may turn out to be unaccessible.
static int INSTALLED
          Indicates that the kit was installed without errors.
static int INSTALLED_WITH_ERRORS
          Indicates that the kit was installed, but errors occurred
static int NOT_INSTALLED
          Indicates that the kit is not yet installed
static int NOT_PRESENT
          Indicates that bundles compatible with the bundles of the script are not present in the framework
static int PRESENT
          Indicates that bundles compatible with the bundles of the script are already present in the framework
 
Constructor Summary
KitStatus(int generalStatus, com.prosyst.util.hash.HashObjIntS bundlesStatus)
          Creates a new KitStatus object according to the specified parameters
 
Method Summary
 com.prosyst.util.hash.HashObjIntS getBundlesStatus()
          Returns a detailed description of the state of all bundles of the kit.
 java.lang.String getDescription()
          Returns a detailed description of the state of all bundles of the kit.
 int getGeneralStatus()
          Returns the description of the state of the kit.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

INSTALLED

public static final int INSTALLED
Indicates that the kit was installed without errors.

See Also:
Constant Field Values

INSTALLED_WITH_ERRORS

public static final int INSTALLED_WITH_ERRORS
Indicates that the kit was installed, but errors occurred

See Also:
Constant Field Values

NOT_INSTALLED

public static final int NOT_INSTALLED
Indicates that the kit is not yet installed

See Also:
Constant Field Values

PRESENT

public static final int PRESENT
Indicates that bundles compatible with the bundles of the script are already present in the framework

See Also:
Constant Field Values

BAD_SCRIPT

public static final int BAD_SCRIPT
In the case when the locations of the scripts are read from a file and not collected dynamically, some of the locations may turn out to be unaccessible. The constant indicates that this is such a case.

See Also:
Constant Field Values

NOT_PRESENT

public static final int NOT_PRESENT
Indicates that bundles compatible with the bundles of the script are not present in the framework

See Also:
Constant Field Values
Constructor Detail

KitStatus

public KitStatus(int generalStatus,
                 com.prosyst.util.hash.HashObjIntS bundlesStatus)
Creates a new KitStatus object according to the specified parameters

Parameters:
descr - A detailed description of the the success or failure of the bundle installations
postletDefaultAlias - The default alias of the postlet of this kit if one was declared in the install script; null otherwise
postletGroup - The group of the postlet of this kit if one was declared in the install script; null otherwise
Method Detail

getDescription

public java.lang.String getDescription()
Returns a detailed description of the state of all bundles of the kit. The information is the same as the one returned by getBundlesStatus() but it is in the form of a human readable String description.

Returns:
A detailed description of the state of every bundle of the kit - whether it is installed, present or not installed.

getGeneralStatus

public int getGeneralStatus()
Returns the description of the state of the kit.

Returns:
one of the constants KitStatus.INSTALLED, KitStatus.INSTALLED_WITH_ERRORS, KitStatus.NOT_INSTALLED KitStatus.BAD_SCRIPT and KitStatus.NOT_PRESENT

getBundlesStatus

public com.prosyst.util.hash.HashObjIntS getBundlesStatus()
Returns a detailed description of the state of all bundles of the kit.

Returns:
A detailed description of the state of every bundle of the kit - whether it is installed, present or not installed.

Framework Professional Edition Package


Copyright © 1999-2007 ProSyst Software GmbH. All Rights Reserved