Package org.bedework.carddav.server
Class CarddavURI
- java.lang.Object
-
- org.bedework.carddav.server.CarddavURI
-
public class CarddavURI 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 Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)CarddavCollectiongetCol()StringgetColName()CardgetEntity()StringgetEntityName()booleangetExists()StringgetPath()CarddavResourcegetResource()StringgetUri()inthashCode()booleanisCollection()booleanisGroup()booleanisResource()booleanisUser()booleansameName(String entityName)StringtoString()
-
-
-
Method Detail
-
getExists
public boolean getExists()
- Returns:
- boolean
-
getCol
public CarddavCollection getCol()
- Returns:
- WdCollection
-
getResource
public CarddavResource getResource()
- Returns:
- BwResource
-
getEntity
public Card getEntity()
- Returns:
- Object
-
getColName
public String getColName() throws org.bedework.webdav.servlet.shared.WebdavException
- Returns:
- String
- Throws:
org.bedework.webdav.servlet.shared.WebdavException
-
getEntityName
public String getEntityName()
- Returns:
- String
-
getPath
public String getPath() throws org.bedework.webdav.servlet.shared.WebdavException
- Returns:
- String
- Throws:
org.bedework.webdav.servlet.shared.WebdavException
-
getUri
public String getUri() throws org.bedework.webdav.servlet.shared.WebdavException
- Returns:
- String
- Throws:
org.bedework.webdav.servlet.shared.WebdavException
-
isResource
public boolean isResource()
- Returns:
- true if this represents a calendar
-
isCollection
public boolean isCollection()
- Returns:
- true if this represents a calendar
-
isUser
public boolean isUser()
- Returns:
- true if this represents a user
-
isGroup
public boolean isGroup()
- Returns:
- true if this represents a group
-
sameName
public boolean sameName(String entityName)
- Parameters:
entityName-- Returns:
- true if has same name
-
-