public class ThreadWorkspaceModule extends AbstractWorkspaceModule
Modifier and Type | Field and Description |
---|---|
private static String |
__MODULE_TITLE_KEY
Module i18n title key
|
private static String |
__THREAD_MODULE_TAG
Tag on the main page holding the thread module
|
private static String |
__WORKSPACES_THREADS_NODE_NAME
Workspaces threads node name
|
static String |
THREAD_MODULE_ID
The id of thread module
|
_context, _currentUserProvider, _i18nUtils, _observationManager, _pageDAO, _pluginName, _projectManager, _projectRightHelper, _resolver, _rightManager, _serviceEP, _skinsManager, _userHelper, _userManager
Constructor and Description |
---|
ThreadWorkspaceModule() |
Modifier and Type | Method and Description |
---|---|
protected <A extends AmetysObject> |
_getAmetysObject(ModifiableTraversableAmetysObject parent,
String name,
String type,
boolean create)
Utility method to get or create an ametys object
|
Set<String> |
getAllowedEventTypes()
Get the set of allowed event type for the module
|
String |
getId()
Get the module Id
|
protected String |
getModulePageName()
Returns the module page's name
|
protected I18nizableText |
getModulePageTitle()
Returns the module page's title as i18n
|
ModifiableResourceCollection |
getModuleRoot(Project project,
boolean create)
Get the module root node for the given project
|
protected String |
getModuleTagName()
Returns the tag of apply to module page
|
I18nizableText |
getModuleTitle()
Get the module title
|
Map<String,Object> |
getThreadModuleRights()
Retrieve the current user rights on the thread module
|
String |
getThreadUri(Project project,
String threadId,
String language)
Get the URI of a thread in project'site
|
protected void |
initializeModulePage(ModifiablePage forumPage)
Initialize the module page
|
_createModulePage, _deletePages, _getDefaultXslt, _internalActivateModule, _internalDeactivateModule, activateModule, contextualize, deactivateModule, getModulePages, getModulePageTemplate, initializeSitemap, service, setPluginInfo
getLogger, setLogger
public static final String THREAD_MODULE_ID
private static final String __THREAD_MODULE_TAG
private static final String __WORKSPACES_THREADS_NODE_NAME
private static final String __MODULE_TITLE_KEY
public ThreadWorkspaceModule()
public String getId()
WorkspaceModule
protected String getModulePageName()
AbstractWorkspaceModule
getModulePageName
in class AbstractWorkspaceModule
public I18nizableText getModuleTitle()
WorkspaceModule
protected I18nizableText getModulePageTitle()
AbstractWorkspaceModule
getModulePageTitle
in class AbstractWorkspaceModule
protected String getModuleTagName()
AbstractWorkspaceModule
getModuleTagName
in class AbstractWorkspaceModule
protected void initializeModulePage(ModifiablePage forumPage)
AbstractWorkspaceModule
initializeModulePage
in class AbstractWorkspaceModule
forumPage
- The module pagepublic String getThreadUri(Project project, String threadId, String language)
project
- The projectthreadId
- The id of threadlanguage
- The sitemap languagepublic Map<String,Object> getThreadModuleRights()
public ModifiableResourceCollection getModuleRoot(Project project, boolean create)
WorkspaceModule
project
- The project containing the modulecreate
- True to create the node if it does not existsprotected <A extends AmetysObject> A _getAmetysObject(ModifiableTraversableAmetysObject parent, String name, String type, boolean create) throws AmetysRepositoryException
A
- A sub class of AmetysObjectparent
- The parent objectname
- The ametys object nametype
- The ametys object typecreate
- True to create the object if it does not existAmetysRepositoryException
- if an repository error occurspublic Set<String> getAllowedEventTypes()
WorkspaceModule