Package org.marketcetera.admin.impl
Class SimpleUserAttribute
- java.lang.Object
-
- org.marketcetera.persist.EntityBase
-
- org.marketcetera.admin.impl.SimpleUserAttribute
-
- All Implemented Interfaces:
Serializable,UserAttribute,SummaryEntityBase
public class SimpleUserAttribute extends EntityBase implements UserAttribute
Provideds a simpleUserAttributeimplementation.- Since:
- $Release$
- Version:
- $Id$
- Author:
- Colin DuPlantis
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private Stringattributeattribute valueprivate UserAttributeTypeattributeTypeuser attribute valueprivate static longserialVersionUIDprivate Useruseruser value-
Fields inherited from class org.marketcetera.persist.EntityBase
UNINITIALIZED
-
-
Constructor Summary
Constructors Constructor Description SimpleUserAttribute(UserAttribute inUserAttribute)Create a new SimpleUserAttribute instance.SimpleUserAttribute(User inUser, UserAttributeType inType, String inAttribute)Create a new SimpleUserAttribute instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetAttribute()Gets the attribute value.UserAttributeTypegetAttributeType()Gets the user attribute type value.UsergetUser()Gets the user value.voidsetAttribute(String inAttribute)Sets the attribute value.voidsetAttributeType(UserAttributeType inAttributeType)Sets the attributeType value.voidsetUser(User inUser)Sets the user value.StringtoString()-
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.persist.SummaryEntityBase
getId, getLastUpdated, getUpdateCount
-
-
-
-
Field Detail
-
attributeType
private UserAttributeType attributeType
user attribute value
-
attribute
private String attribute
attribute value
-
user
private User user
user value
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
SimpleUserAttribute
public SimpleUserAttribute(User inUser, UserAttributeType inType, String inAttribute)
Create a new SimpleUserAttribute instance.- Parameters:
inUser- aUservalueinType- aUserAttributeTypevalueinAttribute- aStringvalue
-
SimpleUserAttribute
public SimpleUserAttribute(UserAttribute inUserAttribute)
Create a new SimpleUserAttribute instance.- Parameters:
inUserAttribute- aUserAttributevalue
-
-
Method Detail
-
getUser
public User getUser()
Description copied from interface:UserAttributeGets the user value.- Specified by:
getUserin interfaceUserAttribute- Returns:
- a
Uservalue
-
getAttributeType
public UserAttributeType getAttributeType()
Description copied from interface:UserAttributeGets the user attribute type value.- Specified by:
getAttributeTypein interfaceUserAttribute- Returns:
- a
UserAttributeTypevalue
-
getAttribute
public String getAttribute()
Description copied from interface:UserAttributeGets the attribute value.- Specified by:
getAttributein interfaceUserAttribute- Returns:
- a
Stringvalue
-
setAttributeType
public void setAttributeType(UserAttributeType inAttributeType)
Sets the attributeType value.- Parameters:
inAttributeType- aUserAttributeTypevalue
-
setAttribute
public void setAttribute(String inAttribute)
Sets the attribute value.- Parameters:
inAttribute- aStringvalue
-
setUser
public void setUser(User inUser)
Sets the user value.- Parameters:
inUser- aUservalue
-
toString
public String toString()
- Overrides:
toStringin classEntityBase
-
-