Class LsafClient
LsafClient allows a static logon and static access to services. Use the
logon(String, String, byte[]) method to authenticate and immediately access services like the
RepositoryService. Use of the LsafClient is
based on a single user and a single session.
Subsequent calls to logon will logoff the current user and establish a new session.
If you have not successfully called a logon method prior to accessing a service, an
IllegalStateException will be thrown.
Alternatively, you can log on using SessionFactory.logon(URL,String, byte[]) which will create and return a
ClientSession from which you can access services and manage the session. In this case, each logon call will create
a new session.
Use the logoff() to log off of the system and invalidate the current session.
- Since:
- 2.1
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic AclServiceGets the AclService to access using the current sessionGets the ApplicationInformationService to access using the current sessionstatic AuditQueryServiceGets the AuditQueryService to access using the current sessionstatic AuditServiceGets the AuditService to access using the current sessionstatic AutoFlowServiceGets the AutoFlowService to access using the current sessionstatic BatchRepositoryServiceGets the BatchRepositoryService to access using the current sessionstatic BatchWorkspaceServiceGets the BatchWorkspaceService to access using the current sessionstatic DictionaryServiceGets the DictionaryService to access using the current sessionstatic ExternalDictionaryServiceGets the ExternalDictionaryService to access using the current sessionstatic GlobalPrivilegeServiceGets the GlobalPrivilegeService to access using the current sessionstatic GroupServiceGets the GroupService to access using the current sessionstatic JobServiceGets the JobService to access using the current sessionstatic JobSubmissionServiceGets the JobSubmissionService to access using the current sessionGets the MembershipQueryService to access using the current sessionstatic MembershipServiceGets the MembershipService to access using the current sessionstatic ModelServiceGets the ModelService to access using the current sessionstatic PermissionsQueryServiceGets the PermissionsQueryService to access using the current sessionstatic ProcessDefinitionServiceGets the ProcessFlowService to access using the current sessionstatic ProcessFlowServiceGets the ProcessFlowService to access using the current sessionstatic ProcessFlowSetupServiceGets the ProcessFlowSetupService to access using the current sessionstatic RecycleBinQueryServiceGets the RecycleBinQueryService to access using the current sessionstatic RecycleBinServiceGets the RecycleBinService to access using the current sessionstatic RepositoryQueryServiceGets the RepositoryQueryService to access using the current sessionstatic RepositoryServiceGets the RepositoryService to access using the current sessionstatic ResourceUtilizationServiceGets the ResourceUtilizationService to access using the current sessionstatic RoleServiceGets the RoleService to access using the current sessionstatic ScheduleServiceGets the SubscriptionService to access using the current sessionstatic ScopedPrivilegeServiceGets the ScopedPrivilegeService to access using the current sessionstatic SessionServiceGets the SessionService to access using the current sessionstatic SharedWorkspaceServiceGets the SharedWorkspaceService to access using the current sessionstatic SignatureServiceGets the SignatureService to access using the current sessionstatic StandardsServiceGets the StandardsService to access using the current sessionstatic StudyServiceGets the StudyService to access using the current sessionstatic StudyTlfServiceGets the StudyTlfService to access using the current sessionstatic SubscriptionServiceGets the SubscriptionService to access using the current sessionstatic TaskServiceGets the TaskService to access using the current sessionstatic TlfTemplateServiceGets the TlfTemplateService to access using the current sessionstatic TypeServiceGets the TypeService to access using the current sessionstatic UserServiceGets the UserService to access using the current sessionstatic WorkspaceServiceGets the WorkspaceService to access using the current sessionstatic voidlogoff()Logs off the current session of the instance if one existsstatic voidLogs on to the specified SAS Life Science Analytics Framework instance to establish an authenticated session in order to access services.static voidLogs on to the specified SAS Life Science Analytics Framework instance going through the specified proxy to establish an authenticated session in order to access services.
-
Constructor Details
-
LsafClient
public LsafClient()
-
-
Method Details
-
logon
Logs on to the specified SAS Life Science Analytics Framework instance to establish an authenticated session in order to access services. Any prior successful logon via this method will be logged out.- Parameters:
url- url string of machine hosting the SAS Life Science Analytics Framework instanceuserId- userid of the user who is logging inpassword- password of the user who is logging in- Throws:
LogonException- thrown if there was an error logging in
-
logon
public static void logon(String url, String userId, byte[] password, ProxyInfo proxyInfo) throws LogonException Logs on to the specified SAS Life Science Analytics Framework instance going through the specified proxy to establish an authenticated session in order to access services. Any prior successful logon via this method will be logged out.- Parameters:
url- url string of machine hosting the SAS Life Science Analytics Framework instanceuserId- userid of the user who is logging inpassword- password of the user who is logging inproxyInfo- proxy information required to access the url- Throws:
LogonException- thrown if there was an error logging in
-
logoff
public static void logoff()Logs off the current session of the instance if one exists -
getApplicationInformationService
Gets the ApplicationInformationService to access using the current session- Returns:
- the ApplicationInformationService for the current session
-
getAuditService
Gets the AuditService to access using the current session- Returns:
- the AuditService for the current session
-
getGlobalPrivilegeService
Gets the GlobalPrivilegeService to access using the current session- Returns:
- the GlobalPrivilegeService for the current session
-
getGroupService
Gets the GroupService to access using the current session- Returns:
- the GroupService for the current session
-
getMembershipService
Gets the MembershipService to access using the current session- Returns:
- the MembershipService for the current session
-
getRepositoryService
Gets the RepositoryService to access using the current session- Returns:
- the RepositoryService for the current session
-
getRoleService
Gets the RoleService to access using the current session- Returns:
- the RoleService for the current session
-
getScopedPrivilegeService
Gets the ScopedPrivilegeService to access using the current session- Returns:
- the ScopedPrivilegeService for the current session
-
getTypeService
Gets the TypeService to access using the current session- Returns:
- the TypeService for the current session
-
getUserService
Gets the UserService to access using the current session- Returns:
- the UserService for the current session
-
getWorkspaceService
Gets the WorkspaceService to access using the current session- Returns:
- the WorkspaceService for the current session
-
getAclService
Gets the AclService to access using the current session- Returns:
- the AclService for the current session
-
getBatchWorkspaceService
Gets the BatchWorkspaceService to access using the current session- Returns:
- the BatchWorkspaceService for the current session
-
getBatchRepositoryService
Gets the BatchRepositoryService to access using the current session- Returns:
- the BatchRepositoryService for the current session
-
getSignatureService
Gets the SignatureService to access using the current session- Returns:
- the SignatureService for the current session
-
getRecycleBinService
Gets the RecycleBinService to access using the current session- Returns:
- the RecycleBinService for the current session
-
getJobService
Gets the JobService to access using the current session- Returns:
- the JobService for the current session
-
getJobSubmissionService
Gets the JobSubmissionService to access using the current session- Returns:
- the JobSubmissionService for the current session
-
getProcessFlowService
Gets the ProcessFlowService to access using the current session- Returns:
- the ProcessFlowService for the current session
-
getProcessDefinitionService
Gets the ProcessFlowService to access using the current session- Returns:
- the ProcessFlowService for the current session
-
getProcessFlowSetupService
Gets the ProcessFlowSetupService to access using the current session- Returns:
- the ProcessFlowSetupService for the current session
-
getTaskService
Gets the TaskService to access using the current session- Returns:
- the TaskService for the current session
-
getSessionService
Gets the SessionService to access using the current session- Returns:
- the SessionService for the current session
-
getSubscriptionService
Gets the SubscriptionService to access using the current session- Returns:
- the SubscriptionService for the current session
-
getScheduleService
Gets the SubscriptionService to access using the current session- Returns:
- the SubscriptionService for the current session
-
getStandardsService
Gets the StandardsService to access using the current session- Returns:
- the StandardsService for the current session
-
getStudyService
Gets the StudyService to access using the current session- Returns:
- the StudyService for the current session
-
getModelService
Gets the ModelService to access using the current session- Returns:
- the ModelService for the current session
-
getDictionaryService
Gets the DictionaryService to access using the current session- Returns:
- the DictionaryService for the current session
-
getExternalDictionaryService
Gets the ExternalDictionaryService to access using the current session- Returns:
- the ExternalDictionaryService for the current session
-
getAuditQueryService
Gets the AuditQueryService to access using the current session- Returns:
- the AuditQueryService for the current session
-
getRepositoryQueryService
Gets the RepositoryQueryService to access using the current session- Returns:
- the RepositoryQueryService for the current session
-
getRecycleBinQueryService
Gets the RecycleBinQueryService to access using the current session- Returns:
- the RecycleBinQueryService for the current session
-
getMembershipQueryService
Gets the MembershipQueryService to access using the current session- Returns:
- the MembershipQueryService for the current session
-
getPermissionsQueryService
Gets the PermissionsQueryService to access using the current session- Returns:
- the MembershipQueryService for the current session
-
getAutoFlowService
Gets the AutoFlowService to access using the current session- Returns:
- the AutoFlowService for the current session
-
getStudyTlfService
Gets the StudyTlfService to access using the current session- Returns:
- the StudyTlfService for the current session
-
getResourceUtilizationService
Gets the ResourceUtilizationService to access using the current session- Returns:
- the ResourceUtilizationService for the current session
-
getTlfTemplateService
Gets the TlfTemplateService to access using the current session- Returns:
- the TlfTemplateService for the current session
-