Jive Forums API (5.5.20.2-oracle) Developer Javadocs

com.jivesoftware.profiles
Class UserProfile

java.lang.Object
  extended by com.jivesoftware.profiles.UserProfile
All Implemented Interfaces:
Cacheable, com.tangosol.io.ExternalizableLite, java.io.Serializable

public class UserProfile
extends java.lang.Object
implements Cacheable, com.tangosol.io.ExternalizableLite

Contains user data for a particular ProfileField.

See Also:
ProfileField, ProfileFieldOption, Serialized Form

Constructor Summary
UserProfile()
           
 
Method Summary
 int getCachedSize()
          Returns the esitmated cache size of this obejct by calculating the size of each field.
 long getFieldID()
          Gets the id of the profile field.
 java.lang.String getValue()
          Gets the value that the user selected for the profile field.
 java.util.List getValues()
          Gets the list of values that the user selected for the profile field.
 void readExternal(java.io.DataInput in)
           
 void setFieldID(long fieldID)
          Sets the id of the profile field.
 void setValue(java.lang.String value)
          Sets the value that the user selected for the profile field.
 void setValues(java.util.List values)
          Sets the list of values that the user selected for the profile field.
 void writeExternal(java.io.DataOutput out)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UserProfile

public UserProfile()
Method Detail

getFieldID

public long getFieldID()
Gets the id of the profile field.

Returns:
the id of the profile field.

setFieldID

public void setFieldID(long fieldID)
Sets the id of the profile field.

Parameters:
fieldID - the id of the profile field.

getValues

public java.util.List getValues()
Gets the list of values that the user selected for the profile field. If the field does not allow multiple selections, this method will return null. To get the single value, use getValue().

Returns:
the list of values that the user selected

setValues

public void setValues(java.util.List values)
Sets the list of values that the user selected for the profile field. If the field does not allow multiple selections, the value should be set using setValue(String).

Parameters:
values - the list of values that the user selected

getValue

public java.lang.String getValue()
Gets the value that the user selected for the profile field. If the field can contain multiple selections, this method will return null. To get the list of values, use getValues().

Returns:
the value that the user entered

setValue

public void setValue(java.lang.String value)
Sets the value that the user selected for the profile field. If the field can contain multiple selections, the values should be set using setValues(java.util.List).

Parameters:
value - the value that the user entered

getCachedSize

public int getCachedSize()
Returns the esitmated cache size of this obejct by calculating the size of each field.

Specified by:
getCachedSize in interface Cacheable
Returns:
the esitmated cache size of this obejct by calculating the size of each field.

readExternal

public void readExternal(java.io.DataInput in)
                  throws java.io.IOException
Specified by:
readExternal in interface com.tangosol.io.ExternalizableLite
Throws:
java.io.IOException

writeExternal

public void writeExternal(java.io.DataOutput out)
                   throws java.io.IOException
Specified by:
writeExternal in interface com.tangosol.io.ExternalizableLite
Throws:
java.io.IOException

Jive Forums Project Page

Copyright © 1999-2006 Jive Software.