|
Integrating Other Web Applications With the Portal
Using SAS Foundation Services With the PortalSAS Foundation Services is a set of infrastructure and extension services that support the development of integrated, scalable, and secure applications that are developed using Java. The design model for SAS Foundation Services supports both local and remote resource deployment and promotes resource sharing among applications. Sharing can occur for a specific session, for a specific user, or globally, as appropriate. At the same time, the model controls access to protected resources based on privileged-user status and group membership. For a list and description of each service, refer to SAS Foundation Services in the SAS Integration Technologies: Developer's Guide. The SAS Web Infrastructure Kit includes the SAS Foundation Services Facade API, which is a set of convenience classes that developers can use to obtain references to the most commonly used foundation services. The foundation services facade should provide all of the necessary functionality to integrate your applications with the portal Web application. The foundation services facade is part of the Portlet API. For detailed information about the facade classes, select You can also choose to use the SAS Foundation Services classes directly. Local and Remote Service DeploymentYou can deploy the SAS Foundation Services on the same machine as the portal Web application (default installation) or on a remote machine. Using Locally Deployed SAS Foundation ServicesWhen SAS Foundation Services is deployed locally, the core local services stack is used, as follows:
Using Remotely Deployed SAS Foundation ServicesIn the portal Web application architecture, an application called SAS Services (SASServices) is used to remotely deploy SAS Foundation Services. This application enables secure information sharing among applications. Through SAS Services, you can implement remotely deployed content viewers, remote portlets, and stand-alone Web applications that are called by the portal Web application and invoked with the portal Web application user's credentials. The user does not need to log on again, and user and session information can be shared as needed. The SAS Services application makes the following stack available to applications that are enabled by SAS Foundation Services:
The SAS Services application must be up and running on a machine that is accessible to the remote Web application. In addition, the remote Web application must include a properties file that points to the definition of the remote services. The portal Web application provides the SAS Services application with session context information for each authenticated user who is logged on. If the portal Web application passes a unique session ID to a remote Web application, then the remote Web application can obtain the appropriate user's session context information from the SAS Services session. The remote Web application should use the following steps to accomplish this:
UserContextInterface privilegedUser = Note: Replace
sharedSession = params.getSessionContext();
sessionLock = SharedSession.lock("com.sas.MySessionName");
UserContextInterface userContext = sharedSession.getUserContext();
sharedSession.unlock(sessionLock); For an illustration of the use of SAS Foundation Services to access a SAS Services session, see the Sample Web Application (HelloUserWikExample). For more information about service deployment, see SAS Foundation Service Deployment and Use in the "Foundation Services and WebDAV Server Deployment" chapter in the SAS Intelligence Platform: Web Application Administration Guide. Configuring Foundation Service DeploymentsWhen you install the Portal Web application, you can choose whether to store the metadata for the local and remote service deployment configurations in XML files, or on the SAS Metadata Server, as follows:
Note: In SAS 9.1.2 Integration Technologies and subsequent releases, the Web Infrastructure Kit supports the use of either XML files or the SAS Metadata Server to store service deployment configurations. In SAS 9.1 Integration Technologies, the Web Infrastructure Kit supports only the use of XML files to store service deployment configurations. For more information, see Service Deployment Configurations in the "Foundation Services and WebDAV Server Deployment" chapter in the SAS Intelligence Platform: Web Application Administration Guide.
|