|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectfr.paris.lutece.plugins.workflow.modules.editrecord.service.EditRecordService
public class EditRecordService
EditRecordService
Field Summary | |
---|---|
static java.lang.String |
BEAN_SERVICE
|
Constructor Summary | |
---|---|
EditRecordService()
|
Method Summary | |
---|---|
void |
create(EditRecord editRecord)
Create an edit record |
void |
doChangeRecordState(EditRecord editRecord,
java.util.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 |
java.util.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 |
java.util.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 |
java.util.List<fr.paris.lutece.plugins.directory.business.IEntry> |
getInformationListEntries(int nIdHistory)
Get the list of entries for information |
java.util.List<fr.paris.lutece.plugins.directory.business.IEntry> |
getListEntriesToEdit(javax.servlet.http.HttpServletRequest request,
java.util.List<EditRecordValue> listEditRecordValues)
Get the list of entries to edit |
java.util.List<java.lang.Integer> |
getListIdEntriesToNotEdit(javax.servlet.http.HttpServletRequest request,
int nIdRecord,
java.util.List<EditRecordValue> listEditRecordValues)
Get the list of entries to not edit |
java.util.List<fr.paris.lutece.plugins.directory.business.RecordField> |
getListRecordFieldsToNotEdit(javax.servlet.http.HttpServletRequest request,
int nIdRecord,
java.util.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 |
java.util.Map<java.lang.String,java.util.List<fr.paris.lutece.plugins.directory.business.RecordField>> |
getMapIdEntryListRecordField(java.util.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. |
java.util.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,
java.util.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,
java.lang.String strMessage,
int nTypeMessage,
java.lang.String strUrlReturn)
Set the site message |
void |
update(EditRecord editRecord)
Update an edit record |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String BEAN_SERVICE
Constructor Detail |
---|
public EditRecordService()
Method Detail |
---|
public void setSiteMessage(javax.servlet.http.HttpServletRequest request, java.lang.String strMessage, int nTypeMessage, java.lang.String strUrlReturn) throws fr.paris.lutece.portal.service.message.SiteMessageException
setSiteMessage
in interface IEditRecordService
request
- the HTTP requeststrMessage
- the messagenTypeMessage
- the message typestrUrlReturn
- the url return
fr.paris.lutece.portal.service.message.SiteMessageException
- the site message@Transactional(value="workflow-editrecord.transactionManager") public void create(EditRecord editRecord)
create
in interface IEditRecordService
editRecord
- the edit record@Transactional(value="workflow-editrecord.transactionManager") public void update(EditRecord editRecord)
update
in interface IEditRecordService
editRecord
- the edit recordpublic EditRecord find(int nIdHistory, int nIdTask)
find
in interface IEditRecordService
nIdHistory
- the id historynIdTask
- the id task
public java.util.List<EditRecord> findByIdTask(int nIdTask)
findByIdTask
in interface IEditRecordService
nIdTask
- the id task
@Transactional(value="workflow-editrecord.transactionManager") public void removeByIdHistory(int nIdHistory, int nIdTask)
removeByIdHistory
in interface IEditRecordService
nIdHistory
- the id historynIdTask
- the id task@Transactional(value="workflow-editrecord.transactionManager") public void removeByIdTask(int nIdTask)
removeByIdTask
in interface IEditRecordService
nIdTask
- the id taskpublic fr.paris.lutece.util.ReferenceList getListStates(int nIdAction)
getListStates
in interface IEditRecordService
nIdAction
- the id action
public java.util.List<fr.paris.lutece.plugins.directory.business.IEntry> getFormListEntries(int nIdRecord, int nIdTask, javax.servlet.http.HttpServletRequest request)
getFormListEntries
in interface IEditRecordService
nIdRecord
- the id recordnIdTask
- the id taskrequest
- the HTTP request
public java.util.List<fr.paris.lutece.plugins.directory.business.IEntry> getInformationListEntries(int nIdHistory)
getInformationListEntries
in interface IEditRecordService
nIdHistory
- the id edit record
public java.util.List<fr.paris.lutece.plugins.directory.business.IEntry> getListEntriesToEdit(javax.servlet.http.HttpServletRequest request, java.util.List<EditRecordValue> listEditRecordValues)
getListEntriesToEdit
in interface IEditRecordService
request
- the HTTP requestlistEditRecordValues
- the list of edit record values
public java.util.List<java.lang.Integer> getListIdEntriesToNotEdit(javax.servlet.http.HttpServletRequest request, int nIdRecord, java.util.List<EditRecordValue> listEditRecordValues)
getListIdEntriesToNotEdit
in interface IEditRecordService
request
- the HTTP requestnIdRecord
- the id recordlistEditRecordValues
- the list of edit record values
public java.util.List<fr.paris.lutece.plugins.directory.business.RecordField> getListRecordFieldsToNotEdit(javax.servlet.http.HttpServletRequest request, int nIdRecord, java.util.List<EditRecordValue> listEditRecordValues)
getListRecordFieldsToNotEdit
in interface IEditRecordService
request
- the HTTP requestnIdRecord
- the id recordlistEditRecordValues
- the list of edit record values
public java.util.Map<java.lang.String,java.util.List<fr.paris.lutece.plugins.directory.business.RecordField>> getMapIdEntryListRecordField(java.util.List<fr.paris.lutece.plugins.directory.business.IEntry> listEntries, int nIdHistory)
getMapIdEntryListRecordField
in interface IEditRecordService
listEntries
- the list of entries to editnIdHistory
- the id history
public fr.paris.lutece.plugins.directory.business.IEntry getEntry(int nIdEntry)
getEntry
in interface IEditRecordService
nIdEntry
- the id entry
IEntry
public fr.paris.lutece.plugins.directory.business.EntryType getEntryTypeDownloadUrl()
getEntryTypeDownloadUrl
in interface IEditRecordService
public fr.paris.lutece.plugins.directory.business.Record getRecordFromIdHistory(int nIdHistory)
getRecordFromIdHistory
in interface IEditRecordService
nIdHistory
- the id history
public java.util.List<fr.paris.lutece.plugins.directory.business.RecordField> getRecordFieldsList(int nIdHistory, int nIdEntry)
getRecordFieldsList
in interface IEditRecordService
nIdHistory
- the id historynIdEntry
- the id entry
public fr.paris.lutece.plugins.directory.business.RecordField getRecordFieldDownloadUrl(int nIdHistory, int nIdEntry)
getRecordFieldDownloadUrl
in interface IEditRecordService
nIdHistory
- the id historynIdEntry
- the id entry
public boolean doEditRecordData(javax.servlet.http.HttpServletRequest request, EditRecord editRecord) throws fr.paris.lutece.portal.service.message.SiteMessageException
doEditRecordData
in interface IEditRecordService
request
- the HTTP requesteditRecord
- the edit record
fr.paris.lutece.portal.service.message.SiteMessageException
- site message if there is a problempublic void doChangeRecordState(EditRecord editRecord, java.util.Locale locale)
doChangeRecordState
in interface IEditRecordService
editRecord
- edit recordlocale
- the localepublic void doCompleteEditRecord(EditRecord editRecord)
doCompleteEditRecord
in interface IEditRecordService
editRecord
- the edit recordpublic boolean isRequestAuthenticated(javax.servlet.http.HttpServletRequest request)
isRequestAuthenticated
in interface IEditRecordService
request
- the HTTP request
public boolean isRecordStateValid(EditRecord editRecord, java.util.Locale locale)
isRecordStateValid
in interface IEditRecordService
editRecord
- the edit recordlocale
- the locale
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |