Package org.marketcetera.admin.impl
Class SimpleUser
- java.lang.Object
-
- org.marketcetera.persist.EntityBase
-
- org.marketcetera.persist.NDEntityBase
-
- org.marketcetera.admin.impl.SimpleUser
-
- All Implemented Interfaces:
Serializable,Comparable<User>,MutableUser,User,SummaryEntityBase,SummaryNDEntityBase
public class SimpleUser extends NDEntityBase implements MutableUser
Provides a simple User implementation.- Since:
- $Release$
- Version:
- $Id$
- Author:
- Colin DuPlantis
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private StringhashedPasswordpassword valueprivate booleanisActiveindicates if the user is activeprivate static longserialVersionUID-
Fields inherited from class org.marketcetera.persist.NDEntityBase
namePattern
-
Fields inherited from class org.marketcetera.persist.EntityBase
UNINITIALIZED
-
-
Constructor Summary
Constructors Constructor Description SimpleUser()Create a new SimpleUser instance.SimpleUser(String inName, String inDescription, String inHashedPassword, boolean inIsActive)Create a new SimpleUser instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompareTo(User inO)StringgetHashedPassword()Get the hashed password value.UserIDgetUserID()Get the user id value.booleanisActive()Indicates if the user is active or not.voidsetHashedPassword(String inHashedPassword)Sets the hashedPassword value.voidsetIsActive(boolean inIsActive)Sets the isActive value.voidsetUserId(UserID inUserId)Set the user ID value.StringtoString()-
Methods inherited from class org.marketcetera.persist.NDEntityBase
getDescription, getName, setDescription, setName, validate
-
Methods inherited from class org.marketcetera.persist.EntityBase
getId, getLastUpdated, getUpdateCount, setId, setLastUpdated, setUpdateCount
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.marketcetera.admin.MutableUser
setDescription, setName
-
Methods inherited from interface org.marketcetera.persist.SummaryEntityBase
getId, getLastUpdated, getUpdateCount
-
Methods inherited from interface org.marketcetera.persist.SummaryNDEntityBase
getDescription, getName
-
-
-
-
Field Detail
-
hashedPassword
private String hashedPassword
password value
-
isActive
private boolean isActive
indicates if the user is active
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
SimpleUser
public SimpleUser(String inName, String inDescription, String inHashedPassword, boolean inIsActive)
Create a new SimpleUser instance.- Parameters:
inName- aStringvalueinDescription- aStringvalueinHashedPassword- aStringvalueinIsActive- abooleanvalue
-
SimpleUser
public SimpleUser()
Create a new SimpleUser instance.
-
-
Method Detail
-
isActive
public boolean isActive()
Description copied from interface:UserIndicates if the user is active or not.
-
getHashedPassword
public String getHashedPassword()
Description copied from interface:UserGet the hashed password value.- Specified by:
getHashedPasswordin interfaceUser- Returns:
- a
Stringvalue
-
setHashedPassword
public void setHashedPassword(String inHashedPassword)
Sets the hashedPassword value.- Specified by:
setHashedPasswordin interfaceMutableUser- Parameters:
inHashedPassword- aStringvalue
-
setIsActive
public void setIsActive(boolean inIsActive)
Sets the isActive value.- Specified by:
setIsActivein interfaceMutableUser- Parameters:
inIsActive- abooleanvalue
-
setUserId
public void setUserId(UserID inUserId)
Description copied from interface:MutableUserSet the user ID value.- Specified by:
setUserIdin interfaceMutableUser- Parameters:
inUserId- aUserIDvalue
-
toString
public String toString()
- Overrides:
toStringin classNDEntityBase
-
compareTo
public int compareTo(User inO)
- Specified by:
compareToin interfaceComparable<User>
-
-