Discussion:
nexus plugin in help
kumar_ampani-30ULvvUtt6FWk0Htik3J/
2011-03-07 16:19:17 UTC
Permalink
I am developing a simple nexus plugin where I need to log something
everytime an artifact is added/accessed/deleted.
I am implementing the RequestProcessor and added to the requestprocessors
with my RepositoryCustomizer implementation.

I was hoping I can log the messages in requestPrcessor.process( Repository
repository, ResourceStoreRequest request, Action action )method, but I
don't think its getting called.

Any ideas or examples.

Thanks
Kumar

----------------------------------------------------------------------
CONFIDENTIALITY STATEMENT. The information contained in this e-mail message, including attachments, is the confidential information of, and/or is the property of, Vanguard. The information is intended for use solely by the individual or entity named in the message. If you are not an intended recipient or you received this in error, then any review, printing, copying, or distribution of any such information is prohibited, and please notify the sender immediately by reply e-mail and then delete this e-mail from your system.
Marvin Froeder
2011-03-07 16:28:24 UTC
Permalink
You can listen for events...

Here goes one example....
https://github.com/sonatype/nexus-core/blob/master/nexus/nexus-app/src/main/java/org/sonatype/nexus/events/ItemChangesFeedEventInspector.java


VELO
Post by kumar_ampani-30ULvvUtt6FWk0Htik3J/
I am developing a simple nexus plugin where I need to log something
everytime an artifact is added/accessed/deleted.
I am implementing the RequestProcessor and added to the requestprocessors
with my RepositoryCustomizer implementation.
I was hoping I can log the messages in requestPrcessor.process( Repository
repository, ResourceStoreRequest request, Action action )method, but I
don't think its getting called.
Any ideas or examples.
Thanks
Kumar
------------------------------
CONFIDENTIALITY STATEMENT. The information contained in this e-mail
message, including attachments, is the confidential information of, and/or
is the property of, Vanguard. The information is intended for use solely by
the individual or entity named in the message. If you are not an intended
recipient or you received this in error, then any review, printing, copying,
or distribution of any such information is prohibited, and please notify the
sender immediately by reply e-mail and then delete this e-mail from your
system.
Loading...