public interface VersionControlledResource extends VersionableResource
VersionControlledResource
represents in contrast to the
VersionableResource
a resource, that has already been put
under version-control. This resource can be checked-in, checked-out and
has its own version history
.
RFC 3253 defines the following required properties for a version-controlled resource (vc-resource):
In addition a version-controlled resource must support the following METHODS:
DeltaVResource
,
VersionableResource
Modifier and Type | Field and Description |
---|---|
static DavPropertyName |
ACTIVITY_SET
DAV:activity-set is a property for a checked-out resource, if the
server supports the activity feature.
This property determines the DAV:activity-set property of the version that results from checking in this resource. |
static DavPropertyName |
AUTO_MERGE_SET
The DAV:auto-merge-set property identifies each version that the server
has merged into this checked-out resource.
|
static DavPropertyName |
AUTO_VERSION
The DAV:auto-version property determines how it responds to a method that
attempts to modify its content or dead properties.
|
static DavPropertyName |
BASELINE_CONTROLLED_COLLECTION
If the 'Baseline' feature is supported, DAV:baseline-controlled-collection
is a required property of any version-controlled resource, that represents
a 'configuration'.
|
static DavPropertyName |
CHECKED_IN
The DAV:checked-in property appears on a checked-in version-controlled
resource, and identifies the base version of this version-controlled
resource.
|
static DavPropertyName |
CHECKED_OUT
The DAV:checked-out property identifies the base version of this resource.
|
static DavPropertyName |
CHECKIN_FORK
This property determines the DAV:checkin-fork property of the version
that results from checking in this resource.
|
static DavPropertyName |
CHECKOUT_FORK
This property determines the DAV:checkout-fork property of the version
that results from checking in this resource.
|
static DavPropertyName |
ECLIPSED_SET
If the 'Version-Controlled-Collection Feature' is supported the
DAV:eclipsed-set property present on a collection identifies all
internal members that are not version-controlled and hide a vc internal
member with the same name.
|
static DavPropertyName |
MERGE_SET
This property identifies each version that is to be merged into this
checked-out resource.
|
static String |
methods_checkedIn
Methods defined for a checked-in version-controlled resource: CHECKOUT, UPDATE, MERGE, LABEL
|
static String |
methods_checkedOut
Methods defined for a checked-out version-controlled resource: CHECKIN, MERGE
|
static DavPropertyName |
PREDECESSOR_SET
The DAV:predecessor-set property of a version-controlled resource points
to those version resources, that are scheduled to become the predecessors
of this resource when it is back checked-in.
|
static DavPropertyName |
SUBBASELINE_SET
This property is mandatory for all checked-out version-controlled-configuration
resources.
|
static DavPropertyName |
UNRESERVED
DAV:unreserved is a property for a checked-out resource, if the server
supports the activity feature.
It indicates whether the DAV:activity-set of another checked-out resource associated with the version history of this version-controlled resource can have an activity that is in the DAV:activity-set property of this checked-out resource. |
static DavPropertyName |
VERSION_HISTORY
The computed property DAV:version-history identifies the version history
resource for the DAV:checked-in or DAV:checked-out version of this
version-controlled resource.
The property is defined to have the following format: |
METHODS
METHODS_INCL_MKWORKSPACE
Modifier and Type | Method and Description |
---|---|
String |
checkin()
Perform a checkin on the version controlled resource.
|
void |
checkout()
Perform a checkout on the version controlled resource.
|
VersionHistoryResource |
getVersionHistory()
Returns the
VersionHistoryResource , that is referenced in the
'version-history ' property. |
void |
label(LabelInfo labelInfo)
Modify the labels of the version referenced by the DAV:checked-in property
of this checked-in version-controlled resource.
|
MultiStatus |
merge(MergeInfo mergeInfo)
Perform a merge on this resource using the specified
MergeInfo . |
void |
uncheckout()
Perform an uncheckout on the version controlled resource.
|
MultiStatus |
update(UpdateInfo updateInfo)
Perform an update on this resource using the specified
UpdateInfo . |
addVersionControl
addWorkspace, getOptionResponse, getReferenceResources, getReport
addLockManager, addMember, alterProperties, copy, exists, getCollection, getComplianceClass, getDisplayName, getFactory, getHref, getLocator, getLock, getLocks, getMembers, getModificationTime, getProperties, getProperty, getPropertyNames, getResourcePath, getSession, getSupportedMethods, hasLock, isCollection, isLockable, lock, move, refreshLock, removeMember, removeProperty, setProperty, spool, unlock
static final String methods_checkedIn
static final String methods_checkedOut
static final DavPropertyName AUTO_VERSION
static final DavPropertyName VERSION_HISTORY
<!ELEMENT version-history (href)>
static final DavPropertyName CHECKED_IN
<!ELEMENT checked-in (href)>
static final DavPropertyName CHECKED_OUT
<!ELEMENT checked-out (href)>
CHECKED_IN
static final DavPropertyName PREDECESSOR_SET
<!ELEMENT predecessor-set (href+)>
checkin()
,
VersionResource.PREDECESSOR_SET
static final DavPropertyName CHECKIN_FORK
static final DavPropertyName CHECKOUT_FORK
static final DavPropertyName MERGE_SET
<!ELEMENT merge-set (href*)>
merge(MergeInfo)
static final DavPropertyName AUTO_MERGE_SET
<!ELEMENT auto-merge-set (href*)>
merge(MergeInfo)
static final DavPropertyName UNRESERVED
This property is defined to have the following format:
<!ELEMENT unreserved (#PCDATA)> PCDATA value: boolean
VersionResource.ACTIVITY_SET
static final DavPropertyName ACTIVITY_SET
VersionResource.ACTIVITY_SET
static final DavPropertyName ECLIPSED_SET
This property is defined to have the following format:
<!ELEMENT eclipsed-set (binding-name*)> <!ELEMENT binding-name (#PCDATA)> PCDATA value: URL segment
static final DavPropertyName BASELINE_CONTROLLED_COLLECTION
This property is defined to have the following format:
<!ELEMENT baseline-controlled-collection (href)>Note that the DAV:baseline-controlled-collection represents a
HrefProperty
static final DavPropertyName SUBBASELINE_SET
This property is defined to have the following format:
<!ELEMENT subbaseline-set (href*)>Note that the DAV:baseline-controlled-collection represents a
HrefProperty
BaselineResource.SUBBASELINE_SET
String checkin() throws DavException
DavException
- if an error occurs.void checkout() throws DavException
DavException
void uncheckout() throws DavException
DavException
MultiStatus update(UpdateInfo updateInfo) throws DavException
UpdateInfo
.updateInfo
- MultiStatus
containing the list of resources that
have been modified by this update call.DavException
MultiStatus merge(MergeInfo mergeInfo) throws DavException
MergeInfo
.mergeInfo
- MultiStatus
containing the list of resources that
have been modified.DavException
void label(LabelInfo labelInfo) throws DavException
labelInfo
- DavException
LabelInfo
,
for the pre- and postcondition of
a successful LABEL request.
VersionHistoryResource getVersionHistory() throws DavException
VersionHistoryResource
, that is referenced in the
'version-history
' property.DavException
Copyright © 2004–2021 The Apache Software Foundation. All rights reserved.