public interface SysIntf
extends org.bedework.webdav.servlet.shared.WdSysIntf
We're using the bedework object classes here. To simplify matters (a little) we don't have distinct event, todo and journal classes. They are all currently the BwEvent class with an entityType defining what the object represents.
| Modifier and Type | Interface and Description |
|---|---|
static class |
SysIntf.PrincipalInfo |
| Modifier and Type | Method and Description |
|---|---|
void |
addCard(String path,
Card card)
Add a card.
|
org.bedework.access.Acl.CurrentAccess |
checkAccess(CarddavCollection ent,
int desiredAccess,
boolean returnResult)
Check the access for the given entity.
|
void |
close()
End any transactions.
|
boolean |
copyMove(Card from,
org.bedework.webdav.servlet.shared.WdCollection to,
String name,
boolean copy,
boolean overwrite)
Copy or move the given entity to the destination collection with the given name.
|
void |
copyMove(org.bedework.webdav.servlet.shared.WdCollection from,
org.bedework.webdav.servlet.shared.WdCollection to,
boolean copy,
boolean overwrite)
Copy or move the collection to another location.
|
boolean |
copyMoveFile(CarddavResource from,
org.bedework.webdav.servlet.shared.WdCollection to,
String name,
boolean copy,
boolean overwrite)
Copy or move the given file to the destination collection with the given name.
|
void |
deleteCard(CarddavCardNode card) |
void |
deleteCollection(org.bedework.webdav.servlet.shared.WdCollection cal) |
void |
deleteFile(CarddavResource val)
Delete a file.
|
Card |
getCard(String path,
String name)
Get card given the collection and String name.
|
GetResult |
getCards(CarddavCollection col,
Filter filter,
GetLimits limits)
Return the cards for the current user in the given collection using the
supplied filter.
|
CarddavCollection |
getCollection(String path)
Get a collection given the path
|
GetResult |
getCollections(CarddavCollection col,
GetLimits limits)
Returns children of the given collection to which the current user has
some access.
|
boolean |
getDirectoryBrowsingDisallowed()
Do we allow browsing of directories?
|
CarddavResource |
getFile(org.bedework.webdav.servlet.shared.WdCollection coll,
String name)
GET a file.
|
void |
getFileContent(CarddavResource val)
Get resource content given the resource.
|
Collection<CarddavResource> |
getFiles(org.bedework.webdav.servlet.shared.WdCollection coll)
Get the files in a collection.
|
Collection<String> |
getGroups(String rootUrl,
String principalUrl)
The urls should be principal urls.
|
int |
getMaxUserEntitySize()
Max size for an entity
|
org.bedework.access.AccessPrincipal |
getPrincipal()
Return the current principal
|
org.bedework.access.AccessPrincipal |
getPrincipal(String href)
Return principal information for the given href.
|
Collection<String> |
getPrincipalCollectionSet(String resourceUri)
Given a uri returns a Collection of uris that allow search operations on
principals for that resource.
|
SysIntf.PrincipalInfo |
getPrincipalInfo(org.bedework.access.AccessPrincipal pcpl,
boolean getDirInfo)
Given a valid principal return the associated information
needed for carddav interactions.
|
Collection<SysIntf.PrincipalInfo> |
getPrincipals(String resourceUri,
org.bedework.webdav.servlet.shared.PrincipalPropertySearch pps)
Given a PrincipalPropertySearch returns a Collection of matching principals.
|
PropertyHandler |
getPropertyHandler(PropertyHandler.PropertyType ptype)
Get a property handler
|
void |
init(javax.servlet.http.HttpServletRequest req,
String account,
CardDAVConfig conf,
CardDAVContextConfig ctxConf,
boolean debug)
Called before any other method is called to allow initialisation to
take place at the first or subsequent requests
|
boolean |
isPrincipal(String val)
Does the value appear to represent a valid principal?
|
int |
makeCollection(CarddavCollection col,
String parentPath) |
String |
makeHref(org.bedework.access.AccessPrincipal p) |
void |
putFile(org.bedework.webdav.servlet.shared.WdCollection coll,
CarddavResource val)
PUT a file.
|
void |
updateAccess(CarddavCardNode card,
org.bedework.access.Acl acl) |
void |
updateAccess(CarddavColNode col,
org.bedework.access.Acl acl) |
void |
updateCard(String path,
Card card)
Update a card.
|
void |
updateCollection(org.bedework.webdav.servlet.shared.WdCollection val)
Update a collection.
|
void |
updateFile(CarddavResource val,
boolean updateContent)
Update a file.
|
void init(javax.servlet.http.HttpServletRequest req,
String account,
CardDAVConfig conf,
CardDAVContextConfig ctxConf,
boolean debug)
throws org.bedework.webdav.servlet.shared.WebdavException
req - account - conf - global service configurationctxConf - per application type configurationdebug - org.bedework.webdav.servlet.shared.WebdavExceptionorg.bedework.access.AccessPrincipal getPrincipal()
throws org.bedework.webdav.servlet.shared.WebdavException
org.bedework.webdav.servlet.shared.WebdavExceptionPropertyHandler getPropertyHandler(PropertyHandler.PropertyType ptype) throws org.bedework.webdav.servlet.shared.WebdavException
ptype - org.bedework.webdav.servlet.shared.WebdavExceptionboolean isPrincipal(String val) throws org.bedework.webdav.servlet.shared.WebdavException
val - org.bedework.webdav.servlet.shared.WebdavExceptionorg.bedework.access.AccessPrincipal getPrincipal(String href) throws org.bedework.webdav.servlet.shared.WebdavException
href - org.bedework.webdav.servlet.shared.WebdavExceptionString makeHref(org.bedework.access.AccessPrincipal p) throws org.bedework.webdav.servlet.shared.WebdavException
p - org.bedework.webdav.servlet.shared.WebdavExceptionCollection<String> getGroups(String rootUrl, String principalUrl) throws org.bedework.webdav.servlet.shared.WebdavException
rootUrl - - url to base search on.principalUrl - - url of principal or null for current userorg.bedework.webdav.servlet.shared.WebdavExceptionboolean getDirectoryBrowsingDisallowed()
throws org.bedework.webdav.servlet.shared.WebdavException
org.bedework.webdav.servlet.shared.WebdavException - for errorsSysIntf.PrincipalInfo getPrincipalInfo(org.bedework.access.AccessPrincipal pcpl, boolean getDirInfo) throws org.bedework.webdav.servlet.shared.WebdavException
pcpl - the principalgetDirInfo - get directory info if true and available.org.bedework.webdav.servlet.shared.WebdavException - for errorsCollection<String> getPrincipalCollectionSet(String resourceUri) throws org.bedework.webdav.servlet.shared.WebdavException
resourceUri - org.bedework.webdav.servlet.shared.WebdavExceptionCollection<SysIntf.PrincipalInfo> getPrincipals(String resourceUri, org.bedework.webdav.servlet.shared.PrincipalPropertySearch pps) throws org.bedework.webdav.servlet.shared.WebdavException
resourceUri - pps - Collection of PrincipalPropertySearchorg.bedework.webdav.servlet.shared.WebdavExceptionvoid addCard(String path, Card card) throws org.bedework.webdav.servlet.shared.WebdavException
path - to collectioncard - Object to be addedorg.bedework.webdav.servlet.shared.WebdavExceptionvoid updateCard(String path, Card card) throws org.bedework.webdav.servlet.shared.WebdavException
path - to collectioncard - Object to be updatedorg.bedework.webdav.servlet.shared.WebdavExceptionGetResult getCards(CarddavCollection col, Filter filter, GetLimits limits) throws org.bedework.webdav.servlet.shared.WebdavException
col - collectionfilter - - if non-null defines a search filterlimits - - applied to this queryorg.bedework.webdav.servlet.shared.WebdavExceptionCard getCard(String path, String name) throws org.bedework.webdav.servlet.shared.WebdavException
path - to collectionname - String possible nameorg.bedework.webdav.servlet.shared.WebdavExceptionvoid deleteCard(CarddavCardNode card) throws org.bedework.webdav.servlet.shared.WebdavException
card - org.bedework.webdav.servlet.shared.WebdavExceptionvoid updateAccess(CarddavCardNode card, org.bedework.access.Acl acl) throws org.bedework.webdav.servlet.shared.WebdavException
card - acl - org.bedework.webdav.servlet.shared.WebdavExceptionorg.bedework.access.Acl.CurrentAccess checkAccess(CarddavCollection ent, int desiredAccess, boolean returnResult) throws org.bedework.webdav.servlet.shared.WebdavException
ent - desiredAccess - returnResult - org.bedework.webdav.servlet.shared.WebdavException - if returnResult false and no accessvoid updateAccess(CarddavColNode col, org.bedework.access.Acl acl) throws org.bedework.webdav.servlet.shared.WebdavException
col - acl - org.bedework.webdav.servlet.shared.WebdavExceptionint makeCollection(CarddavCollection col, String parentPath) throws org.bedework.webdav.servlet.shared.WebdavException
col - Initialised collection objectparentPath - org.bedework.webdav.servlet.shared.WebdavExceptionvoid deleteCollection(org.bedework.webdav.servlet.shared.WdCollection cal)
throws org.bedework.webdav.servlet.shared.WebdavException
cal - org.bedework.webdav.servlet.shared.WebdavExceptionvoid copyMove(org.bedework.webdav.servlet.shared.WdCollection from,
org.bedework.webdav.servlet.shared.WdCollection to,
boolean copy,
boolean overwrite)
throws org.bedework.webdav.servlet.shared.WebdavException
from - Source collectionto - Destination collectioncopy - true for copyingoverwrite - destination existsorg.bedework.webdav.servlet.shared.WebdavExceptionboolean copyMove(Card from, org.bedework.webdav.servlet.shared.WdCollection to, String name, boolean copy, boolean overwrite) throws org.bedework.webdav.servlet.shared.WebdavException
from - Source entityto - Destination collectionname - String name of new entitycopy - true for copyingoverwrite - destination existsorg.bedework.webdav.servlet.shared.WebdavExceptionCarddavCollection getCollection(String path) throws org.bedework.webdav.servlet.shared.WebdavException
path - String path of collectionorg.bedework.webdav.servlet.shared.WebdavExceptionvoid updateCollection(org.bedework.webdav.servlet.shared.WdCollection val)
throws org.bedework.webdav.servlet.shared.WebdavException
val - updated WdCollection objectorg.bedework.webdav.servlet.shared.WebdavExceptionGetResult getCollections(CarddavCollection col, GetLimits limits) throws org.bedework.webdav.servlet.shared.WebdavException
col - parent collectionlimits - org.bedework.webdav.servlet.shared.WebdavExceptionvoid putFile(org.bedework.webdav.servlet.shared.WdCollection coll,
CarddavResource val)
throws org.bedework.webdav.servlet.shared.WebdavException
coll - WdCollection defining recipient collectionval - BwResourceorg.bedework.webdav.servlet.shared.WebdavExceptionCarddavResource getFile(org.bedework.webdav.servlet.shared.WdCollection coll, String name) throws org.bedework.webdav.servlet.shared.WebdavException
coll - WdCollection containing filename - org.bedework.webdav.servlet.shared.WebdavExceptionvoid getFileContent(CarddavResource val) throws org.bedework.webdav.servlet.shared.WebdavException
val - BwResourceorg.bedework.webdav.servlet.shared.WebdavExceptionCollection<CarddavResource> getFiles(org.bedework.webdav.servlet.shared.WdCollection coll) throws org.bedework.webdav.servlet.shared.WebdavException
coll - WdCollection containing fileorg.bedework.webdav.servlet.shared.WebdavExceptionvoid updateFile(CarddavResource val, boolean updateContent) throws org.bedework.webdav.servlet.shared.WebdavException
val - BwResourceupdateContent - if true we also update the contentorg.bedework.webdav.servlet.shared.WebdavExceptionvoid deleteFile(CarddavResource val) throws org.bedework.webdav.servlet.shared.WebdavException
val - BwResourceorg.bedework.webdav.servlet.shared.WebdavExceptionboolean copyMoveFile(CarddavResource from, org.bedework.webdav.servlet.shared.WdCollection to, String name, boolean copy, boolean overwrite) throws org.bedework.webdav.servlet.shared.WebdavException
from - Source resourceto - Destination collectionname - String name of new entitycopy - true for copyingoverwrite - destination existsorg.bedework.webdav.servlet.shared.WebdavExceptionint getMaxUserEntitySize()
throws org.bedework.webdav.servlet.shared.WebdavException
org.bedework.webdav.servlet.shared.WebdavExceptionvoid close()
throws org.bedework.webdav.servlet.shared.WebdavException
org.bedework.webdav.servlet.shared.WebdavExceptionCopyright © 2018 Bedework. All rights reserved.