Package com.appiancorp.services
Class UserServiceContext
java.lang.Object
com.appiancorp.services.AbstractServiceContext
com.appiancorp.services.UserServiceContext
- All Implemented Interfaces:
com.appiancorp.asl3.servicefw.connect.ServiceContext
,com.appiancorp.security.auth.SecurityContext
,com.appiancorp.services.AuthorizationInterceptorProvider
,KougarServiceContext
,ServiceContext
,Principal
- Direct Known Subclasses:
EscalatedServiceContext
UserServiceContext can be used to request services explicitly
in standalone applications.
Since the Appian Suite API methods are executed "subjectively"
(i.e. the user who is executing the call is significant),
a UserServiceContext must be created for the user
who is the subject of the methods that will be invoked on the
obtained service.
In Web-based Appian applications, the appropriate context is
provided automatically.
- See Also:
-
Constructor Summary
ModifierConstructorDescriptionprotected
UserServiceContext
(ServiceContext sc, String grantorUsername) protected
UserServiceContext
(String username, String grantorUsername) -
Method Summary
Modifier and TypeMethodDescriptioncom.appiancorp.asl3.servicefw.connect.ASLIdentity
Gets the Identity object that was used to initialize theUserServiceContext
.boolean
Whether this service context has been designated for migration of objects in the system.Methods inherited from class com.appiancorp.services.AbstractServiceContext
addService, getAppianLoginContext, getAppianSession, getAttribute, getAuthorizationInterceptor, getAuthorizationProvider, getCalendarID, getEngineCredentials, getGrantorName, getGrantorRoles, getLocale, getMemberGroupRefs, getMemberGroupUuids, getName, getOverrideLocale, getRoles, getService, getTimeZone, getUserRef, getUserUuid, isAdsSuperUser, isAllowOverrideForDisabledLocale, isAuthenticatedByAppianInternalProvider, isLoggedInThroughSaml, isRtl, isSysAdmin, isUserRefNull, removeAttribute, removeService, setAttribute, setAuthorizationProvider, setCalendarID, setLocale, setTimeZone, toString
-
Constructor Details
-
UserServiceContext
-
UserServiceContext
-
-
Method Details
-
getIdentity
public com.appiancorp.asl3.servicefw.connect.ASLIdentity getIdentity()Gets the Identity object that was used to initialize theUserServiceContext
.- Returns:
- the
ASLIdentity
-
isDesignatedForMigration
public boolean isDesignatedForMigration()Description copied from interface:ServiceContext
Whether this service context has been designated for migration of objects in the system.- Returns:
- whether the service context is designated for migration
-