Class CaldavURI


  • public class CaldavURI
    extends Object
    We map uris onto an object which may be a calendar or an entity contained within that calendar.

    The response to webdav actions obviously depends upon the type of referenced entity.

    The server will have to determine whether a name represents a publicly available calendar or a user and the access to a calendar will, of course, depend upon the authentication state of the user.

    Author:
    Mike Douglass douglm rpi.edu
    • Method Detail

      • getExists

        public boolean getExists()
        Returns:
        boolean
      • getResource

        public CalDAVResource<?> getResource()
        Returns:
        CalDAVResource
      • getEntity

        public CalDAVEvent<?> getEntity()
        Returns:
        CalDAVEvent
      • getEntityName

        public String getEntityName()
        Returns:
        String
      • getPath

        public String getPath()
        Returns:
        String
      • getUri

        public String getUri()
        Returns:
        String
      • isResource

        public boolean isResource()
        Returns:
        true if this represents a resource
      • isCollection

        public boolean isCollection()
        Returns:
        true if this represents a calendar
      • getPrincipal

        public org.bedework.access.AccessPrincipal getPrincipal()
        Returns:
        AccessPrincipal or null if not a principal uri
      • sameName

        public boolean sameName​(String entityName)
        Parameters:
        entityName - to check
        Returns:
        true if has same name
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object