10 Commits

Author SHA1 Message Date
Mark Rogers
968933de37 Bug fix for case where commit failed.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@23127 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-10-15 08:41:09 +00:00
Mark Rogers
8e15627b75 Rework to client side transfer report, events are now richer. Also some more attributes added to the header.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@22731 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-09-27 16:18:15 +00:00
David Caruana
3d447277be Resolve ALF-4844: Transfer Locks remain if a transfer error occurs on the client prior to the commit phase
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@22623 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-09-17 18:01:21 +00:00
David Caruana
9e4ec6276f Resolve ALF-4739 Transfer of an item with a rule defined against it (without its associated rule) causes data corruption on destination repository
- transfer definition now allows aspects to be excluded from the transfer (setExcludedAspects)
- manifest builder is sensitive to excluded aspects
- replication definition excludes rule:rules for now

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@22513 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-09-14 14:59:12 +00:00
Mark Rogers
b20bac870c ALF-4713 - It is possible to transfer content to the not enabled transfer target
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@22452 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-09-13 13:26:40 +00:00
David Caruana
2704bd37db Transfer event re-ordering:
- enter success/error/cancel state event fired before report events
- but, success/error/cancel events still fired after report events

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@22419 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-09-10 17:44:28 +00:00
David Caruana
8e17579331 Transfer report names adjusted to:
- client report: <status>_<timestamp>
- destination report <status>_<timestamp>_destination
where:
<status> - one of success, error, cancelled
<timestamp> - time of transfer

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@22415 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-09-10 17:19:33 +00:00
Brian Remmington
66d23163dd Transfer Service:
- Rehydration of exception received from target repo


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@22413 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-09-10 16:57:06 +00:00
David Caruana
fc0821820a Replication/Transfer tidy up:
- TransferFailureException: TransferEndEvent getEndEvent() -> TransferEventError getErrorEvent()
- Client cancel only processed on first request from client

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@22406 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-09-10 15:47:42 +00:00
David Caruana
35b2b7a122 Fixes to replication job status handling:
- success, error and cancelled states now correctly reported
- source and target reports now correctly provided for each of above

Changes:
- deprecated TransferService interface, replaced by TransferService2
  - introduces new sync transfer methods
  - new TransferServiceImpl2 class, old TransferServiceImpl delegates to new class
- sync transfer now returns TransferEndEvent
- sync transfer now raises TransferFailureException
- success, error and cancelled events are now end events (raised after report events)
- transfer client handling refactored to support cancel and errors appropriately
  - converted to event loop with polling of server status for all states
  - cancel request may now end with success or error (depending on when cancel requested)
  - extract transfer errors from server
  - only raise exception for errors (cancelled now returns)
  - source and destination reports written for all states
- Added TransferEndEvent interface for end events - reports attached to end event
- replication service fixed to record source and dest reports in error case
- action service fixed to record cancelled state

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@22390 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-09-10 14:00:05 +00:00