Class CalendarPermission

java.lang.Object
org.exoplatform.agenda.model.CalendarPermission
All Implemented Interfaces:
Serializable, Cloneable

public class CalendarPermission extends Object implements Cloneable, Serializable
See Also:
  • Constructor Details

    • CalendarPermission

      public CalendarPermission(boolean canCreate, boolean canEdit, boolean canInviteeEdit)
      Builds the permissions a calendar grants, publishing left refused.
      Parameters:
      canCreate - whether the user may create events in the calendar
      canEdit - whether the user may edit the calendar
      canInviteeEdit - whether invitees may edit the calendar's events
  • Method Details

    • clone

      public CalendarPermission clone()
      Copies the permissions, every field included. Goes through the Lombok-generated all-args constructor (all four 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.
      Overrides:
      clone in class Object
      Returns:
      a copy of these permissions