public abstract class AbstractServiceContext extends java.lang.Object implements KougarServiceContext, com.appiancorp.security.auth.SecurityContext, com.appiancorp.services.AuthorizationInterceptorProvider
Modifier | Constructor and Description |
---|---|
protected |
AbstractServiceContext() |
protected |
AbstractServiceContext(ServiceContext sc,
java.lang.String grantorUsername) |
protected |
AbstractServiceContext(java.lang.String username,
java.lang.String grantorUsername) |
Modifier and Type | Method and Description |
---|---|
void |
addService(java.lang.String serviceName,
java.lang.Object service)
Adds the specified
Service to the service cache under the
serviceName_ key specified. |
com.appiancorp.security.auth.AppianLoginContext |
getAppianLoginContext() |
com.appiancorp.core.expr.portable.common.Session |
getAppianSession() |
java.lang.Object |
getAttribute(java.lang.String key)
Gets the attribute at the specified key.
|
org.aopalliance.intercept.MethodInterceptor |
getAuthorizationInterceptor(java.lang.String actionTargetName,
java.lang.Class<?> targetInterface) |
com.appiancorp.security.authz.AuthorizationProvider |
getAuthorizationProvider() |
java.lang.String |
getCalendarID()
Gets the calendar ID, which is used to calculate date in that calendar.
|
com.appian.komodo.api.EngineCredentials |
getEngineCredentials(com.appiancorp.kougar.services.ServiceConnection svcConn)
Returns the credentials to be used for calls with the specified
KougarConnection . |
java.lang.String |
getGrantorName() |
java.util.Set<java.lang.String> |
getGrantorRoles() |
java.util.Locale |
getLocale()
Gets the locale, which affects which language the database will return
for multilingual strings.
|
java.util.Set<com.appiancorp.type.refs.GroupRef> |
getMemberGroupRefs() |
java.util.Set<java.lang.String> |
getMemberGroupUuids() |
java.lang.String |
getName()
Returns the username of the user represented by this context.
|
java.util.Locale |
getOverrideLocale()
Necessary since this class implements
SecurityContext . |
java.util.Set<java.lang.String> |
getRoles() |
java.lang.Object |
getService(java.lang.String serviceName)
Retrieves
Service specified by the given service name from
cache. |
java.util.TimeZone |
getTimeZone()
Gets the timezone, which the database uses for time conversions to and from
GMT.
|
com.appiancorp.type.refs.UserRef |
getUserRef() |
java.lang.String |
getUserUuid() |
boolean |
isAdsSuperUser() |
boolean |
isAuthenticatedByAppianInternalProvider() |
boolean |
isLoggedInThroughSaml() |
boolean |
isRtl() |
boolean |
isSysAdmin() |
boolean |
isUserRefNull() |
java.lang.Object |
removeAttribute(java.lang.String key)
Removes the attribute at the specified key from the attribute map.
|
void |
removeService(java.lang.String serviceName)
Removes the specified service from the service cache.
|
void |
setAttribute(java.lang.String key,
java.lang.Object o)
Sets the attribute at the specified key to the specified value.
|
void |
setAuthorizationProvider(com.appiancorp.security.authz.AuthorizationProvider authzProvider) |
void |
setCalendarID(java.lang.String calendarID)
Sets the ID of the calendar, which is used to calculate date in that calendar.
|
void |
setLocale(java.util.Locale locale)
Sets the locale, which affects which language the database will return
for multilingual strings.
|
void |
setTimeZone(java.util.TimeZone timeZone)
Sets the timezone, which the database uses for time conversions to and from
GMT.
|
java.lang.String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getIdentity, isDesignatedForMigration
protected AbstractServiceContext()
protected AbstractServiceContext(java.lang.String username, java.lang.String grantorUsername)
protected AbstractServiceContext(ServiceContext sc, java.lang.String grantorUsername)
public com.appiancorp.security.authz.AuthorizationProvider getAuthorizationProvider()
public void setAuthorizationProvider(com.appiancorp.security.authz.AuthorizationProvider authzProvider)
public org.aopalliance.intercept.MethodInterceptor getAuthorizationInterceptor(java.lang.String actionTargetName, java.lang.Class<?> targetInterface)
getAuthorizationInterceptor
in interface com.appiancorp.services.AuthorizationInterceptorProvider
public java.lang.String getName()
ServiceContext
getName
in interface java.security.Principal
public com.appiancorp.type.refs.UserRef getUserRef()
getUserRef
in interface com.appiancorp.security.auth.SecurityContext
public boolean isUserRefNull()
isUserRefNull
in interface com.appiancorp.security.auth.SecurityContext
public java.lang.String getUserUuid()
getUserUuid
in interface com.appiancorp.security.auth.SecurityContext
public java.util.Set<java.lang.String> getMemberGroupUuids()
getMemberGroupUuids
in interface com.appiancorp.security.auth.SecurityContext
public java.util.Set<com.appiancorp.type.refs.GroupRef> getMemberGroupRefs()
getMemberGroupRefs
in interface com.appiancorp.security.auth.SecurityContext
public java.util.Set<java.lang.String> getRoles()
getRoles
in interface com.appiancorp.security.auth.SecurityContext
public boolean isAuthenticatedByAppianInternalProvider()
isAuthenticatedByAppianInternalProvider
in interface com.appiancorp.security.auth.SecurityContext
public boolean isLoggedInThroughSaml()
isLoggedInThroughSaml
in interface com.appiancorp.security.auth.SecurityContext
public com.appiancorp.security.auth.AppianLoginContext getAppianLoginContext()
getAppianLoginContext
in interface com.appiancorp.security.auth.SecurityContext
public boolean isSysAdmin()
isSysAdmin
in interface com.appiancorp.security.auth.SecurityContext
public java.lang.String getGrantorName()
getGrantorName
in interface com.appiancorp.security.auth.SecurityContext
public java.util.Set<java.lang.String> getGrantorRoles()
getGrantorRoles
in interface com.appiancorp.security.auth.SecurityContext
public void addService(java.lang.String serviceName, java.lang.Object service)
ServiceContext
Service
to the service cache under the
serviceName_
key specified. If the key already exists, then
it is overwritten with the new value.addService
in interface com.appiancorp.asl3.servicefw.connect.ServiceContext
serviceName
- the name of the serviceservice
- the serviceServiceContext.getService(String)
,
ServiceContext.removeService(String)
public java.lang.Object getService(java.lang.String serviceName)
ServiceContext
Service
specified by the given service name from
cache.getService
in interface com.appiancorp.asl3.servicefw.connect.ServiceContext
serviceName
- the service nameServiceContext.addService(String, Object)
,
ServiceContext.removeService(String)
public void removeService(java.lang.String serviceName)
ServiceContext
removeService
in interface com.appiancorp.asl3.servicefw.connect.ServiceContext
serviceName
- the name of the serviceServiceContext.getService(String)
,
ServiceContext.addService(String, Object)
public void setAttribute(java.lang.String key, java.lang.Object o)
ServiceContext
setAttribute
in interface com.appiancorp.asl3.servicefw.connect.ServiceContext
key
- the keyo
- the valueServiceContext.getAttribute(String)
public java.lang.Object getAttribute(java.lang.String key)
ServiceContext
getAttribute
in interface com.appiancorp.asl3.servicefw.connect.ServiceContext
key
- the keyServiceContext.setAttribute(String, Object)
public java.lang.Object removeAttribute(java.lang.String key)
ServiceContext
removeAttribute
in interface com.appiancorp.asl3.servicefw.connect.ServiceContext
key
- the keyServiceContext.setAttribute(String, Object)
,
ServiceContext.getAttribute(String)
public java.util.Locale getLocale()
ServiceContext
getLocale
in interface com.appiancorp.asl3.servicefw.connect.ServiceContext
ServiceContext.setLocale(Locale)
public void setLocale(java.util.Locale locale)
ServiceContext
setLocale
in interface com.appiancorp.asl3.servicefw.connect.ServiceContext
locale
- the localeServiceContext.getLocale()
public boolean isRtl()
public java.util.Locale getOverrideLocale()
SecurityContext
. In this case, since this is derived from
the original SecurityContext
, just return the same locale as getLocale()
getOverrideLocale
in interface com.appiancorp.security.auth.SecurityContext
SecurityContext
public boolean isAdsSuperUser()
isAdsSuperUser
in interface com.appiancorp.security.auth.SecurityContext
public java.util.TimeZone getTimeZone()
ServiceContext
getTimeZone
in interface com.appiancorp.asl3.servicefw.connect.ServiceContext
ServiceContext.setTimeZone(TimeZone)
public void setTimeZone(java.util.TimeZone timeZone)
ServiceContext
setTimeZone
in interface com.appiancorp.asl3.servicefw.connect.ServiceContext
timeZone
- the timezoneServiceContext.getTimeZone()
public java.lang.String getCalendarID()
ServiceContext
#setCalendar(String)
public void setCalendarID(java.lang.String calendarID)
ServiceContext
#getCalendar()
public com.appian.komodo.api.EngineCredentials getEngineCredentials(com.appiancorp.kougar.services.ServiceConnection svcConn)
KougarConnection
. The connection may be configured to pass
full credentials, or not.getEngineCredentials
in interface KougarServiceContext
svcConn
- the connection for which we need the credentialsObject
representing the credentials.public com.appiancorp.core.expr.portable.common.Session getAppianSession()
public java.lang.String toString()
toString
in interface java.security.Principal
toString
in class java.lang.Object
Copyright © 2003-2024 Appian Corporation. All Rights Reserved.