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.UIPopupComponent
Created by The eXo Platform SAS
Author : eXoPlatform
exo@exoplatform.com
Nov 18, 2014
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic classstatic classstatic classstatic classstatic classNested classes/interfaces inherited from class org.exoplatform.webui.core.UIContainer
org.exoplatform.webui.core.UIContainer.SelectTabActionListener -
Field Summary
FieldsFields inherited from class org.exoplatform.webui.form.UIForm
ACTION, SUBCOMPONENT_IDFields inherited from class org.exoplatform.webui.core.UIComponent
AJAX_ASYNC, config, OBJECTID, UICOMPONENT, uiparent, USE_WEBUI_RESOURCES -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidactivate()voidbooleanUsed 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.voidorg.exoplatform.services.jcr.core.ExtendedNodegetNode()getOwner()getPermission(String name) static StringgetValue()booleanvoidinit()booleanisGroupType(String name) booleanvoidvoidsetPermissionDropDown(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, urlMethods 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, setRenderedChildrenOfTypesMethods 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 Details
-
comment
-
-
Constructor Details
-
UIShareDocuments
public UIShareDocuments()
-
-
Method Details
-
hasPermissionDropDown
public boolean hasPermissionDropDown() -
setPermissionDropDown
public void setPermissionDropDown(boolean permDropDown) -
removePermission
-
updatePermission
-
isGroupType
- Returns:
- true if given name is a Group type, not a Space
-
getPortalLoginRedirectURL
-
addPermission
- Throws:
Exception
-
getValue
-
init
public void init() -
getNode
public org.exoplatform.services.jcr.core.ExtendedNode getNode() -
getIconURL
-
setSelectedNode
public void setSelectedNode(org.exoplatform.services.wcm.core.NodeLocation node) -
getWhoHasAccess
-
canEdit
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
-
isOwner
-
getOwner
-
getAllPermissions
-
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
-