Interface WorkspaceModule
-
- All Superinterfaces:
Comparable<WorkspaceModule>
- All Known Implementing Classes:
AbstractWorkspaceModule,AlertWorkspaceModule,CalendarWorkspaceModule,DocumentWorkspaceModule,EditionFOWorkspaceModule,MembersWorkspaceModule,NewsWorkspaceModule,TasksWorkspaceModule,ThreadWorkspaceModule,WallContentModule
public interface WorkspaceModule extends Comparable<WorkspaceModule>
Manager for the Workspaces modules
-
-
Field Summary
Fields Modifier and Type Field Description static intORDER_ALERTSOrder of modulestatic intORDER_CALENDAROrder of modulestatic intORDER_DOCUMENTSOrder of modulestatic intORDER_MEMBERSOrder of modulestatic intORDER_NEWSOrder of modulestatic intORDER_TASKSOrder of modulestatic intORDER_THREADSOrder of modulestatic intORDER_WALLCONTENTOrder of modulestatic intORDER_WIKIOrder of module
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description voidactivateModule(Project project)Activate the module for the project, creating the module pagesdefault intcompareTo(WorkspaceModule that)voiddeactivateModule(Project project)Deactivate a modulevoiddeleteData(Project project)Delete a module and all related data (pages, events, resources, ...)Set<String>getAllowedEventTypes()Get the set of allowed event type for the moduleStringgetId()Get the module IdI18nizableTextgetModuleDescription()Get the module titleStringgetModuleName()Get the module nameModifiableResourceCollectiongetModuleRoot(Project project, boolean create)Get the module root node for the given projectI18nizableTextgetModuleTitle()Get the module titleStringgetModuleUrl(Project project)Get the URL of the first module's pageintgetOrder()Get the module ordervoidinitializeSitemap(Project project, Sitemap sitemap)Initialize the sitemap for the module
-
-
-
Field Detail
-
ORDER_WALLCONTENT
static final int ORDER_WALLCONTENT
Order of module- See Also:
- Constant Field Values
-
ORDER_NEWS
static final int ORDER_NEWS
Order of module- See Also:
- Constant Field Values
-
ORDER_ALERTS
static final int ORDER_ALERTS
Order of module- See Also:
- Constant Field Values
-
ORDER_MEMBERS
static final int ORDER_MEMBERS
Order of module- See Also:
- Constant Field Values
-
ORDER_DOCUMENTS
static final int ORDER_DOCUMENTS
Order of module- See Also:
- Constant Field Values
-
ORDER_THREADS
static final int ORDER_THREADS
Order of module- See Also:
- Constant Field Values
-
ORDER_CALENDAR
static final int ORDER_CALENDAR
Order of module- See Also:
- Constant Field Values
-
ORDER_TASKS
static final int ORDER_TASKS
Order of module- See Also:
- Constant Field Values
-
ORDER_WIKI
static final int ORDER_WIKI
Order of module- See Also:
- Constant Field Values
-
-
Method Detail
-
getModuleTitle
I18nizableText getModuleTitle()
Get the module title- Returns:
- The title
-
getModuleDescription
I18nizableText getModuleDescription()
Get the module title- Returns:
- The title
-
getModuleName
String getModuleName()
Get the module name- Returns:
- the module name
-
getOrder
int getOrder()
Get the module order- Returns:
- the priority in menus
-
activateModule
void activateModule(Project project)
Activate the module for the project, creating the module pages- Parameters:
project- The project
-
initializeSitemap
void initializeSitemap(Project project, Sitemap sitemap)
Initialize the sitemap for the module- Parameters:
project- The project of the modulesitemap- The sitemap
-
deactivateModule
void deactivateModule(Project project)
Deactivate a module- Parameters:
project- The project
-
deleteData
void deleteData(Project project)
Delete a module and all related data (pages, events, resources, ...)- Parameters:
project- The project
-
getAllowedEventTypes
Set<String> getAllowedEventTypes()
Get the set of allowed event type for the module- Returns:
- The set of allowed event types
-
getModuleRoot
ModifiableResourceCollection getModuleRoot(Project project, boolean create)
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
String getModuleUrl(Project project)
Get the URL of the first module's page- Parameters:
project- The project- Returns:
- the module url
-
compareTo
default int compareTo(WorkspaceModule that)
- Specified by:
compareToin interfaceComparable<WorkspaceModule>
-
-