Interface WorkspaceModule
- All Superinterfaces:
Comparable<WorkspaceModule>
- All Known Implementing Classes:
AboutWorkspaceModule
,AbstractWorkspaceModule
,AlertWorkspaceModule
,CalendarWorkspaceModule
,DocumentWorkspaceModule
,ForumWorkspaceModule
,MembersWorkspaceModule
,MiniSiteWorkspaceModule
,NewsWorkspaceModule
,TasksWorkspaceModule
,WallContentModule
Manager for the Workspaces modules
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
Header id for activated group headerstatic final String
Header id for elements group headerstatic final String
Header id for last activity group headerstatic final String
Header id for size group headerstatic final int
Order of modulestatic final int
Order of modulestatic final int
Order of modulestatic final int
Order of modulestatic final int
Order of modulestatic final int
Order of modulestatic final int
Order of modulestatic final int
Order of modulestatic final int
Order of modulestatic final int
Order of module -
Method Summary
Modifier and TypeMethodDescriptionvoid
activateModule
(Project project, Map<String, Object> additionalValues) Activate the module for the project, creating the module pagesdefault int
compareTo
(WorkspaceModule that) void
deactivateModule
(Project project) Deactivate a modulevoid
deleteData
(Project project) Delete a module and all related data (pages, events, resources, ...)Get the set of all event type for the moduleGet the set of allowed event type for the modulegetId()
Get the module IdGet the module titleGet the module namegetModuleRoot
(Project project, boolean create) Get the module root node for the given projectReturns the key to get module size in statisticsGet the module titlegetModuleUrl
(Project project) Get the URL of the first module's pageint
getOrder()
Get the module orderGet the headers of statisticsgetStatistics
(Project project) Get the statistics of the modulevoid
initializeSitemap
(Project project, Sitemap sitemap) Initialize the sitemap for the moduledefault boolean
Determines if the module is unactivated by default
-
Field Details
-
ORDER_WALLCONTENT
Order of module- See Also:
-
ORDER_NEWS
Order of module- See Also:
-
ORDER_ALERTS
Order of module- See Also:
-
ORDER_MEMBERS
Order of module- See Also:
-
ORDER_DOCUMENTS
Order of module- See Also:
-
ORDER_FORUMS
Order of module- See Also:
-
ORDER_CALENDAR
Order of module- See Also:
-
ORDER_TASKS
Order of module- See Also:
-
ORDER_MINISITE
Order of module- See Also:
-
ORDER_ABOUT
Order of module- See Also:
-
GROUP_HEADER_ELEMENTS_ID
Header id for elements group header- See Also:
-
GROUP_HEADER_SIZE_ID
Header id for size group header- See Also:
-
GROUP_HEADER_ACTIVATED_ID
Header id for activated group header- See Also:
-
GROUP_HEADER_LAST_ACTIVITY_ID
Header id for last activity group header- See Also:
-
-
Method Details
-
getId
Get the module Id- Returns:
- The module ID
-
getModuleTitle
Get the module title- Returns:
- The title
-
getModuleDescription
Get the module title- Returns:
- The title
-
getModuleName
Get the module name- Returns:
- the module name
-
getOrder
int getOrder()Get the module order- Returns:
- the priority in menus
-
activateModule
Activate the module for the project, creating the module pages- Parameters:
project
- The projectadditionalValues
- A list of optional additional values. Accepted values are : description, mailingList, inscriptionStatus, defaultProfile, tags, categoryTags, keywords and language
-
initializeSitemap
Initialize the sitemap for the module- Parameters:
project
- The project of the modulesitemap
- The sitemap
-
deactivateModule
Deactivate a module- Parameters:
project
- The project
-
deleteData
Delete a module and all related data (pages, events, resources, ...)- Parameters:
project
- The project
-
getAllowedEventTypes
Get the set of allowed event type for the module- Returns:
- The set of allowed event types
-
getAllEventTypes
Get the set of all event type for the module- Returns:
- The set of all event types
-
getModuleRoot
Get 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
-
getModuleUrl
Get the URL of the first module's page- Parameters:
project
- The project- Returns:
- the module url
-
isUnactivatedByDefault
Determines if the module is unactivated by default- Returns:
- true if the module is not proposed by default
-
compareTo
- Specified by:
compareTo
in interfaceComparable<WorkspaceModule>
-
getStatistics
Get the statistics of the module- Parameters:
project
- The project- Returns:
- a map of statistics
-
getStatisticModel
Get the headers of statistics- Returns:
- a list of statistics headers
-
getModuleSizeKey
Returns the key to get module size in statistics- Returns:
- The key to get module size in statistics
-