Skip navigation links

SAS Life Science Analytics Framework Java API - 2.3

See: Description

Packages 
Package Description
com.sas.lsaf
Class to log on to the system.
com.sas.lsaf.client
Classes needed to create a session and access available services.
com.sas.lsaf.client.utils
Contains common utility classes.
com.sas.lsaf.clinical.common
Contains common clinical classes.
com.sas.lsaf.clinical.dictionary
Classes and interfaces for retrieving dictionaries in the system.
com.sas.lsaf.clinical.model
Classes and interfaces for retrieving models in the system.
com.sas.lsaf.clinical.standards
Classes and interfaces for retrieving and exporting standards in the system.
com.sas.lsaf.clinical.study
Classes and interfaces for retrieving study information in the system.
com.sas.lsaf.content.common
Contains common content classes.
com.sas.lsaf.content.repository
Classes and interfaces to manage content in the repository.
com.sas.lsaf.content.repository.recyclebin
The service to retrieve and delete items from the recycle bin.
com.sas.lsaf.content.repository.signature
Service and class definitions for signing files and getting signatures in the system.
com.sas.lsaf.content.workspace
Classes and interfaces to manage content in the current user's workspace.
com.sas.lsaf.core
Contains common classes and interfaces for core services in the system.
com.sas.lsaf.core.action
Contains common classes for getting status information for actions in the system.
com.sas.lsaf.core.configuration
Services and classes that surface build information for the client and server components so that compatibility checks can be performed.
com.sas.lsaf.core.type
Services and classes to describe the object type definitions within the system.
com.sas.lsaf.execution.job
Provides the classes needed to create, update, and get jobs as well as execute them and get their status
com.sas.lsaf.execution.session
Provides the classes and interfaces needed to query and manage SAS sessions.
com.sas.lsaf.messaging.subscription
The service for creating and retrieving subscriptions.
com.sas.lsaf.query
Contains common classes and interfaces to query information.
com.sas.lsaf.query.audit
The services and classes to query and extract audit information to a file for further processing.
com.sas.lsaf.query.repository
The services and classes to extract repository content information to a file for further processing.
com.sas.lsaf.query.repository.recyclebin
The services and classes to extract recycle bin content information to a file for further processing.
com.sas.lsaf.query.security.membership
The services and classes to extract membership information to a file for further processing.
com.sas.lsaf.schedule
Service and class definitions to manage schedules.
com.sas.lsaf.security.acl
Service and class definitions to create and manipulate ACLs.
com.sas.lsaf.security.audit
Service and class definitions for getting global audit entries.
com.sas.lsaf.security.authentication
Exceptions that can be thrown when authenticating a user.
com.sas.lsaf.security.group
Service and classes for creating and manipulating groups in the system.
com.sas.lsaf.security.membership
Service and class definitions for manipulating the membership of a context.
com.sas.lsaf.security.principal
Class definitions for manipulating and identifying principals in the system.
com.sas.lsaf.security.privilege
Service and classes for identifying and using privileges in the system.
com.sas.lsaf.security.role
Service and class definitions for manipulating and creating roles, their availability in contexts, and their membership lists.
com.sas.lsaf.security.user
Service and classes to create and manipulate users in the system.
com.sas.lsaf.workflow.element
Class definitions representing base elements in a process flow.
com.sas.lsaf.workflow.processdefinition
The service and class definitions to manage process flow definitions.
com.sas.lsaf.workflow.processflow
The service and class definitions to manage process flows.
com.sas.lsaf.workflow.processflow.setup
The service and class definitions to manage process flows setup elements.
com.sas.lsaf.workflow.task
Service and class definitions for managing and retrieving process flow tasks and elements.

To start using the SAS Life Science Analytics Framework Java API, you must first establish a session with your instance of the application.

To simplest way to start is to logon via the LsafClient. LsafClient allows a static logon and static access to services like the RepositoryService. For example:

import com.sas.lsaf.LsafClient;
import com.sas.lsaf.content.repository.RepositoryService;
...
LsafClient.logon("https://yourLSAFMachine.domain.com", "myLSAFuserId", "myLSAFpwd".getBytes());
RepositoryService repositoryService = LsafClient.getRepositoryService();
repositoryService.checkout("/YOURORG/Files/Folder/someProgram.sas");
...

Once logged in, a single user session is established and used when accessing the services. Note subsequent calls to logon will logoff the current session and establish a new session.

Alternatively, you can log on using SessionFactory.logon(URL,String, byte[]) which will create and return a Session. From the Session, you can access services and manage the session.

import com.sas.lsaf.client.*;
import com.sas.lsaf.content.repository.RepositoryService;
...
Session session = SessionFactory.logon(new URL("http://yourLSAFMachine.domain.com"), 
                                            "myLSAFuserId", "myLSAFpwd".getBytes());
ServiceManager serviceManager = session.getServiceManager());                                            
RepositoryService repositoryService = serviceManager.getRepositoryService();
repositoryService.checkout("/YOURORG/Files/Folder/someProgram.sas");
...

Each SessionFactory logon creates a new Session.

Skip navigation links

Copyright (c) 2020, SAS Institute Inc., Cary, NC, USA