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:
-
Constructor Summary
ConstructorsConstructorDescriptionUserTemplate(String fileName, String language) A UserTemplate is built from a file name and a language. -
Method Summary
Modifier and TypeMethodDescriptionbooleancheckDataRecord(org.silverpeas.core.contribution.content.form.DataRecord record) org.silverpeas.core.contribution.content.form.DataRecordintgetFieldIndex(String fieldName) String[]org.silverpeas.core.contribution.content.form.FieldTemplategetFieldTemplate(String fieldName) org.silverpeas.core.contribution.content.form.FieldTemplate[]Gets aUserRecordof the specified user built on this template.org.silverpeas.core.contribution.content.form.FormGets the form dedicated to be rendered to the end users.
-
Constructor Details
-
UserTemplate
A UserTemplate is built from a file name and a language.- Parameters:
fileName- the name of a file in which are defined the template of each field.language- the ISO-631 code of a language.
-
-
Method Details
-
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
- 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
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.
-