Class CheckoutOperation
java.lang.Object
org.apache.sling.servlets.post.impl.operations.AbstractPostOperation
org.apache.sling.servlets.post.impl.operations.CheckoutOperation
- All Implemented Interfaces:
JakartaPostOperation
The
CheckoutOperation class implements the
checkout
operation for the Sling default POST servlet.
The checkout operation depends on the resources being backed up by a JCR node.-
Field Summary
Fields inherited from class org.apache.sling.servlets.post.impl.operations.AbstractPostOperation
jcrSupport, logFields inherited from interface org.apache.sling.servlets.post.JakartaPostOperation
PROP_OPERATION_NAME, SERVICE_NAME -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voiddoRun(org.apache.sling.api.SlingJakartaHttpServletRequest request, JakartaPostResponse response, List<Modification> changes) Actually performs the desired operation filling progress into thechangeslist and preparing and further information in theresponse.protected booleanisSkipCheckin(org.apache.sling.api.SlingJakartaHttpServletRequest request) Checkout operation is always skipping checkin.Methods inherited from class org.apache.sling.servlets.post.impl.operations.AbstractPostOperation
externalizePath, getApplyToResources, getResourcePath, getVersioningConfiguration, orderResource, run
-
Constructor Details
-
CheckoutOperation
public CheckoutOperation()
-
-
Method Details
-
doRun
protected void doRun(org.apache.sling.api.SlingJakartaHttpServletRequest request, JakartaPostResponse response, List<Modification> changes) throws org.apache.sling.api.resource.PersistenceException Description copied from class:AbstractPostOperationActually performs the desired operation filling progress into thechangeslist and preparing and further information in theresponse.The
responsecomes prepared with the path, location and parent location set. Other properties are expected to be set by this implementation.- Specified by:
doRunin classAbstractPostOperation- Parameters:
request- TheSlingJakartaHttpServletRequestproviding the input, mostly in terms of request parameters, to the operation.response- ThePostResponseto fill with response informationchanges- A container to addModificationinstances representing the operations done.- Throws:
org.apache.sling.api.resource.PersistenceException- Maybe thrown if any error occurs while accessing the repository.
-
isSkipCheckin
protected boolean isSkipCheckin(org.apache.sling.api.SlingJakartaHttpServletRequest request) Checkout operation is always skipping checkin.- Overrides:
isSkipCheckinin classAbstractPostOperation- Parameters:
request- The http request- Returns:
trueif checkin should be skipped
-