public class UISharedForm extends org.exoplatform.webui.form.UIForm implements UIPopupComponent
| Modifier and Type | Class and Description |
|---|---|
static class |
UISharedForm.AddEntryActionListener |
static class |
UISharedForm.CancelActionListener |
static class |
UISharedForm.CloseActionListener |
static class |
UISharedForm.DeleteEntryActionListener |
static class |
UISharedForm.OpenSelectGroupFormActionListener |
static class |
UISharedForm.OpenSelectMembershipFormActionListener
open select membership popup
|
static class |
UISharedForm.OpenSelectUserFormActionListener |
static class |
UISharedForm.Permission
represents a permission with its owner and his status of edit permission
|
static class |
UISharedForm.SaveActionListener |
static class |
UISharedForm.SelectGroupActionListener |
static class |
UISharedForm.SelectMembershipActionListener |
static class |
UISharedForm.SelectUserActionListener |
| Modifier and Type | Field and Description |
|---|---|
static String |
ADD_ENTRY |
static String |
ADD_ICON |
static String |
CLOSE |
static String |
DELETE_ENTRY |
static String |
GROUP_ICON |
static String |
INPUT_PERMISSION_OWNER |
protected boolean |
isAddNew_ |
static String |
MEMBERSHIP_ICON |
static String |
OPEN_SELECT_GROUP_FORM |
static String |
OPEN_SELECT_MEMBERSHIP_FORM |
static String |
OPEN_SELECT_USER_FORM |
static String |
PERMISSION_ENTRY |
static String |
PERMISSION_GRID |
static String |
POPUP_GROUP_MEMBERSHIP_SELECTOR |
static String |
POPUP_USER_SELECTOR |
static String |
SAVE |
static int |
TYPE_BUTTON |
static String |
USER_ICON |
| Constructor and Description |
|---|
UISharedForm() |
| Modifier and Type | Method and Description |
|---|---|
void |
activate() |
void |
addPermission(UISharedForm.Permission aPermission)
add a permission to be displayed
|
static boolean |
canUserEditCalendar(String userId,
org.exoplatform.calendar.service.Calendar calendar) |
boolean |
containsPermission(String permissionId)
check whether the permission is included in the Permission Grid
|
void |
deActivate() |
Set<org.exoplatform.webui.form.UIFormInputWithActions.ActionData> |
getActionField(String fieldName) |
Set<UISharedForm.Permission> |
getCalendarPermissions() |
String |
getLabel(String id) |
static Set<String> |
getUsersAbleToEditSharedCalendar(org.exoplatform.calendar.service.Calendar calendar)
check edit permission of user on shared calendar
|
void |
init(String username,
org.exoplatform.calendar.service.Calendar calendar,
boolean isAddNew)
init the shared form
|
void |
removePermission(String permissionId)
remove a permission from the grid
|
void |
setActionField(String fieldName,
Set<org.exoplatform.webui.form.UIFormInputWithActions.ActionData> actions) |
void |
updatePermissionOwnerInputWith(String permissionId)
update the value of the permission input after selecting permission from popup
|
addUIComponentInput, addUIFormInput, addUIFormInput, begin, end, event, event, event, getActions, getLabel, getSubmitAction, getUICheckBoxInput, getUIComponentName, getUIFormCheckBoxInput, getUIFormDateTimeInput, getUIFormInputInfo, getUIFormSelectBox, getUIFormTextAreaInput, getUIInput, getUIStringInput, invokeGetBindingBean, invokeSetBindingBean, isMultipart, processRender, renderField, renderField, reset, setActions, setMultiPart, setSubmitAction, urladdChild, addChild, findComponentById, findComponentOfType, findFirstComponentOfType, getChild, getChild, getChildById, getChildren, hasChildren, removeChild, removeChildById, renderChild, renderChild, renderChild, renderChild, renderChildren, renderChildren, renderUIComponent, replaceChild, replaceChild, setChildren, setRenderedChild, setRenderedChild, setRenderedChildrenOfTypesbroadcast, 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, urlprotected boolean isAddNew_
public static final String PERMISSION_GRID
public static final String PERMISSION_ENTRY
public static final String POPUP_USER_SELECTOR
public static final String POPUP_GROUP_MEMBERSHIP_SELECTOR
public static final String OPEN_SELECT_USER_FORM
public static final String OPEN_SELECT_MEMBERSHIP_FORM
public static final String OPEN_SELECT_GROUP_FORM
public static final String ADD_ENTRY
public static final String DELETE_ENTRY
public static final String USER_ICON
public static final String MEMBERSHIP_ICON
public static final String GROUP_ICON
public static final String ADD_ICON
public static final String INPUT_PERMISSION_OWNER
public static final int TYPE_BUTTON
public static final String SAVE
public static final String CLOSE
public Set<UISharedForm.Permission> getCalendarPermissions()
public void addPermission(UISharedForm.Permission aPermission) throws Exception
aPermission - Exceptionpublic boolean containsPermission(String permissionId)
permissionId - public void removePermission(String permissionId)
public void setActionField(String fieldName, Set<org.exoplatform.webui.form.UIFormInputWithActions.ActionData> actions) throws Exception
Exceptionpublic Set<org.exoplatform.webui.form.UIFormInputWithActions.ActionData> getActionField(String fieldName)
public void activate()
throws Exception
activate in interface UIPopupComponentExceptionpublic void deActivate()
throws Exception
deActivate in interface UIPopupComponentExceptionpublic void init(String username, org.exoplatform.calendar.service.Calendar calendar, boolean isAddNew) throws Exception
username - calendar - isAddNew - Exceptionpublic String getLabel(String id)
getLabel in class org.exoplatform.webui.form.UIFormpublic void updatePermissionOwnerInputWith(String permissionId) throws Exception
permissionId - Exceptionpublic static Set<String> getUsersAbleToEditSharedCalendar(org.exoplatform.calendar.service.Calendar calendar) throws Exception
calendar - ExceptionCopyright © 2003–2021 eXo Platform SAS. All rights reserved.