Class ExtendFeedbackService
- java.lang.Object
-
- fr.paris.lutece.plugins.extend.modules.feedback.service.ExtendFeedbackService
-
- All Implemented Interfaces:
IExtendFeedbackService
public class ExtendFeedbackService extends Object implements IExtendFeedbackService
ExtendFeedbackService
-
-
Field Summary
Fields Modifier and Type Field Description static StringBEAN_SERVICEThe Constant BEAN_SERVICE.
-
Constructor Summary
Constructors Constructor Description ExtendFeedbackService()
-
Method Summary
All Methods Instance Methods Concrete 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 feedbackList<ExtendFeedback>findAll()Find all the extendFeedbackList<ExtendFeedback>findAllByIdAndTypeResource(int nIdResource, String strResourceType)Find all extendFeedback by id resource and resource typeList<ExtendFeedback>findAllExtendFeedback(javax.servlet.http.HttpServletRequest request, fr.paris.lutece.plugins.extend.business.extender.ResourceExtenderDTO resourceExtenderDTO)Gets list of extendFeedback filtredOptional<ExtendFeedback>findById(int nId)Find extendFeedback by idOptional<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
-
-
-
Field Detail
-
BEAN_SERVICE
public static final String BEAN_SERVICE
The Constant BEAN_SERVICE.- See Also:
- Constant Field Values
-
-
Method Detail
-
create
public void create(ExtendFeedback extendFeedback)
Create a new extendFeedback- Specified by:
createin interfaceIExtendFeedbackService- Parameters:
extendFeedback- the extendFeedback
-
update
public void update(ExtendFeedback extendFeedback)
Update a ExtendFeedback- Specified by:
updatein interfaceIExtendFeedbackService- Parameters:
extendFeedback- the extendFeedback
-
delete
public void delete(int nId)
Delete extendFeedback by id- Specified by:
deletein interfaceIExtendFeedbackService- Parameters:
nId- the id extendFeedback
-
findAll
public List<ExtendFeedback> findAll()
Find all the extendFeedback- Specified by:
findAllin interfaceIExtendFeedbackService- Returns:
- a list of
ExtendFeedback
-
findById
public Optional<ExtendFeedback> findById(int nId)
Find extendFeedback by id- Specified by:
findByIdin interfaceIExtendFeedbackService- Parameters:
nId- the id extendFeedback
-
findAllByIdAndTypeResource
public List<ExtendFeedback> findAllByIdAndTypeResource(int nIdResource, String strResourceType)
Find all extendFeedback by id resource and resource type- Specified by:
findAllByIdAndTypeResourcein interfaceIExtendFeedbackService- Parameters:
nIdResource- the id resourcestrResourceType- the resource type
-
findByIdHistory
public Optional<ExtendFeedback> findByIdHistory(int nIdHistory)
Find extendFeedback by id history- Specified by:
findByIdHistoryin interfaceIExtendFeedbackService- Parameters:
nIdHistory- the id history
-
doSubmitFeedback
public boolean doSubmitFeedback(javax.servlet.http.HttpServletRequest request)
Process feedback- Specified by:
doSubmitFeedbackin interfaceIExtendFeedbackService- Parameters:
request- the request
-
findAllExtendFeedback
public List<ExtendFeedback> findAllExtendFeedback(javax.servlet.http.HttpServletRequest request, fr.paris.lutece.plugins.extend.business.extender.ResourceExtenderDTO resourceExtenderDTO)
Description copied from interface:IExtendFeedbackServiceGets list of extendFeedback filtred- Specified by:
findAllExtendFeedbackin interfaceIExtendFeedbackService- Returns:
- list of extendFeedback filtred
-
doProcessWorkflow
public boolean doProcessWorkflow(ExtendFeedback extendFeedback, FeedbackExtenderConfig config)
Process Workflow- Specified by:
doProcessWorkflowin interfaceIExtendFeedbackService- Returns:
- true if workflow is processed
-
isAuthorized
public boolean isAuthorized(javax.servlet.http.HttpServletRequest request, FeedbackExtenderConfig config)Returns true if user is authorized for send feedback- Specified by:
isAuthorizedin interfaceIExtendFeedbackService- Returns:
-
-