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, setCurrentTenant
getTrace, isAnyColumnChangedExceptNoJournal
equals, getFetchRow, getId, getMapper, hashCode, isNew, isUnique, setId
assertUnique, getDescriptor, getIdAsString, getTypeName, getUniqueName, getVersion, isAnyMappingChanged, isChanged, setVersion
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
assertSameTenant
public 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.Transformable
tryAs
in class sirius.db.mixing.Mixable
public boolean is(Class<?> type)
is
in interface sirius.kernel.di.transformers.Transformable
is
in class sirius.db.mixing.Mixable
public boolean hasName()
public void addMessages(Consumer<sirius.web.controller.Message> messageConsumer)
addMessages
in interface sirius.web.security.MessageProvider
public 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()
Journaled
getJournal
in interface Journaled
public boolean isExternalLoginRequired()
public void setExternalLoginRequired(boolean externalLoginRequired)
Copyright © 2018. All rights reserved.