Class TerminalContext.Context
-
- All Implemented Interfaces:
public class TerminalContext.Context
-
-
Method Summary
Modifier and Type Method Description longgetUserId()LocalegetLocale()TimeZonegetTimeZone()Enum<out Object>getAuthType()StringgetUsername()Set<String>getAuthPerm()booleanisNull()userId == DefaultUserId#Null booleanisGuest()userId == DefaultUserId#Guest ZoneIdgetZoneId()booleanhasAuthPerm(String auth)booleananyAuthPerm(Collection<String> auths)booleanallAuthPerm(Collection<String> auths)<T> TgetTerminal(@NotNull() TypedKey<T> key)key must be defined by TerminalAttribute or its subclasses <T> TgetTerminal(@NotNull() TypedKey<T> key, boolean notnull)key must be defined by TerminalAttribute or its subclasses <T> TtryTerminal(@NotNull() TypedKey<T> key, T elze)key must be defined by TerminalAttribute or its subclasses booleanequals(Object o)inthashCode()StringtoString()-
-
Method Detail
-
getUserId
long getUserId()
-
getTimeZone
@NotNull() TimeZone getTimeZone()
-
getAuthType
@NotNull() Enum<out Object> getAuthType()
-
getUsername
@NotNull() String getUsername()
-
getAuthPerm
@NotNull() Set<String> getAuthPerm()
-
isNull
boolean isNull()
userId == DefaultUserId#Null
-
isGuest
boolean isGuest()
userId == DefaultUserId#Guest
-
hasAuthPerm
boolean hasAuthPerm(String auth)
-
anyAuthPerm
boolean anyAuthPerm(Collection<String> auths)
-
allAuthPerm
boolean allAuthPerm(Collection<String> auths)
-
getTerminal
@Nullable() <T> T getTerminal(@NotNull() TypedKey<T> key)
key must be defined by TerminalAttribute or its subclasses
-
getTerminal
@Contract(value = "_,true->!null") <T> T getTerminal(@NotNull() TypedKey<T> key, boolean notnull)
key must be defined by TerminalAttribute or its subclasses
-
tryTerminal
@Contract(value = "_,!null->!null") <T> T tryTerminal(@NotNull() TypedKey<T> key, T elze)
key must be defined by TerminalAttribute or its subclasses
-
hashCode
int hashCode()
-
-
-
-