Expand my Community achievements bar.

SOLVED

HOOKS ON Package Manager Servlet

Avatar

Level 2

 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.

1 Accepted Solution

Avatar

Correct answer by
Employee Advisor

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

View solution in original post

2 Replies

Avatar

Correct answer by
Employee Advisor

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

Avatar

Level 2

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.