Package org.ametys.plugins.forms.helper
Class FormAdminDashboardHelper
java.lang.Object
org.ametys.runtime.plugin.component.AbstractLogEnabled
org.ametys.plugins.forms.helper.FormAdminDashboardHelper
- All Implemented Interfaces:
LogEnabled
,Component
,Serviceable
The helper to handle admin dashboard
-
Field Summary
Modifier and TypeFieldDescriptionprotected FormDAO
The form DAOprotected FormEntryDAO
The form entry DAOprotected RightManager
The right managerprotected WorkflowProvider
The workflow providerstatic final String
Avalon ROLE. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
_hasAtLeastOneEntryToDoAction
(Form form, UserIdentity user) true
if the form has an entry that the user can do actiongetFormToAdmin
(String siteName, UserIdentity currentUser) The list of form to admin for current userboolean
hasAvailableActions
(FormEntry entry) true
if the entry has available actions for current uservoid
service
(ServiceManager manager) Methods inherited from class org.ametys.runtime.plugin.component.AbstractLogEnabled
getLogger, setLogger
-
Field Details
-
ROLE
Avalon ROLE. -
_workflowProvider
The workflow provider -
_formDAO
The form DAO -
_rightManager
The right manager -
_formEntryDAO
The form entry DAO
-
-
Constructor Details
-
FormAdminDashboardHelper
public FormAdminDashboardHelper()
-
-
Method Details
-
service
- Specified by:
service
in interfaceServiceable
- Throws:
ServiceException
-
getFormToAdmin
The list of form to admin for current user- Parameters:
siteName
- the sitenamecurrentUser
- the current user- Returns:
- the list of form to admin for current user
-
_hasAtLeastOneEntryToDoAction
true
if the form has an entry that the user can do action- Parameters:
form
- the formuser
- the user- Returns:
true
if the form has an entry that the user can do action
-
hasAvailableActions
true
if the entry has available actions for current user- Parameters:
entry
- the entry- Returns:
true
if the entry has available actions for current user
-