Re: Reports Question

2021-09-28 Thread Caleb Mazure
Thanks for the advice so far.

This is a screenshot after the Maven installation. Just confirming that I 
needed to create file structure for 
common/src/main/java/common/lib/src/main/java/org/apache/syncope/common/lib

[cid:84752676-a08b-49ce-9109-48263c13cbb9]

Thanks,
Caleb

From: Francesco Chicchiriccò 
Sent: Tuesday, September 28, 2021 7:33 PM
To: user@syncope.apache.org 
Subject: Re: Reports Question

On 28/09/21 03:37, Caleb Mazure wrote:
Hi Francesco,

That all makes sense, I am converting our original .deb packages deployment to 
Maven.

I have moved the .war files produced from the maven build into 
/etc/tomcat8/Catalina/localhost/ ​which is being read by the server.xml file.

It seemed to run off the tomcat server, but I then thought it was still using 
the original instillation. I removed the apt Apache-syncope-console, and it 
still seems to run fine (I still have suspicions).

For a basic Maven build, the only files required are the .war files, correct?


Hi,
in your case it's /etc/tomcat8/Catalina/localhost/ because you're working on a 
Debian machine with Tomcat installed via the tomcat8 deb package but it could 
be also elsewhere if you had, for instance, download a more recent Tomcat 
release from https://tomcat.apache.org (about this, the latest Tomcat 9.x is 
recommended).


WAR files generated by Maven build can be deployed into all supported JavaEE 
containers including Tomcat, but please don't forget to read carefully [1] 
which explains how to build properly in order to define the deployment 
directories for ConnId bundles, configuration files and logs.


HTH
Regards.


[1] https://syncope.apache.org/docs/2.1/reference-guide.html#customization



From: Francesco Chicchiriccò 
Sent: Friday, September 24, 2021 6:44 PM
To: user@syncope.apache.org 

Subject: Re: Reports Question

On 23/09/21 23:28, Caleb Mazure wrote:
Hello,

I currently have setup an installation of syncope on a Linux based machine, 
using the Debian packages provided.

I want to create a report that shows the dynamic memberships of users. The 
default only shows memberships.

To do this I believe I need to create a new java class somewhere that would be 
like the default UserReportletConf but I am not sure how to go about this.

Any advice would be great!

Hi Caleb,

as you are suggesting above, in order to create a new Reportlet [1] you will 
need to:

1. create a class named MyUserReportletConf extending [2], under 
common/src/main/java/common/lib/src/main/java/org/apache/syncope/common/lib/report


2. create a class named MyUserReportlet extending [3], annotated with 
@ReportletConfClass with class above, under 
core/src/main/java/org/apache/syncope/core/provisioning/java/job/report

3. once built and deployed, create a Java implementation of type REPORTLET for 
the class above - from Console, under Configuration > Implementations


Naturally, this assumes you are working with a Maven project generated from 
archetype [4]: this the sole deployment method currently provided allowing for 
extension and customization.


HTH
Regards.


[1] http://syncope.apache.org/docs/2.1/reference-guide.html#reportlets
[2] 
https://github.com/apache/syncope/blob/syncope-2.1.9/common/lib/src/main/java/org/apache/syncope/common/lib/report/UserReportletConf.java
[3] 
https://github.com/apache/syncope/blob/2_1_X/core/provisioning-java/src/main/java/org/apache/syncope/core/provisioning/java/job/report/UserReportlet.java
[4] http://syncope.apache.org/docs/2.1/getting-started.html#maven-project

--
Francesco Chicchiriccò

Tirasa - Open Source Excellence
http://www.tirasa.net/

Member at The Apache Software Foundation
Syncope, Cocoon, Olingo, CXF, OpenJPA, PonyMail
http://home.apache.org/~ilgrosso/



Re: Reports Question

2021-09-28 Thread Francesco Chicchiriccò

On 28/09/21 03:37, Caleb Mazure wrote:

Hi Francesco,

That all makes sense, I am converting our original .deb packages deployment to 
Maven.

I have moved the .war files produced from the maven build into 
/etc/tomcat8/Catalina/localhost/ ​which is being read by the server.xml file.

It seemed to run off the tomcat server, but I then thought it was still using 
the original instillation. I removed the apt Apache-syncope-console, and it 
still seems to run fine (I still have suspicions).

*For a basic Maven build, the only files required are the .war files, correct?*



Hi,
in your case it's /etc/tomcat8/Catalina/localhost/ because you're working on a 
Debian machine with Tomcat installed via the tomcat8 deb package but it could 
be also elsewhere if you had, for instance, download a more recent Tomcat 
release from https://tomcat.apache.org (about this, the latest Tomcat 9.x is 
recommended).


WAR files generated by Maven build can be deployed into all supported JavaEE 
containers including Tomcat, but please don't forget to read carefully [1] 
which explains how to build properly in order to define the deployment 
directories for ConnId bundles, configuration files and logs.


HTH
Regards.


[1] https://syncope.apache.org/docs/2.1/reference-guide.html#customization



--
*From:* Francesco Chicchiriccò 
*Sent:* Friday, September 24, 2021 6:44 PM
*To:* user@syncope.apache.org 
*Subject:* Re: Reports Question
On 23/09/21 23:28, Caleb Mazure wrote:

Hello,

I currently have setup an installation of syncope on a Linux based machine, 
using the Debian packages provided.

*I want to create a report that shows the dynamic memberships of users. The 
default only shows memberships. *

To do this I believe I need to create a new java class somewhere that would be 
like the default UserReportletConf but I am not sure how to go about this.

Any advice would be great!


Hi Caleb,

as you are suggesting above, in order to create a new Reportlet [1] you will 
need to:


1. create a class named MyUserReportletConf extending [2], under 
common/src/main/java/common/lib/src/main/java/org/apache/syncope/common/lib/report

2. create a class named MyUserReportlet extending [3], annotated with 
@ReportletConfClass with class above, under 
core/src/main/java/org/apache/syncope/core/provisioning/java/job/report

3. once built and deployed, create a Java implementation of type REPORTLET for the 
class above - from Console, under Configuration > Implementations


Naturally, this assumes you are working with a Maven project generated from 
archetype [4]: this the sole deployment method currently provided allowing for 
extension and customization.


HTH
Regards.


[1] http://syncope.apache.org/docs/2.1/reference-guide.html#reportlets 

[2] 
https://github.com/apache/syncope/blob/syncope-2.1.9/common/lib/src/main/java/org/apache/syncope/common/lib/report/UserReportletConf.java
 

[3] 
https://github.com/apache/syncope/blob/2_1_X/core/provisioning-java/src/main/java/org/apache/syncope/core/provisioning/java/job/report/UserReportlet.java
 

[4] http://syncope.apache.org/docs/2.1/getting-started.html#maven-project 



--
Francesco Chicchiriccò

Tirasa - Open Source Excellence
http://www.tirasa.net/

Member at The Apache Software Foundation
Syncope, Cocoon, Olingo, CXF, OpenJPA, PonyMail
http://home.apache.org/~ilgrosso/