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_contextThe contextprotected CurrentUserProvider_currentUserProviderThe current user providerprotected WorkspaceModuleExtensionPoint_moduleEPThe workspace module EPprotected ObservationManager_observationManagerThe observation managerprotected ProjectManager_projectManagerThe project managerprotected RightManager_rightManagerThe right managerstatic StringRIGHTS_COMMENT_TASKRights to comment taskstatic StringRIGHTS_DELETE_COMMENT_TASKRights to delete task commentstatic StringRIGHTS_DELETE_TASKRights to delete taskstatic StringRIGHTS_DELETE_TASK_LISTRights to delete task liststatic StringRIGHTS_HANDLE_TASKRights to handle taskstatic StringRIGHTS_HANDLE_TASK_LISTRights 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 rootvoidcontextualize(Context context)Map<String,Object>getUserRights(String projectName)Get user rights from project namevoidservice(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:
servicein interfaceServiceable- Throws:
ServiceException
-
contextualize
public void contextualize(Context context) throws ContextException
- Specified by:
contextualizein 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
-
-