com.ibm.mmconsole.extension
Class BusinessApplication

java.lang.Object
  extended by com.ibm.mmconsole.extension.BusinessApplication
All Implemented Interfaces:
IConsoleContainer

public class BusinessApplication
extends java.lang.Object
implements IConsoleContainer

This class represents a business application configured in the console. A business application is a representation of a business solution, for example a payroll or shopping cart application. This class can be used to retrieve known properties of the application, such as: the unique ID or list of resources that make up the application.


Field Summary
 
Fields inherited from interface com.ibm.mmconsole.extension.IConsoleContainer
DEFAULT_STRING
 
Constructor Summary
BusinessApplication(java.lang.String uid, java.util.Hashtable titleHash, java.util.ArrayList resources)
          Initializes a business application with the specified data.
 
Method Summary
 void destroy()
          destroy method for cleanup
 java.lang.String getDefaultTitle()
          Returns the default title for this console object
 java.lang.String getLocalizedTitle(java.util.Locale locale)
          Returns the localized title for this console object
 java.util.ArrayList getResources()
          Returns the list of resources that are in this business application.
 java.lang.String getUniqueId()
          Returns the unique ID for this console object
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BusinessApplication

public BusinessApplication(java.lang.String uid,
                           java.util.Hashtable titleHash,
                           java.util.ArrayList resources)
Initializes a business application with the specified data. Note: Should not create one directly. Use the IConsoleConfiguration.getBusinessApplications()

Parameters:
uid - - A String representing the unique ID for this business application.
titles - - A Hashtable containing all the available localized titles for the business application.
resources - - An Arraylist containing all the resources that belong to this application.
Method Detail

destroy

public void destroy()
destroy method for cleanup

Specified by:
destroy in interface IConsoleContainer

getUniqueId

public java.lang.String getUniqueId()
Returns the unique ID for this console object

Specified by:
getUniqueId in interface IConsoleContainer
Returns:
The unique ID of this object.

getDefaultTitle

public java.lang.String getDefaultTitle()
Returns the default title for this console object

Specified by:
getDefaultTitle in interface IConsoleContainer
Returns:
The default title of this object.

getLocalizedTitle

public java.lang.String getLocalizedTitle(java.util.Locale locale)
Returns the localized title for this console object

Specified by:
getLocalizedTitle in interface IConsoleContainer
Parameters:
locale - - Locale to use for the title string.
Returns:
The localized title or the default if there is no title for the specified locale.

getResources

public java.util.ArrayList getResources()
Returns the list of resources that are in this business application.

Returns:
An ArrayList of Resource(s).