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
Workspaces module for editorial pages
-
Field Summary
Modifier and TypeFieldDescriptionprotected ContentSearcherFactory
The content searcher factoryprotected WorkflowProvider
The workflow providerstatic final String
Avalon ROLEFields inherited from class org.ametys.plugins.workspaces.AbstractWorkspaceModule
__SIZE_ERROR, __SIZE_INACTIVE, _activityStream, _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.WorkspaceModule
GROUP_HEADER_ACTIVATED_ID, GROUP_HEADER_ELEMENTS_ID, GROUP_HEADER_LAST_ACTIVITY_ID, GROUP_HEADER_SIZE_ID, ORDER_ABOUT, ORDER_ALERTS, ORDER_CALENDAR, ORDER_DOCUMENTS, ORDER_FORUMS, ORDER_MEMBERS, ORDER_MINISITE, ORDER_NEWS, ORDER_TASKS, ORDER_WALLCONTENT
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected 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 moduleGet the headers of statistics_getInternalStatistics
(Project project, boolean isActive) Get the internal statistics of the moduleprotected long
_getModuleSize
(Project project) Get the size of module in bytesprotected void
Initialize the default zone for the first section of mini siteprotected boolean
Check if module size should be shown or notGet the set of allowed event type for the moduleprotected String
Get the name of the first section of minisiteprotected I18nizableText
Get the title of the first section of minisitegetId()
Get the module IdGet the module titleGet the module nameprotected String
Returns the module page's nameprotected String
Returns the template to use for module's page.protected I18nizableText
Returns the module page's title as i18nGet the module titleint
getOrder()
Get the module orderprotected void
initializeModulePage
(ModifiablePage modulePage) Initialize the module pageboolean
Determines if the module is unactivated by defaultvoid
service
(ServiceManager manager) Methods inherited from class org.ametys.plugins.workspaces.AbstractWorkspaceModule
_createModulePage, _deleteActivities, _deletePages, _getAmetysObject, _getDefaultXslt, _getModuleLastActivity, _getModulePages, _internalActivateModule, _internalDeactivateModule, _internalDeleteData, _setPagesVisibility, _showActivatedStatus, _showLastActivity, activateModule, contextualize, deactivateModule, deleteData, getAllEventTypes, getModuleRoot, getModuleSizeKey, getModuleUrl, getStatisticModel, getStatistics, initializeSitemap, setPluginInfo
Methods inherited from class org.ametys.runtime.plugin.component.AbstractLogEnabled
getLogger, setLogger
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.ametys.plugins.workspaces.project.modules.WorkspaceModule
compareTo
-
Field Details
-
MINISITE_MODULE_ID
Avalon ROLE -
_workflowProvider
The workflow provider -
_contentSearcherFactory
The content searcher factory
-
-
Constructor Details
-
MiniSiteWorkspaceModule
public MiniSiteWorkspaceModule()
-
-
Method Details
-
service
- Specified by:
service
in interfaceServiceable
- Overrides:
service
in classAbstractWorkspaceModule
- Throws:
ServiceException
-
getId
Description copied from interface:WorkspaceModule
Get the module Id- Returns:
- The module ID
-
isUnactivatedByDefault
Description copied from interface:WorkspaceModule
Determines if the module is unactivated by default- Returns:
- true if the module is not proposed by default
-
getModuleName
Description copied from interface:WorkspaceModule
Get the module name- Returns:
- the module name
-
getOrder
Description copied from interface:WorkspaceModule
Get the module order- Returns:
- the priority in menus
-
getModulePageName
Description copied from class:AbstractWorkspaceModule
Returns the module page's name- Specified by:
getModulePageName
in classAbstractWorkspaceModule
- Returns:
- The module page's name
-
getModuleTitle
Description copied from interface:WorkspaceModule
Get the module title- Returns:
- The title
-
getModuleDescription
Description copied from interface:WorkspaceModule
Get the module title- Returns:
- The title
-
getModulePageTitle
Description copied from class:AbstractWorkspaceModule
Returns the module page's title as i18n- Specified by:
getModulePageTitle
in classAbstractWorkspaceModule
- Returns:
- The module page's title
-
getFirstSectionName
Get the name of the first section of minisite- Returns:
- the section's name
-
getFirstSectionTitle
Get the title of the first section of minisite- Returns:
- the section's title
-
getModulePageTemplate
Description copied from class:AbstractWorkspaceModule
Returns the template to use for module's page. Can be null if the page should be a node page- Overrides:
getModulePageTemplate
in classAbstractWorkspaceModule
- Returns:
- The template
-
initializeModulePage
Description copied from class:AbstractWorkspaceModule
Initialize the module page- Specified by:
initializeModulePage
in classAbstractWorkspaceModule
- Parameters:
modulePage
- The module page
-
_createAndInitializeFirstSectionPage
protected ModifiablePage _createAndInitializeFirstSectionPage(ModifiablePage modulePage, String name, I18nizableText pageTitle) Create the first section of minisite if does not exist- Parameters:
modulePage
- the module pagename
- the name of section to createpageTitle
- the page title- Returns:
- the created page or null if already exist
-
_initializeFirstSectionDefaultZone
Initialize the default zone for the first section of mini site- Parameters:
page
- The first page of minisite
-
_createDefaultContent
protected 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 sitesitemapName
- the name of the sitemaptitle
- The content title- Returns:
- The content
- Throws:
com.opensymphony.workflow.WorkflowException
- if an error occurred
-
getAllowedEventTypes
Description copied from interface:WorkspaceModule
Get the set of allowed event type for the module- Returns:
- The set of allowed event types
-
_getInternalStatistics
Description copied from class:AbstractWorkspaceModule
Get the internal statistics of the module- Overrides:
_getInternalStatistics
in classAbstractWorkspaceModule
- Parameters:
project
- The projectisActive
- true if module is active- Returns:
- a map of internal statistics
-
_getInternalStatisticModel
Description copied from class:AbstractWorkspaceModule
Get the headers of statistics- Overrides:
_getInternalStatisticModel
in classAbstractWorkspaceModule
- Returns:
- a list of statistics headers
-
_getModuleSize
Description copied from class:AbstractWorkspaceModule
Get the size of module in bytes- Overrides:
_getModuleSize
in classAbstractWorkspaceModule
- Parameters:
project
- The project- Returns:
- the size of module in bytes
-
_showModuleSize
Description copied from class:AbstractWorkspaceModule
Check if module size should be shown or not- Overrides:
_showModuleSize
in classAbstractWorkspaceModule
- Returns:
- true if module size should be shown
-