public interface WorkspaceModule
Modifier and Type | Method and Description |
---|---|
void |
activateModule(Project project)
Activate the module for the project, creating the module pages
|
void |
deactivateModule(Project project)
Delete all data related to the module in the project, and the module pages
|
Set<String> |
getAllowedEventTypes()
Get the set of allowed event type for the module
|
String |
getId()
Get the module Id
|
AmetysObjectIterable<Page> |
getModulePages(Project project,
String language)
Retrieves the pages of the module
|
ModifiableResourceCollection |
getModuleRoot(Project project,
boolean create)
Get the module root node for the given project
|
I18nizableText |
getModuleTitle()
Get the module title
|
void |
initializeSitemap(Sitemap sitemap)
Initialize the sitemap for the module
|
I18nizableText getModuleTitle()
void activateModule(Project project)
project
- The projectvoid initializeSitemap(Sitemap sitemap)
sitemap
- The sitemapvoid deactivateModule(Project project)
project
- The projectSet<String> getAllowedEventTypes()
ModifiableResourceCollection getModuleRoot(Project project, boolean create)
project
- The project containing the modulecreate
- True to create the node if it does not existsAmetysObjectIterable<Page> getModulePages(Project project, String language)
project
- The projectlanguage
- the sitemap language or null
for all sitemap languages.