Forums

Home » Liferay Portal » English » 3. Development

Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
S W
Audit Plugin for CE
August 24, 2010 6:35 AM
Answer

S W

Rank: New Member

Posts: 1

Join Date: August 24, 2010

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.
Shagul Khajamohideen
RE: Audit Plugin for CE
August 24, 2010 7:14 AM
Answer

Shagul Khajamohideen

Rank: Liferay Master

Posts: 759

Join Date: September 27, 2007

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.
Manish Kumar Gupta
RE: Audit Plugin for CE
November 9, 2010 1:13 AM
Answer

Manish Kumar Gupta

LIFERAY STAFF

Rank: Liferay Master

Posts: 535

Join Date: May 15, 2008

Recent Posts

SW,

If you wish, you can create your own audit plugin from scratch.
Laurie MacDougall Sookraj
RE: Audit Plugin for CE
May 4, 2011 12:42 PM
Answer

Laurie MacDougall Sookraj

Rank: New Member

Posts: 3

Join Date: March 9, 2011

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
Vincent Paranpan
RE: Audit Plugin for CE
August 8, 2011 12:16 AM
Answer

Vincent Paranpan

Rank: New Member

Posts: 17

Join Date: October 13, 2010

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
Mauro Almeida
RE: Audit Plugin for CE
March 27, 2012 7:30 AM
Answer

Mauro Almeida

Rank: Junior Member

Posts: 31

Join Date: March 15, 2012

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
David H Nebinger
RE: Audit Plugin for CE
March 27, 2012 7:47 AM
Answer

David H Nebinger

Rank: Liferay Legend

Posts: 7157

Join Date: September 1, 2006

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:

 1public class MyLoginPostAction extends Action {
 2
 3  public void run(HttpServletRequest req,HttpServletResponse resp) throws ActionException {
 4    try {
 5      User user = PortalUser.getUser(req);
 6      // write user info to the target file
 7    } catch (Exception e) {
 8      throw new ActionException(e);
 9    }
10  }
11}


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

1login.events.post=com.example.MyLoginPostAction


Done.
Mika Koivisto
RE: Audit Plugin for CE
March 27, 2012 2:20 PM
Answer

Mika Koivisto

LIFERAY STAFF

Rank: Liferay Legend

Posts: 1501

Join Date: August 7, 2006

Recent Posts

How about getting EE where you get that audit framework, a sample audit hook and a lot more?
Jonas Yuan
RE: Audit Plugin for CE
March 27, 2012 5:55 PM
Answer

Jonas Yuan

Rank: Liferay Master

Posts: 993

Join Date: April 26, 2007

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
David H Nebinger
RE: Audit Plugin for CE
March 27, 2012 5:04 PM
Answer

David H Nebinger

Rank: Liferay Legend

Posts: 7157

Join Date: September 1, 2006

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...
Hitoshi Ozawa
RE: Audit Plugin for CE
March 27, 2012 5:10 PM
Answer

Hitoshi Ozawa

Rank: Liferay Legend

Posts: 7990

Join Date: March 23, 2010

Recent Posts

David, Jonas just made the OpenX portlet available.

http://www.liferay.com/community/forums/-/message_boards/message/13195978
David H Nebinger
RE: Audit Plugin for CE
March 27, 2012 6:44 PM
Answer

David H Nebinger

Rank: Liferay Legend

Posts: 7157

Join Date: September 1, 2006

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.
Jonas Yuan
RE: Audit Plugin for CE
March 27, 2012 10:57 PM
Answer

Jonas Yuan

Rank: Liferay Master

Posts: 993

Join Date: April 26, 2007

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
Mauro Almeida
RE: Audit Plugin for CE
March 28, 2012 2:08 AM
Answer

Mauro Almeida

Rank: Junior Member

Posts: 31

Join Date: March 15, 2012

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
Mauro Almeida
RE: Audit Plugin for CE
March 28, 2012 2:14 AM
Answer

Mauro Almeida

Rank: Junior Member

Posts: 31

Join Date: March 15, 2012

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
Juan Gonzalez
RE: Audit Plugin for CE
March 28, 2012 2:07 PM
Answer

Juan Gonzalez

LIFERAY STAFF

Rank: Liferay Legend

Posts: 1970

Join Date: October 28, 2008

Recent Posts

Thanks very much Jonas!!
Jonas Yuan
RE: Audit Plugin for CE
March 28, 2012 2:35 PM
Answer

Jonas Yuan

Rank: Liferay Master

Posts: 993

Join Date: April 26, 2007

Recent Posts

Since the main idea was coming from EE Audit version , just removed download URL.

Thanks

Jonas Yuan
Hitoshi Ozawa
RE: Audit Plugin for CE
March 28, 2012 2:37 PM
Answer

Hitoshi Ozawa

Rank: Liferay Legend

Posts: 7990

Join Date: March 23, 2010

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?
Jonas Yuan
RE: Audit Plugin for CE
March 31, 2012 5:03 PM
Answer

Jonas Yuan

Rank: Liferay Master

Posts: 993

Join Date: April 26, 2007

Recent Posts

Yes, for Audit, just use EE version like 6.1 EE.
Neda Esmaeili
RE: Audit Plugin for CE
May 17, 2014 1:23 AM
Answer

Neda Esmaeili

Rank: New Member

Posts: 12

Join Date: December 14, 2013

Recent Posts

Hi Jonas
I need to audit portle for 6.1 CE GA1 , You can email me?
email: neda_esmaeili90@yahoo.com
Thancks
David H Nebinger
RE: Audit Plugin for CE
May 28, 2014 5:34 AM
Answer

David H Nebinger

Rank: Liferay Legend

Posts: 7157

Join Date: September 1, 2006

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.
Meera Prince
RE: Audit Plugin for CE
May 28, 2014 6:56 AM
Answer

Meera Prince

Rank: Liferay Master

Posts: 820

Join Date: February 8, 2011

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