Package org.exoplatform.wiki.webui
Class UIWikiPermalinkForm
- java.lang.Object
-
- org.exoplatform.webui.core.UIComponent
-
- org.exoplatform.webui.core.UIContainer
-
- org.exoplatform.webui.form.UIForm
-
- org.exoplatform.wiki.webui.UIWikiPermalinkForm
-
- All Implemented Interfaces:
org.exoplatform.webui.core.UIPopupComponent
public class UIWikiPermalinkForm extends org.exoplatform.webui.form.UIForm implements org.exoplatform.webui.core.UIPopupComponent
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classUIWikiPermalinkForm.MakePublicActionListenerstatic classUIWikiPermalinkForm.ManagePermisisonsActionListenerstatic classUIWikiPermalinkForm.RestrictActionListener
-
Field Summary
Fields Modifier and Type Field Description static StringMAKE_PUBLIC_ACTIONstatic StringMANAGE_PERMISSION_ACTIONstatic StringRESTRICT_ACTION
-
Constructor Summary
Constructors Constructor Description UIWikiPermalinkForm()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidactivate()protected booleancanModifyPagePermission()protected booleancanPublicAndRetrictPage()voiddeActivate()protected static StringgetPermanlink()Get the permalink of current wiki page
With the current page param: type = "group" owner = "spaces/test_space" pageId = "test_page"
The permalink will be: http://int.exoplatform.org/portal/intranet/wiki/group/spaces/test_space/test_pageprotected booleanisCurrentPagePublic()-
Methods inherited from class org.exoplatform.webui.form.UIForm
addUIComponentInput, addUIFormInput, addUIFormInput, begin, end, event, event, event, getActions, getLabel, getLabel, getSubmitAction, getUICheckBoxInput, getUIComponentName, getUIFormCheckBoxInput, getUIFormDateTimeInput, getUIFormInputInfo, getUIFormSelectBox, getUIFormTextAreaInput, getUIInput, getUIStringInput, invokeGetBindingBean, invokeSetBindingBean, isMultipart, processRender, renderField, renderField, reset, setActions, setMultiPart, setSubmitAction, url
-
Methods inherited from class org.exoplatform.webui.core.UIContainer
addChild, addChild, findComponentById, findComponentOfType, findFirstComponentOfType, getChild, getChild, getChildById, getChildren, hasChildren, removeChild, removeChildById, renderChild, renderChild, renderChild, renderChild, renderChildren, renderChildren, renderUIComponent, replaceChild, replaceChild, setChildren, setRenderedChild, setRenderedChild, setRenderedChildrenOfTypes
-
Methods inherited from class org.exoplatform.webui.core.UIComponent
broadcast, buildModelObject, createEvent, createUIComponent, createUIComponent, createUIComponent, doAsync, event, getAncestorOfType, getApplicationComponent, getComponentConfig, getId, getName, getParent, getTemplate, getTemplateResourceResolver, isRendered, loadConfirmMesssage, processAction, processDecode, renderEventURL, setComponentConfig, setComponentConfig, setId, setParent, setRendered, setRenderSibling, url, url
-
-
-
-
Field Detail
-
RESTRICT_ACTION
public static final String RESTRICT_ACTION
- See Also:
- Constant Field Values
-
MAKE_PUBLIC_ACTION
public static final String MAKE_PUBLIC_ACTION
- See Also:
- Constant Field Values
-
MANAGE_PERMISSION_ACTION
public static final String MANAGE_PERMISSION_ACTION
- See Also:
- Constant Field Values
-
-
Method Detail
-
activate
public void activate()
- Specified by:
activatein interfaceorg.exoplatform.webui.core.UIPopupComponent
-
deActivate
public void deActivate()
- Specified by:
deActivatein interfaceorg.exoplatform.webui.core.UIPopupComponent
-
canModifyPagePermission
protected boolean canModifyPagePermission() throws Exception- Throws:
Exception
-
canPublicAndRetrictPage
protected boolean canPublicAndRetrictPage() throws Exception- Throws:
Exception
-
getPermanlink
protected static String getPermanlink() throws Exception
Get the permalink of current wiki page
With the current page param:- type = "group"
- owner = "spaces/test_space"
- pageId = "test_page"
The permalink will be:- http://int.exoplatform.org/portal/intranet/wiki/group/spaces/test_space/test_page
- Returns:
- The permalink of current wiki page
- Throws:
Exception
-
-