Class MiniSiteWorkspaceModule
- java.lang.Object
- 
- org.ametys.runtime.plugin.component.AbstractLogEnabled
- 
- org.ametys.plugins.workspaces.AbstractWorkspaceModule
- 
- org.ametys.plugins.workspaces.minisite.MiniSiteWorkspaceModule
 
 
 
- 
- All Implemented Interfaces:
- Comparable<WorkspaceModule>,- WorkspaceModule,- LogEnabled,- PluginAware,- Contextualizable,- Serviceable
 
 public class MiniSiteWorkspaceModule extends AbstractWorkspaceModule Workspaces module for editorial pages
- 
- 
Field SummaryFields Modifier and Type Field Description protected WorkflowProvider_workflowProviderThe workflow providerstatic StringMINISITE_MODULE_IDAvalon ROLE- 
Fields inherited from class org.ametys.plugins.workspaces.AbstractWorkspaceModule_context, _currentUserProvider, _i18nUtils, _modulesEP, _observationManager, _pageDAO, _pluginName, _projectManager, _projectRightHelper, _resolver, _rightManager, _serviceEP, _skinsManager, _userHelper, _userManager
 - 
Fields inherited from interface org.ametys.plugins.workspaces.project.modules.WorkspaceModuleORDER_ABOUT, ORDER_ALERTS, ORDER_CALENDAR, ORDER_DOCUMENTS, ORDER_MEMBERS, ORDER_MINISITE, ORDER_NEWS, ORDER_TASKS, ORDER_THREADS, ORDER_WALLCONTENT
 
- 
 - 
Constructor SummaryConstructors Constructor Description MiniSiteWorkspaceModule()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description protected ModifiablePage_createAndInitializeFirstSectionPage(ModifiablePage modulePage, String name, I18nizableText pageTitle)Create the first section of minisite if does not existprotected ModifiableWorkflowAwareContent_createDefaultContent(Site site, String sitemapName, String title)Create a new content for a minisite page of the minisite moduleprotected void_initializeFirstSectionDefaultZone(ModifiablePage page)Initialize the default zone for the first section of mini siteSet<String>getAllowedEventTypes()Get the set of allowed event type for the moduleprotected StringgetFirstSectionName()Get the name of the first section of minisiteprotected I18nizableTextgetFirstSectionTitle()Get the title of the first section of minisiteStringgetId()Get the module IdI18nizableTextgetModuleDescription()Get the module titleStringgetModuleName()Get the module nameprotected StringgetModulePageName()Returns the module page's nameprotected StringgetModulePageTemplate()Returns the template to use for module's page.protected I18nizableTextgetModulePageTitle()Returns the module page's title as i18nModifiableResourceCollectiongetModuleRoot(Project project, boolean create)Get the module root node for the given projectI18nizableTextgetModuleTitle()Get the module titleintgetOrder()Get the module orderprotected voidinitializeModulePage(ModifiablePage modulePage)Initialize the module pagebooleanisUnactivatedByDefault()Determines if the module is unactivated by defaultvoidservice(ServiceManager manager)- 
Methods inherited from class org.ametys.plugins.workspaces.AbstractWorkspaceModule_createModulePage, _deleteEvents, _deletePages, _getAmetysObject, _getDefaultXslt, _getModulePages, _internalActivateModule, _internalDeactivateModule, _internalDeleteData, _setPagesVisibility, activateModule, contextualize, deactivateModule, deleteData, getModuleUrl, initializeSitemap, setPluginInfo
 - 
Methods inherited from class org.ametys.runtime.plugin.component.AbstractLogEnabledgetLogger, setLogger
 - 
Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 - 
Methods inherited from interface org.ametys.plugins.workspaces.project.modules.WorkspaceModulecompareTo
 
- 
 
- 
- 
- 
Field Detail- 
MINISITE_MODULE_IDpublic static final String MINISITE_MODULE_ID Avalon ROLE
 - 
_workflowProviderprotected WorkflowProvider _workflowProvider The workflow provider
 
- 
 - 
Constructor Detail- 
MiniSiteWorkspaceModulepublic MiniSiteWorkspaceModule() 
 
- 
 - 
Method Detail- 
servicepublic void service(ServiceManager manager) throws ServiceException - Specified by:
- servicein interface- Serviceable
- Overrides:
- servicein class- AbstractWorkspaceModule
- Throws:
- ServiceException
 
 - 
getIdpublic String getId() Description copied from interface:WorkspaceModuleGet the module Id- Returns:
- The module ID
 
 - 
isUnactivatedByDefaultpublic boolean isUnactivatedByDefault() Description copied from interface:WorkspaceModuleDetermines if the module is unactivated by default- Returns:
- true if the module is not proposed by default
 
 - 
getModuleNamepublic String getModuleName() Description copied from interface:WorkspaceModuleGet the module name- Returns:
- the module name
 
 - 
getOrderpublic int getOrder() Description copied from interface:WorkspaceModuleGet the module order- Returns:
- the priority in menus
 
 - 
getModulePageNameprotected String getModulePageName() Description copied from class:AbstractWorkspaceModuleReturns the module page's name- Specified by:
- getModulePageNamein class- AbstractWorkspaceModule
- Returns:
- The module page's name
 
 - 
getModuleTitlepublic I18nizableText getModuleTitle() Description copied from interface:WorkspaceModuleGet the module title- Returns:
- The title
 
 - 
getModuleDescriptionpublic I18nizableText getModuleDescription() Description copied from interface:WorkspaceModuleGet the module title- Returns:
- The title
 
 - 
getModulePageTitleprotected I18nizableText getModulePageTitle() Description copied from class:AbstractWorkspaceModuleReturns the module page's title as i18n- Specified by:
- getModulePageTitlein class- AbstractWorkspaceModule
- Returns:
- The module page's title
 
 - 
getFirstSectionNameprotected String getFirstSectionName() Get the name of the first section of minisite- Returns:
- the section's name
 
 - 
getFirstSectionTitleprotected I18nizableText getFirstSectionTitle() Get the title of the first section of minisite- Returns:
- the section's title
 
 - 
getModulePageTemplateprotected String getModulePageTemplate() Description copied from class:AbstractWorkspaceModuleReturns the template to use for module's page. Can be null if the page should be a node page- Overrides:
- getModulePageTemplatein class- AbstractWorkspaceModule
- Returns:
- The template
 
 - 
initializeModulePageprotected void initializeModulePage(ModifiablePage modulePage) Description copied from class:AbstractWorkspaceModuleInitialize the module page- Specified by:
- initializeModulePagein class- AbstractWorkspaceModule
- Parameters:
- modulePage- The module page
 
 - 
_createAndInitializeFirstSectionPageprotected ModifiablePage _createAndInitializeFirstSectionPage(ModifiablePage modulePage, String name, I18nizableText pageTitle) Create the first section of minisite if does not exist- Parameters:
- modulePage- the module page
- name- the name of section to create
- pageTitle- the page title
- Returns:
- the created page or null if already exist
 
 - 
_initializeFirstSectionDefaultZoneprotected void _initializeFirstSectionDefaultZone(ModifiablePage page) Initialize the default zone for the first section of mini site- Parameters:
- page- The first page of minisite
 
 - 
_createDefaultContentprotected ModifiableWorkflowAwareContent _createDefaultContent(Site site, String sitemapName, String title) throws com.opensymphony.workflow.WorkflowException Create a new content for a minisite page of the minisite module- Parameters:
- site- The site
- sitemapName- the name of the sitemap
- title- The content title
- Returns:
- The content
- Throws:
- com.opensymphony.workflow.WorkflowException- if an error occurred
 
 - 
getModuleRootpublic ModifiableResourceCollection getModuleRoot(Project project, boolean create) Description copied from interface:WorkspaceModuleGet the module root node for the given project- Parameters:
- project- The project containing the module
- create- 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
 
 - 
getAllowedEventTypespublic Set<String> getAllowedEventTypes() Description copied from interface:WorkspaceModuleGet the set of allowed event type for the module- Returns:
- The set of allowed event types
 
 
- 
 
-