public interface ServiceContext
extends java.security.Principal, com.appiancorp.asl3.servicefw.connect.ServiceContext
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. |
java.lang.Object |
getAttribute(java.lang.String key_)
Gets the attribute at the specified key.
|
java.lang.String |
getCalendarID()
Gets the calendar ID, which is used to calculate date in that calendar.
|
com.appiancorp.asl3.servicefw.connect.ASLIdentity |
getIdentity()
Deprecated.
Use
getName() instead. |
java.util.Locale |
getLocale()
Gets the locale, which affects which language the database will return
for multilingual strings.
|
java.lang.String |
getName()
Returns the username of the user represented by this context.
|
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.
|
boolean |
isDesignatedForMigration()
Whether this service context has been designated for migration of objects in the system.
|
boolean |
isRtl() |
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 value_)
Sets the attribute at the specified key to the specified value.
|
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 getName()
getName
in interface java.security.Principal
java.lang.Object getService(java.lang.String serviceName_)
Service
specified by the given service name from
cache.getService
in interface com.appiancorp.asl3.servicefw.connect.ServiceContext
serviceName_
- the service nameaddService(String, Object)
,
removeService(String)
void addService(java.lang.String serviceName_, java.lang.Object service_)
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 servicegetService(String)
,
removeService(String)
void removeService(java.lang.String serviceName_)
removeService
in interface com.appiancorp.asl3.servicefw.connect.ServiceContext
serviceName_
- the name of the servicegetService(String)
,
addService(String, Object)
@Deprecated com.appiancorp.asl3.servicefw.connect.ASLIdentity getIdentity()
getName()
instead.ASLIdentity
object that was used to create the
ServiceContext
.getIdentity
in interface com.appiancorp.asl3.servicefw.connect.ServiceContext
ASLIdentity
used to create the
ServiceContext
void setAttribute(java.lang.String key_, java.lang.Object value_)
setAttribute
in interface com.appiancorp.asl3.servicefw.connect.ServiceContext
key_
- the keyvalue_
- the valuegetAttribute(String)
java.lang.Object getAttribute(java.lang.String key_)
getAttribute
in interface com.appiancorp.asl3.servicefw.connect.ServiceContext
key_
- the keysetAttribute(String, Object)
java.lang.Object removeAttribute(java.lang.String key_)
removeAttribute
in interface com.appiancorp.asl3.servicefw.connect.ServiceContext
key_
- the keysetAttribute(String, Object)
,
getAttribute(String)
void setLocale(java.util.Locale locale_)
setLocale
in interface com.appiancorp.asl3.servicefw.connect.ServiceContext
locale_
- the localegetLocale()
java.util.Locale getLocale()
getLocale
in interface com.appiancorp.asl3.servicefw.connect.ServiceContext
setLocale(Locale)
void setTimeZone(java.util.TimeZone timeZone_)
setTimeZone
in interface com.appiancorp.asl3.servicefw.connect.ServiceContext
timeZone_
- the timezonegetTimeZone()
java.util.TimeZone getTimeZone()
getTimeZone
in interface com.appiancorp.asl3.servicefw.connect.ServiceContext
setTimeZone(TimeZone)
void setCalendarID(java.lang.String calendarID_)
calendar_
- the calendarID#getCalendar()
java.lang.String getCalendarID()
#setCalendar(String)
boolean isDesignatedForMigration()
boolean isRtl()
Copyright © 2003-2024 Appian Corporation. All Rights Reserved.