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

      • comment

        public String comment
    • Constructor Detail

      • UIShareDocuments

        public UIShareDocuments()
    • Method Detail

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

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