Interface IExtendFeedbackService
-
- All Known Implementing Classes:
ExtendFeedbackService
public interface IExtendFeedbackServiceIExtendFeedbackService
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidcreate(ExtendFeedback extendFeedback)Create a new extendFeedbackvoiddelete(int nId)Delete extendFeedback by idbooleandoProcessWorkflow(ExtendFeedback extendFeedback, FeedbackExtenderConfig config)Process WorkflowbooleandoSubmitFeedback(javax.servlet.http.HttpServletRequest request)Process feedbackjava.util.List<ExtendFeedback>findAll()Find all the extendFeedbackjava.util.List<ExtendFeedback>findAllByIdAndTypeResource(int nIdResource, java.lang.String strResourceType)Find all extendFeedback by id resource and resource typejava.util.List<ExtendFeedback>findAllExtendFeedback(javax.servlet.http.HttpServletRequest request, fr.paris.lutece.plugins.extend.business.extender.ResourceExtenderDTO resourceExtenderDTO)Gets list of extendFeedback filtredjava.util.Optional<ExtendFeedback>findById(int nId)Find extendFeedback by idjava.util.Optional<ExtendFeedback>findByIdHistory(int nIdHistory)Find extendFeedback by id historybooleanisAuthorized(javax.servlet.http.HttpServletRequest request, FeedbackExtenderConfig config)Returns true if user is authorized for send feedbackvoidupdate(ExtendFeedback extendFeedback)Update a ExtendFeedback
-
-
-
Method Detail
-
create
void create(ExtendFeedback extendFeedback)
Create a new extendFeedback- Parameters:
extendFeedback- the extendFeedback
-
update
void update(ExtendFeedback extendFeedback)
Update a ExtendFeedback- Parameters:
extendFeedback- the extendFeedback
-
delete
void delete(int nId)
Delete extendFeedback by id- Parameters:
nId- the id extendFeedback
-
findById
java.util.Optional<ExtendFeedback> findById(int nId)
Find extendFeedback by id- Parameters:
nId- the id extendFeedback
-
findAllByIdAndTypeResource
java.util.List<ExtendFeedback> findAllByIdAndTypeResource(int nIdResource, java.lang.String strResourceType)
Find all extendFeedback by id resource and resource type- Parameters:
nIdResource- the id resourcestrResourceType- the resource type
-
findByIdHistory
java.util.Optional<ExtendFeedback> findByIdHistory(int nIdHistory)
Find extendFeedback by id history- Parameters:
nIdHistory- the id history
-
findAll
java.util.List<ExtendFeedback> findAll()
Find all the extendFeedback- Returns:
- a list of
ExtendFeedback
-
doSubmitFeedback
boolean doSubmitFeedback(javax.servlet.http.HttpServletRequest request)
Process feedback- Parameters:
request- the request
-
findAllExtendFeedback
java.util.List<ExtendFeedback> findAllExtendFeedback(javax.servlet.http.HttpServletRequest request, fr.paris.lutece.plugins.extend.business.extender.ResourceExtenderDTO resourceExtenderDTO)
Gets list of extendFeedback filtred- Parameters:
strStatus-strSorting-extendableResourceTypeFilter-resourceExtenderDTO-- Returns:
- list of extendFeedback filtred
-
doProcessWorkflow
boolean doProcessWorkflow(ExtendFeedback extendFeedback, FeedbackExtenderConfig config)
Process Workflow- Parameters:
extendFeedback-config-- Returns:
- true if workflow is processed
-
isAuthorized
boolean isAuthorized(javax.servlet.http.HttpServletRequest request, FeedbackExtenderConfig config)Returns true if user is authorized for send feedback- Parameters:
request-config-- Returns:
-
-