public class VersionControlledResourceImpl extends DeltaVResourceImpl implements VersionControlledResource
VersionControlledResourceImpl
represents a JCR node item and
covers all functionality related to versioning of Node
s.Node
supportedReports
COMPLIANCE_CLASSES, METHODS, properties, propsInitialized
ACTIVITY_SET, AUTO_MERGE_SET, AUTO_VERSION, BASELINE_CONTROLLED_COLLECTION, CHECKED_IN, CHECKED_OUT, CHECKIN_FORK, CHECKOUT_FORK, ECLIPSED_SET, MERGE_SET, methods_checkedIn, methods_checkedOut, PREDECESSOR_SET, SUBBASELINE_SET, UNRESERVED, VERSION_HISTORY
METHODS
METHODS_INCL_MKWORKSPACE
JCR_AUTOCREATED, JCR_BASEVERSION, JCR_CHILD, JCR_CHILDNODEDEFINITION, JCR_CONTENT, JCR_CREATED, JCR_DATA, JCR_DEFAULTPRIMARYTYPE, JCR_DEFAULTVALUES, JCR_ENCODING, JCR_FROZENMIXINTYPES, JCR_FROZENNODE, JCR_FROZENPRIMARYTYPE, JCR_FROZENUUID, JCR_HASORDERABLECHILDNODES, JCR_ISCHECKEDOUT, JCR_ISMIXIN, JCR_LANGUAGE, JCR_LASTMODIFIED, JCR_LOCKISDEEP, JCR_LOCKOWNER, JCR_MANDATORY, JCR_MERGEFAILED, JCR_MIMETYPE, JCR_MIXINTYPES, JCR_MULTIPLE, JCR_NAME, JCR_NODETYPENAME, JCR_ONPARENTVERSION, JCR_PATH, JCR_PREDECESSORS, JCR_PRIMARYITEMNAME, JCR_PRIMARYTYPE, JCR_PROPERTYDEFINITION, JCR_PROTECTED, JCR_REQUIREDPRIMARYTYPES, JCR_REQUIREDTYPE, JCR_ROOTVERSION, JCR_SAMENAMESIBLINGS, JCR_SCORE, JCR_STATEMENT, JCR_SUCCESSORS, JCR_SUPERTYPES, JCR_SYSTEM, JCR_UUID, JCR_VALUECONSTRAINTS, JCR_VERSIONABLEUUID, JCR_VERSIONHISTORY, JCR_VERSIONLABELS, JCR_VERSIONSTORAGE, MIX_LOCKABLE, MIX_REFERENCEABLE, MIX_SHAREABLE, MIX_VERSIONABLE, NT_BASE, NT_CHILDNODEDEFINITION, NT_FILE, NT_FOLDER, NT_FROZENNODE, NT_HIERARCHYNODE, NT_LINKEDFILE, NT_NODETYPE, NT_PROPERTYDEFINITION, NT_QUERY, NT_RESOURCE, NT_UNSTRUCTURED, NT_VERSION, NT_VERSIONEDCHILD, NT_VERSIONHISTORY, NT_VERSIONLABELS
Constructor and Description |
---|
VersionControlledResourceImpl(DavResourceLocator locator,
DavResourceFactory factory,
DavSession session,
ResourceConfig config,
boolean isCollection)
Create a new
DavResource . |
VersionControlledResourceImpl(DavResourceLocator locator,
DavResourceFactory factory,
DavSession session,
ResourceConfig config,
Item item)
Create a new
DavResource . |
Modifier and Type | Method and Description |
---|---|
void |
addVersionControl()
Adds version control to this resource.
|
String |
checkin()
Calls
Node.checkin() on the underlying repository node. |
void |
checkout()
Calls
Node.checkout() on the underlying repository node. |
String |
getSupportedMethods()
Return a comma separated string listing the supported method names.
|
VersionHistoryResource |
getVersionHistory()
Returns the
VersionHistory associated with the repository node. |
protected void |
initProperties()
Fill the property set for this resource.
|
protected void |
initSupportedReports()
Define the set of reports supported by this resource.
|
void |
label(LabelInfo labelInfo)
Modify the labels present with the versions of this resource.
|
MultiStatus |
merge(MergeInfo mergeInfo)
MERGE feature is not (yet) supported.
|
void |
uncheckout()
UNCHECKOUT cannot be implemented on top of JSR 170 repository.
|
MultiStatus |
update(UpdateInfo updateInfo)
UPDATE feature is not (yet) supported.
|
addWorkspace, createResourceFromLocator, getComplianceClass, getHrefProperty, getLocatorFromNode, getLocatorFromNodePath, getOptionResponse, getReferenceResources, getReport
addLockManager, addMember, alterProperties, bind, copy, exists, getCollection, getDisplayName, getExportContext, getFactory, getHref, getImportContext, getLocator, getLock, getLocks, getMembers, getModificationTime, getNode, getParentElements, getProperties, getProperty, getPropertyExportContext, getPropertyImportContext, getPropertyNames, getResourcePath, getSession, hasLock, isCollection, isLockable, lock, move, rebind, refreshLock, removeMember, removeProperty, setProperty, spool, unlock
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addWorkspace, getOptionResponse, getReferenceResources, getReport
addLockManager, addMember, alterProperties, copy, exists, getCollection, getComplianceClass, getDisplayName, getFactory, getHref, getLocator, getLock, getLocks, getMembers, getModificationTime, getProperties, getProperty, getPropertyNames, getResourcePath, getSession, hasLock, isCollection, isLockable, lock, move, refreshLock, removeMember, removeProperty, setProperty, spool, unlock
public VersionControlledResourceImpl(DavResourceLocator locator, DavResourceFactory factory, DavSession session, ResourceConfig config, Item item) throws DavException
DavResource
.locator
- factory
- session
- config
- item
- DavException
public VersionControlledResourceImpl(DavResourceLocator locator, DavResourceFactory factory, DavSession session, ResourceConfig config, boolean isCollection) throws DavException
DavResource
.locator
- factory
- session
- config
- isCollection
- DavException
public String getSupportedMethods()
getSupportedMethods
in interface DavResource
getSupportedMethods
in class DavResourceImpl
DavResource.getSupportedMethods()
public void addVersionControl() throws DavException
HttpServletResponse.SC_METHOD_NOT_ALLOWED
.addVersionControl
in interface VersionableResource
DavException
- if this resource does not
exist yet, is a collection or if an error occurs while making the
underlying node versionable.VersionableResource.addVersionControl()
public String checkin() throws DavException
Node.checkin()
on the underlying repository node.checkin
in interface VersionControlledResource
DavException
VersionControlledResource.checkin()
public void checkout() throws DavException
Node.checkout()
on the underlying repository node.checkout
in interface VersionControlledResource
DavException
VersionControlledResource.checkout()
public void uncheckout() throws DavException
DavException
with error code
HttpServletResponse.SC_NOT_IMPLEMENTED
.uncheckout
in interface VersionControlledResource
DavException
VersionControlledResource.uncheckout()
public MultiStatus update(UpdateInfo updateInfo) throws DavException
HttpServletResponse.SC_NOT_IMPLEMENTED
.update
in interface VersionControlledResource
updateInfo
- DavException
VersionControlledResource.update(UpdateInfo)
public MultiStatus merge(MergeInfo mergeInfo) throws DavException
HttpServletResponse.SC_NOT_IMPLEMENTED
.merge
in interface VersionControlledResource
mergeInfo
- DavException
VersionControlledResource.merge(MergeInfo)
public void label(LabelInfo labelInfo) throws DavException
label
in interface VersionControlledResource
labelInfo
- DavException
VersionControlledResource.label(LabelInfo)
,
VersionHistory.addVersionLabel(String, String, boolean)
,
VersionHistory.removeVersionLabel(String)
public VersionHistoryResource getVersionHistory() throws DavException
VersionHistory
associated with the repository node.
If the node is not versionable an exception is thrown.getVersionHistory
in interface VersionControlledResource
VersionHistoryResource
associated with this resource.DavException
VersionControlledResource.getVersionHistory()
,
Node.getVersionHistory()
protected void initSupportedReports()
initSupportedReports
in class DeltaVResourceImpl
SupportedReportSetProperty
,
DeltaVResourceImpl.initSupportedReports()
protected void initProperties()
initProperties
in class DeltaVResourceImpl
DavResourceImpl.initProperties()
Copyright © 2004–2021 The Apache Software Foundation. All rights reserved.