*** This class provides Binary Compatibility only, not Source Compatibility ***
Class DAVEvent
- All Implemented Interfaces:
AttributesInterface,DAVEntityInterface,DAVItemInterface,Serializable
- Direct Known Subclasses:
DAVPackageevent,DAVStoredprocessalert
- Since:
- 1.0
- See Also:
-
Field Summary
Fields inherited from class com.sas.services.information.metadata.dav.DAVEntity
_acl, _descAttribute, _fullUrl, _name, _nameAttribute, _objectClass, _properties, _repos, _reposId, _resource, _schemaProperties, aclList, content, hasBeenFetched, LOCAL, STORE, UNSET -
Constructor Summary
ConstructorsConstructorDescriptionDAVEvent(RepositoryData entity) Creates a new DAVEvent from the information in the entityDAVEvent(RepositoryInterface repos, String reposId) Creates a new DAVEvent for the entity with a repository idreposIdin the repositoryrepos -
Method Summary
Modifier and TypeMethodDescriptionStringfindPropertyValue(String expr) Returns the value of a property value in the event.DocumentDeprecated.StringReturn the event document as a string.voidpromoteProperties(Element root) Promotes a set of useful information from the event header section to distinct DAV properties, so these can be used in PROPFIND's, SEARCH's etc.voidsetEventDocument(Document eventDoc) Deprecated.voidsetEventDocumentFromString(String eventDocString) Sets the event document.Methods inherited from class com.sas.services.information.metadata.dav.DAVItem
checkin, checkout, clearLocalLists, finalize, getContentLength, getContents, getContentsAsBytes, getContentsStatus, getContentType, hasContentsUpdates, isUpdatePending, setContents, setContents, setContentsfromStore, setContentsStatus, setContentType, toString, uncheckoutMethods inherited from class com.sas.services.information.metadata.dav.DAVEntity
addAccessControlEntry, addAttribute, addAttributes, addUpdateMultiple, addUpdateSingle, commitUpdates, copy, delete, deleteAttribute, deleteAttributes, fetchEntity, getAccessControlList, getACL, getAttribute, getAttributes, getCreateDate, getDAVResource, getDescription, getFolder, getGUID, getModifyDate, getName, getObjectClass, getProperties, getRemarksKeys, getRemoveUpdates, getReposId, getRepository, getSetUpdates, getType, getUpdateableACL, getUrl, getURL, isCollection, isDeleted, move, refresh, refresh, removeAccessControlEntry, setAccessControls, setACL, setAttribute, setAttributes, setContentClass, setDeleted, setDescription, setGUID, setName, setRemarksKeys, setReposId, setRepository, updateMethods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.sas.services.information.metadata.dav.AttributesInterface
addAttribute, addAttributes, deleteAttribute, deleteAttributes, getAttribute, getAttributes, setAttribute, setAttributesMethods inherited from interface com.sas.services.information.metadata.dav.DAVEntityInterface
addAccessControlEntry, copy, delete, getAccessControlList, getACL, getCreateDate, getDAVResource, getDescription, getFolder, getGUID, getModifyDate, getName, getProperties, getRemarksKeys, getRemoveUpdates, getReposId, getRepository, getSetUpdates, getType, getUpdateableACL, getUrl, getURL, isCollection, isDeleted, move, refresh, refresh, removeAccessControlEntry, setACL, setContentClass, setDeleted, setDescription, setGUID, setName, setRemarksKeys, setReposId, update
-
Constructor Details
-
DAVEvent
Creates a new DAVEvent for the entity with a repository idreposIdin the repositoryrepos -
DAVEvent
public DAVEvent(RepositoryData entity) Creates a new DAVEvent from the information in the entity
-
-
Method Details
-
getEventDocument
public Document getEventDocument()Deprecated.Return the event document.- Returns:
- Document XML document event
-
getEventDocumentAsString
public String getEventDocumentAsString()Return the event document as a string.- Returns:
- String XML document string
-
setEventDocumentFromString
public void setEventDocumentFromString(String eventDocString) Sets the event document. This is an XML document which becomes the resource's content.- Parameters:
eventDocString- The serialized XML document that represents the event
-
setEventDocument
public void setEventDocument(Document eventDoc) Deprecated.Sets the event document. This is an XML document which, serialised, becomes the resource's content.- Parameters:
eventDoc- The XML document that represents the event
-
promoteProperties
public void promoteProperties(Element root) Promotes a set of useful information from the event header section to distinct DAV properties, so these can be used in PROPFIND's, SEARCH's etc. The property names are assumed to be subelements of the element passed to this function. Elements that are not namespace qualified will be promoted to DAV properties in theConstants.NS_WEBDAV_EVENTX_URInamespace- Parameters:
root- The event's header Properties element
-
findPropertyValue
public String findPropertyValue(String expr) Returns the value of a property value in the event.Using an XPath expression one can select the element or attribute to be queried for the result. For this XPath expression, three default prefixes are mapped (by default) as follows:
Constants.NS_EVENTS_PREFIXis mapped to the event namespaceConstants. NS_EVENTS_URI
Constants. NS_PUBLISH_PREFIXis mapped to the publish namespaceConstants.NS_PUBLISH_URI
Constants. NS_STOREDPROCESS_ALERT_PREFIXis mapped to the stored process alert namespaceConstants.NS_STOREDPROCESS_ALERT_URIThe prefixes used are the same as those used in the event definitions and although this is not required, this makes it easier to cut and paste element or attribute names out of these event definitions. If an association other than the defaults is required, then use the XQuery namespace declaration syntax to define a namespace prefix and associate it with a namespace URI, followed by the XPath expression. For example
declare namespace foo = "http: //example.org" //foo: bar- Parameters:
expr- An XPath expression (with optional namespace declaration) which identifies the element or attribute whose value is required- Returns:
- String The value of the element or attribute identified in the
exprparameter
-