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
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.
Constructor and Description |
---|
LsafClient() |
Modifier and Type | Method and Description |
---|---|
static AclService |
getAclService()
Gets the AclService to access using the current session
|
static ApplicationInformationService |
getApplicationInformationService()
Gets the ApplicationInformationService to access using the current session
|
static AuditQueryService |
getAuditQueryService()
Gets the AuditQueryService to access using the current session
|
static AuditService |
getAuditService()
Gets the AuditService to access using the current session
|
static AutoFlowService |
getAutoFlowService()
Gets the AutoFlowService to access using the current session
|
static BatchRepositoryService |
getBatchRepositoryService()
Gets the BatchRepositoryService to access using the current session
|
static BatchWorkspaceService |
getBatchWorkspaceService()
Gets the BatchWorkspaceService to access using the current session
|
static DictionaryService |
getDictionaryService()
Gets the DictionaryService to access using the current session
|
static ExternalDictionaryService |
getExternalDictionaryService()
Gets the ExternalDictionaryService to access using the current session
|
static GlobalPrivilegeService |
getGlobalPrivilegeService()
Gets the GlobalPrivilegeService to access using the current session
|
static GroupService |
getGroupService()
Gets the GroupService to access using the current session
|
static JobService |
getJobService()
Gets the JobService to access using the current session
|
static JobSubmissionService |
getJobSubmissionService()
Gets the JobSubmissionService to access using the current session
|
static ContextMembershipQueryService |
getMembershipQueryService()
Gets the MembershipQueryService to access using the current session
|
static MembershipService |
getMembershipService()
Gets the MembershipService to access using the current session
|
static ModelService |
getModelService()
Gets the ModelService to access using the current session
|
static PermissionsQueryService |
getPermissionsQueryService()
Gets the PermissionsQueryService to access using the current session
|
static ProcessDefinitionService |
getProcessDefinitionService()
Gets the ProcessFlowService to access using the current session
|
static ProcessFlowService |
getProcessFlowService()
Gets the ProcessFlowService to access using the current session
|
static ProcessFlowSetupService |
getProcessFlowSetupService()
Gets the ProcessFlowSetupService to access using the current session
|
static RecycleBinQueryService |
getRecycleBinQueryService()
Gets the RecycleBinQueryService to access using the current session
|
static RecycleBinService |
getRecycleBinService()
Gets the RecycleBinService to access using the current session
|
static RepositoryQueryService |
getRepositoryQueryService()
Gets the RepositoryQueryService to access using the current session
|
static RepositoryService |
getRepositoryService()
Gets the RepositoryService to access using the current session
|
static ResourceUtilizationService |
getResourceUtilizationService()
Gets the ResourceUtilizationService to access using the current session
|
static RoleService |
getRoleService()
Gets the RoleService to access using the current session
|
static ScheduleService |
getScheduleService()
Gets the SubscriptionService to access using the current session
|
static ScopedPrivilegeService |
getScopedPrivilegeService()
Gets the ScopedPrivilegeService to access using the current session
|
static SessionService |
getSessionService()
Gets the SessionService to access using the current session
|
static SignatureService |
getSignatureService()
Gets the SignatureService to access using the current session
|
static StandardsService |
getStandardsService()
Gets the StandardsService to access using the current session
|
static StudyService |
getStudyService()
Gets the StudyService to access using the current session
|
static StudyTlfService |
getStudyTlfService()
Gets the StudyTlfService to access using the current session
|
static SubscriptionService |
getSubscriptionService()
Gets the SubscriptionService to access using the current session
|
static TaskService |
getTaskService()
Gets the TaskService to access using the current session
|
static TlfTemplateService |
getTlfTemplateService()
Gets the TlfTemplateService to access using the current session
|
static TypeService |
getTypeService()
Gets the TypeService to access using the current session
|
static UserService |
getUserService()
Gets the UserService to access using the current session
|
static WorkspaceService |
getWorkspaceService()
Gets the WorkspaceService to access 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()
public static AuditQueryService getAuditQueryService()
public static RepositoryQueryService getRepositoryQueryService()
public static RecycleBinQueryService getRecycleBinQueryService()
public static ContextMembershipQueryService getMembershipQueryService()
public static PermissionsQueryService getPermissionsQueryService()
public static AutoFlowService getAutoFlowService()
public static StudyTlfService getStudyTlfService()
public static ResourceUtilizationService getResourceUtilizationService()
public static TlfTemplateService getTlfTemplateService()
<i>Copyright (c) 2021, SAS Institute Inc., Cary, NC, USA</i>