public class LsafClient extends Object
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 Session
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.
Constructor and Description |
---|
LsafClient() |
Modifier and Type | Method and Description |
---|---|
static AclService |
getAclService()
Gets the AclService to be accessed using the current session
|
static ApplicationInformationService |
getApplicationInformationService()
Gets the ApplicationInformationService to be accessed using the current session
|
static AuditService |
getAuditService()
Gets the AuditService to be accessed using the current session
|
static BatchRepositoryService |
getBatchRepositoryService()
Gets the BatchRepositoryService to be accessed using the current session
|
static BatchWorkspaceService |
getBatchWorkspaceService()
Gets the BatchWorkspaceService to be accessed using the current session
|
static DictionaryService |
getDictionaryService()
Gets the DictionaryService to be accessed using the current session
|
static ExternalDictionaryService |
getExternalDictionaryService()
Gets the ExternalDictionaryService to be accessed using the current session
|
static GlobalPrivilegeService |
getGlobalPrivilegeService()
Gets the GlobalPrivilegeService to be accessed using the current session
|
static GroupService |
getGroupService()
Gets the GroupService to be accessed using the current session
|
static JobService |
getJobService()
Gets the JobService to be accessed using the current session
|
static JobSubmissionService |
getJobSubmissionService()
Gets the JobSubmissionService to be accessed using the current session
|
static MembershipService |
getMembershipService()
Gets the MembershipService to be accessed using the current session
|
static ModelService |
getModelService()
Gets the ModelService to be accessed using the current session
|
static ProcessDefinitionService |
getProcessDefinitionService()
Gets the ProcessFlowService to be accessed using the current session
|
static ProcessFlowService |
getProcessFlowService()
Gets the ProcessFlowService to be accessed using the current session
|
static ProcessFlowSetupService |
getProcessFlowSetupService()
Gets the ProcessFlowSetupService to be accessed using the current session
|
static RecycleBinService |
getRecycleBinService()
Gets the RecycleBinService to be accessed using the current session
|
static RepositoryService |
getRepositoryService()
Gets the RepositoryService to be accessed using the current session
|
static RoleService |
getRoleService()
Gets the RoleService to be accessed using the current session
|
static ScheduleService |
getScheduleService()
Gets the SubscriptionService to be accessed using the current session
|
static ScopedPrivilegeService |
getScopedPrivilegeService()
Gets the ScopedPrivilegeService to be accessed using the current session
|
static SessionService |
getSessionService()
Gets the SessionService to be accessed using the current session
|
static SignatureService |
getSignatureService()
Gets the SignatureService to be accessed using the current session
|
static StandardsService |
getStandardsService()
Gets the StandardsService to be accessed using the current session
|
static StudyService |
getStudyService()
Gets the StudyService to be accessed using the current session
|
static SubscriptionService |
getSubscriptionService()
Gets the SubscriptionService to be accessed using the current session
|
static TaskService |
getTaskService()
Gets the TaskService to be accessed using the current session
|
static TypeService |
getTypeService()
Gets the TypeService to be accessed using the current session
|
static UserService |
getUserService()
Gets the UserService to be accessed using the current session
|
static WorkspaceService |
getWorkspaceService()
Gets the WorkspaceService to be accessed using the current session
|
static void |
logoff()
Logs off the current session of the instance if one exists
|
static void |
logon(String url,
String userId,
byte[] password)
Logs on to the specified SAS Life Science Analytics Framework instance to establish an authenticated session in
order to access services.
|
static void |
logon(String url,
String userId,
byte[] password,
ProxyInfo proxyInfo)
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.
|
public static void logon(String url, String userId, byte[] password) throws LogonException
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 inLogonException
- thrown if there was an error logging inpublic static void logon(String url, String userId, byte[] password, ProxyInfo proxyInfo) throws LogonException
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 urlLogonException
- thrown if there was an error logging inpublic static void logoff()
public static ApplicationInformationService getApplicationInformationService()
public static AuditService getAuditService()
public static GlobalPrivilegeService getGlobalPrivilegeService()
public static GroupService getGroupService()
public static MembershipService getMembershipService()
public static RepositoryService getRepositoryService()
public static RoleService getRoleService()
public static ScopedPrivilegeService getScopedPrivilegeService()
public static TypeService getTypeService()
public static UserService getUserService()
public static WorkspaceService getWorkspaceService()
public static AclService getAclService()
public static BatchWorkspaceService getBatchWorkspaceService()
public static BatchRepositoryService getBatchRepositoryService()
public static SignatureService getSignatureService()
public static RecycleBinService getRecycleBinService()
public static JobService getJobService()
public static JobSubmissionService getJobSubmissionService()
public static ProcessFlowService getProcessFlowService()
public static ProcessDefinitionService getProcessDefinitionService()
public static ProcessFlowSetupService getProcessFlowSetupService()
public static TaskService getTaskService()
public static SessionService getSessionService()
public static SubscriptionService getSubscriptionService()
public static ScheduleService getScheduleService()
public static StandardsService getStandardsService()
public static StudyService getStudyService()
public static ModelService getModelService()
public static DictionaryService getDictionaryService()
public static ExternalDictionaryService getExternalDictionaryService()
Copyright (c) 2019, SAS Institute Inc., Cary, NC, USA