|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.webdav.client.AbstractResourceHandle
org.eclipse.webdav.client.ResourceHandle
public class ResourceHandle
The ResourceHandle
class represents an
ordinary resource in the system. It subclasses AbstractResourceHandle
and overrides some of its methods in order to provide specific behaviour for
this resource type.
Note: This class/interface is part of an interim API that is still under development and expected to change significantly before reaching stability. It is being made available at this early stage to solicit feedback from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken (repeatedly) as the API evolves.
Field Summary |
---|
Fields inherited from class org.eclipse.webdav.client.AbstractResourceHandle |
---|
davClient, locator |
Fields inherited from interface org.eclipse.webdav.internal.kernel.WebDAVPropertyValues |
---|
DAV_ACTIVITY_RESOURCE_TYPE, DAV_BASELINE_RESOURCE_TYPE, DAV_COLLECTION_RESOURCE_TYPE, DAV_DISCOURAGED, DAV_FORBIDDEN, DAV_HISTORY_RESOURCE_TYPE, DAV_KEEP_CHECKED_OUT, DAV_LOCKED_UPDATE, DAV_NEW_VERSION, DAV_OK, DAV_OVERWRITE, DAV_UNLOCKED_UPDATE, DAV_VERSION_HISTORY_RESOURCE_TYPE, DAV_WORKSPACE_RESOURCE_TYPE |
Fields inherited from interface org.eclipse.webdav.internal.kernel.WebDAVConstants |
---|
DAV_URI |
Constructor Summary | |
---|---|
ResourceHandle(DAVClient davClient,
ILocator locator)
Creates a new ResourceHandle from the given
DAVClient and Locator . |
Method Summary | |
---|---|
AbstractResourceHandle |
checkOut()
Check out this resource. |
void |
create()
Persistently create this resource instance in the repository. |
boolean |
isActivity()
Check to see if the resource is an activity resource. |
boolean |
isBaseline()
Check to see if the resource is a baseline resource. |
boolean |
isVersionControlledConfiguration()
Check to see if the resource is a version-controlled configuration resource. |
boolean |
isVersionHistory()
Check to see if the resource is a version history resource. |
Methods inherited from class org.eclipse.webdav.client.AbstractResourceHandle |
---|
asCollectionHandle, asResourceHandle, canTalkDAV, checkIn, closeResponse, copy, copy, delete, delete, equals, examineMultiStatusResponse, examineResponse, examineStatusCode, exists, extractPropStats, getContent, getDAVClient, getLocator, getLocks, getParent, getProperties, getProperties, getProperty, getPropertyNames, getVersionTree, getWorkspaceCollections, hashCode, head, isCheckedIn, isCheckedOut, isCollection, isLocked, isVersion, isVersionControlled, isWorkingResource, lock, lock, move, move, newContext, newDocument, propertyHasChild, protectedCheckIn, protectedCheckOut, refreshLock, removeProperties, removeProperty, setContent, setContent, setProperties, setProperty, supportsLiveProperty, toString, trace, unlock, update, versionControl |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ResourceHandle(DAVClient davClient, ILocator locator)
ResourceHandle
from the given
DAVClient
and Locator
.
davClient
- locator
- Method Detail |
---|
public AbstractResourceHandle checkOut() throws DAVException
checkOut
in class AbstractResourceHandle
DAVException
- if a problem occurs checking out the resource.public void create() throws DAVException
Note that the usual method for creating an instance of a non-collection resource would be setContent(InputStream).
create
in class AbstractResourceHandle
DAVException
- if there was a problem creating this resourceAbstractResourceHandle.setContent(InputStream)
public boolean isActivity() throws DAVException
The resource is an activity resource if it has <DAV:subactivity-set> in the <DAV:supported-live-properties-set>.
true
if the resource is an activity
and false
otherwise.
DAVException
- if a problem occurs determining the state
of the resource.public boolean isBaseline() throws DAVException
The resource is a baseline resource if it has <DAV:baseline-collection> in the <DAV:supported-live-properties-set>.
true
if the resource is a baseline
and false
otherwise.
DAVException
- if a problem occurs determining the state
of the resource.public boolean isVersionControlledConfiguration() throws DAVException
The resource is a version-controlled configuration resource if it has <DAV:baseline-controlled-collection> in the <DAV:supported-live-properties-set>.
true
if the resource is a version-controlled
configuration and false
otherwise.
DAVException
- if a problem occurs determining the state
of the resource.public boolean isVersionHistory() throws DAVException
The resource is a version history resource if it has <DAV:root-version> in the <DAV:supported-live-properties-set>.
true
if the resource is a version history
and false
otherwise.
DAVException
- if a problem occurs determining the state
of the resource.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |