SysIntf.PrincipalInfo| Modifier and Type | Field and Description |
|---|---|
protected org.apache.log4j.Logger |
log |
| Constructor and Description |
|---|
BwSysIntfImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
addCard(String path,
Card card)
Add a card.
|
boolean |
allowsSyncReport(org.bedework.webdav.servlet.shared.WdCollection col) |
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.
|
protected void |
debugMsg(String msg) |
void |
deleteCard(CarddavCardNode card) |
void |
deleteCollection(org.bedework.webdav.servlet.shared.WdCollection col) |
void |
deleteFile(CarddavResource val)
Delete a file.
|
protected void |
error(Throwable t) |
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 val,
GetLimits limits)
Returns children of the given collection to which the current user has
some access.
|
String |
getDefaultContentType() |
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.
|
protected org.apache.log4j.Logger |
getLogger() |
int |
getMaxUserEntitySize()
Max size for an entity
|
String |
getNotificationURL() |
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
|
org.bedework.webdav.servlet.shared.UrlHandler |
getUrlHandler() |
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?
|
protected void |
logIt(String msg) |
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.
|
protected void |
trace(String msg) |
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.
|
protected void |
warn(String msg) |
public void init(javax.servlet.http.HttpServletRequest req,
String account,
CardDAVConfig conf,
CardDAVContextConfig ctxConf,
boolean debug)
throws org.bedework.webdav.servlet.shared.WebdavException
SysIntfpublic String getDefaultContentType()
getDefaultContentType in interface org.bedework.webdav.servlet.shared.WdSysIntfpublic String getNotificationURL() throws org.bedework.webdav.servlet.shared.WebdavException
getNotificationURL in interface org.bedework.webdav.servlet.shared.WdSysIntforg.bedework.webdav.servlet.shared.WebdavExceptionpublic org.bedework.access.AccessPrincipal getPrincipal()
throws org.bedework.webdav.servlet.shared.WebdavException
SysIntfgetPrincipal in interface SysIntforg.bedework.webdav.servlet.shared.WebdavExceptionpublic PropertyHandler getPropertyHandler(PropertyHandler.PropertyType ptype) throws org.bedework.webdav.servlet.shared.WebdavException
SysIntfgetPropertyHandler in interface SysIntforg.bedework.webdav.servlet.shared.WebdavExceptionpublic org.bedework.webdav.servlet.shared.UrlHandler getUrlHandler()
getUrlHandler in interface org.bedework.webdav.servlet.shared.WdSysIntfpublic boolean allowsSyncReport(org.bedework.webdav.servlet.shared.WdCollection col)
throws org.bedework.webdav.servlet.shared.WebdavException
allowsSyncReport in interface org.bedework.webdav.servlet.shared.WdSysIntforg.bedework.webdav.servlet.shared.WebdavExceptionpublic boolean isPrincipal(String val) throws org.bedework.webdav.servlet.shared.WebdavException
SysIntfisPrincipal in interface SysIntforg.bedework.webdav.servlet.shared.WebdavExceptionpublic org.bedework.access.AccessPrincipal getPrincipal(String href) throws org.bedework.webdav.servlet.shared.WebdavException
SysIntfgetPrincipal in interface SysIntforg.bedework.webdav.servlet.shared.WebdavExceptionpublic String makeHref(org.bedework.access.AccessPrincipal p) throws org.bedework.webdav.servlet.shared.WebdavException
public Collection<String> getGroups(String rootUrl, String principalUrl) throws org.bedework.webdav.servlet.shared.WebdavException
SysIntfpublic boolean getDirectoryBrowsingDisallowed()
throws org.bedework.webdav.servlet.shared.WebdavException
SysIntfgetDirectoryBrowsingDisallowed in interface SysIntforg.bedework.webdav.servlet.shared.WebdavException - for errorspublic SysIntf.PrincipalInfo getPrincipalInfo(org.bedework.access.AccessPrincipal pcpl, boolean getDirInfo) throws org.bedework.webdav.servlet.shared.WebdavException
SysIntfgetPrincipalInfo in interface SysIntfpcpl - the principalgetDirInfo - get directory info if true and available.org.bedework.webdav.servlet.shared.WebdavException - for errorspublic Collection<String> getPrincipalCollectionSet(String resourceUri) throws org.bedework.webdav.servlet.shared.WebdavException
SysIntfgetPrincipalCollectionSet in interface SysIntforg.bedework.webdav.servlet.shared.WebdavExceptionpublic Collection<SysIntf.PrincipalInfo> getPrincipals(String resourceUri, org.bedework.webdav.servlet.shared.PrincipalPropertySearch pps) throws org.bedework.webdav.servlet.shared.WebdavException
SysIntfgetPrincipals in interface SysIntfpps - Collection of PrincipalPropertySearchorg.bedework.webdav.servlet.shared.WebdavExceptionpublic void addCard(String path, Card card) throws org.bedework.webdav.servlet.shared.WebdavException
SysIntfpublic void updateCard(String path, Card card) throws org.bedework.webdav.servlet.shared.WebdavException
SysIntfupdateCard in interface SysIntfpath - to collectioncard - Object to be updatedorg.bedework.webdav.servlet.shared.WebdavExceptionpublic GetResult getCards(CarddavCollection col, Filter filter, GetLimits limits) throws org.bedework.webdav.servlet.shared.WebdavException
SysIntfpublic Card getCard(String path, String name) throws org.bedework.webdav.servlet.shared.WebdavException
SysIntfpublic void deleteCard(CarddavCardNode card) throws org.bedework.webdav.servlet.shared.WebdavException
deleteCard in interface SysIntforg.bedework.webdav.servlet.shared.WebdavExceptionpublic void updateAccess(CarddavCardNode card, org.bedework.access.Acl acl) throws org.bedework.webdav.servlet.shared.WebdavException
updateAccess in interface SysIntforg.bedework.webdav.servlet.shared.WebdavExceptionpublic org.bedework.access.Acl.CurrentAccess checkAccess(CarddavCollection ent, int desiredAccess, boolean returnResult) throws org.bedework.webdav.servlet.shared.WebdavException
SysIntfcheckAccess in interface SysIntforg.bedework.webdav.servlet.shared.WebdavException - if returnResult false and no accesspublic void updateAccess(CarddavColNode col, org.bedework.access.Acl acl) throws org.bedework.webdav.servlet.shared.WebdavException
updateAccess in interface SysIntforg.bedework.webdav.servlet.shared.WebdavExceptionpublic int makeCollection(CarddavCollection col, String parentPath) throws org.bedework.webdav.servlet.shared.WebdavException
makeCollection in interface SysIntfcol - Initialised collection objectorg.bedework.webdav.servlet.shared.WebdavExceptionpublic void deleteCollection(org.bedework.webdav.servlet.shared.WdCollection col)
throws org.bedework.webdav.servlet.shared.WebdavException
deleteCollection in interface SysIntforg.bedework.webdav.servlet.shared.WebdavExceptionpublic void 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
SysIntfpublic boolean copyMove(Card from, org.bedework.webdav.servlet.shared.WdCollection to, String name, boolean copy, boolean overwrite) throws org.bedework.webdav.servlet.shared.WebdavException
SysIntfcopyMove in interface SysIntffrom - Source entityto - Destination collectionname - String name of new entitycopy - true for copyingoverwrite - destination existsorg.bedework.webdav.servlet.shared.WebdavExceptionpublic CarddavCollection getCollection(String path) throws org.bedework.webdav.servlet.shared.WebdavException
SysIntfgetCollection in interface SysIntfpath - String path of collectionorg.bedework.webdav.servlet.shared.WebdavExceptionpublic void updateCollection(org.bedework.webdav.servlet.shared.WdCollection val)
throws org.bedework.webdav.servlet.shared.WebdavException
SysIntfupdateCollection in interface SysIntfval - updated WdCollection objectorg.bedework.webdav.servlet.shared.WebdavExceptionpublic GetResult getCollections(CarddavCollection val, GetLimits limits) throws org.bedework.webdav.servlet.shared.WebdavException
SysIntfgetCollections in interface SysIntfval - parent collectionorg.bedework.webdav.servlet.shared.WebdavExceptionpublic void putFile(org.bedework.webdav.servlet.shared.WdCollection coll,
CarddavResource val)
throws org.bedework.webdav.servlet.shared.WebdavException
SysIntfpublic CarddavResource getFile(org.bedework.webdav.servlet.shared.WdCollection coll, String name) throws org.bedework.webdav.servlet.shared.WebdavException
SysIntfpublic void getFileContent(CarddavResource val) throws org.bedework.webdav.servlet.shared.WebdavException
SysIntfgetFileContent in interface SysIntfval - BwResourceorg.bedework.webdav.servlet.shared.WebdavExceptionpublic Collection<CarddavResource> getFiles(org.bedework.webdav.servlet.shared.WdCollection coll) throws org.bedework.webdav.servlet.shared.WebdavException
SysIntfpublic void updateFile(CarddavResource val, boolean updateContent) throws org.bedework.webdav.servlet.shared.WebdavException
SysIntfupdateFile in interface SysIntfval - BwResourceupdateContent - if true we also update the contentorg.bedework.webdav.servlet.shared.WebdavExceptionpublic void deleteFile(CarddavResource val) throws org.bedework.webdav.servlet.shared.WebdavException
SysIntfdeleteFile in interface SysIntfval - BwResourceorg.bedework.webdav.servlet.shared.WebdavExceptionpublic boolean copyMoveFile(CarddavResource from, org.bedework.webdav.servlet.shared.WdCollection to, String name, boolean copy, boolean overwrite) throws org.bedework.webdav.servlet.shared.WebdavException
SysIntfcopyMoveFile in interface SysIntffrom - Source resourceto - Destination collectionname - String name of new entitycopy - true for copyingoverwrite - destination existsorg.bedework.webdav.servlet.shared.WebdavExceptionpublic int getMaxUserEntitySize()
throws org.bedework.webdav.servlet.shared.WebdavException
SysIntfgetMaxUserEntitySize in interface SysIntforg.bedework.webdav.servlet.shared.WebdavExceptionpublic void close()
throws org.bedework.webdav.servlet.shared.WebdavException
SysIntfprotected org.apache.log4j.Logger getLogger()
protected void trace(String msg)
protected void debugMsg(String msg)
protected void warn(String msg)
protected void error(Throwable t)
protected void logIt(String msg)
Copyright © 2018 Bedework. All rights reserved.