com.sas.services.webapp
Class ServicesFacade
java.lang.Object
|
+--com.sas.services.webapp.ServicesFacade
- public final class ServicesFacade
- extends Object
This class provides utility and convenience methods for surfacing
services provided by the Business Intelligence Platform.
It uses FindServiceInterface
to locate the desired local or remote service .
Platform services needs to be bootstrapped and available
through a DiscoveryService
before calling the static methods in this class.
Bootstrap can be used to bootstrap platform services.
Webapps can use BootstrapServlet to seamlessly deploy
platform services from information specified in web.xml
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
setDiscoveryService
public static void setDiscoveryService(com.sas.services.discovery.LocalDiscoveryServiceInterface dsi)
- Sets static DiscoveryServiceInterface. Usefull for Mocks
- Parameters:
dsi - an instance of a LocalDiscoveryServiceInterface
getDiscoveryService
public static com.sas.services.discovery.DiscoveryServiceInterface getDiscoveryService()
- Returns:
- the DiscoveryServiceInterface
getLoggingService
public static com.sas.services.logging.LoggingServiceInterface getLoggingService()
throws RemoteException,
com.sas.services.InitializationException,
com.sas.services.ServiceException
- Returns:
- LoggingServiceInterface
- Throws:
RemoteException - if the requested RemoteServiceInterface could not be obtainedcom.sas.services.InitializationException - if the requested RemoteServiceInterface could not be obtainedcom.sas.services.ServiceException - if the requested RemoteServiceInterface could not be obtained
getUserService
public static com.sas.services.user.UserServiceInterface getUserService()
throws RemoteException,
com.sas.services.InitializationException,
com.sas.services.ServiceException
- Returns:
- UserServiceInterface
- Throws:
RemoteException - if the requested RemoteServiceInterface could not be obtainedcom.sas.services.InitializationException - if the requested RemoteServiceInterface could not be obtainedcom.sas.services.ServiceException - if the requested RemoteServiceInterface could not be obtained
getSessionService
public static com.sas.services.session.SessionServiceInterface getSessionService()
throws RemoteException,
com.sas.services.InitializationException,
com.sas.services.ServiceException
- Returns:
- SessionServiceInterface
- Throws:
RemoteException - if the requested RemoteServiceInterface could not be obtainedcom.sas.services.InitializationException - if the requested RemoteServiceInterface could not be obtainedcom.sas.services.ServiceException - if the requested RemoteServiceInterface could not be obtained
getInformationService
public static com.sas.services.information.InformationServiceInterface getInformationService()
throws RemoteException,
com.sas.services.InitializationException,
com.sas.services.ServiceException
- Returns:
- InformationInterface
- Throws:
RemoteException - if the requested RemoteServiceInterface could not be obtainedcom.sas.services.InitializationException - if the requested RemoteServiceInterface could not be obtainedcom.sas.services.ServiceException - if the requested RemoteServiceInterface could not be obtained
getAuthenticationService
public static com.sas.services.security.AuthenticationServiceInterface getAuthenticationService()
throws RemoteException,
com.sas.services.InitializationException,
com.sas.services.ServiceException
- Returns:
- AuthenticationInterface
- Throws:
RemoteException - if the requested RemoteServiceInterface could not be obtainedcom.sas.services.InitializationException - if the requested RemoteServiceInterface could not be obtainedcom.sas.services.ServiceException - if the requested RemoteServiceInterface could not be obtained
getStoredProcessService
public static StoredProcessServiceInterface getStoredProcessService()
throws RemoteException,
com.sas.services.InitializationException,
com.sas.services.ServiceException
- Returns:
- StoredProcessServiceInterface
- Throws:
RemoteException - if the requested RemoteServiceInterface could not be obtainedcom.sas.services.InitializationException - if the requested RemoteServiceInterface could not be obtainedcom.sas.services.ServiceException - if the requested RemoteServiceInterface could not be obtained
getLogger
public static com.sas.services.logging.LoggerInterface getLogger(String loggingContext)
- Returns:
- com.sas.services.logging.LoggerInterface
- Throws:
RemoteException - if the requested RemoteServiceInterface could not be obtainedcom.sas.services.InitializationException - if the requested RemoteServiceInterface could not be obtainedcom.sas.services.ServiceException - if the requested RemoteServiceInterface could not be obtained
getRemoteSessionService
public static com.sas.services.session.SessionServiceInterface getRemoteSessionService()
throws RemoteException,
com.sas.services.InitializationException,
com.sas.services.ServiceException
- Returns:
- SessionServiceInterface
- Throws:
RemoteException - if the requested RemoteServiceInterface could not be obtainedcom.sas.services.InitializationException - if the requested RemoteServiceInterface could not be obtainedcom.sas.services.ServiceException - if the requested RemoteServiceInterface could not be obtained
getRemoteUserService
public static com.sas.services.user.UserServiceInterface getRemoteUserService()
throws RemoteException,
com.sas.services.InitializationException,
com.sas.services.ServiceException
- Returns:
- UserServiceInterface
- Throws:
RemoteException - if the requested RemoteServiceInterface could not be obtainedcom.sas.services.InitializationException - if the requested RemoteServiceInterface could not be obtainedcom.sas.services.ServiceException - if the requested RemoteServiceInterface could not be obtained
getRemoteInformationService
public static com.sas.services.information.InformationServiceInterface getRemoteInformationService()
throws RemoteException,
com.sas.services.InitializationException,
com.sas.services.ServiceException
- Returns:
- InformationServiceInterface
- Throws:
RemoteException - if the requested RemoteServiceInterface could not be obtainedcom.sas.services.InitializationException - if the requested RemoteServiceInterface could not be obtainedcom.sas.services.ServiceException - if the requested RemoteServiceInterface could not be obtained
getRemoteEventBrokerService
public static EventBrokerServiceInterface getRemoteEventBrokerService()
throws RemoteException,
com.sas.services.InitializationException,
com.sas.services.ServiceException
- NON CORE SERVICE
- Returns:
- UserServiceInterface
- Throws:
RemoteException - if the requested RemoteServiceInterface could not be obtainedcom.sas.services.InitializationException - if the requested RemoteServiceInterface could not be obtainedcom.sas.services.ServiceException - if the requested RemoteServiceInterface could not be obtained
newIQService
public static IntelligentQueryMetadataServiceInterface newIQService()
throws com.sas.services.ServiceException
newSessionContext
public static com.sas.services.session.SessionContextInterface newSessionContext(com.sas.services.session.SessionContextInterface sourceSession,
com.sas.services.user.UserServiceInterface userService,
com.sas.services.session.SessionServiceInterface sessionService,
com.sas.services.information.InformationServiceInterface infoService)
throws com.sas.services.ServiceException,
RemoteException
- A new session is created using the supplied session as a source
of credentials.
- Returns:
- a new session, ready to use, and unassociated with
sourceSession.
- Throws:
com.sas.services.ServiceException - any of several authentication problems.RemoteException - a communications problem accessing a
remote service (if the services are remote versions), such as
inability to contact the remote service.
Copyright © 2005 SAS Institute Inc. All Rights Reserved.
javadoc generated Fri, 10 Feb 2006 17:05:13