Message Boards

Audit Plugin for CE

S W, modified 13 Years ago.

Audit Plugin for CE

New Member Post: 1 Join Date: 8/24/10 Recent Posts
I noticed how liferay EE has audit ability, but CE does not. If i create a audit plugin for CE will this break some kind of terms of use? Curious since i do not want to think about it if i could be diving into legal issues.
thumbnail
Shagul Khajamohideen, modified 13 Years ago.

RE: Audit Plugin for CE

Liferay Master Posts: 758 Join Date: 9/27/07 Recent Posts
Looks like the audit hook code in incubation is publicly available at the below location.

http://svn.liferay.com/repos/public/plugins/incubation/hooks/audit-hook

Most of the files except liferay-plugin-package.properties have Enterprise license agreement terms on them.

Probably someone from LR team should answer the legal implications.
thumbnail
Manish Kumar Gupta, modified 13 Years ago.

RE: Audit Plugin for CE

Liferay Master Posts: 535 Join Date: 5/16/08 Recent Posts
SW,

If you wish, you can create your own audit plugin from scratch.
thumbnail
Laurie MacDougall Sookraj, modified 12 Years ago.

RE: Audit Plugin for CE

New Member Posts: 3 Join Date: 3/9/11 Recent Posts
Hi,

When I look at the files in the incubator branch I don't see any enterprise license agreement terms; is it ok to use this plugin with CE now?

Thanks,
~Laurie
thumbnail
Vincent Paranpan, modified 12 Years ago.

RE: Audit Plugin for CE

New Member Posts: 17 Join Date: 10/14/10 Recent Posts
Manish Kumar Gupta:
SW,

If you wish, you can create your own audit plugin from scratch.


Hi Manish,

Can I use the audit-hooks available in the SVN repo, for my own customized audit service? is it legal?

Thanks,
Vincent
thumbnail
Mauro Almeida, modified 12 Years ago.

RE: Audit Plugin for CE

Junior Member Posts: 32 Join Date: 3/15/12 Recent Posts
Hi all.

I'm facing the same problem. I need to create an audit-trail hook that simply logs to a file those actions from users. Could someone point me in the right direction?

Would it be enough to activate Liferay's AuditFilter in portal-ext.properties and create my audit hook trail that logs to file the necessary information?

Thanks in advanced,
MJA
thumbnail
David H Nebinger, modified 12 Years ago.

RE: Audit Plugin for CE

Liferay Legend Posts: 14916 Join Date: 9/2/06 Recent Posts
As I've said in a previous post, the audit filter does absolutely nothing but populate a thread local w/ the current user info. This thread local is used by the audit hook and audit portlet when posting audit messages, and these pieces are all in EE.

What you need is not the auditing mechanism at all. All you need to do is implement a LoginPostAction class that does what you're asking. Something along the lines of:

public class MyLoginPostAction extends Action {

  public void run(HttpServletRequest req,HttpServletResponse resp) throws ActionException {
    try {
      User user = PortalUser.getUser(req);
      // write user info to the target file
    } catch (Exception e) {
      throw new ActionException(e);
    }
  }
}


Add this guy to the portal.properties file for the hook:

login.events.post=com.example.MyLoginPostAction


Done.
thumbnail
Mauro Almeida, modified 12 Years ago.

RE: Audit Plugin for CE

Junior Member Posts: 32 Join Date: 3/15/12 Recent Posts
Hi David. First of all, thanks for all the help.

David H Nebinger:

What you need is not the auditing mechanism at all. All you need to do is implement a LoginPostAction class that does what you're asking.


Actually, in terms of actions being logged, I may need something more. I need to log actions such as:

  • Login/logout
  • Edit user roles (who as edited which role)
  • Edit role assignments
  • Edit organization assignements
  • ...


If Jonas is able to provide me a working audit hook and plugin for CE even if it is just for me to take a look and take some ideas, that would be great.

Best regards,
Mauro Almeida
thumbnail
Mika Koivisto, modified 12 Years ago.

RE: Audit Plugin for CE

Liferay Legend Posts: 1519 Join Date: 8/7/06 Recent Posts
How about getting EE where you get that audit framework, a sample audit hook and a lot more?
thumbnail
Jonas Yuan, modified 12 Years ago.

RE: Audit Plugin for CE

Liferay Master Posts: 993 Join Date: 4/27/07 Recent Posts
Hi Mauro,

It is possible to make the Audit portlet working well in 6.1 CE GA1 (or 6.0.6 CE GA4).

I could give you free audit portlet (with audit hook in one plugin) for 6.1 CE GA1 (or 6.0.6 CE GA4) if ineeded.

That's, leverage Liferay portal message framework, and build new audit portlet with hooks.

Of course, as mentioned by @Mika, it would be better to use EE version with audit plugins, especially having support.

Thanks

Jonas

==================
The Author of Liferay Books:
Liferay 6.1 cookbook: Liferay Portal Systems Development
Liferay User Interface Development
Liferay Portal 6 Enterprise Intranets
Liferay Portal 5.2 Systems Development
Liferay Portal Enterprise Intranets
thumbnail
David H Nebinger, modified 12 Years ago.

RE: Audit Plugin for CE

Liferay Legend Posts: 14916 Join Date: 9/2/06 Recent Posts
Wow, Jonas, you're still around! emoticon

In case you didn't know it, the download links for many of your books in your signature are no longer available. Folks have been trying to get word to you to no avail...
thumbnail
Hitoshi Ozawa, modified 12 Years ago.

RE: Audit Plugin for CE

Liferay Legend Posts: 7942 Join Date: 3/24/10 Recent Posts
David, Jonas just made the OpenX portlet available.

http://www.liferay.com/community/forums/-/message_boards/message/13195978
thumbnail
David H Nebinger, modified 12 Years ago.

RE: Audit Plugin for CE

Liferay Legend Posts: 14916 Join Date: 9/2/06 Recent Posts
I know that one, I'm talking about the downloads that are supposed to go along w/ the books. Some of the download links for the source for the books is no longer available.
thumbnail
Jonas Yuan, modified 12 Years ago.

RE: Audit Plugin for CE

Liferay Master Posts: 993 Join Date: 4/27/07 Recent Posts
Thanks a lot, David,

It is true that some of the download links for the source for the books is no longer available. I am planning to bring download links back at

http://forgelife.net/portal/

Hope that I could do it as early as possble.

Thanks,

Jonas Yuan
thumbnail
Mauro Almeida, modified 12 Years ago.

RE: Audit Plugin for CE

Junior Member Posts: 32 Join Date: 3/15/12 Recent Posts
Hi Jonas,

Jonas Yuan:

It is possible to make the Audit portlet working well in 6.1 CE GA1 (or 6.0.6 CE GA4).
I could give you free audit portlet (with audit hook in one plugin) for 6.1 CE GA1 (or 6.0.6 CE GA4) if ineeded.


That would be great. Even if I don't need all the features from the audit portlet and hook, that would be a great help for me to both 1)get a little more know-how on liferay hooks and to 2) use some ideas if implementing my own hook for auditing, only with the set of features that I require.

Best regards,
Mauro Almeida
thumbnail
Jonas Yuan, modified 12 Years ago.

RE: Audit Plugin for CE

Liferay Master Posts: 993 Join Date: 4/27/07 Recent Posts
Just deleted this post.
thumbnail
Juan Gonzalez P, modified 12 Years ago.

RE: Audit Plugin for CE

Liferay Legend Posts: 3089 Join Date: 10/28/08 Recent Posts
Thanks very much Jonas!!
thumbnail
Jonas Yuan, modified 12 Years ago.

RE: Audit Plugin for CE

Liferay Master Posts: 993 Join Date: 4/27/07 Recent Posts
Since the main idea was coming from EE Audit version , just removed download URL.

Thanks

Jonas Yuan
thumbnail
Hitoshi Ozawa, modified 12 Years ago.

RE: Audit Plugin for CE

Liferay Legend Posts: 7942 Join Date: 3/24/10 Recent Posts
Since the main idea was coming from EE Audit version , just removed download URL.


Does this mean you're not going to be making your version of Audit plugin available?
thumbnail
Jonas Yuan, modified 12 Years ago.

RE: Audit Plugin for CE

Liferay Master Posts: 993 Join Date: 4/27/07 Recent Posts
Yes, for Audit, just use EE version like 6.1 EE.
Neda Esmaeili, modified 9 Years ago.

RE: Audit Plugin for CE

New Member Posts: 12 Join Date: 12/14/13 Recent Posts
Hi Jonas
I need to audit portle for 6.1 CE GA1 , You can email me?
email: neda_esmaeili90@yahoo.com
Thancks
thumbnail
David H Nebinger, modified 9 Years ago.

RE: Audit Plugin for CE

Liferay Legend Posts: 14916 Join Date: 9/2/06 Recent Posts
Meera, I'm afraid that you may be bordering on copyright infringement here. The code you posted, although refactored to a different package, is basically the EE code w/ some minor changes.
thumbnail
Meera Prince, modified 9 Years ago.

RE: Audit Plugin for CE

Liferay Legend Posts: 1111 Join Date: 2/8/11 Recent Posts
Hi David ,
i modified post and i removed all and provided market place link so i just explained in conceptual undestanding .thank you for giving information....


Regards,
Meera Prince
ronak vora, modified 4 Years ago.

RE: Audit Plugin for CE

Junior Member Posts: 25 Join Date: 9/26/18 Recent Posts
heyy, 
    Jonas Yuan and Neda Esmaeili is there this plugin available for now?
i need to audit portle for 6.1 CE GA1/GA2 /GA3/GA4/GA5,/GA6 You can email me?
OR any one have this plugin
roypatel091@gmail.com.
Also for answer of @Shagul Khajamohideen there is error from
svn checkout 
 HTTP status 413 'Request Entity Too Large' on '/repos/public/plugins/incubation/hooks/audit-hook' 

Thanks in advance
Ronak VoraÂ