Class UserTemplate
- java.lang.Object
-
- org.silverpeas.components.whitepages.record.UserTemplate
-
- All Implemented Interfaces:
Serializable,org.silverpeas.core.contribution.content.form.RecordTemplate
public class UserTemplate extends Object implements org.silverpeas.core.contribution.content.form.RecordTemplate
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description UserTemplate(String fileName, String language)A UserTemplate is built from a file name and a language.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancheckDataRecord(org.silverpeas.core.contribution.content.form.DataRecord record)org.silverpeas.core.contribution.content.form.DataRecordgetEmptyRecord()intgetFieldIndex(String fieldName)String[]getFieldNames()org.silverpeas.core.contribution.content.form.FieldTemplategetFieldTemplate(String fieldName)org.silverpeas.core.contribution.content.form.FieldTemplate[]getFieldTemplates()UserRecordgetRecord(String idUser)Gets aUserRecordof the specified user built on this template.org.silverpeas.core.contribution.content.form.FormgetViewForm()Gets the form dedicated to be rendered to the end users.
-
-
-
Method Detail
-
getFieldNames
public String[] getFieldNames()
- Specified by:
getFieldNamesin interfaceorg.silverpeas.core.contribution.content.form.RecordTemplate
-
getFieldTemplates
public org.silverpeas.core.contribution.content.form.FieldTemplate[] getFieldTemplates()
- Specified by:
getFieldTemplatesin interfaceorg.silverpeas.core.contribution.content.form.RecordTemplate
-
getFieldTemplate
public org.silverpeas.core.contribution.content.form.FieldTemplate getFieldTemplate(String fieldName) throws org.silverpeas.core.contribution.content.form.FormException
- Specified by:
getFieldTemplatein interfaceorg.silverpeas.core.contribution.content.form.RecordTemplate- Throws:
org.silverpeas.core.contribution.content.form.FormException
-
getFieldIndex
public int getFieldIndex(String fieldName)
- Specified by:
getFieldIndexin interfaceorg.silverpeas.core.contribution.content.form.RecordTemplate
-
getEmptyRecord
public org.silverpeas.core.contribution.content.form.DataRecord getEmptyRecord()
- Specified by:
getEmptyRecordin interfaceorg.silverpeas.core.contribution.content.form.RecordTemplate
-
checkDataRecord
public boolean checkDataRecord(org.silverpeas.core.contribution.content.form.DataRecord record)
- Specified by:
checkDataRecordin interfaceorg.silverpeas.core.contribution.content.form.RecordTemplate
-
getViewForm
public org.silverpeas.core.contribution.content.form.Form getViewForm()
Gets the form dedicated to be rendered to the end users.- Returns:
- a
Forminstance.
-
getRecord
public UserRecord getRecord(String idUser)
Gets aUserRecordof the specified user built on this template.- Parameters:
idUser- the unique identifier of a user in Silverpeas.- Returns:
- the
UserRecordinstance for the given user.
-
-