org.exoplatform.wiki.webui
Class UIWikiPermalinkForm

java.lang.Object
  extended by org.exoplatform.webui.core.UIComponent
      extended by org.exoplatform.webui.core.UIContainer
          extended by org.exoplatform.webui.form.UIForm
              extended by 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
static class UIWikiPermalinkForm.MakePublicActionListener
           
static class UIWikiPermalinkForm.ManagePermisisonsActionListener
           
static class UIWikiPermalinkForm.RestrictActionListener
           
 
Nested classes/interfaces inherited from class org.exoplatform.webui.core.UIContainer
org.exoplatform.webui.core.UIContainer.SelectTabActionListener
 
Field Summary
static String MAKE_PUBLIC_ACTION
           
static String MANAGE_PERMISSION_ACTION
           
static String RESTRICT_ACTION
           
 
Fields inherited from class org.exoplatform.webui.form.UIForm
ACTION, SUBCOMPONENT_ID
 
Fields inherited from class org.exoplatform.webui.core.UIComponent
AJAX_ASYNC, config, OBJECTID, UICOMPONENT, uiparent
 
Constructor Summary
UIWikiPermalinkForm()
           
 
Method Summary
 void activate()
           
protected  boolean canModifyPagePermission()
           
protected  boolean canPublicAndRetrictPage()
           
 void deActivate()
           
protected static String getPermanlink()
          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
protected  boolean isCurrentPagePublic()
           
 
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, 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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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
Constructor Detail

UIWikiPermalinkForm

public UIWikiPermalinkForm()
                    throws Exception
Throws:
Exception
Method Detail

activate

public void activate()
Specified by:
activate in interface org.exoplatform.webui.core.UIPopupComponent

deActivate

public void deActivate()
Specified by:
deActivate in interface org.exoplatform.webui.core.UIPopupComponent

canModifyPagePermission

protected boolean canModifyPagePermission()
                                   throws Exception
Throws:
Exception

isCurrentPagePublic

protected boolean isCurrentPagePublic()
                               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
  • type = "group"
  • owner = "spaces/test_space"
  • pageId = "test_page"

  • http://int.exoplatform.org/portal/intranet/wiki/group/spaces/test_space/test_page

  • Returns:
    The permalink of current wiki page
    Throws:
    Exception


    Copyright © 2003-2013 eXo Platform SAS. All Rights Reserved.