Interface WorkspaceModule
-
- All Superinterfaces:
Comparable<WorkspaceModule>
- All Known Implementing Classes:
AboutWorkspaceModule
,AbstractWorkspaceModule
,AlertWorkspaceModule
,CalendarWorkspaceModule
,DocumentWorkspaceModule
,MembersWorkspaceModule
,MiniSiteWorkspaceModule
,NewsWorkspaceModule
,TasksWorkspaceModule
,ThreadWorkspaceModule
,WallContentModule
public interface WorkspaceModule extends Comparable<WorkspaceModule>
Manager for the Workspaces modules
-
-
Field Summary
Fields Modifier and Type Field Description static int
ORDER_ABOUT
Order of modulestatic int
ORDER_ALERTS
Order of modulestatic int
ORDER_CALENDAR
Order of modulestatic int
ORDER_DOCUMENTS
Order of modulestatic int
ORDER_MEMBERS
Order of modulestatic int
ORDER_MINISITE
Order of modulestatic int
ORDER_NEWS
Order of modulestatic int
ORDER_TASKS
Order of modulestatic int
ORDER_THREADS
Order of modulestatic int
ORDER_WALLCONTENT
Order of module
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description void
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, ...)Set<String>
getAllowedEventTypes()
Get the set of allowed event type for the moduleString
getId()
Get the module IdI18nizableText
getModuleDescription()
Get the module titleString
getModuleName()
Get the module nameModifiableResourceCollection
getModuleRoot(Project project, boolean create)
Get the module root node for the given projectI18nizableText
getModuleTitle()
Get the module titleString
getModuleUrl(Project project)
Get the URL of the first module's pageint
getOrder()
Get the module ordervoid
initializeSitemap(Project project, Sitemap sitemap)
Initialize the sitemap for the moduledefault boolean
isUnactivatedByDefault()
Determines if the module is unactivated by default
-
-
-
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_MINISITE
static final int ORDER_MINISITE
Order of module- See Also:
- Constant Field Values
-
ORDER_ABOUT
static final int ORDER_ABOUT
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, Map<String,Object> additionalValues)
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
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
-
isUnactivatedByDefault
default boolean isUnactivatedByDefault()
Determines if the module is unactivated by default- Returns:
- true if the module is not proposed by default
-
compareTo
default int compareTo(WorkspaceModule that)
- Specified by:
compareTo
in interfaceComparable<WorkspaceModule>
-
-