Class WdEntity<T>
java.lang.Object
org.bedework.webdav.servlet.shared.WdEntity<T>
- Type Parameters:
T-
- All Implemented Interfaces:
Comparable<WdEntity<?>>
- Direct Known Subclasses:
WdCollection
Class to represent an entity in WebDAV
- Author:
- douglm
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintabstract Stringabstract booleanabstract booleanGet the descriptionGet the display nameabstract StringgetEtag()Get the current etag valuegetName()Get the nameorg.bedework.access.AccessPrincipalgetOwner()Get the pathgetPath()Get the pathabstract StringGet the etag value before any changes were appliedabstract StringgetProperty(QName name) inthashCode()abstract booleanisAlias()abstract TresolveAlias(boolean resolveSubAlias) If isAlias() then resolves the alias.voidsetCreated(String val) voidsetDescription(String val) Set the descriptionvoidsetDisplayName(String val) Set the display namevoidsetLastmod(String val) voidSet the namevoidsetOwner(org.bedework.access.AccessPrincipal val) voidsetParentPath(String val) Set the path to this collectionvoidSet the path to this collectionabstract voidsetProperty(QName name, String val) set/replace properties with the given name and valuetoString()voidtoStringSegment(org.bedework.util.misc.ToString ts)
-
Constructor Details
-
WdEntity
public WdEntity()Constructor
-
-
Method Details
-
getCanPublish
public abstract boolean getCanPublish()- Returns:
- true if this can be published.
-
isAlias
public abstract boolean isAlias()- Returns:
- true if this is an alias for another entity.
-
getAliasUri
- Returns:
- null if this is not an alias otherwise the uri of the target
-
resolveAlias
If isAlias() then resolves the alias. Otherwise just returns the parameter.- Parameters:
resolveSubAlias- - if true and the alias points to an alias, resolve down to a non-alias.- Returns:
- WdEntity or null.
-
setProperty
set/replace properties with the given name and value- Parameters:
name- of propertyval- of property
-
getProperty
- Parameters:
name- of property- Returns:
- null if not set otherwise value of first property found with name
-
setName
Set the name- Parameters:
val- String name
-
getName
Get the name- Returns:
- String name
-
setDisplayName
Set the display name- Parameters:
val- String display name
-
getDisplayName
Get the display name- Returns:
- String display name
-
setPath
Set the path to this collection- Parameters:
val- String path
-
getPath
Get the path- Returns:
- String path
-
setParentPath
Set the path to this collection- Parameters:
val- String path
-
getParentPath
Get the path- Returns:
- String path
-
setOwner
public void setOwner(org.bedework.access.AccessPrincipal val) - Parameters:
val- AccessPrincipal
-
getOwner
public org.bedework.access.AccessPrincipal getOwner()- Returns:
- AccessPrincipal
-
setCreated
- Parameters:
val- create date
-
getCreated
- Returns:
- String created
-
setLastmod
- Parameters:
val- lastmod
-
getLastmod
- Returns:
- String lastmod
-
getEtag
Get the current etag value- Returns:
- String the etag
-
getPreviousEtag
Get the etag value before any changes were applied- Returns:
- String the etag
-
setDescription
Set the description- Parameters:
val- String description
-
getDescription
Get the description- Returns:
- String description
-
toStringSegment
public void toStringSegment(org.bedework.util.misc.ToString ts) - Parameters:
ts- ToString object
-
hashCode
public int hashCode() -
toString