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
  • 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()
    • getDocumentName

      public String getDocumentName() throws Exception
      Throws:
      Exception
    • getNode

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

      public String getIconURL()
    • setSelectedNode

      public void setSelectedNode(org.exoplatform.services.wcm.core.NodeLocation node) throws Exception
      Throws:
      Exception
    • 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()
    • getRestURL

      public String getRestURL()
    • getComment

      public String getComment()
    • getInitialValues

      public Map<String,String> getInitialValues(String invitees)
    • 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