Package org.exoplatform.agenda.model
Class CalendarPermission
java.lang.Object
org.exoplatform.agenda.model.CalendarPermission
- All Implemented Interfaces:
Serializable,Cloneable
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionCalendarPermission(boolean canCreate, boolean canEdit, boolean canInviteeEdit) Builds the permissions a calendar grants, publishing and sharing left refused.CalendarPermission(boolean canCreate, boolean canEdit, boolean canInviteeEdit, boolean canPublish) Builds the permissions a calendar grants, sharing left refused. -
Method Summary
-
Constructor Details
-
CalendarPermission
public CalendarPermission(boolean canCreate, boolean canEdit, boolean canInviteeEdit) Builds the permissions a calendar grants, publishing and sharing left refused.- Parameters:
canCreate- whether the user may create events in the calendarcanEdit- whether the user may edit the calendarcanInviteeEdit- whether invitees may edit the calendar's events
-
CalendarPermission
public CalendarPermission(boolean canCreate, boolean canEdit, boolean canInviteeEdit, boolean canPublish) Builds the permissions a calendar grants, sharing left refused.- Parameters:
canCreate- whether the user may create events in the calendarcanEdit- whether the user may edit the calendarcanInviteeEdit- whether invitees may edit the calendar's eventscanPublish- whether the user may publish the calendar as a link
-
-
Method Details
-
clone
Copies the permissions, every field included. Goes through the Lombok-generated all-args constructor (all five fields, in their declared order) rather than the 3-arg constructor plus a setter: the 3-arg constructor is the one that had its first two arguments swapped here (EXO-90276) without a compiler error, because both are booleans — the all-args form leaves no field for a future addition to silently miss.
-