public class WebdavPrincipalNode extends WebdavNsNode
WebdavNsNode.PropertyTagEntry, WebdavNsNode.PropVal, WebdavNsNode.SetPropertyResultalias, allowsGet, collection, exists, groupPrincipal, path, status, targetUri, uri, urlHandler, userPrincipal, wdSysIntf| Constructor and Description |
|---|
WebdavPrincipalNode(WdSysIntf sysi,
UrlHandler urlHandler,
String path,
org.bedework.access.AccessPrincipal account,
boolean collection,
String uri) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
allowsSyncReport() |
boolean |
generatePropertyValue(QName tag,
WebdavNsIntf intf,
boolean allProp)
Emit the property indicated by the tag.
|
Collection<? extends WdEntity> |
getChildren(java.util.function.Supplier<Object> filterGetter)
Return a collection of children objects.
|
WdCollection |
getCollection(boolean deref)
The node may refer to a collection object which may in fact be an alias to
another.
|
boolean |
getContentBinary() |
String |
getContentLang() |
long |
getContentLen() |
String |
getContentType()
A content type of null implies no content (or we don't know)
|
String |
getCreDate() |
org.bedework.access.CurrentAccess |
getCurrentAccess()
Get the current access granted to this principal for this node.
|
boolean |
getDeleted() |
String |
getDisplayname() |
String |
getEtagValue(boolean strong)
Entity tags are defined in RFC2068 - they are supposed to provide some
sort of indication the data has changed - e.g.
|
WdCollection |
getImmediateTargetCollection() |
String |
getLastmodDate() |
org.bedework.util.logging.BwLogger |
getLogger() |
org.bedework.access.AccessPrincipal |
getOwner()
Should return a value suitable for WebdavNsIntf.makeUserHref
|
String |
getSyncToken() |
boolean |
knownProperty(QName tag)
Return true if a call to generatePropertyValue will return a value.
|
boolean |
removeProperty(Element val,
WebdavNsNode.SetPropertyResult spr)
Remove the given property for this node.
|
boolean |
setProperty(Element val,
WebdavNsNode.SetPropertyResult spr)
Set the given property for this node.
|
boolean |
trailSlash()
Trailing "/" on uri?
|
void |
update()
Update this node after changes.
|
String |
writeContent(org.bedework.util.xml.XmlEmit xml,
Writer wtr,
String contentType)
Called during xml emission to write the content for the node.
|
addPropEntry, addPropEntry, equals, generateHref, generateHref, generateUrl, getAlias, getAllowsGet, getContent, getContentStream, getContentString, getEncodedUri, getEncodedUri, getExists, getPath, getPrefixedUri, getPrefixedUri, getPropertyNames, getStatus, getSupportedReports, getTargetUri, getUri, hashCode, init, isCollection, isPrincipal, setAlias, setAllowsGet, setDefaults, setExists, setStatus, setTargetUri, setUriclone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitaudit, debug, debug, enableAuditLogger, enableErrorLogger, enableMetricsLogger, error, error, error, info, isAuditLoggerEnabled, isErrorLoggerEnabled, isMetricsDebugEnabled, isMetricsLoggerEnabled, metrics, setLoggerClass, setLoggerClass, trace, trace, warnpublic WebdavPrincipalNode(WdSysIntf sysi, UrlHandler urlHandler, String path, org.bedework.access.AccessPrincipal account, boolean collection, String uri) throws WebdavException
sysi - system interfaceurlHandler - - needed for building hrefs.path - - resource pathaccount - - the principalcollection - - true if this is a collectionuri - of requestWebdavExceptionpublic org.bedework.access.AccessPrincipal getOwner()
throws WebdavException
WebdavNsNodegetOwner in class WebdavNsNodeWebdavExceptionpublic void update()
throws WebdavException
WebdavNsNodeupdate in class WebdavNsNodeWebdavExceptionpublic org.bedework.access.CurrentAccess getCurrentAccess()
throws WebdavException
WebdavNsNodegetCurrentAccess in class WebdavNsNodeWebdavExceptionpublic String getEtagValue(boolean strong) throws WebdavException
WebdavNsNodeThere are weak and strong tags
This methods should return a suitable value for that tag.
getEtagValue in class WebdavNsNodeWebdavExceptionpublic boolean trailSlash()
WebdavNsNodetrailSlash in class WebdavNsNodepublic Collection<? extends WdEntity> getChildren(java.util.function.Supplier<Object> filterGetter) throws WebdavException
WebdavNsNodeDefault is to return null
getChildren in class WebdavNsNodefilterGetter - non-null if there is a filterWebdavException - on fatal errorpublic WdCollection getCollection(boolean deref) throws WebdavException
WebdavNsNodeMove and rename are also targetted at the alias.
Other operations are probably intended to work on the underlying target of the alias.
getCollection in class WebdavNsNodederef - true if we want to act upon the target of an alias.WebdavExceptionpublic WdCollection getImmediateTargetCollection() throws WebdavException
getImmediateTargetCollection in class WebdavNsNodeWebdavExceptionpublic boolean allowsSyncReport()
throws WebdavException
allowsSyncReport in class WebdavNsNodeWebdavExceptionpublic boolean getDeleted()
throws WebdavException
getDeleted in class WebdavNsNodeWebdavExceptionpublic String getSyncToken() throws WebdavException
getSyncToken in class WebdavNsNodeWebdavExceptionpublic String writeContent(org.bedework.util.xml.XmlEmit xml, Writer wtr, String contentType) throws WebdavException
WebdavNsNodewriteContent in class WebdavNsNodexml - - if this is embedded in an xml streamwtr - - if standalone output or no xml stream initialized.contentType - desired content type or null for default.WebdavExceptionpublic boolean getContentBinary()
throws WebdavException
getContentBinary in class WebdavNsNodeWebdavExceptionpublic String getContentLang() throws WebdavException
getContentLang in class WebdavNsNodeWebdavExceptionpublic long getContentLen()
throws WebdavException
getContentLen in class WebdavNsNodeWebdavExceptionpublic String getContentType() throws WebdavException
WebdavNsNodegetContentType in class WebdavNsNodeWebdavExceptionpublic String getCreDate() throws WebdavException
getCreDate in class WebdavNsNodeWebdavExceptionpublic String getDisplayname() throws WebdavException
getDisplayname in class WebdavNsNodeWebdavExceptionpublic String getLastmodDate() throws WebdavException
getLastmodDate in class WebdavNsNodeWebdavExceptionpublic boolean removeProperty(Element val, WebdavNsNode.SetPropertyResult spr) throws WebdavException
WebdavNsNoderemoveProperty in class WebdavNsNodeval - Element defining property to removespr - Holds reult of removing propertyWebdavExceptionpublic boolean setProperty(Element val, WebdavNsNode.SetPropertyResult spr) throws WebdavException
WebdavNsNodesetProperty in class WebdavNsNodeval - Element defining property to setspr - Holds result of setting propertyWebdavExceptionpublic boolean knownProperty(QName tag)
WebdavNsNodeknownProperty in class WebdavNsNodepublic boolean generatePropertyValue(QName tag, WebdavNsIntf intf, boolean allProp) throws WebdavException
WebdavNsNodegeneratePropertyValue in class WebdavNsNodetag - QName defining propertyintf - WebdavNsIntfallProp - true if we're doing allpropWebdavExceptionpublic org.bedework.util.logging.BwLogger getLogger()
getLogger in interface org.bedework.util.logging.LoggedgetLogger in class WebdavNsNodeCopyright © 2018 Bedework. All rights reserved.