com.metamatrix.admin.server
Class AbstractAdminImpl

java.lang.Object
  extended by com.metamatrix.admin.server.AbstractAdminImpl
Direct Known Subclasses:
ServerConfigAdminImpl, ServerMonitoringAdminImpl, ServerRuntimeStateAdminImpl, ServerSecurityAdminImpl

public class AbstractAdminImpl
extends java.lang.Object

Since:
4.3

Field Summary
protected  ServerAdminImpl parent
           
protected  ClusteredRegistryState registry
           
 
Constructor Summary
AbstractAdminImpl(ServerAdminImpl parent, ClusteredRegistryState registry)
           
 
Method Summary
protected  java.util.Collection convertPropertyDefinitions(ComponentObject component)
          Convert a ComponentObject into a Collection of com.metamatrix.admin.api.objects.PropertyDefinition objects
protected  java.util.Collection convertPropertyDefinitions(ComponentObject component, java.util.Properties properties)
           
protected  java.util.Collection convertPropertyDefinitions(ComponentType ctype, java.util.Properties properties)
           
protected  VDB convertToAdminVDB(VirtualDatabase virtualDatabase)
          Utility method the converts a VirtualDatabase into an admin VDB object.
protected  java.util.Collection getAdminObjects(java.lang.String identifier, java.lang.String className)
          Get admin objects of the specified className that match the specified identifier.
protected  AuthorizationServiceInterface getAuthorizationServiceProxy()
           
protected  ConfigurationModelContainer getConfigurationModel()
           
protected  ConfigurationServiceInterface getConfigurationServiceProxy()
           
protected  java.lang.String getConnectorBindingNameFromUUID(java.lang.String uuid)
           
protected  java.util.List getConnectorBindingNamesFromUUIDs(java.util.List uuids)
           
protected  java.util.List getConnectorBindingNamesFromUUIDs(java.util.List uuids, ConfigurationModelContainer configModel)
           
protected  java.util.Map getConnectorBindingNamesMapFromUUIDs(java.util.Collection uuids)
           
protected  ExtensionModuleManager getExtensionSourceManager()
           
protected  MembershipServiceInterface getMembershipServiceProxy()
           
protected  java.lang.String getName(java.lang.String identifier)
          Get the Node Name for this Identifier
protected  java.lang.String getParent(java.lang.String identifier)
          Get the Parent Name for this Identifier
protected  QueryServiceInterface getQueryServiceProxy()
           
protected  RuntimeStateAdminAPIHelper getRuntimeStateAdminAPIHelper()
           
protected  MetaMatrixSessionID getSessionID()
          Get The MetaMatrixSessionID for this Connection
protected  SessionServiceInterface getSessionServiceProxy()
           
protected  java.lang.String getUserName()
          Get The User Name for this Connection
protected  java.util.List getVDBs(java.lang.String identifier, java.util.Collection virtualDatabases)
          Utility method to find VDBs in virtualDatabases collection matching identifier and create VDB admin objects to return in sorted collection (VDBs and versions will be together).
protected static boolean identifierMatches(java.lang.String query, java.lang.String identifier)
          Returns true if identifierPartsArray contains all the parts of query, in order.
static boolean identifierMatches(java.lang.String query, java.lang.String[] identifierPartsArray)
          Returns true if identifierPartsArray contains all the parts of query, in order.
protected  void logDetail(java.lang.String key, java.lang.Object[] params)
          Log a localized message.
protected  void shutDownConnectorBinding(MMConnectorBinding binding, boolean stopNow)
           
protected  void throwProcessingException(java.lang.String key, java.lang.Object[] objects)
          Throw a processing exception with a localized message.
protected  SessionToken validateSession()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

parent

protected ServerAdminImpl parent

registry

protected ClusteredRegistryState registry
Constructor Detail

AbstractAdminImpl

public AbstractAdminImpl(ServerAdminImpl parent,
                         ClusteredRegistryState registry)
Since:
4.3
Method Detail

getParent

protected java.lang.String getParent(java.lang.String identifier)
Get the Parent Name for this Identifier

Parameters:
identifier -
Returns:
Since:
4.3

getName

protected java.lang.String getName(java.lang.String identifier)
Get the Node Name for this Identifier

Parameters:
identifier -
Returns:
Since:
4.3

getUserName

protected java.lang.String getUserName()
Get The User Name for this Connection

Returns:
String User Name for this Session to MetaMatrix
Since:
4.3

getSessionID

protected MetaMatrixSessionID getSessionID()
Get The MetaMatrixSessionID for this Connection

Returns:
this Session ID
Since:
4.3

validateSession

protected SessionToken validateSession()

throwProcessingException

protected void throwProcessingException(java.lang.String key,
                                        java.lang.Object[] objects)
                                 throws AdminException
Throw a processing exception with a localized message.

Parameters:
key - Key of message in i18n.properties file.
objects - Objects to substitute into message.
Throws:
AdminException
Since:
4.3

logDetail

protected void logDetail(java.lang.String key,
                         java.lang.Object[] params)
Log a localized message.

Parameters:
key - Key of message in i18n.properties file.
params - Objects to substitute into message.
Since:
4.3

getSessionServiceProxy

protected SessionServiceInterface getSessionServiceProxy()
                                                  throws ServiceException
Throws:
ServiceException

getMembershipServiceProxy

protected MembershipServiceInterface getMembershipServiceProxy()
                                                        throws ServiceException
Throws:
ServiceException

getAuthorizationServiceProxy

protected AuthorizationServiceInterface getAuthorizationServiceProxy()
                                                              throws ServiceException
Throws:
ServiceException

getConfigurationServiceProxy

protected ConfigurationServiceInterface getConfigurationServiceProxy()
                                                              throws ServiceException
Throws:
ServiceException

getQueryServiceProxy

protected QueryServiceInterface getQueryServiceProxy()
                                              throws ServiceException
Throws:
ServiceException

getExtensionSourceManager

protected ExtensionModuleManager getExtensionSourceManager()

getRuntimeStateAdminAPIHelper

protected RuntimeStateAdminAPIHelper getRuntimeStateAdminAPIHelper()
                                                            throws ServiceException
Throws:
ServiceException

identifierMatches

public static boolean identifierMatches(java.lang.String query,
                                        java.lang.String[] identifierPartsArray)
Returns true if identifierPartsArray contains all the parts of query, in order.

Parameters:
query -
identifierPartsArray -
Returns:
Since:
4.3

identifierMatches

protected static boolean identifierMatches(java.lang.String query,
                                           java.lang.String identifier)
Returns true if identifierPartsArray contains all the parts of query, in order.

Parameters:
query -
identifier -
Returns:
Since:
4.3

convertToAdminVDB

protected VDB convertToAdminVDB(VirtualDatabase virtualDatabase)
                         throws AdminException
Utility method the converts a VirtualDatabase into an admin VDB object.

Parameters:
newVDB -
Returns:
the converted VDB
Throws:
AdminException
Since:
4.3

getVDBs

protected java.util.List getVDBs(java.lang.String identifier,
                                 java.util.Collection virtualDatabases)
                          throws AdminException
Utility method to find VDBs in virtualDatabases collection matching identifier and create VDB admin objects to return in sorted collection (VDBs and versions will be together).

Parameters:
identifier -
virtualDatabases -
Returns:
Collection of VDBs matching identifier or empty collection.
Throws:
AdminException
Since:
4.3

getConnectorBindingNameFromUUID

protected java.lang.String getConnectorBindingNameFromUUID(java.lang.String uuid)
                                                    throws ConfigurationException
Throws:
ConfigurationException

getConnectorBindingNamesFromUUIDs

protected java.util.List getConnectorBindingNamesFromUUIDs(java.util.List uuids,
                                                           ConfigurationModelContainer configModel)

getConnectorBindingNamesFromUUIDs

protected java.util.List getConnectorBindingNamesFromUUIDs(java.util.List uuids)
                                                    throws ConfigurationException,
                                                           ServiceException
Throws:
ConfigurationException
ServiceException

getConnectorBindingNamesMapFromUUIDs

protected java.util.Map getConnectorBindingNamesMapFromUUIDs(java.util.Collection uuids)
                                                      throws ConfigurationException
Throws:
ConfigurationException

shutDownConnectorBinding

protected void shutDownConnectorBinding(MMConnectorBinding binding,
                                        boolean stopNow)
                                 throws AdminException
Throws:
AdminException

convertPropertyDefinitions

protected java.util.Collection convertPropertyDefinitions(ComponentObject component)
                                                   throws ConfigurationException
Convert a ComponentObject into a Collection of com.metamatrix.admin.api.objects.PropertyDefinition objects

Parameters:
component -
Returns:
Throws:
ConfigurationException
Since:
4.3

convertPropertyDefinitions

protected java.util.Collection convertPropertyDefinitions(ComponentObject component,
                                                          java.util.Properties properties)
                                                   throws ConfigurationException
Throws:
ConfigurationException

convertPropertyDefinitions

protected java.util.Collection convertPropertyDefinitions(ComponentType ctype,
                                                          java.util.Properties properties)

getAdminObjects

protected java.util.Collection getAdminObjects(java.lang.String identifier,
                                               java.lang.String className)
                                        throws AdminException
Get admin objects of the specified className that match the specified identifier.

Parameters:
identifier -
className -
Returns:
Throws:
AdminException
Since:
4.3

getConfigurationModel

protected ConfigurationModelContainer getConfigurationModel()
                                                     throws ConfigurationException
Throws:
ConfigurationException


Copyright © 2009. All Rights Reserved.