掲示板

organization history

7年前 に diego gabriele によって更新されました。

organization history

New Member 投稿: 20 参加年月日: 14/12/29 最新の投稿
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
7年前 に David H Nebinger によって更新されました。

RE: organization history

Liferay Legend 投稿: 14919 参加年月日: 06/09/02 最新の投稿
historical data is not supported. you'd have to build this out yourself.
thumbnail
7年前 に Fernando Fernandez によって更新されました。

RE: organization history

Expert 投稿: 396 参加年月日: 07/08/22 最新の投稿
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