Package com.sap.cds
Class UserContext
- java.lang.Object
-
- com.sap.cds.UserContext
-
public final class UserContext extends Object
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static UserContext
create()
UserContext
from(UserContext userCtx)
List<String>
getAttribute(String name)
Map<String,List<String>>
getAttributes()
String
getId()
Locale
getLocale()
String
getTenant()
TimeZone
getTimeZone()
UserContext
setAttributes(Map<String,List<String>> attributes)
UserContext
setId(String id)
UserContext
setLocale(Locale locale)
UserContext
setTenant(String tenant)
UserContext
setTimeZone(TimeZone timeZone)
-
-
-
Method Detail
-
create
public static UserContext create()
-
from
public UserContext from(UserContext userCtx)
-
setId
public UserContext setId(String id)
-
setLocale
public UserContext setLocale(Locale locale)
-
setTimeZone
public UserContext setTimeZone(TimeZone timeZone)
-
setTenant
public UserContext setTenant(String tenant)
-
setAttributes
public UserContext setAttributes(Map<String,List<String>> attributes)
-
getId
public String getId()
-
getLocale
public Locale getLocale()
-
getTimeZone
public TimeZone getTimeZone()
-
getTenant
public String getTenant()
-
-