public class UserAccount extends SQLTenantAware implements Journaled, sirius.web.security.MessageProvider
 Serveral users are grouped together by their company, which is referred to as Tenant.
| Modifier and Type | Field and Description | 
|---|---|
static sirius.db.mixing.Mapping | 
EMAIL
Contains the email address of the user. 
 | 
static sirius.db.mixing.Mapping | 
EXTERNAL_LOGIN_REQUIRED
Determines if an external login is required from time to time. 
 | 
static sirius.db.mixing.Mapping | 
JOURNAL
Used to record changes on fields of the user. 
 | 
static sirius.db.mixing.Mapping | 
LOGIN
Contains the login data used to authenticate the user. 
 | 
static sirius.db.mixing.Mapping | 
PERMISSIONS
Contains the permissions granted to the user and the custom configuration. 
 | 
static sirius.db.mixing.Mapping | 
PERSON
Contains the personal information of the user. 
 | 
TENANT| Constructor and Description | 
|---|
UserAccount()  | 
| Modifier and Type | Method and Description | 
|---|---|
void | 
addMessages(Consumer<sirius.web.controller.Message> messageConsumer)  | 
String | 
getEmail()  | 
JournalData | 
getJournal()
Returns the journal of this entity. 
 | 
LoginData | 
getLogin()  | 
int | 
getMinPasswordLength()
Contains the minimal length of a password to be accepted. 
 | 
PermissionData | 
getPermissions()  | 
PersonData | 
getPerson()  | 
int | 
getSanePasswordLength()
Contains the minimal length of a sane password. 
 | 
boolean | 
hasName()
Determines if the user has a real name. 
 | 
boolean | 
is(Class<?> type)  | 
boolean | 
isExternalLoginRequired()  | 
boolean | 
isPasswordGenerationPossible()
Determines if the current user is able to generate the password for this user. 
 | 
protected void | 
onDelete()  | 
protected void | 
onModify()  | 
void | 
setEmail(String email)  | 
void | 
setExternalLoginRequired(boolean externalLoginRequired)  | 
boolean | 
shouldSendGeneratedPassword()
Determines if generated passwords should be sent to this user. 
 | 
String | 
toString()  | 
<A> Optional<A> | 
tryAs(Class<A> adapterType)  | 
protected void | 
verifyData()  | 
getTenant, getTenantAsString, setCurrentTenantgetTrace, isAnyColumnChangedExceptNoJournalequals, getFetchRow, getId, getMapper, hashCode, isNew, isUnique, setIdassertUnique, getDescriptor, getIdAsString, getTypeName, getUniqueName, getVersion, isAnyMappingChanged, isChanged, setVersionclone, finalize, getClass, notify, notifyAll, wait, wait, waitassertSameTenantpublic static final sirius.db.mixing.Mapping EMAIL
public static final sirius.db.mixing.Mapping PERSON
public static final sirius.db.mixing.Mapping LOGIN
public static final sirius.db.mixing.Mapping PERMISSIONS
public static final sirius.db.mixing.Mapping JOURNAL
public static final sirius.db.mixing.Mapping EXTERNAL_LOGIN_REQUIRED
protected void verifyData()
protected void onModify()
protected void onDelete()
public int getMinPasswordLength()
public int getSanePasswordLength()
public <A> Optional<A> tryAs(Class<A> adapterType)
tryAs in interface sirius.kernel.di.transformers.TransformabletryAs in class sirius.db.mixing.Mixablepublic boolean is(Class<?> type)
is in interface sirius.kernel.di.transformers.Transformableis in class sirius.db.mixing.Mixablepublic boolean hasName()
public void addMessages(Consumer<sirius.web.controller.Message> messageConsumer)
addMessages in interface sirius.web.security.MessageProviderpublic boolean isPasswordGenerationPossible()
public boolean shouldSendGeneratedPassword()
public PersonData getPerson()
public LoginData getLogin()
public PermissionData getPermissions()
public String getEmail()
public void setEmail(String email)
public JournalData getJournal()
JournaledgetJournal in interface Journaledpublic boolean isExternalLoginRequired()
public void setExternalLoginRequired(boolean externalLoginRequired)
Copyright © 2018. All rights reserved.