Package org.appng.core.model
Class ApplicationSubjectImpl
- java.lang.Object
-
- org.appng.core.model.ApplicationSubjectImpl
-
- All Implemented Interfaces:
Account
,ApplicationSubject
public class ApplicationSubjectImpl extends Object implements ApplicationSubject
DefaultApplicationSubject
implementation.- Author:
- Matthias Müller
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getAuthName()
Returns the username of thisAccount
, e.g.String
getEmail()
Returns the email for thisAccount
, e.g.String
getLanguage()
Returns the language tag for thisAccount
in the IETF BCP 47 notation:<lang>-<country>
.
Examples: en en-US de de-CHString
getRealname()
Returns the real name of thisAccount
, e.g.List<Role>
getRoles()
Returns a list of allRole
s for thisApplicationSubject
.String
getTimeZone()
Returns the timezone for thisAccount
, e.g.
-
-
-
Method Detail
-
getAuthName
public String getAuthName()
Description copied from interface:Account
Returns the username of thisAccount
, e.g. 'admin'.- Specified by:
getAuthName
in interfaceAccount
- Returns:
- the username
-
getRealname
public String getRealname()
Description copied from interface:Account
Returns the real name of thisAccount
, e.g. 'appNG Administrator'.- Specified by:
getRealname
in interfaceAccount
- Returns:
- the real name
-
getLanguage
public String getLanguage()
Description copied from interface:Account
Returns the language tag for thisAccount
in the IETF BCP 47 notation:<lang>-<country>
.
Examples:- en
- en-US
- de
- de-CH
- Specified by:
getLanguage
in interfaceAccount
- Returns:
- the language
- See Also:
Locale.forLanguageTag(String)
-
getTimeZone
public String getTimeZone()
Description copied from interface:Account
Returns the timezone for thisAccount
, e.g. 'Europe/Berlin'.- Specified by:
getTimeZone
in interfaceAccount
- Returns:
- the timezone
-
getEmail
public String getEmail()
Description copied from interface:Account
Returns the email for thisAccount
, e.g. 'admin@example.com'.
-
getRoles
public List<Role> getRoles()
Description copied from interface:ApplicationSubject
Returns a list of allRole
s for thisApplicationSubject
.- Specified by:
getRoles
in interfaceApplicationSubject
- Returns:
- a list of all
Role
s for thisApplicationSubject
-
-