public class DocumentWorkspaceModule extends AbstractWorkspaceModule
| Modifier and Type | Field and Description |
|---|---|
private static String |
__DOCUMENT_MODULE_TAG
Tag on the main page holding the document module
|
private static String |
__MODULE_TITLE_KEY
Module i18n title key
|
static String |
DODUMENT_MODULE_ID
The id of document module
|
static String |
WORKSPACES_DOCUMENTS_NODE_NAME
Workspaces documents node name
|
_context, _currentUserProvider, _i18nUtils, _observationManager, _pageDAO, _pluginName, _projectManager, _projectRightHelper, _resolver, _rightManager, _serviceEP, _skinsManager, _userHelper, _userManager| Constructor and Description |
|---|
DocumentWorkspaceModule() |
| 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
|
void |
contextualize(Context context) |
Set<String> |
getAllowedEventTypes()
Get the set of allowed event type for the module
|
String |
getFolderUri(Project project,
String collectionId,
String language)
Get the URI of a folder in project'site
|
String |
getId()
Get the module Id
|
Map<String,Object> |
getModuleBaseRights()
Retrieves the set of general rights used in the document module for the current user
|
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
|
protected void |
initializeModulePage(ModifiablePage documentPage)
Initialize the module page
|
_createModulePage, _deletePages, _getDefaultXslt, _internalActivateModule, _internalDeactivateModule, activateModule, deactivateModule, getModulePages, getModulePageTemplate, initializeSitemap, service, setPluginInfogetLogger, setLoggerpublic static final String DODUMENT_MODULE_ID
public static final String WORKSPACES_DOCUMENTS_NODE_NAME
private static final String __DOCUMENT_MODULE_TAG
private static final String __MODULE_TITLE_KEY
public DocumentWorkspaceModule()
public void contextualize(Context context) throws ContextException
contextualize in interface Contextualizablecontextualize in class AbstractWorkspaceModuleContextExceptionpublic String getId()
WorkspaceModulepublic I18nizableText getModuleTitle()
WorkspaceModuleprotected String getModulePageName()
AbstractWorkspaceModulegetModulePageName in class AbstractWorkspaceModuleprotected I18nizableText getModulePageTitle()
AbstractWorkspaceModulegetModulePageTitle in class AbstractWorkspaceModuleprotected String getModuleTagName()
AbstractWorkspaceModulegetModuleTagName in class AbstractWorkspaceModuleprotected void initializeModulePage(ModifiablePage documentPage)
AbstractWorkspaceModuleinitializeModulePage in class AbstractWorkspaceModuledocumentPage - The module pagepublic String getFolderUri(Project project, String collectionId, String language)
project - The projectcollectionId - The id of collectionlanguage - The sitemap languagepublic Map<String,Object> getModuleBaseRights()
public ModifiableResourceCollection getModuleRoot(Project project, boolean create)
WorkspaceModuleproject - 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