Klasse CheckinOperation
java.lang.Object
org.apache.sling.servlets.post.impl.operations.AbstractPostOperation
org.apache.sling.servlets.post.impl.operations.CheckinOperation
- Alle implementierten Schnittstellen:
JakartaPostOperation
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.-
Feldübersicht
Von Klasse geerbte Felder org.apache.sling.servlets.post.impl.operations.AbstractPostOperation
jcrSupport, logVon Schnittstelle geerbte Felder org.apache.sling.servlets.post.JakartaPostOperation
PROP_OPERATION_NAME, SERVICE_NAME -
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungprotected 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) Checkin operation always checks in.Von Klasse geerbte Methoden org.apache.sling.servlets.post.impl.operations.AbstractPostOperation
externalizePath, getApplyToResources, getResourcePath, getVersioningConfiguration, orderResource, run
-
Konstruktordetails
-
CheckinOperation
public CheckinOperation()
-
-
Methodendetails
-
doRun
protected void doRun(org.apache.sling.api.SlingJakartaHttpServletRequest request, JakartaPostResponse response, List<Modification> changes) throws org.apache.sling.api.resource.PersistenceException Beschreibung aus Klasse kopiert: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.- Angegeben von:
doRunin KlasseAbstractPostOperation- Parameter:
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.- Löst aus:
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) Checkin operation always checks in.- Setzt außer Kraft:
isSkipCheckinin KlasseAbstractPostOperation- Parameter:
request- The http request- Gibt zurück:
trueif checkin should be skipped
-