Fórum

organization history

diego gabriele, modificado 7 Anos atrás.

organization history

New Member Postagens: 20 Data de Entrada: 29/12/14 Postagens Recentes
Let's say you have got a hierarchical organization structure and you want to move a suborganization from parent organization X to parent organization Y. I need to track the date of this movement so i can retrive organization structure on date DD/YY/YYYY.
How would you track thisusing liferay data structures and services? using expando attributes? Or adding an additional table to liferay standard tables with all the historical information of that organization?

In my mind the ideal API will have a function like OrganizationLocalServiceUtil.getSuborganizations(long companyId, long organizationId, Date date) so the return value would be the list of the suborganization as it was on that date

Any suggestion is welcome.
thumbnail
David H Nebinger, modificado 7 Anos atrás.

RE: organization history

Liferay Legend Postagens: 14919 Data de Entrada: 02/09/06 Postagens Recentes
historical data is not supported. you'd have to build this out yourself.
thumbnail
Fernando Fernandez, modificado 7 Anos atrás.

RE: organization history

Expert Postagens: 396 Data de Entrada: 22/08/07 Postagens Recentes
Hi Diego,

In my experience, organization changes are often more complex than that. You have name changes, splits and fusions too. :-)

But, to answer your question, I suggest you use service builder to store a snapshot of your hierarchy at some date and build your own methods to retrieve the snapshot info based on a date.

HTH

Fernando