Class WallContentModule
java.lang.Object
org.ametys.runtime.plugin.component.AbstractLogEnabled
org.ametys.plugins.workspaces.AbstractWorkspaceModule
org.ametys.plugins.workspaces.wall.WallContentModule
- All Implemented Interfaces:
Comparable<WorkspaceModule>,WorkspaceModule,LogEnabled,PluginAware,Contextualizable,Serviceable
Workspace module for wall content
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected WebContentDAOThe content DAOprotected ContentSearcherFactoryThe content searcher factoryprotected ZoneDAOThe zone DAOprotected static final String[]Search service content typesprotected static final String[]Search service contextsprotected static final String[]Search service returnablesprotected static final String[]Search service sortsprotected static final StringSearch service xsltstatic final StringThe id of calendar modulestatic final StringThe id of wall content serviceFields 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 ModifiablePage_createModulePage(Project project, Sitemap sitemap, String name, I18nizableText pageTitle, String skinTemplate) Create a new page if not already existsprotected void_deletePages(Project project) Delete the module pages and their related contentsGet 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_internalDeactivateModule(Project project) Internal process when module is deactivatedprotected void_internalDeleteData(Project project) Internal process to delete dataprotected booleanCheck if module size should be shown or notGet 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 I18nizableTextReturns the module page's title as i18nGet the module titleintgetOrder()Get the module orderprotected voidinitializeModulePage(ModifiablePage modulePage) Initialize the module pagevoidservice(ServiceManager manager) Methods inherited from class org.ametys.plugins.workspaces.AbstractWorkspaceModule
_deleteActivities, _getAmetysObject, _getDefaultXslt, _getModuleLastActivity, _getModulePages, _internalActivateModule, _setPagesVisibility, _showActivatedStatus, _showLastActivity, activateModule, contextualize, deactivateModule, deleteData, getAllEventTypes, getModulePageTemplate, 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
-
WALLCONTENT_MODULE_ID
The id of calendar module -
WALLCONTENT_SERVICE_ID
The id of wall content service- See Also:
-
SEARCH_SERVICE_CONTENT_TYPES
Search service content types -
SEARCH_SERVICE_RETURNABLES
Search service returnables -
SEARCH_SERVICE_SORTS
Search service sorts -
SEARCH_SERVICE_CONTEXTS
Search service contexts -
SEARCH_SERVICE_XSLT
Search service xslt- See Also:
-
_zoneDAO
The zone DAO -
_contentDAO
The content DAO -
_contentSearcherFactory
The content searcher factory
-
-
Constructor Details
-
WallContentModule
public WallContentModule()
-
-
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
-
getAllowedEventTypes
Description copied from interface:WorkspaceModuleGet the set of allowed event type for the module- Returns:
- The set of allowed event types
-
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
-
initializeModulePage
Description copied from class:AbstractWorkspaceModuleInitialize the module page- Specified by:
initializeModulePagein classAbstractWorkspaceModule- Parameters:
modulePage- The module page
-
_createModulePage
protected ModifiablePage _createModulePage(Project project, Sitemap sitemap, String name, I18nizableText pageTitle, String skinTemplate) Description copied from class:AbstractWorkspaceModuleCreate a new page if not already exists- Overrides:
_createModulePagein classAbstractWorkspaceModule- Parameters:
project- The module projectsitemap- The sitemap where the page will be createdname- The page's namepageTitle- The page's title as i18nizable textskinTemplate- The template from the skin to apply on the page- Returns:
- the created page or
nullif page already exists
-
_deletePages
Description copied from class:AbstractWorkspaceModuleDelete the module pages and their related contents- Overrides:
_deletePagesin classAbstractWorkspaceModule- Parameters:
project- The project
-
_internalDeactivateModule
Description copied from class:AbstractWorkspaceModuleInternal process when module is deactivated- Overrides:
_internalDeactivateModulein classAbstractWorkspaceModule- Parameters:
project- The project
-
_internalDeleteData
Description copied from class:AbstractWorkspaceModuleInternal process to delete data- Overrides:
_internalDeleteDatain classAbstractWorkspaceModule- Parameters:
project- The project
-
_getInternalStatistics
Description copied from class:AbstractWorkspaceModuleGet the internal statistics of the module- Overrides:
_getInternalStatisticsin classAbstractWorkspaceModule- Parameters:
project- The projectisActive- true if module is active- Returns:
- a map of internal statistics
-
_getInternalStatisticModel
Description copied from class:AbstractWorkspaceModuleGet the headers of statistics- Overrides:
_getInternalStatisticModelin classAbstractWorkspaceModule- Returns:
- a list of statistics headers
-
_getModuleSize
Description copied from class:AbstractWorkspaceModuleGet the size of module in bytes- Overrides:
_getModuleSizein classAbstractWorkspaceModule- Parameters:
project- The project- Returns:
- the size of module in bytes
-
_showModuleSize
Description copied from class:AbstractWorkspaceModuleCheck if module size should be shown or not- Overrides:
_showModuleSizein classAbstractWorkspaceModule- Returns:
- true if module size should be shown
-