Package org.bedework.caldav.server
Class CaldavURI
java.lang.Object
org.bedework.caldav.server.CaldavURI
public class CaldavURI
extends java.lang.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 Summary
Modifier and Type Method Description booleanequals(java.lang.Object o)CalDAVCollection<?>getCol()CalDAVEvent<?>getEntity()java.lang.StringgetEntityName()booleangetExists()java.lang.StringgetPath()org.bedework.access.AccessPrincipalgetPrincipal()CalDAVResource<?>getResource()java.lang.StringgetUri()inthashCode()booleanisCollection()booleanisResource()booleansameName(java.lang.String entityName)java.lang.StringtoString()Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Method Details
-
getExists
public boolean getExists()- Returns:
- boolean
-
getCol
- Returns:
- CalDAVCollection
-
getResource
- Returns:
- CalDAVResource
-
getEntity
- Returns:
- CalDAVEvent
-
getEntityName
public java.lang.String getEntityName()- Returns:
- String
-
getPath
public java.lang.String getPath()- Returns:
- String
-
getUri
public java.lang.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(java.lang.String entityName)- Parameters:
entityName- to check- Returns:
- true if has same name
-
toString
public java.lang.String toString()- Overrides:
toStringin classjava.lang.Object
-
hashCode
public int hashCode()- Overrides:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object o)- Overrides:
equalsin classjava.lang.Object
-