Class AbstractWorkspaceTaskDAO
java.lang.Object
org.ametys.runtime.plugin.component.AbstractLogEnabled
org.ametys.plugins.workspaces.AbstractWorkspaceDAO
org.ametys.plugins.workspaces.tasks.AbstractWorkspaceTaskDAO
- All Implemented Interfaces:
LogEnabled
,Component
,Contextualizable
,Serviceable
- Direct Known Subclasses:
WorkspaceTaskDAO
,WorkspaceTasksListDAO
DAO for interacting with tasks of a project
-
Field Summary
Modifier and TypeFieldDescriptionstatic 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 listFields inherited from class org.ametys.plugins.workspaces.AbstractWorkspaceDAO
_context, _currentUserProvider, _observationManager, _projectManager, _projectTagsDAO, _resolver, _richTextTransformer, _rightManager, _userManager, _workflowHelper, _workflowProvider, _workspaceHelper, _workspaceModuleEP
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected ModifiableResourceCollection
_getModuleRoot
(String projectName) Get the module root of taskprotected ModifiableTraversableAmetysObject
_getTasksListsRoot
(String projectName) Get the tasks lists rootprotected ModifiableTraversableAmetysObject
_getTasksRoot
(String projectName) Get the tasks rootgetUserRights
(String projectName) Get user rights from project nameMethods inherited from class org.ametys.plugins.workspaces.AbstractWorkspaceDAO
_checkUserReadingRights, _checkUserRights, _getProject, _getProjectName, _getSitemapLanguage, _getSiteName, _handleTags, _hasAfterSubComments, _setAttachments, answerComment, contextualize, createComment, deleteComment, editComment, likeOrUnlikeComment, service
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:
-
-
Constructor Details
-
AbstractWorkspaceTaskDAO
public AbstractWorkspaceTaskDAO()
-
-
Method Details
-
_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
-