| java.lang.Object ru.emdev.EmForge.web.bean.BaseControllerImpl ru.emdev.EmForge.wiki.web.bean.BaseWikiControllerImpl
All known Subclasses: ru.emdev.EmForge.wiki.web.bean.NewsController, ru.emdev.EmForge.wiki.web.bean.PageInfoController, ru.emdev.EmForge.wiki.web.bean.DiffController, org.emforge.report.web.bean.ReportViewBean, ru.emdev.EmForge.wiki.web.bean.WikiTextEditController, ru.emdev.EmForge.wiki.web.bean.WikiTextViewController, org.emforge.report.web.bean.ReportListBean, ru.emdev.EmForge.wiki.web.bean.SearchController, ru.emdev.EmForge.wiki.web.bean.AttachmentInfoController,
BaseWikiControllerImpl | abstract public class BaseWikiControllerImpl extends BaseControllerImpl (Code) | | Base wiki controller for controllers containing a wiki page
author: spopov |
PAGE_PARAM_NAME | final public static String PAGE_PARAM_NAME(Code) | | |
m_page | protected WikiPage m_page(Code) | | |
m_urlConstructor | protected URLConstructor m_urlConstructor(Code) | | |
createNewWikiPage | public WikiContext createNewWikiPage(String i_newPageName, String i_text) throws WikiException(Code) | | Creates new wiki page with name i_newPageName and with a content; Sets curent user as author and current time as
last modified
Parameters: i_newPageName - Parameters: i_text - wiki context of created page if all OK throws: WikiException - |
getPage | public WikiPage getPage()(Code) | | |
getWikiContext | public WikiContext getWikiContext()(Code) | | |
isCanAddAttachment | public boolean isCanAddAttachment()(Code) | | Same rules as for edit page
True if the current user is a writer, otherwise False |
isCanAddComment | public boolean isCanAddComment()(Code) | | True if the page exists and the current user is not an anonymous, otherwiseFalse |
isCanEditPage | public boolean isCanEditPage()(Code) | | OK, rules for ability to edit page: - Admin can do everything. Addtionally to it: - Normal pages may be edited by
WIKIWRITER users - Project and Milestone descriptions may be edited by Project Managers (ok, by users, allowed to
edit project) - Task descriptions may be edited by owner of task or project manager
True if the current user is a writer, otherwise False |
isEditMilestone | protected boolean isEditMilestone()(Code) | | |
isEditProject | protected boolean isEditProject()(Code) | | |
isEditReport | protected boolean isEditReport()(Code) | | |
isEditTask | protected boolean isEditTask()(Code) | | |
isPageExists | public boolean isPageExists()(Code) | | |
setBpmService | public void setBpmService(BpmService i_bpmService)(Code) | | Parameters: i_bpmService - |
setPageName | public void setPageName(String pageName)(Code) | | Parameters: pageName - |
setProjectService | public void setProjectService(ProjectService projectService)(Code) | | Parameters: projectService - |
setReportService | public void setReportService(ReportService i_reportService)(Code) | | Parameters: i_reportService - |
setUrlConstructor | public void setUrlConstructor(URLConstructor i_urlConstructor)(Code) | | Parameters: i_urlConstructor - |
setUserFactory | public void setUserFactory(UserFactory userFactory)(Code) | | Parameters: userFactory - |
setVersion | public void setVersion(Integer i_version)(Code) | | Parameters: i_version - |
|
|