Class AboutWorkspaceModule
java.lang.Object
org.ametys.runtime.plugin.component.AbstractLogEnabled
org.ametys.plugins.workspaces.AbstractWorkspaceModule
org.ametys.plugins.workspaces.about.AboutWorkspaceModule
- All Implemented Interfaces:
Comparable<WorkspaceModule>,WorkspaceModule,LogEnabled,PluginAware,Contextualizable,Serviceable
Manager for the About module
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected WorkflowProviderThe workflow providerstatic final StringAvalon 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, _userManagerFields 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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected void_initializeAboutDefaultZone(ModifiablePage aboutPage, Site site, String sitemapName, String title) Initialize the default zone for the about pageprotected void_initializeAboutPage(ModifiablePage aboutPage, Site site, String sitemapName, String title, Page parentPage) Initialize the new about pageprotected booleanCheck if activated status should be shown or notcreateAboutContent(Site site, String sitemapName, String title) Create the about contentGet the set of allowed event type for the modulegetId()Get the module IdGet the module titleGet the module nameprotected StringReturns the module page's nameprotected StringReturns the template to use for module's page.protected I18nizableTextReturns the module page's title as i18nGet the module titleintgetOrder()Get the module orderprotected voidInitialize the module pagevoidservice(ServiceManager manager) Methods inherited from class org.ametys.plugins.workspaces.AbstractWorkspaceModule
_createModulePage, _deleteActivities, _deletePages, _getAmetysObject, _getDefaultXslt, _getInternalStatisticModel, _getInternalStatistics, _getModuleLastActivity, _getModulePages, _getModuleSize, _internalActivateModule, _internalDeactivateModule, _internalDeleteData, _setPagesVisibility, _showLastActivity, _showModuleSize, activateModule, contextualize, deactivateModule, deleteData, getAllEventTypes, getModuleRoot, getModuleSizeKey, getModuleUrl, getStatisticModel, getStatistics, initializeSitemap, setPluginInfoMethods inherited from class org.ametys.runtime.plugin.component.AbstractLogEnabled
getLogger, setLoggerMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.ametys.plugins.workspaces.project.modules.WorkspaceModule
compareTo, isUnactivatedByDefault
-
Field Details
-
ABOUT_MODULE_ID
Avalon ROLE -
_workflowProvider
The workflow provider
-
-
Constructor Details
-
AboutWorkspaceModule
public AboutWorkspaceModule()
-
-
Method Details
-
service
- Specified by:
servicein interfaceServiceable- Overrides:
servicein classAbstractWorkspaceModule- Throws:
ServiceException
-
getId
Description copied from interface:WorkspaceModuleGet the module Id- Returns:
- The module ID
-
getModuleName
Description copied from interface:WorkspaceModuleGet the module name- Returns:
- the module name
-
getOrder
Description copied from interface:WorkspaceModuleGet the module order- Returns:
- the priority in menus
-
getModulePageName
Description copied from class:AbstractWorkspaceModuleReturns the module page's name- Specified by:
getModulePageNamein classAbstractWorkspaceModule- Returns:
- The module page's name
-
getModuleTitle
Description copied from interface:WorkspaceModuleGet the module title- Returns:
- The title
-
getModuleDescription
Description copied from interface:WorkspaceModuleGet the module title- Returns:
- The title
-
getModulePageTitle
Description copied from class:AbstractWorkspaceModuleReturns the module page's title as i18n- Specified by:
getModulePageTitlein classAbstractWorkspaceModule- Returns:
- The module page's title
-
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 classAbstractWorkspaceModule- Returns:
- The template
-
initializeModulePage
Description copied from class:AbstractWorkspaceModuleInitialize the module page- Specified by:
initializeModulePagein classAbstractWorkspaceModule- Parameters:
page- The module page
-
_initializeAboutDefaultZone
protected void _initializeAboutDefaultZone(ModifiablePage aboutPage, Site site, String sitemapName, String title) Initialize the default zone for the about page- Parameters:
aboutPage- The about pagesite- The sitesitemapName- The sitemap nametitle- The content title
-
createAboutContent
public ModifiableWorkflowAwareContent createAboutContent(Site site, String sitemapName, String title) throws com.opensymphony.workflow.WorkflowException Create the about content- Parameters:
site- The sitesitemapName- the name of the sitemaptitle- The content title- Returns:
- The content
- Throws:
com.opensymphony.workflow.WorkflowException- if an error occurred
-
_initializeAboutPage
protected void _initializeAboutPage(ModifiablePage aboutPage, Site site, String sitemapName, String title, Page parentPage) Initialize the new about page- Parameters:
aboutPage- The pagesite- The sitesitemapName- The sitemap nametitle- The page titleparentPage- The parent page
-
getAllowedEventTypes
Description copied from interface:WorkspaceModuleGet the set of allowed event type for the module- Returns:
- The set of allowed event types
-
_showActivatedStatus
Description copied from class:AbstractWorkspaceModuleCheck if activated status should be shown or not- Overrides:
_showActivatedStatusin classAbstractWorkspaceModule- Returns:
- true if activated status should be shown
-