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
public class WallContentModule extends AbstractWorkspaceModule
Workspace module for wall content
-
-
Field Summary
Fields Modifier and Type Field Description private static String__WORKSPACES_WALLCONTENT_NODE_NAMEWorkspaces wallcontent node nameprotected WebContentDAO_contentDAOThe content DAOprotected ZoneDAO_zoneDAOThe zone DAOprotected static String[]SEARCH_SERVICE_CONTENT_TYPESSearch service content typesprotected static String[]SEARCH_SERVICE_CONTEXTSSearch service contextsprotected static String[]SEARCH_SERVICE_RETURNABLESSearch service returnablesprotected static String[]SEARCH_SERVICE_SORTSSearch service sortsprotected static StringSEARCH_SERVICE_XSLTSearch service xsltstatic StringWALLCONTENT_MODULE_IDThe id of calendar modulestatic StringWALLCONTENT_SERVICE_IDThe id of wall content service-
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.WorkspaceModule
ORDER_ALERTS, ORDER_CALENDAR, ORDER_DOCUMENTS, ORDER_MEMBERS, ORDER_NEWS, ORDER_TASKS, ORDER_THREADS, ORDER_WALLCONTENT, ORDER_WIKI
-
-
Constructor Summary
Constructors Constructor Description WallContentModule()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected 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 contentsprivate void_deleteWallContents(Project project)protected void_internalDeactivateModule(Project project)Internal process when module is deactivatedprotected void_internalDeleteData(Project project)Internal process to delete dataprivate void_removeWallService(Project project)Set<String>getAllowedEventTypes()Get the set of allowed event type for the moduleStringgetId()Get the module IdI18nizableTextgetModuleDescription()Get the module titleStringgetModuleName()Get the module nameprotected StringgetModulePageName()Returns the module page's nameprotected 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 pagevoidservice(ServiceManager manager)-
Methods inherited from class org.ametys.plugins.workspaces.AbstractWorkspaceModule
_deleteEvents, _getAmetysObject, _getDefaultXslt, _getModulePages, _internalActivateModule, _setPagesVisibility, activateModule, contextualize, deactivateModule, deleteData, getModulePageTemplate, getModuleUrl, 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 Detail
-
WALLCONTENT_MODULE_ID
public static final String WALLCONTENT_MODULE_ID
The id of calendar module
-
WALLCONTENT_SERVICE_ID
public static final String WALLCONTENT_SERVICE_ID
The id of wall content service- See Also:
- Constant Field Values
-
SEARCH_SERVICE_CONTENT_TYPES
protected static final String[] SEARCH_SERVICE_CONTENT_TYPES
Search service content types
-
SEARCH_SERVICE_RETURNABLES
protected static final String[] SEARCH_SERVICE_RETURNABLES
Search service returnables
-
SEARCH_SERVICE_SORTS
protected static final String[] SEARCH_SERVICE_SORTS
Search service sorts
-
SEARCH_SERVICE_CONTEXTS
protected static final String[] SEARCH_SERVICE_CONTEXTS
Search service contexts
-
SEARCH_SERVICE_XSLT
protected static final String SEARCH_SERVICE_XSLT
Search service xslt- See Also:
- Constant Field Values
-
__WORKSPACES_WALLCONTENT_NODE_NAME
private static final String __WORKSPACES_WALLCONTENT_NODE_NAME
Workspaces wallcontent node name- See Also:
- Constant Field Values
-
_contentDAO
protected WebContentDAO _contentDAO
The content DAO
-
-
Constructor Detail
-
WallContentModule
public WallContentModule()
-
-
Method Detail
-
service
public void service(ServiceManager manager) throws ServiceException
- Specified by:
servicein interfaceServiceable- Overrides:
servicein classAbstractWorkspaceModule- Throws:
ServiceException
-
getId
public String getId()
Description copied from interface:WorkspaceModuleGet the module Id- Returns:
- The module ID
-
getModuleName
public String getModuleName()
Description copied from interface:WorkspaceModuleGet the module name- Returns:
- the module name
-
getOrder
public int getOrder()
Description copied from interface:WorkspaceModuleGet the module order- Returns:
- the priority in menus
-
getAllowedEventTypes
public Set<String> getAllowedEventTypes()
Description copied from interface:WorkspaceModuleGet the set of allowed event type for the module- Returns:
- The set of allowed event types
-
getModuleRoot
public 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 modulecreate- 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
-
getModulePageName
protected String getModulePageName()
Description copied from class:AbstractWorkspaceModuleReturns the module page's name- Specified by:
getModulePageNamein classAbstractWorkspaceModule- Returns:
- The module page's name
-
getModuleTitle
public I18nizableText getModuleTitle()
Description copied from interface:WorkspaceModuleGet the module title- Returns:
- The title
-
getModuleDescription
public I18nizableText getModuleDescription()
Description copied from interface:WorkspaceModuleGet the module title- Returns:
- The title
-
getModulePageTitle
protected I18nizableText getModulePageTitle()
Description copied from class:AbstractWorkspaceModuleReturns the module page's title as i18n- Specified by:
getModulePageTitlein classAbstractWorkspaceModule- Returns:
- The module page's title
-
initializeModulePage
protected void initializeModulePage(ModifiablePage modulePage)
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
protected void _deletePages(Project project)
Description copied from class:AbstractWorkspaceModuleDelete the module pages and their related contents- Overrides:
_deletePagesin classAbstractWorkspaceModule- Parameters:
project- The project
-
_internalDeactivateModule
protected void _internalDeactivateModule(Project project)
Description copied from class:AbstractWorkspaceModuleInternal process when module is deactivated- Overrides:
_internalDeactivateModulein classAbstractWorkspaceModule- Parameters:
project- The project
-
_internalDeleteData
protected void _internalDeleteData(Project project)
Description copied from class:AbstractWorkspaceModuleInternal process to delete data- Overrides:
_internalDeleteDatain classAbstractWorkspaceModule- Parameters:
project- The project
-
_deleteWallContents
private void _deleteWallContents(Project project)
-
_removeWallService
private void _removeWallService(Project project)
-
-