Fórum

Audit Plugin for CE

S W, modificado 13 Anos atrás.

Audit Plugin for CE

New Member Mensagem: 1 Data de Entrada: 24/08/10 Postagens Recentes
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, modificado 13 Anos atrás.

RE: Audit Plugin for CE

Liferay Master Postagens: 758 Data de Entrada: 27/09/07 Postagens Recentes
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, modificado 13 Anos atrás.

RE: Audit Plugin for CE

Liferay Master Postagens: 535 Data de Entrada: 16/05/08 Postagens Recentes
SW,

If you wish, you can create your own audit plugin from scratch.
thumbnail
Laurie MacDougall Sookraj, modificado 12 Anos atrás.

RE: Audit Plugin for CE

New Member Postagens: 3 Data de Entrada: 09/03/11 Postagens Recentes
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, modificado 12 Anos atrás.

RE: Audit Plugin for CE

New Member Postagens: 17 Data de Entrada: 14/10/10 Postagens Recentes
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, modificado 12 Anos atrás.

RE: Audit Plugin for CE

Junior Member Postagens: 32 Data de Entrada: 15/03/12 Postagens Recentes
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, modificado 12 Anos atrás.

RE: Audit Plugin for CE

Liferay Legend Postagens: 14919 Data de Entrada: 02/09/06 Postagens Recentes
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, modificado 12 Anos atrás.

RE: Audit Plugin for CE

Junior Member Postagens: 32 Data de Entrada: 15/03/12 Postagens Recentes
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, modificado 12 Anos atrás.

RE: Audit Plugin for CE

Liferay Legend Postagens: 1519 Data de Entrada: 07/08/06 Postagens Recentes
How about getting EE where you get that audit framework, a sample audit hook and a lot more?
thumbnail
Jonas Yuan, modificado 12 Anos atrás.

RE: Audit Plugin for CE

Liferay Master Postagens: 993 Data de Entrada: 27/04/07 Postagens Recentes
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, modificado 12 Anos atrás.

RE: Audit Plugin for CE

Liferay Legend Postagens: 14919 Data de Entrada: 02/09/06 Postagens Recentes
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, modificado 12 Anos atrás.

RE: Audit Plugin for CE

Liferay Legend Postagens: 7942 Data de Entrada: 24/03/10 Postagens Recentes
David, Jonas just made the OpenX portlet available.

http://www.liferay.com/community/forums/-/message_boards/message/13195978
thumbnail
David H Nebinger, modificado 12 Anos atrás.

RE: Audit Plugin for CE

Liferay Legend Postagens: 14919 Data de Entrada: 02/09/06 Postagens Recentes
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, modificado 12 Anos atrás.

RE: Audit Plugin for CE

Liferay Master Postagens: 993 Data de Entrada: 27/04/07 Postagens Recentes
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, modificado 12 Anos atrás.

RE: Audit Plugin for CE

Junior Member Postagens: 32 Data de Entrada: 15/03/12 Postagens Recentes
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, modificado 12 Anos atrás.

RE: Audit Plugin for CE

Liferay Master Postagens: 993 Data de Entrada: 27/04/07 Postagens Recentes
Just deleted this post.
thumbnail
Juan Gonzalez P, modificado 12 Anos atrás.

RE: Audit Plugin for CE

Liferay Legend Postagens: 3089 Data de Entrada: 28/10/08 Postagens Recentes
Thanks very much Jonas!!
thumbnail
Jonas Yuan, modificado 12 Anos atrás.

RE: Audit Plugin for CE

Liferay Master Postagens: 993 Data de Entrada: 27/04/07 Postagens Recentes
Since the main idea was coming from EE Audit version , just removed download URL.

Thanks

Jonas Yuan
thumbnail
Hitoshi Ozawa, modificado 12 Anos atrás.

RE: Audit Plugin for CE

Liferay Legend Postagens: 7942 Data de Entrada: 24/03/10 Postagens Recentes
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, modificado 12 Anos atrás.

RE: Audit Plugin for CE

Liferay Master Postagens: 993 Data de Entrada: 27/04/07 Postagens Recentes
Yes, for Audit, just use EE version like 6.1 EE.
Neda Esmaeili, modificado 9 Anos atrás.

RE: Audit Plugin for CE

New Member Postagens: 12 Data de Entrada: 14/12/13 Postagens Recentes
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, modificado 9 Anos atrás.

RE: Audit Plugin for CE

Liferay Legend Postagens: 14919 Data de Entrada: 02/09/06 Postagens Recentes
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, modificado 9 Anos atrás.

RE: Audit Plugin for CE

Liferay Legend Postagens: 1111 Data de Entrada: 08/02/11 Postagens Recentes
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, modificado 4 Anos atrás.

RE: Audit Plugin for CE

Junior Member Postagens: 25 Data de Entrada: 26/09/18 Postagens Recentes
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