| |
|
| java.lang.Object com.ibm.webdav.Resource com.ibm.webdav.VersionedResource
VersionedResource | public class VersionedResource extends Resource (Code) | | A versioned resource represents all revisions of a
particular resource. A versioned resource corresponds
to the root or initial version of all the revisions of
a resource.
|
VersionedResource | public VersionedResource()(Code) | | VersionedResource constructor comment.
|
delete | public MultiStatus delete() throws WebDAVException(Code) | | Delete this versioned resource. The versioned resource
and all its revisions are removed from the repository. Any
workspaces resolving to a revision of this versioned resource
will return resource not found status. When used in the revision
selection rule for a workspace, configurations containing a
revision of this resource will result in a resource not found status.
a MultiStatus containing the status of the delete method on eacheffected resource. exception: com.ibm.webdav.WebDAVException - exception: RemoteException - exception: IOException - exception: java.rmi.NotBoundException - |
getDefaultTarget | public TargetSelector getDefaultTarget() throws WebDAVException(Code) | | Get the default target for this versioned resource. The default target
specifies the revision selected when no TargetSelector is specified.
the TargetSelector for the default revision. Must be eithera LabelSelector, a RevisionSelector, or null. Null means the versioned resourcehas no default revision. exception: com.ibm.webdav.WebDAVException - |
getMutableProperties | public Enumeration getMutableProperties() throws WebDAVException(Code) | | A resource may have a number of mutable properties. These are
properties that may change even when the resource is checked in.
Changes to these properties does not require a new revision.
an Enumeration of the mutable properties of this resource exception: com.ibm.webdav.WebDAVException - |
getRevisionHistory | public Document getRevisionHistory() throws WebDAVException(Code) | | Get the revision history for a versioned resource. The revision
history lists the revisions of a resource and their predecessors
and successors. The format of the document is given in section
Revision History. The document will not contain any revisions
if the resource is not versioned.
an XML document containing the revision history of theassociated versioned resource. exception: com.ibm.webdav.WebDAVException - |
getRevisions | public Enumeration getRevisions() throws WebDAVException(Code) | | Get the revisions of this versioned resource. The first revision is always
the initial revision of the versioned resource, but subsequent entries
are not in any particular order.
An Enumeration of revisions of this VersionedResource exception: com.ibm.webdav.WebDAVException - |
getVersioningOptions | public Element getVersioningOptions() throws WebDAVException(Code) | | Get the versioning options for this resource. Versioning options
are established by the server and include:
- Mutable/immutable revisions
- Supports multiple activities
- Can be a member of a configuration
- Is automatically versioned
an XML Element containing the versioning options forthis resource exception: com.ibm.webdav.WebDAVException - |
isAutomaticallyVersioned | public boolean isAutomaticallyVersioned() throws WebDAVException(Code) | | A resource can be automatically versioned on each method
that updates its state (content or properties). Non-versioning
aware clients use automatic versioning to support updates. If
a resource is not automatically versioned, attempts to update
the revision without explicitly checking it out first will fail.
true if this resource is automatically versioned,false if not. exception: com.ibm.webdav.WebDAVException - |
isLinear | public boolean isLinear() throws WebDAVException(Code) | | When the DAV:linear property of a versioned resource is true, only
one working resource can be checked out from that versioned resource
at any time, and only the revision that has no successors can be checked
out.
true if this resource is constrained to have a linear revision history,false if not. exception: com.ibm.webdav.WebDAVException - |
setDefaultTarget | public void setDefaultTarget(TargetSelector targetSelector) throws WebDAVException(Code) | | Set the default target for this versioned resource. The default target
specifies the revision selected when no TargetSelector is specified.
Parameters: targetSelector - the TargetSelector for the default revision. Must be eithera LabelSelector, a RevisionSelector, or null. Null means the versioned resourcehas no default revision. exception: com.ibm.webdav.WebDAVException - |
Methods inherited from com.ibm.webdav.Resource | public void addLabel(String label) throws WebDAVException(Code)(Java Doc) public MultiStatus addProperties(PropertyName[] names, Element[] values) throws WebDAVException(Code)(Java Doc) public void addProperty(PropertyName name, Element value) throws WebDAVException(Code)(Java Doc) public void cancelCheckOut() throws WebDAVException(Code)(Java Doc) public TargetSelector checkOut() throws WebDAVException(Code)(Java Doc) public TargetSelector checkOut(Workspace workspace) throws WebDAVException(Code)(Java Doc) public void checkPoint(boolean makeCurrentTarget, boolean overwrite) throws WebDAVException(Code)(Java Doc) public void checkin() throws WebDAVException(Code)(Java Doc) public void checkin(Activity activity, boolean makeCurrentTarget, boolean overwrite) throws WebDAVException(Code)(Java Doc) public void checkin(boolean makeCurrentTarget, boolean overwrite) throws WebDAVException(Code)(Java Doc) public void closeContentsOutputStream() throws WebDAVException(Code)(Java Doc) public void closeContentsOutputStream(String sContentType) throws WebDAVException(Code)(Java Doc) public MultiStatus copy(String destinationURL) throws WebDAVException(Code)(Java Doc) public MultiStatus copy(String destinationURL, boolean overwrite, Vector propertiesToCopy) throws WebDAVException(Code)(Java Doc) public MultiStatus delete() throws WebDAVException(Code)(Java Doc) public Document differencesWith(Resource resource) throws WebDAVException(Code)(Java Doc) public boolean equals(Resource resource) throws WebDAVException(Code)(Java Doc) public boolean exists() throws WebDAVException(Code)(Java Doc) public void flushCaches() throws WebDAVException(Code)(Java Doc) public ActiveLock getActiveLockFor(String principal) throws WebDAVException(Code)(Java Doc) public Activity getActivity() throws WebDAVException(Code)(Java Doc) public byte[] getContents() throws WebDAVException(Code)(Java Doc) public InputStream getContentsInputStream() throws WebDAVException(Code)(Java Doc) public OutputStream getContentsOutputStream() throws WebDAVException(Code)(Java Doc) public ResourceContext getContext()(Code)(Java Doc) public Enumeration getLabels() throws WebDAVException(Code)(Java Doc) public Vector getLocks() throws WebDAVException(Code)(Java Doc) public Enumeration getMergeCandidates() throws WebDAVException(Code)(Java Doc) public Enumeration getMergePredecessors() throws WebDAVException(Code)(Java Doc) public void getMetaInformation() throws WebDAVException(Code)(Java Doc) public Enumeration getMutableProperties() throws WebDAVException(Code)(Java Doc) public Element getOptions() throws WebDAVException(Code)(Java Doc) public Collection getParentCollection() throws WebDAVException(Code)(Java Doc) public Resource getPredecessor() throws WebDAVException(Code)(Java Doc) public MultiStatus getProperties() throws WebDAVException(Code)(Java Doc) public MultiStatus getProperties(PropertyName names) throws WebDAVException(Code)(Java Doc) public PropertyValue getProperty(PropertyName name) throws WebDAVException(Code)(Java Doc) public MultiStatus getPropertyNames() throws WebDAVException(Code)(Java Doc) public HTTPHeaders getRequestContext() throws WebDAVException(Code)(Java Doc) public HTTPHeaders getResponseContext() throws WebDAVException(Code)(Java Doc) public Document getRevisionHistory() throws WebDAVException(Code)(Java Doc) public String getRevisionId() throws WebDAVException(Code)(Java Doc) public int getStatusCode() throws WebDAVException(Code)(Java Doc) public String getStatusMessage() throws WebDAVException(Code)(Java Doc) public Enumeration getSuccessors() throws WebDAVException(Code)(Java Doc) public TargetSelector getTargetSelector() throws WebDAVException(Code)(Java Doc) public URL getURL() throws WebDAVException(Code)(Java Doc) public String getWorkingResourceId() throws WebDAVException(Code)(Java Doc) public Enumeration getWorkingResources() throws WebDAVException(Code)(Java Doc) protected void initialize(URL url, TargetSelector targetSelector) throws WebDAVException(Code)(Java Doc) public boolean isAutomaticallyVersioned() throws WebDAVException(Code)(Java Doc) public boolean isCheckedOut(Activity activity) throws WebDAVException(Code)(Java Doc) public boolean isCollection() throws WebDAVException(Code)(Java Doc) public boolean isLabeledWith(String label) throws WebDAVException(Code)(Java Doc) public boolean isLocked() throws WebDAVException(Code)(Java Doc) public boolean isLockedByMe() throws WebDAVException(Code)(Java Doc) public boolean isMutable() throws WebDAVException(Code)(Java Doc) boolean isVersioned() throws WebDAVException(Code)(Java Doc) public MultiStatus lock(Document document) throws WebDAVException(Code)(Java Doc) public MultiStatus lock(String scope, String type, int timeout, Element owner) throws WebDAVException(Code)(Java Doc) public MultiStatus move(String destinationURL) throws WebDAVException(Code)(Java Doc) public MultiStatus move(String destinationURL, boolean overwrite, Vector propertiesToMove) throws WebDAVException(Code)(Java Doc) public byte[] performWith(String args) throws WebDAVException(Code)(Java Doc) public MultiStatus refreshLock(String lockToken, int timeout) throws WebDAVException(Code)(Java Doc) public void removeLabel(String label) throws WebDAVException(Code)(Java Doc) public MultiStatus removeProperties(PropertyName[] names) throws WebDAVException(Code)(Java Doc) public void removeProperty(PropertyName name) throws WebDAVException(Code)(Java Doc) public void setContents(byte[] value) throws WebDAVException(Code)(Java Doc) public void setContents(byte[] value, String mimetype) throws WebDAVException(Code)(Java Doc) public MultiStatus setProperties(PropertyName[] names, Element[] values) throws WebDAVException(Code)(Java Doc) public MultiStatus setProperties(Document updates) throws WebDAVException(Code)(Java Doc) public void setProperty(PropertyName name, Element value) throws WebDAVException(Code)(Java Doc) public void setRequestContext(HTTPHeaders value) throws WebDAVException(Code)(Java Doc) public void setResponseContext(HTTPHeaders value) throws WebDAVException(Code)(Java Doc) public void setStatusCode(int value) throws WebDAVException(Code)(Java Doc) public String toString()(Code)(Java Doc) public MultiStatus unlock(String lockToken) throws WebDAVException(Code)(Java Doc)
|
|
|
|