java.lang.Object
org.exoplatform.webui.core.UIComponent
org.exoplatform.webui.core.UIContainer
org.exoplatform.webui.form.UIForm
org.exoplatform.ecm.webui.component.explorer.popup.actions.UIShareDocuments
All Implemented Interfaces:
org.exoplatform.webui.core.UIPopupComponent

public class UIShareDocuments extends org.exoplatform.webui.form.UIForm implements org.exoplatform.webui.core.UIPopupComponent
Created by The eXo Platform SAS Author : eXoPlatform exo@exoplatform.com Nov 18, 2014
  • Nested Class Summary

    Nested Classes

    Nested classes/interfaces inherited from class org.exoplatform.webui.core.UIContainer

    org.exoplatform.webui.core.UIContainer.SelectTabActionListener
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
     

    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, USE_WEBUI_RESOURCES
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
     
    void
     
    boolean
    canEdit(String username)
    Used to check edit permission on the current document node for users, spaces members
    boolean
    canEdit(org.exoplatform.services.security.Identity identity)
    Used to check edit permission on the current document node for the logged in user.
    void
     
     
     
     
    org.exoplatform.services.jcr.core.ExtendedNode
     
     
     
    static String
     
     
     
    boolean
     
    void
     
    boolean
     
    boolean
    isOwner(String username)
     
    void
     
    void
    setPermissionDropDown(boolean permDropDown)
     
    void
    setSelectedNode(org.exoplatform.services.wcm.core.NodeLocation node)
     
    void
    updatePermission(String id, String permission)
     

    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, 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

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • comment

      public String comment
  • Constructor Details

    • UIShareDocuments

      public UIShareDocuments()
  • Method Details

    • hasPermissionDropDown

      public boolean hasPermissionDropDown()
    • setPermissionDropDown

      public void setPermissionDropDown(boolean permDropDown)
    • removePermission

      public void removePermission(String id)
    • updatePermission

      public void updatePermission(String id, String permission)
    • isGroupType

      public boolean isGroupType(String name)
      Returns:
      true if given name is a Group type, not a Space
    • getPortalLoginRedirectURL

      public static String getPortalLoginRedirectURL()
    • addPermission

      public void addPermission() throws Exception
      Throws:
      Exception
    • getValue

      public String getValue()
    • init

      public void init()
    • getNode

      public org.exoplatform.services.jcr.core.ExtendedNode getNode()
    • getIconURL

      public String getIconURL()
    • setSelectedNode

      public void setSelectedNode(org.exoplatform.services.wcm.core.NodeLocation node)
    • getWhoHasAccess

      public Set<String> getWhoHasAccess()
    • canEdit

      public boolean canEdit(String username)
      Used to check edit permission on the current document node for users, spaces members
      Parameters:
      username -
      Returns:
      True if the given username has Edit permission on the current node.
    • canEdit

      public boolean canEdit(org.exoplatform.services.security.Identity identity)
      Used to check edit permission on the current document node for the logged in user.
      Parameters:
      identity -
      Returns:
      True if the given identity has Edit permission on the current node.
    • getPermission

      public String getPermission(String name)
    • isOwner

      public boolean isOwner(String username)
    • getOwner

      public String getOwner()
    • getAllPermissions

      public Map<String,String> getAllPermissions()
    • getComment

      public String getComment()
    • 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