SAS Drug Development Java API - 1.4

See:
          Description

Packages
com.sas.hls.client Provides the classes needed to create a session and access available services.
com.sas.hls.client.exception Top-level exceptions that can be thrown when communicating with the API.
com.sas.hls.common Contains common exceptions and definitions that work across the HLS platform.
com.sas.hls.common.exception Exceptions that are common across the HLS platform.
com.sas.hls.drug.analysis Service and class definitions for manipulating and creating SAS Drug Development analyses.
com.sas.hls.drug.analysis.exception Exceptions that can be thrown when manipulating an analysis or using the analysisService.
com.sas.hls.drug.client Classes specific to accessing an instance of the SAS Drug Development application.
com.sas.hls.drug.project Service and class definitions for manipulating and creating SAS Drug Development projects.
com.sas.hls.drug.project.exception Exceptions that can be thrown while manipulating a project or using the projectService.
com.sas.hls.job Provides the classes needed to create, update, and get jobs as well as execute them and get their status
com.sas.hls.job.exception Exceptions that can be thrown when manipulating or executing a job.
com.sas.hls.organization Service and class definitions for manipulating and creating organizations.
com.sas.hls.organization.exception Exceptions that can be thrown when manipulating an organization or using the organizationService.
com.sas.hls.recyclebin Service for retrieving and deleting items from the recycle bin.
com.sas.hls.recyclebin.exception Exceptions that can be thrown when retrieving or deleting items in the recycle bin.
com.sas.hls.resource Provides the services and classes needed to manage the life cycle of resources in workspaces or the repository, and to get information about those resources.
com.sas.hls.resource.exception General exceptions that can be thrown when manipulating resources.
com.sas.hls.resource.repository Provides the classes and interfaces needed to manipulate resources in the repository.
com.sas.hls.resource.repository.exception Exceptions that can be thrown when manipulating repository resources.
com.sas.hls.resource.workspace Provides the classes and interfaces to manipulate resources in the current workspace.
com.sas.hls.resource.workspace.exception Exceptions that can be thrown when manipulating workspace resources.
com.sas.hls.schedule Service and class definitions for managing schedules.
com.sas.hls.schedule.exception Exceptions that can be thrown while manipulating a schedule using the scheduleService.
com.sas.hls.security.acl Service and class definitions for manipulating and creating acls.
com.sas.hls.security.acl.exception Exceptions that can be thrown while manipulating an acl using the aclService.
com.sas.hls.security.authentication.exception Exceptions that can be thrown when authenticating a user.
com.sas.hls.security.group Service and class definitions for manipulating and creating groups.
com.sas.hls.security.group.exception Exceptions that can be thrown while manipulating a group or using the groupService.
com.sas.hls.security.membership Service and class definitions for manipulating the membership of a context.
com.sas.hls.security.membership.exception Exceptions that can be thrown while manipulating a membership list or using the membershipService.
com.sas.hls.security.principal Class definitions for manipulating and identifying principals in the system.
com.sas.hls.security.principal.exception Exceptions that can be thrown while manipulating or accessing principals in the system.
com.sas.hls.security.privilege Class definitions for identifying and using privileges in the system.
com.sas.hls.security.privilege.exception Exceptions that can be thrown while manipulating or accessing privileges in the system.
com.sas.hls.security.role Service and class definitions for manipulating and creating roles, their availability in contexts, and their membership lists.
com.sas.hls.security.role.exception Exceptions that can be thrown while manipulating roles or using the roleDefinitionService or roleAssignmentService.
com.sas.hls.security.user Service and class definitions for manipulating and creating Users.
com.sas.hls.security.user.exception Exceptions that can be thrown while manipulating a user or using the userService.

 

To start using the SAS Drug Development Java API, you must first establish a session with your instance of the application. From the session, you can obtain the services we currently deliver which provide a number of methods for resource manipulation, job creation and submission, and access to the security services. For example:

import com.sas.hls.client.*;
import com.sas.hls.resource.repository.RepositoryResourceService;
...
Session session = SessionFactory.newSession(new URL("http://yourSDDMachine.domain.com"), 
                                            "mySDDuid", "mySDDpwd");
DrugServiceManager serviceManager =  ((DrugServiceManager) session.getServiceManager());                                            
RepositoryResourceService repoService = serviceManager.getRepositoryResourceService();
repoService.checkoutToWorkspace("/YOURORG/Files/Folder/someProgram.sas");
...

There is also a samples directory which includes instructions on how you can set up an environment to use the API as well as providing several full example programs that illustrate the use of the API.



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