|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.wvcm.store.webdav.WebdavAccessor
org.apache.wvcm.store.webdav.ResourceWebdavAccessor
org.apache.wvcm.store.webdav.ControllableResourceWebdavAccessor
public class ControllableResourceWebdavAccessor
WebDAV-based implementation of ControllableResourceAccessor.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class org.apache.wvcm.store.webdav.WebdavAccessor |
---|
WebdavAccessor.HttpClientWrapper |
Field Summary |
---|
Fields inherited from class org.apache.wvcm.store.webdav.WebdavAccessor |
---|
providerImpl |
Constructor Summary | |
---|---|
ControllableResourceWebdavAccessor(Resource resource)
Constructor. |
Method Summary | |
---|---|
void |
doAddLabel(java.lang.String label)
Apply ControllableResource.doAddLabel(java.lang.String) to the CheckedIn version of this ControllableResource . |
void |
doCheckin(boolean keepCheckedOut,
boolean forkOK)
Changes the state of the resource identified by the associated ControllableResource
to be checked-in. |
void |
doCheckout(boolean forkOK,
java.util.List activityList,
boolean newActivity,
boolean unreserved)
Checkout the associated resource so that its content can be modified. |
void |
doControl()
Put the associated resource under (version) control. |
void |
doCreateResource()
Create a new persistent controllable resource at the location of the associated resource. |
void |
doCreateVersionControlledResource(Version v)
Create a new controlled resource at the location identified by the proxy. |
Version |
doReadLabelledVersionProperties(java.lang.String label,
PropertyNameList wantedPropertyList)
Apply ControllableResource.doReadLabelledVersionProperties(java.lang.String, javax.wvcm.PropertyNameList)
to the version history of this ControllableResource . |
void |
doRemoveLabel(java.lang.String label)
Apply ControllableResource.doRemoveLabel(java.lang.String) to the CheckedIn version of this ControllableResource . |
void |
doSetLabel(java.lang.String label)
Apply ControllableResource.doSetLabel(java.lang.String) to the CheckedIn version of this ControllableResource . |
void |
doUncheckout()
Cancels the checkout of a version-controlled resource, and restores its content to the state of its CheckedOut version. |
java.util.Iterator |
doUpdate(Version version,
PropertyNameList wantedPropertyList)
Update the state of the associated checked-in version-controlled ControllableResource to be the same as the specified version from
the version history of the associated ControllableResource . |
Methods inherited from class org.apache.wvcm.store.webdav.ResourceWebdavAccessor |
---|
addLockTokens, addLockTokens, client, containsNestedProperties, doCheckExists, doCopy, doDelete, doLabel, doLock, doMove, doReadAccessControlList, doReadAllAttributes, doReadContent, doReadProperties, doSearch, doUnlock, doWriteAccessControlList, doWriteContent, doWriteProperties, getNestedExceptions, resource, setHttpMethod, setHttpMethod |
Methods inherited from class org.apache.wvcm.store.webdav.WebdavAccessor |
---|
defaultContextPath, getHttpClient, getHttpClientWrapper, initialize, serverWorkspaceFolderList |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.apache.wvcm.store.ResourceAccessor |
---|
doCheckExists, doCopy, doDelete, doLock, doMove, doReadAccessControlList, doReadContent, doReadProperties, doSearch, doUnlock, doWriteAccessControlList, doWriteContent, doWriteProperties, resource |
Methods inherited from interface org.apache.wvcm.store.Accessor |
---|
serverWorkspaceFolderList |
Constructor Detail |
---|
public ControllableResourceWebdavAccessor(Resource resource)
Method Detail |
---|
public void doCreateResource() throws WvcmException
doCreateResource
in interface ControllableResourceAccessor
WvcmException
public void doCheckout(boolean forkOK, java.util.List activityList, boolean newActivity, boolean unreserved) throws WvcmException
doCheckout
in interface ControllableResourceAccessor
forkOK
- Indicates whether to do the checkout even if the
version already has a successor or a checkout.activityList
- A list of Activity
objects that identify
the activities to which the work on the
checked-out resource will contribute.newActivity
- Indicates whether to create a new activity
for the checkout.unreserved
- Indicates whether to do the checkout even
if there already is a checkout from the currently selected
version in one of the activities specified in the activityList.
WvcmException
public void doCheckin(boolean keepCheckedOut, boolean forkOK) throws WvcmException
ControllableResource
to be checked-in. If version history is being tracked for the
resource, the current content of the resource is captured
in a new version resource at a server-defined location.
doCheckin
in interface ControllableResourceAccessor
keepCheckedOut
- indicates whether to checkout the
resource again immediately after checking it in.
If keepCheckedOut is true
, the ActivityList
and Unreserved properties should not be changed by the checkout.forkOK
- indicates whether to fork even if forking
is discouraged.
WvcmException
public void doUncheckout() throws WvcmException
doUncheckout
in interface ControllableResourceAccessor
WvcmException
public void doControl() throws WvcmException
doControl
in interface ControllableResourceAccessor
WvcmException
public java.util.Iterator doUpdate(Version version, PropertyNameList wantedPropertyList) throws WvcmException
ControllableResource
to be the same as the specified version from
the version history of the associated ControllableResource
.
doUpdate
in interface ControllableResourceAccessor
version
- The version specifying the new state of the resourcewantedPropertyList
- The list of properties that will be available
ControllableResource
objects that
have been modified as a result of the doUpdate request.
Each version-controlled resource contains a value for each
of the properties specified in the WantedPropertyList.
WvcmException
public void doCreateVersionControlledResource(Version v) throws WvcmException
doCreateVersionControlledResource
in interface ControllableResourceAccessor
v
- The version used to initialize the controlled
resource.
WvcmException
public void doAddLabel(java.lang.String label) throws WvcmException
ControllableResource.doAddLabel(java.lang.String)
to the CheckedIn version of this ControllableResource
.
doAddLabel
in interface ControllableResourceAccessor
WvcmException
public void doSetLabel(java.lang.String label) throws WvcmException
ControllableResource.doSetLabel(java.lang.String)
to the CheckedIn version of this ControllableResource
.
doSetLabel
in interface ControllableResourceAccessor
WvcmException
public void doRemoveLabel(java.lang.String label) throws WvcmException
ControllableResource.doRemoveLabel(java.lang.String)
to the CheckedIn version of this ControllableResource
.
doRemoveLabel
in interface ControllableResourceAccessor
WvcmException
public Version doReadLabelledVersionProperties(java.lang.String label, PropertyNameList wantedPropertyList) throws WvcmException
ControllableResource.doReadLabelledVersionProperties(java.lang.String, javax.wvcm.PropertyNameList)
to the version history of this ControllableResource
.
doReadLabelledVersionProperties
in interface ControllableResourceAccessor
WvcmException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |