@NotThreadSafe public class User extends com.helger.commons.collections.attrs.MapBasedAttributeContainer implements IUser
IUser interface.| Constructor and Description |
|---|
User(String sLoginName,
String sEmailAddress,
PasswordHash aPasswordHash,
String sFirstName,
String sLastName,
String sDescription,
Locale aDesiredLocale,
Map<String,?> aCustomAttrs,
boolean bDisabled)
Create a new user
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
int |
getConsecutiveFailedLoginCount() |
org.joda.time.DateTime |
getCreationDateTime() |
org.joda.time.DateTime |
getDeletionDateTime() |
String |
getDescription() |
Locale |
getDesiredLocale() |
String |
getDisplayName() |
String |
getEmailAddress()
The email address is optional since 2.6.3
|
String |
getFirstName() |
String |
getID() |
org.joda.time.DateTime |
getLastLoginDateTime() |
org.joda.time.DateTime |
getLastModificationDateTime() |
String |
getLastName() |
int |
getLoginCount() |
String |
getLoginName() |
String |
getName() |
PasswordHash |
getPasswordHash() |
com.helger.commons.type.ObjectType |
getTypeID() |
int |
hashCode() |
boolean |
isAdministrator() |
boolean |
isDeleted() |
boolean |
isDisabled() |
boolean |
isEnabled() |
String |
toString() |
getAndSetAttributeFlag, getClone, setAttribute, setAttribute, setAttribute, setAttributeclear, containsAttribute, containsNoAttribute, getAllAttributeNames, getAllAttributes, getAllAttributeValues, getAttributeCount, getAttributeNames, getAttributeObject, onBeforeRemoveAttribute, onBeforeSetAttributeValue, removeAttribute, setAttribute, setAttributes, setAttributesgetAsBigDecimal, getAsBigInteger, getAsBoolean, getAsDouble, getAsInt, getAsLong, getAsString, getAttributeAsBigDecimal, getAttributeAsBigDecimal, getAttributeAsBigInteger, getAttributeAsBigInteger, getAttributeAsBoolean, getAttributeAsBoolean, getAttributeAsDouble, getAttributeAsDouble, getAttributeAsInt, getAttributeAsInt, getAttributeAsLong, getAttributeAsLong, getAttributeAsString, getAttributeAsString, getCastedAttribute, getCastedAttribute, getTypedAttribute, getTypedAttributeclone, finalize, getClass, notify, notifyAll, wait, wait, waitcontainsAttribute, containsNoAttribute, getAllAttributeNames, getAllAttributes, getAllAttributeValues, getAttributeAsBigDecimal, getAttributeAsBigDecimal, getAttributeAsBigInteger, getAttributeAsBigInteger, getAttributeAsBoolean, getAttributeAsBoolean, getAttributeAsDouble, getAttributeAsDouble, getAttributeAsInt, getAttributeAsInt, getAttributeAsLong, getAttributeAsLong, getAttributeAsString, getAttributeAsString, getAttributeCount, getAttributeNames, getAttributeObject, getCastedAttribute, getCastedAttribute, getTypedAttribute, getTypedAttributepublic User(@Nonnull@Nonempty String sLoginName, @Nullable String sEmailAddress, @Nonnull PasswordHash aPasswordHash, @Nullable String sFirstName, @Nullable String sLastName, @Nullable String sDescription, @Nullable Locale aDesiredLocale, @Nullable Map<String,?> aCustomAttrs, boolean bDisabled)
sLoginName - Login name of the user. May neither be null nor empty.sEmailAddress - Email address of the user. May be null.aPasswordHash - Password hash of the user. May not be null.sFirstName - The first name. May be null.sLastName - The last name. May be null.sDescription - Optional description text. May be null.aDesiredLocale - The desired locale. May be null.aCustomAttrs - Custom attributes. May be null.bDisabled - true if the user is disabled@Nonnull public com.helger.commons.type.ObjectType getTypeID()
getTypeID in interface com.helger.commons.type.IHasTypepublic boolean isAdministrator()
isAdministrator in interface IUsertrue if the user has the ID
CSecurity.USER_ADMINISTRATOR_ID, false
otherwise@Nonnull @Nonempty public String getID()
getID in interface com.helger.commons.id.IHasID<String>@Nonnull public org.joda.time.DateTime getCreationDateTime()
getCreationDateTime in interface com.helger.datetime.IHasCreationDateTime@Nullable public org.joda.time.DateTime getLastModificationDateTime()
getLastModificationDateTime in interface com.helger.datetime.IHasLastModificationDateTime@Nullable public org.joda.time.DateTime getDeletionDateTime()
getDeletionDateTime in interface com.helger.datetime.IHasDeletionDateTime@Nonnull @Nonempty public final String getName()
getName in interface com.helger.commons.name.IHasName@Nonnull @Nonempty public String getLoginName()
getLoginName in interface IUser@Nullable public String getEmailAddress()
IUsergetEmailAddress in interface IUsernull.@Nonnull @Nonempty public PasswordHash getPasswordHash()
getPasswordHash in interface IUsernull.@Nullable public String getFirstName()
getFirstName in interface IUsernull.@Nullable public String getLastName()
getLastName in interface IUsernull.@Nullable public String getDescription()
getDescription in interface com.helger.commons.name.IHasDescription@Nullable public Locale getDesiredLocale()
getDesiredLocale in interface IUsernull.@Nullable public org.joda.time.DateTime getLastLoginDateTime()
getLastLoginDateTime in interface IUsernull if the user never logged in.@Nonnegative public int getLoginCount()
getLoginCount in interface IUser@Nonnegative public int getConsecutiveFailedLoginCount()
getConsecutiveFailedLoginCount in interface IUser@Nonnull public String getDisplayName()
getDisplayName in interface com.helger.commons.name.IHasDisplayNamegetDisplayName in interface IUsernull.public boolean isDeleted()
public boolean isDisabled()
isDisabled in interface IUsertrue if this user is disabled, false if
it is enabledIUser.isEnabled()public boolean isEnabled()
isEnabled in interface IUsertrue if this user is enabled, false if it
is disabledIUser.isDisabled()public boolean equals(Object o)
public int hashCode()
Copyright © 2014–2015 Philip Helger. All rights reserved.