public class TasksWorkspaceModule extends AbstractWorkspaceModule
Modifier and Type | Field and Description |
---|---|
private static String |
__MODULE_TITLE_KEY
Module i18n title key
|
private static String |
__WORKSPACES_TASKS_DEFAULT_NODE_NAME
Workspaces default tasks list node name
|
private static String |
__WORKSPACES_TASKS_NODE_NAME
Workspaces tasks list node name
|
static String |
TASK_MODULE_ID
The id of task module
|
static String |
TASK_MODULE_TAG
Tag on the main page holding the task module
|
_context, _currentUserProvider, _i18nUtils, _observationManager, _pageDAO, _pluginName, _projectManager, _projectRightHelper, _resolver, _rightManager, _serviceEP, _skinsManager, _userHelper, _userManager
Constructor and Description |
---|
TasksWorkspaceModule() |
Modifier and Type | Method and Description |
---|---|
Set<String> |
getAllowedEventTypes()
Get the set of allowed event type for the module
|
String |
getId()
Get the module Id
|
String |
getModuleName()
Get the module name
|
protected String |
getModulePageName()
Returns the module page's name
|
protected I18nizableText |
getModulePageTitle()
Returns the module page's title as i18n
|
ModifiableResourceCollection |
getModuleRoot(Project project,
boolean create)
Get the module root node for the given project
|
protected String |
getModuleTagName()
Returns the tag of apply to module page
|
I18nizableText |
getModuleTitle()
Get the module title
|
Map<String,Object> |
getTasksModuleRights()
Retrieves the rights for the current user in the project
|
DefaultTraversableAmetysObject |
getTasksRoot(Project project,
boolean create)
Get the root for tasks
|
Map<String,Object> |
getTasksServiceRights(List<String> projectNames)
Retrieves the rights for the current user in the projects list
|
String |
getTaskUri(Project project,
String taskId,
String language)
Get the URI of a task in project'site
|
protected void |
initializeModulePage(ModifiablePage taskPage)
Initialize the module page
|
_createModulePage, _deletePages, _getAmetysObject, _getDefaultXslt, _internalActivateModule, _internalDeactivateModule, activateModule, contextualize, deactivateModule, getModulePages, getModulePageTemplate, initializeSitemap, service, setPluginInfo
getLogger, setLogger
public static final String TASK_MODULE_ID
public static final String TASK_MODULE_TAG
private static final String __WORKSPACES_TASKS_NODE_NAME
private static final String __WORKSPACES_TASKS_DEFAULT_NODE_NAME
private static final String __MODULE_TITLE_KEY
public TasksWorkspaceModule()
public String getId()
WorkspaceModule
public String getModuleName()
WorkspaceModule
protected String getModulePageName()
AbstractWorkspaceModule
getModulePageName
in class AbstractWorkspaceModule
public I18nizableText getModuleTitle()
WorkspaceModule
protected I18nizableText getModulePageTitle()
AbstractWorkspaceModule
getModulePageTitle
in class AbstractWorkspaceModule
protected String getModuleTagName()
AbstractWorkspaceModule
getModuleTagName
in class AbstractWorkspaceModule
protected void initializeModulePage(ModifiablePage taskPage)
AbstractWorkspaceModule
initializeModulePage
in class AbstractWorkspaceModule
taskPage
- The module pagepublic Map<String,Object> getTasksModuleRights()
public Map<String,Object> getTasksServiceRights(List<String> projectNames)
projectNames
- The name of projects to checks rights frompublic String getTaskUri(Project project, String taskId, String language)
project
- The projecttaskId
- The id of the tasklanguage
- The sitemap languagepublic ModifiableResourceCollection getModuleRoot(Project project, boolean create)
WorkspaceModule
project
- The project containing the modulecreate
- True to create the node if it does not existspublic DefaultTraversableAmetysObject getTasksRoot(Project project, boolean create)
project
- The projectcreate
- true to create root if not existspublic Set<String> getAllowedEventTypes()
WorkspaceModule