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
FieldsModifier and TypeFieldDescriptionprotected ContextThe contextprotected CurrentUserProviderThe current user providerprotected WorkspaceModuleExtensionPointThe workspace module EPprotected ObservationManagerThe observation managerprotected ProjectManagerThe project managerprotected RightManagerThe right managerstatic final StringRights to comment taskstatic final StringRights to delete task commentstatic final StringRights to delete taskstatic final StringRights to delete task liststatic final StringRights to handle taskstatic final StringRights to handle task list -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected ModifiableResourceCollection_getModuleRoot(String projectName) Get the module root of taskprotected StringGet the project nameprotected StringGet the sitemap languageprotected StringGet the site nameprotected ModifiableTraversableAmetysObject_getTasksListsRoot(String projectName) Get the tasks lists rootprotected ModifiableTraversableAmetysObject_getTasksRoot(String projectName) Get the tasks rootvoidcontextualize(Context context) getUserRights(String projectName) Get user rights from project namevoidservice(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:
servicein interfaceServiceable- Throws:
ServiceException
-
contextualize
- Specified by:
contextualizein 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
-