Skip to main content
Level 2
Oct 16, 2015 2:27 AM UTC
Solved

HOOKS ON Package Manager Servlet

 Hi,

As a part of my project we are trying to disable a workflow launcher before a package in installed and then enable the launcher when the installation of the package is done.

And so we need some hooks on the Package Manager Servlet. We tried to detect the request via a sling filter but it did not work. I would be great if some hooks can be provided on the

package manager Servlet.

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
joerghoh
joerghohAccepted solution
Adobe Employee
Oct 16, 2015 2:27 AM UTC

Hi,

You can build your own servlet which you can use to upload a package to package manager. Then you have full control over package upload and installation. Lookup the API docs for the service JcrPackageManager.

kind regards,
Jörg

2 replies

tarkashAuthor
Level 2
Oct 16, 2015 2:27 AM UTC

Hi Jörg,

We do not need to customize the package upload/install process. I just need a filter over it. I simply want to do some activity before and after the package install (nothing to be inside the package or its install process).

Any normal filter is not detecting the package manager Servlet request.

Any ways thanks for your reply.

Translate
joerghoh
Adobe Employee
joerghohAdobe EmployeeAccepted solution
Adobe Employee
Oct 16, 2015 2:27 AM UTC

Hi,

You can build your own servlet which you can use to upload a package to package manager. Then you have full control over package upload and installation. Lookup the API docs for the service JcrPackageManager.

kind regards,
Jörg

Translate