SAS 9.1.3 Integration Technologies » SAS Web Infrastructure Kit: Developer's Guide


Developing Custom Portlets
Development Steps
Creating a Deployment Descriptor
Creating Display Resources Files
Developing the Presentation JSP Page
Creating Action Classes
Implementing Portlet Help
Creating a PAR File
Use Cases
Simple Display Portlet
Localized Portlet
Portlet Template (Editable Portlet)
Remote Portlet
Tips and Best Practices
Using the Portlet API
Sample Portlets
Localized Display Portlet (Welcome)
Interactive Form Portlet (FormExample)
Portlet Template, or Editable Portlet (DisplayURL)
Web Application (HelloUserWikExample)
Remote Portlet (HelloUserRemote
Portlet
Sample: Web Application (HelloUserWikExample)

Step 3: Create a Privileged User

To obtain the user's name, the HelloUserWikExample application uses SAS Foundation Services to access remote session information that was created by the portal Web application. Specific credentials are required to access the remote session information.

You should set up a privileged user account specifically for this purpose. Use these steps to create the privileged user and give it access to the remote session context:

  1. Log on to SAS Management Console as the SAS Administrator, and use the User Manager plug-in to create a user definition and initial login definition for the privileged user.

  2. Add the privileged user to the SAS System Services group. Membership in this group provides ReadMetadata access to all objects in the metadata repository.

  3. Specify the privileged user in the user service of the HelloUserWikExample application's local service deployment, as follows:

    • If you are using the SAS Metadata Server to store local and remote service deployment configurations, then you can use SAS Management Console to update the user service deployment that you created in Step 2 for the HelloUserWikExample application. For instructions, see Modifying the Session and User Service Configurations in the SAS Integration Technologies: Administrator's Guide.

    • If you are using XML files to store local and remote service deployment configurations, then update the UserService element of the HelloUserWikExample application's local deployment definition file (for example, sas_services_hellouser_local_omr.xml) that you created in Step 2 .

      To determine the encoded form of the password, start a SAS session and submit the following code in the Program Editor:

      proc pwencode in=’xxxxxx’;
      run;

      where xxxxx is the unencoded password. Copy the resulting text from the SAS log to the deployment definition file.

  4. Specify the privileged user in the context-param element of the HelloUserWikExample's web.xml file, as described in Step 4.