Class DummyRecordSet
- java.lang.Object
-
- org.silverpeas.core.contribution.content.form.dummy.DummyRecordSet
-
-
Constructor Summary
Constructors Constructor Description DummyRecordSet()
The no parameters constructor.DummyRecordSet(RecordTemplate template)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
clone(String originalExternalId, String originalComponentId, String cloneExternalId, String cloneComponentId, Map<String,String> attachmentIds)
Clones the given DataRecord.void
copy(ResourceReference fromPK, ResourceReference toPK, RecordTemplate toRecordTemplate, Map<String,String> attachmentIds)
void
delete(String objectId)
Deletes all form data for the given objectId in all languagesvoid
delete(String objectId, String language)
Deletes form data for the given objectId in the given language onlyvoid
delete(DataRecord record)
This dummy record set simply do nothing.DataRecord
getEmptyRecord()
Returns an empty DataRecord built on the RecordTemplate.DataRecord
getRecord(String recordId)
This dummy record set always return a dummy record.DataRecord
getRecord(String recordId, String language)
List<DataRecord>
getRecords(String fieldName, String fieldValue)
RecordTemplate
getRecordTemplate()
Returns the RecordTemplate shared by all the DataRecord of this RecordSet.void
indexRecord(String recordId, String formName, FullIndexEntry indexEntry)
Index the given DataRecord into the indexEntry. formName looks like allFields (ie template filename allFields.xml without extension)void
merge(String fromExternalId, String fromComponentId, String toExternalId, String toComponentId, Map<String,String> attachmentIds)
void
move(ResourceReference fromPK, ResourceReference toPK, RecordTemplate toRecordTemplate)
void
save(DataRecord record)
This dummy record set simply do nothing.
-
-
-
Constructor Detail
-
DummyRecordSet
public DummyRecordSet()
The no parameters constructor.
-
DummyRecordSet
public DummyRecordSet(RecordTemplate template) throws FormException
- Throws:
FormException
-
-
Method Detail
-
getRecordTemplate
public RecordTemplate getRecordTemplate()
Returns the RecordTemplate shared by all the DataRecord of this RecordSet.- Specified by:
getRecordTemplate
in interfaceRecordSet
-
getEmptyRecord
public DataRecord getEmptyRecord() throws FormException
Returns an empty DataRecord built on the RecordTemplate.- Specified by:
getEmptyRecord
in interfaceRecordSet
- Throws:
FormException
-
getRecord
public DataRecord getRecord(String recordId) throws FormException
This dummy record set always return a dummy record.- Specified by:
getRecord
in interfaceRecordSet
- Throws:
FormException
-
getRecord
public DataRecord getRecord(String recordId, String language) throws FormException
- Specified by:
getRecord
in interfaceRecordSet
- Throws:
FormException
-
getRecords
public List<DataRecord> getRecords(String fieldName, String fieldValue) throws FormException
- Specified by:
getRecords
in interfaceRecordSet
- Throws:
FormException
-
save
public void save(DataRecord record) throws FormException
This dummy record set simply do nothing.- Specified by:
save
in interfaceRecordSet
- Throws:
FormException
-
delete
public void delete(DataRecord record) throws FormException
This dummy record set simply do nothing.- Specified by:
delete
in interfaceRecordSet
- Throws:
FormException
-
delete
public void delete(String objectId) throws FormException
Description copied from interface:RecordSet
Deletes all form data for the given objectId in all languages- Specified by:
delete
in interfaceRecordSet
- Throws:
FormException
-
delete
public void delete(String objectId, String language) throws FormException
Description copied from interface:RecordSet
Deletes form data for the given objectId in the given language only- Specified by:
delete
in interfaceRecordSet
- Throws:
FormException
-
clone
public void clone(String originalExternalId, String originalComponentId, String cloneExternalId, String cloneComponentId, Map<String,String> attachmentIds) throws FormException
Description copied from interface:RecordSet
Clones the given DataRecord. Set to cloneExternalId its externalId and insert it.- Specified by:
clone
in interfaceRecordSet
- Throws:
FormException
-
merge
public void merge(String fromExternalId, String fromComponentId, String toExternalId, String toComponentId, Map<String,String> attachmentIds) throws FormException
- Specified by:
merge
in interfaceRecordSet
- Throws:
FormException
-
indexRecord
public void indexRecord(String recordId, String formName, FullIndexEntry indexEntry) throws FormException
Description copied from interface:RecordSet
Index the given DataRecord into the indexEntry. formName looks like allFields (ie template filename allFields.xml without extension)- Specified by:
indexRecord
in interfaceRecordSet
- Throws:
FormException
-
copy
public void copy(ResourceReference fromPK, ResourceReference toPK, RecordTemplate toRecordTemplate, Map<String,String> attachmentIds) throws FormException
- Specified by:
copy
in interfaceRecordSet
- Throws:
FormException
-
move
public void move(ResourceReference fromPK, ResourceReference toPK, RecordTemplate toRecordTemplate) throws FormException
- Specified by:
move
in interfaceRecordSet
- Throws:
FormException
-
-