Class CheckinOperation
java.lang.Object
org.apache.sling.servlets.post.impl.operations.AbstractPostOperation
org.apache.sling.servlets.post.impl.operations.CheckinOperation
- All Implemented Interfaces:
PostOperation
The
CheckinOperation
class implements the
checkin
operation for the Sling default POST servlet.
The checkin 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, log
Fields inherited from interface org.apache.sling.servlets.post.PostOperation
PROP_OPERATION_NAME, SERVICE_NAME
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
doRun
(SlingHttpServletRequest request, PostResponse response, List<Modification> changes) Actually performs the desired operation filling progress into thechanges
list and preparing and further information in theresponse
.protected boolean
isSkipCheckin
(SlingHttpServletRequest request) Checkin operation always checks in.Methods inherited from class org.apache.sling.servlets.post.impl.operations.AbstractPostOperation
externalizePath, getApplyToResources, getResourcePath, getVersioningConfiguration, orderResource, run
-
Constructor Details
-
CheckinOperation
public CheckinOperation()
-
-
Method Details
-
doRun
protected void doRun(SlingHttpServletRequest request, PostResponse response, List<Modification> changes) throws PersistenceException Description copied from class:AbstractPostOperation
Actually performs the desired operation filling progress into thechanges
list and preparing and further information in theresponse
.The
response
comes prepared with the path, location and parent location set. Other properties are expected to be set by this implementation.- Specified by:
doRun
in classAbstractPostOperation
- Parameters:
request
- TheSlingHttpServletRequest
providing the input, mostly in terms of request parameters, to the operation.response
- ThePostResponse
to fill with response informationchanges
- A container to addModification
instances representing the operations done.- Throws:
PersistenceException
- Maybe thrown if any error occurs while accessing the repository.
-
isSkipCheckin
Checkin operation always checks in.- Overrides:
isSkipCheckin
in classAbstractPostOperation
- Parameters:
request
- The http request- Returns:
true
if checkin should be skipped
-