Class CalendarEntity

  • All Implemented Interfaces:
    Serializable, WebEntity

    public class CalendarEntity
    extends Object
    implements WebEntity
    It represents the state of a calendar in a calendar as transmitted within the body of an HTTP response or an HTTP request.
    Author:
    Yohann Chastagnier
    See Also:
    Serialized Form
    • Constructor Detail

      • CalendarEntity

        protected CalendarEntity()
    • Method Detail

      • withURI

        public CalendarEntity withURI​(URI uri)
        Sets a URI to this entity. With this URI, it can then be accessed through the Web.
        Parameters:
        uri - the web entity URI.
        Returns:
        itself.
      • withICalPublicURI

        public CalendarEntity withICalPublicURI​(URI uri)
        Sets a ical public URI to this entity.
        Parameters:
        uri - the web entity URI.
        Returns:
        itself.
      • withICalPrivateURI

        public CalendarEntity withICalPrivateURI​(URI uri)
        Sets a ical public URI to this entity.
        Parameters:
        uri - the web entity URI.
        Returns:
        itself.
      • getURI

        public URI getURI()
        Description copied from interface: WebEntity
        Gets the URI at which this web entity is published and can be accessed.
        Specified by:
        getURI in interface WebEntity
        Returns:
        the web entity URI.
      • setUri

        protected void setUri​(URI uri)
      • getId

        public String getId()
      • setId

        public void setId​(String id)
      • getTitle

        public String getTitle()
      • setTitle

        protected void setTitle​(String title)
      • getZoneId

        public String getZoneId()
      • setZoneId

        public void setZoneId​(String zoneId)
      • getExternalUrl

        public URI getExternalUrl()
      • setExternalUrl

        public void setExternalUrl​(URI externalUrl)
      • isMain

        public boolean isMain()
      • isUserMainPersonal

        public boolean isUserMainPersonal()
      • isUserPersonal

        public boolean isUserPersonal()
      • getOwnerName

        public String getOwnerName()
      • getCreateDate

        public Date getCreateDate()
      • getLastUpdateDate

        public Date getLastUpdateDate()
      • canBeModified

        public boolean canBeModified()
      • canBeDeleted

        public boolean canBeDeleted()
      • merge

        public Calendar merge​(Calendar calendar)
        Merges into given calendar instance the data from the entity.
        System data are not merged (id, creation date, update date, ...)
        Parameters:
        calendar - the calendar which will get the new data.
        Returns:
        the given calendar instance with merged data.