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
Fields Modifier and Type Field Description protected Context
_context
The contextprotected CurrentUserProvider
_currentUserProvider
The current user providerprotected WorkspaceModuleExtensionPoint
_moduleEP
The workspace module EPprotected ObservationManager
_observationManager
The observation managerprotected ProjectManager
_projectManager
The project managerprotected RightManager
_rightManager
The right managerstatic String
RIGHTS_COMMENT_TASK
Rights to comment taskstatic String
RIGHTS_DELETE_COMMENT_TASK
Rights to delete task commentstatic String
RIGHTS_DELETE_TASK
Rights to delete taskstatic String
RIGHTS_DELETE_TASK_LIST
Rights to delete task liststatic String
RIGHTS_HANDLE_TASK
Rights to handle taskstatic String
RIGHTS_HANDLE_TASK_LIST
Rights to handle task list
-
Constructor Summary
Constructors Constructor Description AbstractWorkspaceTaskDAO()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected ModifiableResourceCollection
_getModuleRoot(String projectName)
Get the module root of taskprotected String
_getProjectName()
Get the project nameprotected String
_getSitemapLanguage()
Get the sitemap languageprotected String
_getSiteName()
Get the site nameprotected ModifiableTraversableAmetysObject
_getTasksListsRoot(String projectName)
Get the tasks lists rootprotected ModifiableTraversableAmetysObject
_getTasksRoot(String projectName)
Get the tasks rootvoid
contextualize(Context context)
Map<String,Object>
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 Detail
-
RIGHTS_HANDLE_TASK
public static final String RIGHTS_HANDLE_TASK
Rights to handle task- See Also:
- Constant Field Values
-
RIGHTS_DELETE_TASK
public static final String RIGHTS_DELETE_TASK
Rights to delete task- See Also:
- Constant Field Values
-
RIGHTS_COMMENT_TASK
public static final String RIGHTS_COMMENT_TASK
Rights to comment task- See Also:
- Constant Field Values
-
RIGHTS_HANDLE_TASK_LIST
public static final String RIGHTS_HANDLE_TASK_LIST
Rights to handle task list- See Also:
- Constant Field Values
-
RIGHTS_DELETE_TASK_LIST
public static final String RIGHTS_DELETE_TASK_LIST
Rights to delete task list- See Also:
- Constant Field Values
-
RIGHTS_DELETE_COMMENT_TASK
public static final String RIGHTS_DELETE_COMMENT_TASK
Rights to delete task comment- See Also:
- Constant Field Values
-
_rightManager
protected RightManager _rightManager
The right manager
-
_currentUserProvider
protected CurrentUserProvider _currentUserProvider
The current user provider
-
_projectManager
protected ProjectManager _projectManager
The project manager
-
_moduleEP
protected WorkspaceModuleExtensionPoint _moduleEP
The workspace module EP
-
_observationManager
protected ObservationManager _observationManager
The observation manager
-
-
Constructor Detail
-
AbstractWorkspaceTaskDAO
public AbstractWorkspaceTaskDAO()
-
-
Method Detail
-
service
public void service(ServiceManager manager) throws ServiceException
- Specified by:
service
in interfaceServiceable
- Throws:
ServiceException
-
contextualize
public void contextualize(Context context) throws ContextException
- Specified by:
contextualize
in interfaceContextualizable
- Throws:
ContextException
-
_getProjectName
protected String _getProjectName()
Get the project name- Returns:
- the project name
-
_getSitemapLanguage
protected String _getSitemapLanguage()
Get the sitemap language- Returns:
- the sitemap language
-
_getSiteName
protected String _getSiteName()
Get the site name- Returns:
- the site name
-
_getModuleRoot
protected ModifiableResourceCollection _getModuleRoot(String projectName)
Get the module root of task- Parameters:
projectName
- the project name- Returns:
- the module root
-
_getTasksListsRoot
protected ModifiableTraversableAmetysObject _getTasksListsRoot(String projectName)
Get the tasks lists root- Parameters:
projectName
- the project name- Returns:
- the tasks lists root
-
_getTasksRoot
protected ModifiableTraversableAmetysObject _getTasksRoot(String projectName)
Get the tasks root- Parameters:
projectName
- the project name- Returns:
- the tasks root
-
getUserRights
public Map<String,Object> getUserRights(String projectName)
Get user rights from project name- Parameters:
projectName
- the project name- Returns:
- the user rights
-
-