com.ibm.mmconsole.extension
Interface IConsoleConfiguration

All Superinterfaces:
IBaseExtensionPoint
All Known Implementing Classes:
ConsoleConfigurationImpl

public interface IConsoleConfiguration
extends IBaseExtensionPoint

This extension point can be used to retrieve the console configuration. You retrieve a list of all the business applications installed, or credentials data for specific resources. You can also store your own custom credentials.


Field Summary
static java.lang.String copyright0
           
static java.lang.String copyright1
           
static java.lang.String copyright2
           
static java.lang.String copyright3
           
 
Method Summary
 void deleteCustomCredentials(java.lang.String customUnqiueId)
          This method is used to delete custom credentials that are no longer needed.
 java.util.ArrayList getBusinessApplications()
          Return the list of business applications configured in the console.
 ConsoleCredential getCustomCredentials(javax.portlet.PortletRequest request, java.lang.String customUnqiueId)
          This method is used to retrieve any custom credentials.
 ConsoleCredential getLocalOsCredentials(javax.portlet.PortletRequest request, Resource resource)
          This method retrieves the Local OS credential information for the specified resource.
 ConsoleCredential getResourceCredentials(javax.portlet.PortletRequest request, Resource resource)
          This method retrieves the credential information for the specified Resource.
 void refreshConfiguration()
          This method refreshes the console configuration from Preferences.
 void storeCustomCredentials(javax.portlet.PortletRequest request, ConsoleCredential creds, java.lang.String customUnqiueId)
          This method stores any custom credentials in the console configuration.
 
Methods inherited from interface com.ibm.mmconsole.extension.IBaseExtensionPoint
destroy, getUserLocale, setUserLocale
 

Field Detail

copyright0

static final java.lang.String copyright0
See Also:
Constant Field Values

copyright1

static final java.lang.String copyright1
See Also:
Constant Field Values

copyright2

static final java.lang.String copyright2
See Also:
Constant Field Values

copyright3

static final java.lang.String copyright3
See Also:
Constant Field Values
Method Detail

getBusinessApplications

java.util.ArrayList getBusinessApplications()
Return the list of business applications configured in the console.

Returns:
An Arraylist containing all the BusinessApplication(s) in the console.

refreshConfiguration

void refreshConfiguration()
This method refreshes the console configuration from Preferences. This method should be called if data could have changed while your module is running.


storeCustomCredentials

void storeCustomCredentials(javax.portlet.PortletRequest request,
                            ConsoleCredential creds,
                            java.lang.String customUnqiueId)
This method stores any custom credentials in the console configuration. A set of credentials are stored per user, beased on the console login. A unique ID must be provided to store the credentials. The same unique ID must be used to retrieve the credentials.

Parameters:
request - - A PortletRequest object.
creds - - A ConsoleCredential object representing the credentials to store.
customUnqiueId - - A unique ID to store the credentials under.

getResourceCredentials

ConsoleCredential getResourceCredentials(javax.portlet.PortletRequest request,
                                         Resource resource)
This method retrieves the credential information for the specified Resource.

Parameters:
request - - A PortletRequest object.
resource - - A Resource representing a resource configured in the console.
Returns:
ConsoleCredential - The resource's credential information.

getLocalOsCredentials

ConsoleCredential getLocalOsCredentials(javax.portlet.PortletRequest request,
                                        Resource resource)
This method retrieves the Local OS credential information for the specified resource.

Parameters:
request - - A PortletRequest object.
resource - - A Resource representing a resource configured in the console.
Returns:
ConsoleCredential - The resource's Local OS credential information.

getCustomCredentials

ConsoleCredential getCustomCredentials(javax.portlet.PortletRequest request,
                                       java.lang.String customUnqiueId)
This method is used to retrieve any custom credentials. You must provdide the unique ID given when storing the credentials.

Parameters:
request - - A PortletRequest object.
customUnqiueId - - The unique ID of the credentials to retrieve.
Returns:
ConsoleCredential - The custom credential information.

deleteCustomCredentials

void deleteCustomCredentials(java.lang.String customUnqiueId)
This method is used to delete custom credentials that are no longer needed.

Parameters:
customUnqiueId - - The unique ID of the credentials to delete.