Class AbstractWorkspaceTaskDAO
java.lang.Object
org.ametys.runtime.plugin.component.AbstractLogEnabled
org.ametys.plugins.workspaces.tasks.AbstractWorkspaceTaskDAO
- All Implemented Interfaces:
LogEnabled
,Component
,Contextualizable
,Serviceable
- Direct Known Subclasses:
WorkspaceTaskDAO
,WorkspaceTasksListDAO
public abstract class AbstractWorkspaceTaskDAO
extends AbstractLogEnabled
implements Serviceable, Component, Contextualizable
DAO for interacting with tasks of a project
-
Field Summary
Modifier and TypeFieldDescriptionprotected Context
The contextprotected CurrentUserProvider
The current user providerprotected WorkspaceModuleExtensionPoint
The workspace module EPprotected ObservationManager
The observation managerprotected ProjectManager
The project managerprotected RightManager
The right managerstatic final String
Rights to comment taskstatic final String
Rights to delete task commentstatic final String
Rights to delete taskstatic final String
Rights to delete task liststatic final String
Rights to handle taskstatic final String
Rights to handle task list -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected ModifiableResourceCollection
_getModuleRoot
(String projectName) Get the module root of taskprotected String
Get the project nameprotected String
Get the sitemap languageprotected String
Get the site nameprotected ModifiableTraversableAmetysObject
_getTasksListsRoot
(String projectName) Get the tasks lists rootprotected ModifiableTraversableAmetysObject
_getTasksRoot
(String projectName) Get the tasks rootvoid
contextualize
(Context context) getUserRights
(String projectName) Get user rights from project namevoid
service
(ServiceManager manager) Methods inherited from class org.ametys.runtime.plugin.component.AbstractLogEnabled
getLogger, setLogger
-
Field Details
-
RIGHTS_HANDLE_TASK
Rights to handle task- See Also:
-
RIGHTS_DELETE_TASK
Rights to delete task- See Also:
-
RIGHTS_COMMENT_TASK
Rights to comment task- See Also:
-
RIGHTS_HANDLE_TASK_LIST
Rights to handle task list- See Also:
-
RIGHTS_DELETE_TASK_LIST
Rights to delete task list- See Also:
-
RIGHTS_DELETE_COMMENT_TASK
Rights to delete task comment- See Also:
-
_rightManager
The right manager -
_currentUserProvider
The current user provider -
_projectManager
The project manager -
_moduleEP
The workspace module EP -
_observationManager
The observation manager -
_context
The context
-
-
Constructor Details
-
AbstractWorkspaceTaskDAO
public AbstractWorkspaceTaskDAO()
-
-
Method Details
-
service
- Specified by:
service
in interfaceServiceable
- Throws:
ServiceException
-
contextualize
- Specified by:
contextualize
in interfaceContextualizable
- Throws:
ContextException
-
_getProjectName
Get the project name- Returns:
- the project name
-
_getSitemapLanguage
Get the sitemap language- Returns:
- the sitemap language
-
_getSiteName
Get the site name- Returns:
- the site name
-
_getModuleRoot
Get the module root of task- Parameters:
projectName
- the project name- Returns:
- the module root
-
_getTasksListsRoot
Get the tasks lists root- Parameters:
projectName
- the project name- Returns:
- the tasks lists root
-
_getTasksRoot
Get the tasks root- Parameters:
projectName
- the project name- Returns:
- the tasks root
-
getUserRights
Get user rights from project name- Parameters:
projectName
- the project name- Returns:
- the user rights
-