Re: Need help on a use case : Inheritance of attributes

2021-10-25 Thread Vinay Kumar
Thanks a lot Elena for the response.

PS: I've replaced the dev mailing list user mailing list in this email
Thread.

I have a couple of questions on the solutions for the 2 options listed
above. I have marked them in orange background. Please review.

1.  We are currently considering the design of treating a realm/sub-realm
each for a business and putting all users of that business/organization
under that realm/sub-realm and thinking of attaching a set of
attributes.
to the realm so that they can be inherited to all the users under that
realm. Is that even possible?

[Elena] This approach is not feasible using only Realms, as they are not
intended for holding specific attributes to the belonging entities. It
could be possible, though, by using the Realms with the LogicTemplate,
which are classes that allow to define a logic during the create/update
phase: this logic, for instance, could add some specific attributes.
This approach would be recommended in case those properties are not
subject to change in time, as it would be difficult to maintain. For
more information regarding Realms and Logic Templates, please refer to
the specific section in the Apache Syncope Reference Guide:
http://syncope.apache.org/docs/reference-guide.html#realms

*Question: **Is it like we need to update the Interface as well as the
associated Impl classes often when there's any addition or deletion of the
attributes to the Realm.(Via Logic Template?) or Is there any other
maintenance issues? Please elaborate if you can.*

2. As a plan-B, We are thinking of creating a Custom AnyObject Business
and add all the properties/attributes to that business object and
associate
it to all the users under a realm to inherit the properties from a
business. Is that feasible?

[Elena] This is feasible by defining a custom "Business" Relationship
between the object User and an AnyObject, which we can call Business,
created in Syncope and associated to a specific AnyTypeClass which will
hold the specific business attributes you want the user to inherit.
Please also consider that you can achieve a similar result by using the
Syncope Group entity, having a Group containing all Users that need to
inherit those specific business attributes. Again, the last approach
recommendation strictly depends on the nature of your solution: if you
are already handling a large amount of Groups it may not be recommended.

*Question 1:   How do I associate the new Relationship to the User Object?*

*Question 2:   Let's say if we have 1000 users under a realm ACME and I
have a relationship "Business Relation" between User and an AnyObject
"Business". How do I make sure all the attributes within the
Business object goes to all 1000 users under the ACME realm? Do I need to
associate all the 1000 users to the Business AnyObject? or Can I do it in a
batch for all the 1000 users at a time?*
*Question 3:   Also if I have to associate a user to multiple Business,
will the Association be the only way to do it?*

Thanks a lot in advance!!

Regards,
Vinay


On Mon, Oct 25, 2021 at 6:00 AM Elena Renzi  wrote:

> Hi Vinay,
>
> Please check our answers directly in your email for both the suggested
> approach.
>
> For any further request on this topic we kindly invite you to use the
> user@syncope.apache.org mailing list.
>
> Thanks!
>
>
> Best Regards,
>
> Elena
>
>
>
> On 2021/10/22 15:31:23, Vinay Kumar  wrote:
>
> Hi Team,
>
> We have a use case in our project where we need to inherit properties of a
> business/organization to all of the users under that business account.
>
> Is there a way in syncope on how we can implement this?
>
> We are thinking of 2 designs mentioned below, please see and let me know if
> the thought process is correct.
>
>
> 1. We are currently considering the design of treating a
> realm/sub-realm
> each for a business and putting all users of that business/organization
> under that realm/sub-realm and thinking of attaching a set of
> attributes.
> to the realm so that they can be inherited to all the users under that
> realm. Is that even possible?
>
> [Elena] This approach is not feasible using only Realms, as they are not
> intended for holding specific attributes to the belonging entities. It
> could be possible, though, by using the Realms with the LogicTemplate,
> which are classes that allow to define a logic during the create/update
> phase: this logic, for instance, could add some specific attributes.
> This approach would be recommended in case those properties are not
> subject to change in time, as it would be difficult to maintain. For
> more information regarding Realms and Logic Templates, please refer to
> the specific section in the Apache Syncope Reference Guide:
> http://syncope.apache.org/docs/reference-guide.html#realms
>   2. As a plan-B, We are thinking of creating a Custom AnyObject Business
> and add all the properties/attributes to that business object and
> associate

Re: Need some discussion upfront before the invoice/payment goes off

2021-10-25 Thread Francesco Chicchiriccò

Hi Vinay,
I hope we can solve the payment issues soon.

Until then, please send your questions to public mailing lists only, and don't 
forget that support there is provided best-effort, for free, by the community.

Regards.

On 23/10/21 05:50, Vinay Kavala wrote:

Hi Fabio and Francesco,

I have been informed that you are reached out to do the invoice/payment for the 
training of Apache Syncope to our Team. I have also understood that there is a 
slight issue in making the payment over. However, I would like to request you 
to see if you can answer my questions over email for certain questions we have 
in specific scenarios of our project.

Let me know if that is something that you can accommodate.

FYI - I have already posted couple of questions to the Dev community yesterday. 
I can attach those threads over here if you would like to look at it and 
respond.

Thanks,
Vinay


--
Francesco Chicchiriccò
Tel +393290573276

Amministratore unico @ Tirasa S.r.l.
Viale Vittoria Colonna 97 - 65127 Pescara
Tel +39 0859116307 / FAX +39 085973
http://www.tirasa.net

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

"To Iterate is Human, to Recurse, Divine"
(James O. Coplien, Bell Labs)