[ https://jira.nuxeo.org/browse/NXCM-11?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=74706#action_74706 ]
Alexandre Russel commented on NXCM-11: -------------------------------------- add a origin field to the case folder (see spec). > add synchronisation feature > --------------------------- > > Key: NXCM-11 > URL: https://jira.nuxeo.org/browse/NXCM-11 > Project: Nuxeo Case Management > Issue Type: Sub-task > Reporter: Alexandre Russel > > Create a synchronisation service. The only feature we need is to be able to > get 3 properties: > * the name of the directory to use for fetching the entries > * the field to use in an entry as ID > * the field to use in a CaseFolder as ID > Provide a syncCaseFolder listener that will: > The listener will fetch the entries of the directory, fetch the CaseFolder > (for this type) and compare them, based on their ID. If an ID exist in both > list, then the "onCaseFolderUpdated" event is thrown with, in the context, a > coreSession, the entry and the mailbox. If an ID exist in the directory > entries and not in the mailbox list, then a "onCaseFolderCreated" event is > thrown with, in the context a coreSession and the entry. If an ID exist in > the list of mailbox and not in the directory list, then a > "onCaseFolderDeleted" event is thrown with, in the context a coreSession and > the entry. > In the test folders, a directory contribution, department.csv should be > provided. > The issue is considered done when there is a unit test that: > * throw manually "syncCaseFolder" > * check that the onCaseFolderCreated event is thrown with the proper > information in the context > * remove an entry from the directory > * throw manually "syncCaseFolder" > * check that the onCaseFolderUpdated and onCaseFolderDeleted is thrown with > the proper information in the context -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: https://jira.nuxeo.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira _______________________________________________ ECM-tickets mailing list ECM-tickets@lists.nuxeo.com http://lists.nuxeo.com/mailman/listinfo/ecm-tickets