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 Summary

    Constructors
    Constructor
    Description
    CalendarPermission(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

    Modifier and Type
    Method
    Description
    Copies the permissions, every field included.

    Methods inherited from class java.lang.Object

    equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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 calendar
      canEdit - whether the user may edit the calendar
      canInviteeEdit - 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 calendar
      canEdit - whether the user may edit the calendar
      canInviteeEdit - whether invitees may edit the calendar's events
      canPublish - whether the user may publish the calendar as a link
  • Method Details

    • clone

      public CalendarPermission 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.
      Overrides:
      clone in class Object
      Returns:
      a copy of these permissions