Class PackageServlet.CleanupObsoleteVersionsOperation
- java.lang.Object
-
- com.composum.sling.core.pckgmgr.jcrpckg.PackageServlet.CleanupObsoleteVersionsOperation
-
- All Implemented Interfaces:
ServletOperation
- Enclosing class:
- PackageServlet
protected class PackageServlet.CleanupObsoleteVersionsOperation extends Object implements ServletOperation
Deletes the given obsolete package versions. As safety checks, we check that neither of the packages is in installed state and for all of them there is a newer version present. If that's the case for all packageIds, wePackageRegistry.remove(PackageId)
them.- path
- Path below which we delete package versions, registry path or not
- packlageId
- One or more packageIds
PackageId.toString()
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
CleanupObsoleteVersionsOperation()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
doIt(org.apache.sling.api.SlingHttpServletRequest request, org.apache.sling.api.SlingHttpServletResponse response, ResourceHandle resource)
-
-
-
Method Detail
-
doIt
public void doIt(@Nonnull org.apache.sling.api.SlingHttpServletRequest request, @Nonnull org.apache.sling.api.SlingHttpServletResponse response, @Nullable ResourceHandle resource) throws javax.jcr.RepositoryException, IOException, javax.servlet.ServletException
- Specified by:
doIt
in interfaceServletOperation
- Throws:
javax.jcr.RepositoryException
IOException
javax.servlet.ServletException
-
-