class: ServiceLocator

public class: ServiceLocator
Author: Peter Broszeit (initial creation)
Project: Phase: 1.0; Status: Proposed; Version: $Revision: 329 $ $LastChangedDate: 2007-12-06 09:4; Complexity: 1
Dates: Created: 16.07.2009 15:16:46; Modified: 16.07.2009 15:16:46;
Flags: Active: false; IsRoot: false; IsLeaf: false;
Extension Points:
UUID: {55E63577-B2EF-4432-A3F2-5538AFFB5D29}
This service locator has to be used for getting the handler of the framework services.<BR> The URL of the framework can be configured using the system property "framework.url". In an eclipse unit test this can be set as an vm argument e.g -Dframework.url=http://130.183.251.122:8080/axis/services
 

Goto: Custom Properties, Fields, Methods

See also: ContainerHandlerServiceLocator, ContentModelHandlerServiceLocator, ContextHandlerServiceLocator, ItemHandlerServiceLocator, OrganizationalUnitHandlerServiceLocator, SemanticStoreHandlerServiceLocator, UserAccountHandlerServiceLocator, UserManagementWrapperServiceLocator, AggregationDefinitionHandlerServiceLocator, ReportDefinitionHandlerServiceLocator, ReportHandlerServiceLocator, ScopeHandlerServiceLocator, StatisticDataHandlerServiceLocator

Appears in: framework

Connections
 
Custom Properties
 
ServiceLocator Attributes
Attribute Details
private static AdminHandlerServiceLocator
  authorizedAdminHandlerServiceLocator
private static ContainerHandlerServiceLocator
  authorizedContainerHandlerServiceLocator
private static ContentModelHandlerServiceLocator
  authorizedContentModelHandlerServiceLocator
private static ContextHandlerServiceLocator
  authorizedContextHandlerServiceLocator
private static IngestHandlerServiceLocator
  authorizedIngestHandlerServiceLocator
Notes: TocHandler is deprecated as of version 1.1 build501 private static TocHandlerServiceLocator authorizedTocHandlerServiceLocator;
private static ItemHandlerServiceLocator
  authorizedItemHandlerServiceLocator
private static OrganizationalUnitHandlerServiceLocator
  authorizedOrganizationalUnitHandlerServiceLocator
private static SemanticStoreHandlerServiceLocator
  authorizedSemanticScoreHandlerServiceLocator
private static UserAccountHandlerServiceLocator
  authorizedUserAccountHandlerServiceLocator
private static UserGroupHandlerServiceLocator
  authorizedUserGroupHandlerServiceLocator
private static UserManagementWrapperServiceLocator
  authorizedUserManagementWrapperServiceLocator
private static const String
  CONFIGURATION_FILE
Initial: "client.wsdd"
private static const String
  FRAMEWORK_PATH
Initial: "/axis/services"
private static AggregationDefinitionHandlerServiceLocator
  publicAggregationDefinitionHandlerServiceLocator
private static ReportDefinitionHandlerServiceLocator
  publicReportDefinitionHandlerServiceLocator
private static ReportHandlerServiceLocator
  publicReportHandlerServiceLocator
private static ScopeHandlerServiceLocator
  publicScopeHandlerServiceLocator
private static StatisticDataHandlerServiceLocator
  publicStatisticDataHandlerServiceLocator
private static const String
  SRW_PATH
Initial: "/srw/search"
 
ServiceLocator Methods
Operation Details
public static
getAdminHandler(
   String userHandle):AdminHandler
Sequential
Tags: throws=ServiceException,URISyntaxException
public static
getAdminHandler(
   String userHandle,
   URL frameworkUrl):AdminHandler
Sequential
Tags: throws=ServiceException,URISyntaxException
Notes: Gets the AdminHandler service for an authenticated user.
@return An AdminHandler.
public static
getAggregationDefinitionHandler():AggregationDefinitionHandler
Sequential
Tags: throws=ServiceException,URISyntaxException
public static
getAggregationDefinitionHandler(
   URL frameworkUrl):AggregationDefinitionHandler
Sequential
Tags: throws=ServiceException,URISyntaxException
Notes: Gets the AggregationDefinitionHandler service for an anonymous user.
@return A AggregationDefinitionHandler.
public static
getContainerHandler():ContainerHandler
Sequential
Tags: throws=ServiceException,URISyntaxException
public static
getContainerHandler(
   String userHandle):ContainerHandler
Sequential
Tags: throws=ServiceException,URISyntaxException
public static
getContainerHandler(
   URL frameworkUrl):ContainerHandler
Sequential
Tags: throws=ServiceException,URISyntaxException
public static
getContainerHandler(
   String userHandle,
   URL frameworkUrl):ContainerHandler
Sequential
Tags: throws=ServiceException,URISyntaxException
Notes: Gets the ContainerHandler service for an authenticated user.
@return A ContainerHandler.
public static
getContentModelHandler(
   String userHandle):ContentModelHandler
Sequential
Tags: throws=ServiceException,URISyntaxException
public static
getContentModelHandler(
   String userHandle,
   URL frameworkUrl):ContentModelHandler
Sequential
Tags: throws=ServiceException,URISyntaxException
Notes: Gets the ContentTypeHandler service for an authentificated user.
@return A ContentTypeHandler.
public static
getContextHandler(
   String userHandle):ContextHandler
Sequential
Tags: throws=ServiceException,URISyntaxException
public static
getContextHandler(
   URL frameworkUrl):ContextHandler
Sequential
Tags: throws=ServiceException,URISyntaxException
public static
getContextHandler():ContextHandler
Sequential
Tags: throws=ServiceException,URISyntaxException
public static
getContextHandler(
   String userHandle,
   URL frameworkUrl):ContextHandler
Sequential
Tags: throws=ServiceException,URISyntaxException
Notes: Gets the ContextHandler service for an authentificated user.
@return A ContextHandler.
public static
getExplainHandler(
   String databaseIdentifier):ExplainPort
Sequential
Tags: throws=ServiceException,URISyntaxException
public static
getExplainHandler(
   String databaseIdentifier,
   URL frameworkUrl):ExplainPort
Sequential
Tags: throws=ServiceException,MalformedURLException,URISyntaxException
Notes: Gets the ExplainHandler service for an anonymous user.
@return A ExplainHandler (ExplainPort)
public static
getFrameworkUrl():String
Sequential
Tags: throws=ServiceException,URISyntaxException
Notes: Get the configured URL of the running framework instance.
@return The url as a String.
public static
getIngestHandler(
   String userHandle):IngestHandler
Sequential
Tags: throws=ServiceException,URISyntaxException
Notes: public static TocHandler getTocHandler(String userHandle) throws ServiceException, URISyntaxException { if (authorizedTocHandlerServiceLocator == null) { authorizedTocHandlerServiceLocator = new TocHandlerServiceLocator(new FileProvider(CONFIGURATION_FILE)); String url = getFrameworkUrl() + FRAMEWORK_PATH + "/" + authorizedTocHandlerServiceLocator.getTocHandlerServiceWSDDServiceName(); Logger.getLogger(ServiceLocator.class).info("authorizedTocHandlerServiceLocator URL=" + url); authorizedTocHandlerServiceLocator.setTocHandlerServiceEndpointAddress(url); } TocHandler handler = authorizedTocHandlerServiceLocator.getTocHandlerService(); ((Stub)handler)._setProperty(WSHandlerConstants.PW_CALLBACK_REF, new PWCallback(userHandle)); return handler; }
public static
getIngestHandler(
   String userHandle,
   URL frameworkUrl):IngestHandler
Sequential
Tags: throws=ServiceException,URISyntaxException
Notes: Gets the IngestHandler service for an authenticated user.
@return A IngestHandler.
public static
getItemHandler():ItemHandler
Sequential
Tags: throws=ServiceException,URISyntaxException
Notes: Gets the ItemHandler service for an anonymous user.
@return An ItemHandler.
public static
getItemHandler(
   URL frameworkUrl):ItemHandler
Sequential
Tags: throws=ServiceException,URISyntaxException
public static
getItemHandler(
   String userhandle):ItemHandler
Sequential
Tags: throws=ServiceException,URISyntaxException
public static
getItemHandler(
   String userHandle,
   URL frameworkUrl):ItemHandler
Sequential
Tags: throws=ServiceException,URISyntaxException
Notes: Gets the ItemHandler service for an authentificated user.
@return An ItemHandler.
public static
getOrganizationalUnitHandler():OrganizationalUnitHandler
Sequential
Tags: throws=ServiceException,URISyntaxException
Notes: Gets the OrganizationalUnitHandler service for an anonymous user.
@return An OrganizationalUnitHandler.
public static
getOrganizationalUnitHandler(
   String userHandle):OrganizationalUnitHandler
Sequential
Tags: throws=ServiceException,URISyntaxException
public static
getOrganizationalUnitHandler(
   URL frameworkUrl):OrganizationalUnitHandler
Sequential
Tags: throws=ServiceException,URISyntaxException
public static
getOrganizationalUnitHandler(
   String userHandle,
   URL frameworkUrl):OrganizationalUnitHandler
Sequential
Tags: throws=ServiceException,URISyntaxException
Notes: Gets the OrganizationalUnitHandler service for an authentificated user.
@return An OrganizationalUnitHandler.
public static
getReportDefinitionHandler():ReportDefinitionHandler
Sequential
Tags: throws=ServiceException,URISyntaxException
public static
getReportDefinitionHandler(
   String userHandle):ReportDefinitionHandler
Sequential
Tags: throws=ServiceException,URISyntaxException
public static
getReportDefinitionHandler(
   URL frameworkUrl):ReportDefinitionHandler
Sequential
Tags: throws=ServiceException,URISyntaxException
public static
getReportDefinitionHandler(
   String userHandle,
   URL frameworkUrl):ReportDefinitionHandler
Sequential
Tags: throws=ServiceException,URISyntaxException
Notes: Gets the ReportDefinitionHandler service for an authenticated user.
@return A ReportDefinitionHandler.
public static
getReportHandler():ReportHandler
Sequential
Tags: throws=ServiceException,URISyntaxException
public static
getReportHandler(
   String userHandle):ReportHandler
Sequential
Tags: throws=ServiceException,URISyntaxException
public static
getReportHandler(
   URL frameworkUrl):ReportHandler
Sequential
Tags: throws=ServiceException,URISyntaxException
public static
getReportHandler(
   String userHandle,
   URL frameworkUrl):ReportHandler
Sequential
Tags: throws=ServiceException,URISyntaxException
Notes: Gets the ReportHandler service for an logged in user.
@return A ReportHandler.
public static
getScopeHandler():ScopeHandler
Sequential
Tags: throws=ServiceException,URISyntaxException
Notes: Gets the ScopeHandler service for an anonymous user.
@return A ScopeHandler.
public static
getScopeHandler(
   String userHandle):ScopeHandler
Sequential
Tags: throws=ServiceException,URISyntaxException
public static
getScopeHandler(
   URL frameworkUrl):ScopeHandler
Sequential
Tags: throws=ServiceException,URISyntaxException
public static
getScopeHandler(
   String userHandle,
   URL frameworkUrl):ScopeHandler
Sequential
Tags: throws=ServiceException,URISyntaxException
Notes: Gets the ScopeHandler service for an authentificated user.
@return A ScopeHandler.
public static
getSearchHandler(
   String databaseIdentifier):SRWPort
Sequential
Tags: throws=ServiceException,URISyntaxException
public static
getSearchHandler(
   String databaseIdentifier,
   URL frameworkUrl):SRWPort
Sequential
Tags: throws=ServiceException,URISyntaxException
Notes: Gets the SearchHandler service for an anonymous user.
@return A SearchHandler (SRWPort).
public static
getSemanticScoreHandler(
   String userHandle):SemanticStoreHandler
Sequential
Tags: throws=ServiceException,URISyntaxException
public static
getSemanticScoreHandler(
   String userHandle,
   URL frameworkUrl):SemanticStoreHandler
Sequential
Tags: throws=ServiceException,URISyntaxException
Notes: Gets the SemanticStoreHandler service for an authentificated user.
@return A SemanticStoreHandler
public static
getStatisticDataHandler():StatisticDataHandler
Sequential
Tags: throws=ServiceException,URISyntaxException
Notes: Gets the StatisticDataHandler service for an anonymous user.
@return A StatisticDataHandler.
public static
getStatisticDataHandler(
   String userHandle):StatisticDataHandler
Sequential
Tags: throws=ServiceException,URISyntaxException
public static
getStatisticDataHandler(
   URL frameworkUrl):StatisticDataHandler
Sequential
Tags: throws=ServiceException,URISyntaxException
public static
getStatisticDataHandler(
   String userHandle,
   URL frameworkUrl):StatisticDataHandler
Sequential
Tags: throws=ServiceException,URISyntaxException
Notes: Gets the StatisticDataHandler service for an logged in user.
@return A StatisticDataHandler.
public static
getUserAccountHandler(
   String userHandle):UserAccountHandler
Sequential
Tags: throws=ServiceException,URISyntaxException
public static
getUserAccountHandler(
   String userHandle,
   URL frameworkUrl):UserAccountHandler
Sequential
Tags: throws=ServiceException,URISyntaxException
Notes: Gets the UserAccountHandler service for an authentificated user.
@return A UserAccountHandler.
public static
getUserGroupHandler(
   String userHandle):UserGroupHandler
Sequential
Tags: throws=ServiceException,URISyntaxException
public static
getUserGroupHandler(
   String userHandle,
   URL frameworkUrl):UserGroupHandler
Sequential
Tags: throws=ServiceException,URISyntaxException
Notes: Gets the UserGroupHandler service for an authentificated user.
@return A UserGroupHandler.
public static
getUserManagementWrapper(
   String userHandle):UserManagementWrapper
Sequential
Tags: throws=ServiceException,URISyntaxException
public static
getUserManagementWrapper(
   String userHandle,
   URL frameworkUrl):UserManagementWrapper
Sequential
Tags: throws=ServiceException,URISyntaxException
Notes: Gets the UserManagementWrapper service for an authentificated user.
@return A wrapper for the UserManagement.