留言板

organization history

diego gabriele,修改在7 年前。

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
David H Nebinger,修改在7 年前。

RE: organization history

Liferay Legend 帖子: 14919 加入日期: 06-9-2 最近的帖子
historical data is not supported. you'd have to build this out yourself.
thumbnail
Fernando Fernandez,修改在7 年前。

RE: organization history

Expert 帖子: 396 加入日期: 07-8-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