Class TasksWorkspaceModule
java.lang.Object
org.ametys.runtime.plugin.component.AbstractLogEnabled
org.ametys.plugins.workspaces.AbstractWorkspaceModule
org.ametys.plugins.workspaces.tasks.TasksWorkspaceModule
- All Implemented Interfaces:
Comparable<WorkspaceModule>,WorkspaceModule,LogEnabled,PluginAware,Contextualizable,Serviceable
Tasks manager for workspaces
-
Field Summary
FieldsFields inherited from class org.ametys.plugins.workspaces.AbstractWorkspaceModule
__SIZE_ERROR, __SIZE_INACTIVE, _activityStream, _context, _currentUserProvider, _i18nUtils, _modulesEP, _observationManager, _pageDAO, _pluginName, _projectManager, _projectRightHelper, _resolver, _rightManager, _serviceEP, _skinsManager, _userHelper, _userManagerFields inherited from interface org.ametys.plugins.workspaces.project.modules.WorkspaceModule
GROUP_HEADER_ACTIVATED_ID, GROUP_HEADER_ELEMENTS_ID, GROUP_HEADER_LAST_ACTIVITY_ID, GROUP_HEADER_SIZE_ID, ORDER_ABOUT, ORDER_ALERTS, ORDER_CALENDAR, ORDER_DOCUMENTS, ORDER_MEMBERS, ORDER_MINISITE, ORDER_NEWS, ORDER_TASKS, ORDER_THREADS, ORDER_WALLCONTENT -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the headers of statistics_getInternalStatistics(Project project, boolean isActive) Get the internal statistics of the moduleprotected long_getModuleSize(Project project) Get the size of module in bytesprotected booleanCheck if module size should be shown or notGet the set of allowed event type for the modulegetId()Get the module IdGet the module titleGet the module nameprotected StringReturns the module page's nameprotected I18nizableTextReturns the module page's title as i18ngetModuleRoot(Project project, boolean create) Get the module root node for the given projectGet the module titleintgetOrder()Get the module ordergetTasksListsRoot(Project project, boolean create) Get the root for tasks listsRetrieves the rights for the current user in the projectgetTasksRoot(Project project, boolean create) Get the root for tasksgetTasksServiceRights(List<String> projectNames) Retrieves the rights for the current user in the projects listgetTaskUri(Project project, String taskId) Get the URI of a task in project'siteprotected voidinitializeModulePage(ModifiablePage taskPage) Initialize the module pagevoidservice(ServiceManager serviceManager) Methods inherited from class org.ametys.plugins.workspaces.AbstractWorkspaceModule
_createModulePage, _deleteActivities, _deletePages, _getAmetysObject, _getDefaultXslt, _getModuleLastActivity, _getModulePages, _internalActivateModule, _internalDeactivateModule, _internalDeleteData, _setPagesVisibility, _showActivatedStatus, _showLastActivity, activateModule, contextualize, deactivateModule, deleteData, getAllEventTypes, getModulePageTemplate, getModuleSizeKey, getModuleUrl, getStatisticModel, getStatistics, initializeSitemap, setPluginInfoMethods inherited from class org.ametys.runtime.plugin.component.AbstractLogEnabled
getLogger, setLoggerMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.ametys.plugins.workspaces.project.modules.WorkspaceModule
compareTo, isUnactivatedByDefault
-
Field Details
-
TASK_MODULE_ID
The id of task module
-
-
Constructor Details
-
TasksWorkspaceModule
public TasksWorkspaceModule()
-
-
Method Details
-
service
- Specified by:
servicein interfaceServiceable- Overrides:
servicein classAbstractWorkspaceModule- Throws:
ServiceException
-
getId
Description copied from interface:WorkspaceModuleGet the module Id- Returns:
- The module ID
-
getModuleName
Description copied from interface:WorkspaceModuleGet the module name- Returns:
- the module name
-
getOrder
Description copied from interface:WorkspaceModuleGet the module order- Returns:
- the priority in menus
-
getModulePageName
Description copied from class:AbstractWorkspaceModuleReturns the module page's name- Specified by:
getModulePageNamein classAbstractWorkspaceModule- Returns:
- The module page's name
-
getModuleTitle
Description copied from interface:WorkspaceModuleGet the module title- Returns:
- The title
-
getModuleDescription
Description copied from interface:WorkspaceModuleGet the module title- Returns:
- The title
-
getModulePageTitle
Description copied from class:AbstractWorkspaceModuleReturns the module page's title as i18n- Specified by:
getModulePageTitlein classAbstractWorkspaceModule- Returns:
- The module page's title
-
initializeModulePage
Description copied from class:AbstractWorkspaceModuleInitialize the module page- Specified by:
initializeModulePagein classAbstractWorkspaceModule- Parameters:
taskPage- The module page
-
getTasksModuleRights
Retrieves the rights for the current user in the project- Returns:
- The project
-
getTasksServiceRights
Retrieves the rights for the current user in the projects list- Parameters:
projectNames- The name of projects to checks rights from- Returns:
- The rights data
-
getTaskUri
Get the URI of a task in project'site- Parameters:
project- The projecttaskId- The id of the task- Returns:
- The thread uri
-
getModuleRoot
Description copied from interface:WorkspaceModuleGet the module root node for the given project- Parameters:
project- The project containing the modulecreate- True to create the node if it does not exists- Returns:
- The root node, or null if it does not exists and was not created
-
getTasksRoot
Get the root for tasks- Parameters:
project- The projectcreate- true to create root if not exists- Returns:
- The root for tasks
-
getTasksListsRoot
Get the root for tasks lists- Parameters:
project- The projectcreate- true to create root if not exists- Returns:
- The root for tasks lists
-
getAllowedEventTypes
Description copied from interface:WorkspaceModuleGet the set of allowed event type for the module- Returns:
- The set of allowed event types
-
_getInternalStatistics
Description copied from class:AbstractWorkspaceModuleGet the internal statistics of the module- Overrides:
_getInternalStatisticsin classAbstractWorkspaceModule- Parameters:
project- The projectisActive- true if module is active- Returns:
- a map of internal statistics
-
_getModuleSize
Description copied from class:AbstractWorkspaceModuleGet the size of module in bytes- Overrides:
_getModuleSizein classAbstractWorkspaceModule- Parameters:
project- The project- Returns:
- the size of module in bytes
-
_getInternalStatisticModel
Description copied from class:AbstractWorkspaceModuleGet the headers of statistics- Overrides:
_getInternalStatisticModelin classAbstractWorkspaceModule- Returns:
- a list of statistics headers
-
_showModuleSize
Description copied from class:AbstractWorkspaceModuleCheck if module size should be shown or not- Overrides:
_showModuleSizein classAbstractWorkspaceModule- Returns:
- true if module size should be shown
-