Class UIShareDocuments
- 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.UIPopupComponentCreated by The eXo Platform SAS Author : eXoPlatform exo@exoplatform.com Nov 18, 2014
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classUIShareDocuments.CancelActionListenerstatic classUIShareDocuments.ChangeActionListenerstatic classUIShareDocuments.ChangePermissionActionListenerstatic classUIShareDocuments.ConfirmActionListenerstatic classUIShareDocuments.PermissionExceptionstatic classUIShareDocuments.TextChangeActionListener
-
Constructor Summary
Constructors Constructor Description UIShareDocuments()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidactivate()voidaddPermission()booleancanEdit(String username)Used to check edit permission on the current document node for users, spaces membersbooleancanEdit(org.exoplatform.services.security.Identity identity)Used to check edit permission on the current document node for the logged in user.voiddeActivate()Map<String,String>getAllPermissions()StringgetComment()StringgetDocumentName()StringgetIconURL()Map<String,String>getInitialValues(String invitees)org.exoplatform.services.jcr.core.ExtendedNodegetNode()StringgetOwner()StringgetPermission(String name)static StringgetPortalLoginRedirectURL()StringgetRestURL()StringgetValue()Set<String>getWhoHasAccess()booleanhasPermissionDropDown()voidinit()booleanisGroupType(String name)booleanisOwner(String username)voidremovePermission(String id)voidsetPermissionDropDown(boolean permDropDown)voidsetSelectedNode(org.exoplatform.services.wcm.core.NodeLocation node)voidupdatePermission(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, 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
-
comment
public String comment
-
-
Method Detail
-
hasPermissionDropDown
public boolean hasPermissionDropDown()
-
setPermissionDropDown
public void setPermissionDropDown(boolean permDropDown)
-
removePermission
public void removePermission(String id)
-
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
-
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.
-
isOwner
public boolean isOwner(String username)
-
getOwner
public String getOwner()
-
getRestURL
public String getRestURL()
-
getComment
public String getComment()
-
activate
public void activate()
- Specified by:
activatein interfaceorg.exoplatform.webui.core.UIPopupComponent
-
deActivate
public void deActivate()
- Specified by:
deActivatein interfaceorg.exoplatform.webui.core.UIPopupComponent
-
-