|
Jive API (3.0.13) Core Javadocs | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.jivesoftware.community.user.profile.ProfileField
public class ProfileField
A profile field defines a single field of a user's profile, such as 'Phone Number' or 'Job Title'. It does not contain any user data related to the field. A profile field can be a variety of types (textfield, select list, etc) and collectively create a user's profile.
represents one of the possible options of a profile field,
contains user data for a specific profile field,
Serialized Form| Nested Class Summary | |
|---|---|
static class |
ProfileField.Type
A typesafe enum class for ProfileField types. |
| Field Summary | |
|---|---|
static int |
DESCRIPTION_ATTRIBUTE
|
static int |
DISPLAY_NAME_ATTRIBUTE
|
| Constructor Summary | |
|---|---|
ProfileField()
|
|
| Method Summary | |
|---|---|
int |
compareTo(Object o)
|
boolean |
equals(Object o)
|
int |
getCachedSize()
Returns the estimated cache size of this object by calculating the size of each field. |
String |
getDescription(String localeCode)
Gets the description of this profile field for the specified locale |
String |
getDescriptionKey()
|
String |
getDisplayName(String localeCode)
Gets the display name of this profile field for the specified locale. |
String |
getDisplayNameKey()
|
Map<String,String> |
getExternalMapping()
Returns the external configuration data as a map of attribute name -> configuration string pairs. |
List<Map<String,String>> |
getExternalMappings()
Returns the external configuration data as a map of attribute name -> configuration string pairs. |
String |
getExternalMappingString()
Returns a string which contains external configuration data (such as an LDAP field name) which is used to pull the field value into the system. |
long |
getID()
Gets the id representing this profile field. |
int |
getIndex()
Gets the index of this profile field. |
String |
getName()
Gets the internal name of this profile field. |
List<ProfileFieldOption> |
getOptions()
Gets a list of ProfileFieldOption objects for this profile
field. |
List<JiveI18nText> |
getProfileFieldText()
|
int |
getRegistrationIndex()
|
String |
getSingleExternalMapping()
GetExternalMapping for 1:1 mappings. |
List<String> |
getSingleExternalMappings()
|
ProfileField.Type |
getType()
Returns the ProfileField.Type of this profile field. |
int |
getTypeID()
Gets the id of the ProfileField.Type of this profile field. |
boolean |
hasExternalMapping()
Does this field have any external mapping? |
int |
hashCode()
|
boolean |
hasSingleExternalMapping()
Does this field have a single mapping? |
protected void |
initKeys()
|
boolean |
isDefaultField()
Returns true if this field is a member of the set of default fields which are shown during setup and are not deletable. |
boolean |
isEditable()
Gets whether or not this profile field is editable by the user. |
boolean |
isExternallyManaged()
Returns true if this field is managed by some external system such as LDAP. |
boolean |
isFilterable()
Gets whether or not this profile field is filterable. |
boolean |
isListValues()
Returns true if the values of this field are lists rather than single items. |
boolean |
isRequired()
Gets whether or not this profile field is a required field. |
boolean |
isSearchable()
Gets whether or not this profile field is searchable. |
boolean |
isVisible()
Gets whether or not this profile field is visible by the public. |
void |
readExternal(DataInput in)
|
void |
setDefaultField(boolean defaultField)
Sets whether this field is a member of the set of default fields which are shown during setup and are not deletable. |
void |
setDescription(String localeCode,
String description)
Sets the description of this profile field for the specified loale |
void |
setDisplayName(String localeCode,
String displayName)
|
void |
setEditable(boolean editable)
Sets whether or not this profile field is editable by the user. |
void |
setExternallyManaged(boolean externallyManaged)
Sets whether this field is managed by some external system such as LDAP. |
void |
setExternalMapping(Map<String,String> externalMapping)
Sets the external configuration data as a map of attribute name -> configuration string pairs. |
void |
setExternalMappings(List<Map<String,String>> externalMappings)
Sets the external configuration data as a map of attribute name -> configuration string pairs. |
void |
setExternalMappingString(String externalMapping)
Sets a string which contains external configuration data (such as an LDAP field name) which is used to pull the field value into the system. |
void |
setFilterable(boolean filterable)
Sets whether or not this profile field is filterable. |
void |
setID(long ID)
Sets the id representing this profile field. |
void |
setIndex(int index)
Sets the index of this profile field. |
void |
setListValues(boolean listValues)
Sets whether the values of this field are lists rather than single items. |
void |
setName(String name)
|
void |
setOptions(List<ProfileFieldOption> options)
Sets a list of ProfileFieldOption objects for this profile field. |
void |
setProfileFieldText(List<JiveI18nText> textList)
|
ProfileField |
setRegistrationIndex(int index)
|
void |
setRequired(boolean required)
Sets whether or not this profile field is a required field. |
void |
setSearchable(boolean searchable)
Sets whether or not this profile field is searchable. |
void |
setSingleExternalMapping(String value)
SetExternalMapping for 1:1 mappings. |
void |
setSingleExternalMappings(List<String> values)
SetExternalMapping for lists of 1:1 mappings. |
void |
setTypeID(int typeID)
Sets the id of the ProfileField.Type of this profile field. |
void |
setVisible(boolean visible)
Sets whether or not this profile field is visible by the public. |
String |
toString()
Returns a String representation of the ProfileField object using the field name. |
void |
writeExternal(DataOutput out)
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final int DISPLAY_NAME_ATTRIBUTE
public static final int DESCRIPTION_ATTRIBUTE
| Constructor Detail |
|---|
public ProfileField()
| Method Detail |
|---|
public long getID()
public void setID(long ID)
ID - the id representing this profile field.public List<JiveI18nText> getProfileFieldText()
public void setProfileFieldText(List<JiveI18nText> textList)
public String getName()
public void setName(String name)
public String getDisplayName(String localeCode)
localeCode - locale code indicating the locale of the name
public void setDisplayName(String localeCode,
String displayName)
public String getDescription(String localeCode)
localeCode - locale code indicating the locale of the description
public void setDescription(String localeCode,
String description)
localeCode - locale code indicating the locale of the descriptiondescription - the description of this profile fieldpublic boolean isRequired()
public void setRequired(boolean required)
required - true if this field is required, false otherwise.public boolean isFilterable()
public void setFilterable(boolean filterable)
filterable - true if this field is filterable, false otherwise.public boolean isSearchable()
public void setSearchable(boolean searchable)
searchable - true if this field is searchable, false otherwise.public boolean isVisible()
public void setVisible(boolean visible)
visible - true if this field is visible by the public, false otherwise.public boolean isEditable()
public void setEditable(boolean editable)
editable - true if this field is editable by the user, false otherwise.public int getTypeID()
ProfileField.Type of this profile field. The Type object can be retreived by calling
getType().
ProfileField.Type of this profile field.public void setTypeID(int typeID)
ProfileField.Type of this profile field.
typeID - the id of the ProfileField.Type of this profile field.public ProfileField.Type getType()
ProfileField.Type of this profile field.
ProfileField.Type of this profile field.public List<ProfileFieldOption> getOptions()
ProfileFieldOption objects for this profile
field.
ProfileFieldOption objects for this profile
field.public void setOptions(List<ProfileFieldOption> options)
ProfileFieldOption objects for this profile field.
options - a list of ProfileFieldOption objects for this profile field.public int getIndex()
public void setIndex(int index)
index - the index of this profile fieldpublic ProfileField setRegistrationIndex(int index)
public int getRegistrationIndex()
public String getExternalMappingString()
isExternallyManaged() returns true;
public Map<String,String> getExternalMapping()
public List<Map<String,String>> getExternalMappings()
public void setExternalMappingString(String externalMapping)
externalMapping - a string which contains external configuration data (such as an LDAP field name)public void setExternalMapping(Map<String,String> externalMapping)
externalMapping - the external configuration data as a map of attribute name -> configuration string
pairs.public void setExternalMappings(List<Map<String,String>> externalMappings)
externalMappings - the external configuration data as a list of maps of attribute name -> configuration
string pairs.public void setSingleExternalMapping(String value)
value - the single mapping stringpublic void setSingleExternalMappings(List<String> values)
values - a list of mapping stringspublic String getSingleExternalMapping()
public List<String> getSingleExternalMappings()
public boolean hasExternalMapping()
public boolean hasSingleExternalMapping()
public boolean isDefaultField()
public void setDefaultField(boolean defaultField)
defaultField - true if this field is a member of the set of default fields which are shown during setup
and are not deletable.public boolean isExternallyManaged()
isEditable() will return false regardless of what is passed to setEditable(boolean).
public void setExternallyManaged(boolean externallyManaged)
isEditable() will return false regardless of what is passed to setEditable(boolean).
externallyManaged - true if this field is managed by some external system such as LDAP.public boolean isListValues()
public void setListValues(boolean listValues)
listValues - whether the values of this field are lists rather than single items.public int getCachedSize()
public void readExternal(DataInput in)
throws IOException
readExternal in interface com.tangosol.io.ExternalizableLiteIOException
public void writeExternal(DataOutput out)
throws IOException
writeExternal in interface com.tangosol.io.ExternalizableLiteIOExceptionpublic String toString()
toString in class Objectpublic boolean equals(Object o)
equals in class Objectpublic int hashCode()
hashCode in class Objectpublic int compareTo(Object o)
compareTo in interface Comparablepublic String getDisplayNameKey()
public String getDescriptionKey()
protected void initKeys()
|
Jive Product Page | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||