|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.silverpeas.form.record.GenericRecordSetManager
public class GenericRecordSetManager
The GenericRecordSetManage all the GenericRecordSet. It is a singleton.
| Method Summary | |
|---|---|
void |
cloneRecord(IdentifiedRecordTemplate templateFrom,
String objectIdFrom,
IdentifiedRecordTemplate templateTo,
String objectIdTo,
Map<String,String> fileIds)
|
GenericRecordSet |
createRecordSet(String externalId,
RecordTemplate template)
Build and return a new record set. |
GenericRecordSet |
createRecordSet(String externalId,
RecordTemplate template,
String templateName,
boolean encrypted)
|
void |
decryptData(String templateName)
|
void |
deleteRecord(IdentifiedRecordTemplate template,
DataRecord deletedRecord)
Delete the DataRecord registered by the pair (templateId, recordId). |
void |
encryptData(String templateName)
|
protected List<RecordRow> |
getAllRecordsOfTemplate(String templateName)
|
static GenericRecordSetManager |
getInstance()
Gets the single instance of this manager. |
List<String> |
getLanguagesOfRecord(IdentifiedRecordTemplate template,
String externalId)
|
String |
getRawValue(String templateExternalId,
String recordExternalId,
String fieldName)
Get value of a field record directly from database. |
DataRecord |
getRecord(IdentifiedRecordTemplate template,
String objectId)
Return the DataRecord registered by the pair (templateId, recordId). |
DataRecord |
getRecord(IdentifiedRecordTemplate template,
String objectId,
String language)
Return the DataRecord registered by the tuple (templateId, objectId, language). |
RecordSet |
getRecordSet(String externalId)
Return the record set known be its external id. |
void |
insertRecord(IdentifiedRecordTemplate template,
DataRecord insertedRecord)
Register the DataRecord with the pair (templateId, recordId). |
void |
moveRecord(int recordId,
IdentifiedRecordTemplate templateTo)
|
void |
removeRecordSet(String externalId)
Remove the record set known by its external id. |
void |
removeTemplateFromCache(String templateName)
|
protected void |
updateFieldRows(Connection con,
List<RecordRow> rows)
|
void |
updateRecord(IdentifiedRecordTemplate template,
DataRecord updatedRecord)
Save the DataRecord registered by the pair (templateId, recordId). |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static GenericRecordSetManager getInstance()
public GenericRecordSet createRecordSet(String externalId,
RecordTemplate template)
throws FormException
externalId - template -
FormException
public GenericRecordSet createRecordSet(String externalId,
RecordTemplate template,
String templateName,
boolean encrypted)
throws FormException
FormException
public String getRawValue(String templateExternalId,
String recordExternalId,
String fieldName)
throws FormException
templateExternalId - template external idrecordExternalId - record external idfieldName - field name
FormException
public RecordSet getRecordSet(String externalId)
throws FormException
externalId -
FormException - when the id is unknown.
public void removeRecordSet(String externalId)
throws FormException
externalId -
FormException - when the id is unknown.public void removeTemplateFromCache(String templateName)
public DataRecord getRecord(IdentifiedRecordTemplate template,
String objectId)
throws FormException
template - the definition of the form template the record belongs to.objectId - the ID of the resource attached to form record.
null if not found.
FormException - if the (templateId, recordId) pair is unknown.
public DataRecord getRecord(IdentifiedRecordTemplate template,
String objectId,
String language)
throws FormException
template - the definition of the form template the record belongs to.objectId - the ID of the resource attached to form record.
null if not
found.
FormException - if the (templateId, recordId) pair is unknown.
public List<String> getLanguagesOfRecord(IdentifiedRecordTemplate template,
String externalId)
throws FormException
FormException
public void insertRecord(IdentifiedRecordTemplate template,
DataRecord insertedRecord)
throws FormException
template - insertedRecord -
FormException - if the (templateId, recordId) pair is already known or if the given
template is unknown.
public void cloneRecord(IdentifiedRecordTemplate templateFrom,
String objectIdFrom,
IdentifiedRecordTemplate templateTo,
String objectIdTo,
Map<String,String> fileIds)
throws FormException
FormException
public void moveRecord(int recordId,
IdentifiedRecordTemplate templateTo)
throws FormException
FormException
public void updateRecord(IdentifiedRecordTemplate template,
DataRecord updatedRecord)
throws FormException
template - updatedRecord -
FormException - when the (templateId, recordId) pair is unknown.
public void deleteRecord(IdentifiedRecordTemplate template,
DataRecord deletedRecord)
throws FormException
template - deletedRecord -
FormException - when the (templateId, recordId) pair is unknown.
public void encryptData(String templateName)
throws CryptoException
CryptoException
public void decryptData(String templateName)
throws CryptoException
CryptoException
protected void updateFieldRows(Connection con,
List<RecordRow> rows)
throws SQLException
SQLException
protected List<RecordRow> getAllRecordsOfTemplate(String templateName)
throws FormException
FormException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||