reTHINK-project / dev-service-framework

DEPRECATED! Service framework libs have been moved to dev-runtime-core repo
Apache License 2.0
1 stars 2 forks source link

Syncher: addObserver() / inviteObserver() #37

Closed pchainho closed 8 years ago

pchainho commented 8 years ago

Adicionar função para convidar um Observer depois do objecto criado:

inviteObserver( URL.HypertyUrl observer)

shumy commented 8 years ago

There is no specification of the flow messages. Especially the initial messages between the Syncher and SyncherManager. I don't think the same create message can be reused, because it's an invite, not a creation process? I suppose the message between SyncherManager and the ObserverHyperty is the same as the one used for create process.

pchainho commented 8 years ago

The syncher can use the same Create() message having the in the body the ObjectURL that the sync manager will check already exists.

shumy commented 8 years ago

New method "inviteObservers(URL.HypertyUrl[] observers)" added to DataObjectReporter. Passing an array is better, it's in compliance with the Syncher.create.