public interface IEditRecordService
Modifier and Type | Method and Description |
---|---|
void |
create(EditRecord editRecord)
Create an edit record
|
void |
doChangeRecordState(EditRecord editRecord,
Locale locale)
Do change the record state
|
void |
doCompleteEditRecord(EditRecord editRecord)
Do change the edit record to complete
|
boolean |
doEditRecordData(javax.servlet.http.HttpServletRequest request,
EditRecord editRecord)
Do edit the record data
|
EditRecord |
find(int nIdHistory,
int nIdTask)
Find an edit record
|
List<EditRecord> |
findByIdTask(int nIdTask)
Find edit records by a given id task
|
fr.paris.lutece.plugins.directory.business.IEntry |
getEntry(int nIdEntry)
Get the entry from a given id entry
|
fr.paris.lutece.plugins.directory.business.EntryType |
getEntryTypeDownloadUrl()
Get the entry type download url
|
List<fr.paris.lutece.plugins.directory.business.IEntry> |
getFormListEntries(int nIdRecord,
int nIdTask,
javax.servlet.http.HttpServletRequest request)
Get the list of entries for the form
|
List<fr.paris.lutece.plugins.directory.business.IEntry> |
getInformationListEntries(int nIdHistory)
Get the list of entries for information
|
List<fr.paris.lutece.plugins.directory.business.IEntry> |
getListEntriesToEdit(javax.servlet.http.HttpServletRequest request,
List<EditRecordValue> listEditRecordValues)
Get the list of entries to edit
|
List<Integer> |
getListIdEntriesToNotEdit(javax.servlet.http.HttpServletRequest request,
int nIdRecord,
List<EditRecordValue> listEditRecordValues)
Get the list of entries to not edit
|
List<fr.paris.lutece.plugins.directory.business.RecordField> |
getListRecordFieldsToNotEdit(javax.servlet.http.HttpServletRequest request,
int nIdRecord,
List<EditRecordValue> listEditRecordValues)
Get the list of record fieds to not edit
|
fr.paris.lutece.util.ReferenceList |
getListStates(int nIdAction)
Get the list of states
|
Map<String,List<fr.paris.lutece.plugins.directory.business.RecordField>> |
getMapIdEntryListRecordField(List<fr.paris.lutece.plugins.directory.business.IEntry> listEntries,
int nIdHistory)
Get the map id entry - list record fields
|
fr.paris.lutece.plugins.directory.business.RecordField |
getRecordFieldDownloadUrl(int nIdHistory,
int nIdEntry)
Get the record field associated to the entry type download url.
|
List<fr.paris.lutece.plugins.directory.business.RecordField> |
getRecordFieldsList(int nIdHistory,
int nIdEntry)
Get the list of record fields from a given id history and id entry
|
fr.paris.lutece.plugins.directory.business.Record |
getRecordFromIdHistory(int nIdHistory)
Get the record from a given id history
|
boolean |
isRecordStateValid(EditRecord editRecord,
Locale locale)
Check if the record has the same state before executing the action
|
boolean |
isRequestAuthenticated(javax.servlet.http.HttpServletRequest request)
Check if the request is authenticated or not
|
void |
removeByIdHistory(int nIdHistory,
int nIdTask)
Remove an edit record
|
void |
removeByIdTask(int nIdTask)
Remove an edit record by id task
|
void |
setSiteMessage(javax.servlet.http.HttpServletRequest request,
String strMessage,
int nTypeMessage,
String strUrlReturn)
Set the site message
|
void |
update(EditRecord editRecord)
Update an edit record
|
void setSiteMessage(javax.servlet.http.HttpServletRequest request, String strMessage, int nTypeMessage, String strUrlReturn) throws fr.paris.lutece.portal.service.message.SiteMessageException
request
- the HTTP requeststrMessage
- the messagenTypeMessage
- the message typestrUrlReturn
- the url returnfr.paris.lutece.portal.service.message.SiteMessageException
- the site message@Transactional(value="workflow-editrecord.transactionManager") void create(EditRecord editRecord)
editRecord
- the edit record@Transactional(value="workflow-editrecord.transactionManager") void update(EditRecord editRecord)
editRecord
- the edit recordEditRecord find(int nIdHistory, int nIdTask)
nIdHistory
- the id historynIdTask
- the id taskList<EditRecord> findByIdTask(int nIdTask)
nIdTask
- the id task@Transactional(value="workflow-editrecord.transactionManager") void removeByIdHistory(int nIdHistory, int nIdTask)
nIdHistory
- the id historynIdTask
- the id task@Transactional(value="workflow-editrecord.transactionManager") void removeByIdTask(int nIdTask)
nIdTask
- the id taskfr.paris.lutece.util.ReferenceList getListStates(int nIdAction)
nIdAction
- the id actionList<fr.paris.lutece.plugins.directory.business.IEntry> getFormListEntries(int nIdRecord, int nIdTask, javax.servlet.http.HttpServletRequest request)
nIdRecord
- the id recordnIdTask
- the id taskrequest
- the HTTP requestList<fr.paris.lutece.plugins.directory.business.IEntry> getInformationListEntries(int nIdHistory)
nIdHistory
- the id edit recordList<fr.paris.lutece.plugins.directory.business.IEntry> getListEntriesToEdit(javax.servlet.http.HttpServletRequest request, List<EditRecordValue> listEditRecordValues)
request
- the HTTP requestlistEditRecordValues
- the list of edit record valuesList<Integer> getListIdEntriesToNotEdit(javax.servlet.http.HttpServletRequest request, int nIdRecord, List<EditRecordValue> listEditRecordValues)
request
- the HTTP requestnIdRecord
- the id recordlistEditRecordValues
- the list of edit record valuesList<fr.paris.lutece.plugins.directory.business.RecordField> getListRecordFieldsToNotEdit(javax.servlet.http.HttpServletRequest request, int nIdRecord, List<EditRecordValue> listEditRecordValues)
request
- the HTTP requestnIdRecord
- the id recordlistEditRecordValues
- the list of edit record valuesMap<String,List<fr.paris.lutece.plugins.directory.business.RecordField>> getMapIdEntryListRecordField(List<fr.paris.lutece.plugins.directory.business.IEntry> listEntries, int nIdHistory)
listEntries
- the list of entries to editnIdHistory
- the id historyfr.paris.lutece.plugins.directory.business.IEntry getEntry(int nIdEntry)
nIdEntry
- the id entryIEntry
fr.paris.lutece.plugins.directory.business.EntryType getEntryTypeDownloadUrl()
fr.paris.lutece.plugins.directory.business.Record getRecordFromIdHistory(int nIdHistory)
nIdHistory
- the id historyList<fr.paris.lutece.plugins.directory.business.RecordField> getRecordFieldsList(int nIdHistory, int nIdEntry)
nIdHistory
- the id historynIdEntry
- the id entryfr.paris.lutece.plugins.directory.business.RecordField getRecordFieldDownloadUrl(int nIdHistory, int nIdEntry)
nIdHistory
- the id historynIdEntry
- the id entryboolean doEditRecordData(javax.servlet.http.HttpServletRequest request, EditRecord editRecord) throws fr.paris.lutece.portal.service.message.SiteMessageException
request
- the HTTP requesteditRecord
- the edit recordfr.paris.lutece.portal.service.message.SiteMessageException
- site message if there is a problemvoid doChangeRecordState(EditRecord editRecord, Locale locale)
editRecord
- edit recordlocale
- the localevoid doCompleteEditRecord(EditRecord editRecord)
editRecord
- the edit recordboolean isRequestAuthenticated(javax.servlet.http.HttpServletRequest request)
request
- the HTTP requestboolean isRecordStateValid(EditRecord editRecord, Locale locale)
editRecord
- the edit recordlocale
- the localeCopyright © 2015 City of Paris. All rights reserved.