Package com.appiancorp.services
Class WebServiceContext
java.lang.Object
com.appiancorp.services.AbstractServiceContext
com.appiancorp.services.WebServiceContext
- All Implemented Interfaces:
com.appiancorp.asl3.servicefw.connect.ServiceContext
,com.appiancorp.security.auth.SecurityContext
,com.appiancorp.services.AuthorizationInterceptorProvider
,KougarServiceContext
,ServiceContext
,Principal
Represents a service context that was obtained from the
WebServiceContextFactory
by sending it a session
or request.-
Method Summary
Modifier and TypeMethodDescriptiongetAttribute
(String key) Gets the attribute at the specified key.com.appiancorp.asl3.servicefw.connect.ASLIdentity
Gets the identity.javax.servlet.http.HttpSession
Gets the session.boolean
Whether this service context has been designated for migration of objects in the system.void
setAttribute
(String key, Object o) Sets the attribute at the specified key to the specified value.Methods inherited from class com.appiancorp.services.AbstractServiceContext
addService, getAppianLoginContext, getAppianSession, 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, setAuthorizationProvider, setCalendarID, setLocale, setTimeZone, toString
-
Method Details
-
getSession
public javax.servlet.http.HttpSession getSession()Gets the session.- Returns:
- the session
-
getIdentity
public com.appiancorp.asl3.servicefw.connect.ASLIdentity getIdentity()Gets the identity.- Returns:
- the
ASLIdentity
used to create theServiceContext
-
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
-
getAttribute
Description copied from interface:ServiceContext
Gets the attribute at the specified key.- Specified by:
getAttribute
in interfacecom.appiancorp.asl3.servicefw.connect.ServiceContext
- Specified by:
getAttribute
in interfaceServiceContext
- Overrides:
getAttribute
in classAbstractServiceContext
- Parameters:
key
- the key- Returns:
- the attribute value
- See Also:
-
setAttribute
Description copied from interface:ServiceContext
Sets the attribute at the specified key to the specified value.- Specified by:
setAttribute
in interfacecom.appiancorp.asl3.servicefw.connect.ServiceContext
- Specified by:
setAttribute
in interfaceServiceContext
- Overrides:
setAttribute
in classAbstractServiceContext
- Parameters:
key
- the keyo
- the value- See Also:
-