Jean-Francois Leveque

Documentation: diagrammes de séquence

@startuml
actor Contributor
participant publisherVersion.xhtml
participant PublisherVersionView
participant PublisherServiceDefault as PublisherServiceDefault << PublisherService >>
participant SharedServiceDefault as SharedServiceDefault << SharedService >>
participant publisher
participant publisherVersions as publisherVersions << Set<PublisherVersion> >>
participant publisherVersion
participant PublisherVersionRepository
participant PublisherRepository
Contributor -> publisherVersion.xhtml : Save
activate publisherVersion.xhtml
publisherVersion.xhtml -> PublisherVersionView: save()
activate PublisherVersionView
alt newPublisher
PublisherVersionView -> PublisherVersionView: add()
activate PublisherVersionView
PublisherVersionView -> PublisherVersionView: getNewPublisherVersion()
activate PublisherVersionView
create publisherVersion
PublisherVersionView -> publisherVersion: new
PublisherVersionView -> publisherVersion: setValues(publisherAddressCountry, addressLocality, addressRegion, email, publisherHistory, publisherName, postalCode, postOfficeBoxNumber, ...)
activate publisherVersion
publisherVersion -> PublisherVersionView
deactivate publisherVersion
PublisherVersionView -> PublisherVersionView: publisherVersion
deactivate PublisherVersionView
PublisherVersionView -> PublisherServiceDefault: addNewPublisher(publisherVersion)
activate PublisherServiceDefault
create publisher
PublisherServiceDefault -> publisher: new
create publisherVersions
PublisherServiceDefault -> publisherVersions: new
PublisherServiceDefault -> publisherVersions: add(publisherVersion)
activate publisherVersions
publisherVersions -> PublisherServiceDefault
deactivate publisherVersions
PublisherServiceDefault -> publisher: setVersions(publisherVersions)
activate publisher
publisher -> PublisherServiceDefault
deactivate publisher
PublisherServiceDefault -> publisherVersion: setPublisher(publisher)
activate publisherVersion
publisherVersion -> PublisherServiceDefault
deactivate publisherVersion
PublisherServiceDefault -> SharedServiceDefault: getCurrentUser()
activate SharedServiceDefault
SharedServiceDefault -> PublisherServiceDefault: currentUser
deactivate SharedServiceDefault
PublisherServiceDefault -> publisherVersion:setPublisherVersionCreator(currentUser)
activate publisherVersion
publisherVersion -> PublisherServiceDefault
deactivate publisherVersion
PublisherServiceDefault -> publisherVersion:setPublisherVersionDatetime(currentDatetime)
activate publisherVersion
publisherVersion -> PublisherServiceDefault
deactivate publisherVersion
PublisherServiceDefault -> PublisherServiceDefault:savePublisherVersion(publisherVersion)
activate PublisherServiceDefault
PublisherServiceDefault -> PublisherVersionRepository:save(publisherVersion)
activate PublisherVersionRepository
PublisherVersionRepository -> PublisherServiceDefault
deactivate PublisherVersionRepository
PublisherServiceDefault -> PublisherServiceDefault
deactivate PublisherServiceDefault
PublisherServiceDefault -> PublisherServiceDefault:savePublisher(publisher)
activate PublisherServiceDefault
PublisherServiceDefault -> PublisherRepository:save(publisher)
activate PublisherRepository
PublisherRepository -> PublisherServiceDefault
deactivate PublisherRepository
PublisherServiceDefault -> PublisherServiceDefault
deactivate PublisherServiceDefault
PublisherServiceDefault -> PublisherVersionView: publisherVersion
deactivate PublisherServiceDefault
PublisherVersionView -> PublisherVersionView
deactivate PublisherVersionView
else
PublisherVersionView -> PublisherVersionView: update()
activate PublisherVersionView
PublisherVersionView -> PublisherVersionView
deactivate PublisherVersionView
end
PublisherVersionView -> publisherVersion.xhtml
deactivate PublisherVersionView
publisherVersion.xhtml -> Contributor
deactivate publisherVersion.xhtml
@enduml
\ No newline at end of file
@startuml
actor Contributor
participant publisherVersion.xhtml
participant PublisherVersionView
participant PublisherServiceDefault as PublisherServiceDefault << PublisherService >>
participant SharedServiceDefault as SharedServiceDefault << SharedService >>
participant publisher
participant publisherVersions as publisherVersions << Set<PublisherVersion> >>
participant publisherVersion
participant PublisherVersionRepository
participant PublisherRepository
Contributor -> publisherVersion.xhtml : Save
activate publisherVersion.xhtml
publisherVersion.xhtml -> PublisherVersionView: save()
activate PublisherVersionView
alt newPublisher
PublisherVersionView -> PublisherVersionView: add()
activate PublisherVersionView
PublisherVersionView -> PublisherVersionView
deactivate PublisherVersionView
else
PublisherVersionView -> PublisherVersionView: update()
activate PublisherVersionView
PublisherVersionView -> PublisherVersionView: getNewPublisherVersion()
activate PublisherVersionView
create publisherVersion
PublisherVersionView -> publisherVersion: new
PublisherVersionView -> publisherVersion: setValues(publisherAddressCountry, addressLocality, addressRegion, email, publisherHistory, publisherName, postalCode, postOfficeBoxNumber, ...)
activate publisherVersion
publisherVersion -> PublisherVersionView
deactivate publisherVersion
PublisherVersionView -> PublisherVersionView: publisherVersion
deactivate PublisherVersionView
PublisherVersionView -> PublisherServiceDefault: addVersionToPublisher(publisher, publisherVersion)
activate PublisherServiceDefault
PublisherServiceDefault -> publisher: getVersions()
activate publisher
publisher -> PublisherServiceDefault: publisherVersions
deactivate publisher
PublisherServiceDefault -> publisherVersions: add(publisherVersion)
activate publisherVersions
publisherVersions -> PublisherServiceDefault
deactivate publisherVersions
PublisherServiceDefault -> publisher: setVersions(publisherVersions)
activate publisher
publisher -> PublisherServiceDefault
deactivate publisher
PublisherServiceDefault -> publisherVersion: setPublisher(publisher)
activate publisherVersion
publisherVersion -> PublisherServiceDefault
deactivate publisherVersion
PublisherServiceDefault -> SharedServiceDefault: getCurrentUser()
activate SharedServiceDefault
SharedServiceDefault -> PublisherServiceDefault: currentUser
deactivate SharedServiceDefault
PublisherServiceDefault -> publisherVersion:setPublisherVersionCreator(currentUser)
activate publisherVersion
publisherVersion -> PublisherServiceDefault
deactivate publisherVersion
PublisherServiceDefault -> publisherVersion:setPublisherVersionDatetime(currentDatetime)
activate publisherVersion
publisherVersion -> PublisherServiceDefault
deactivate publisherVersion
PublisherServiceDefault -> PublisherServiceDefault:savePublisherVersion(publisherVersion)
activate PublisherServiceDefault
PublisherServiceDefault -> PublisherVersionRepository:save(publisherVersion)
activate PublisherVersionRepository
PublisherVersionRepository -> PublisherServiceDefault
deactivate PublisherVersionRepository
PublisherServiceDefault -> PublisherServiceDefault
deactivate PublisherServiceDefault
PublisherServiceDefault -> PublisherServiceDefault:savePublisher(publisher)
activate PublisherServiceDefault
PublisherServiceDefault -> PublisherRepository:save(publisher)
activate PublisherRepository
PublisherRepository -> PublisherServiceDefault
deactivate PublisherRepository
PublisherServiceDefault -> PublisherServiceDefault
deactivate PublisherServiceDefault
PublisherServiceDefault -> PublisherVersionView: publisherVersion
deactivate PublisherServiceDefault
PublisherVersionView -> PublisherVersionView
deactivate PublisherVersionView
end
PublisherVersionView -> publisherVersion.xhtml
deactivate PublisherVersionView
publisherVersion.xhtml -> Contributor
deactivate publisherVersion.xhtml
@enduml
\ No newline at end of file
@startuml
actor Validator
participant listPublisherVersions.xhtml
participant ListPublisherVersionView
participant PublisherServiceDefault as PublisherServiceDefault << PublisherService >>
participant SharedServiceDefault as SharedServiceDefault << SharedService >>
participant publisherVersion
participant publisher
participant publisherAction
participant PublisherRepository
participant PublisherActionRepository
Validator -> listPublisherVersions.xhtml: Validate
activate listPublisherVersions.xhtml
listPublisherVersions.xhtml -> ListPublisherVersionView: validate(publisherVersion)
activate ListPublisherVersionView
ListPublisherVersionView -> PublisherServiceDefault: validatePublisherVersion(publisherVersion)
activate PublisherServiceDefault
PublisherServiceDefault -> publisherVersion: getPublisher()
activate publisherVersion
publisherVersion -> PublisherServiceDefault: publisher
deactivate publisherVersion
PublisherServiceDefault -> publisher: setValidatedVersion(publisherVersion)
activate publisher
publisher -> PublisherServiceDefault
deactivate publisher
create publisherAction
PublisherServiceDefault -> publisherAction: new
PublisherServiceDefault -> SharedServiceDefault: getCurrentUser()
activate SharedServiceDefault
SharedServiceDefault -> PublisherServiceDefault: currentUser
deactivate SharedServiceDefault
PublisherServiceDefault -> publisherAction: setPublisherActionActor(currentUser)
activate publisherAction
publisherAction -> PublisherServiceDefault
deactivate publisherAction
PublisherServiceDefault -> publisherAction: setPublisherActionDatetime(currentDatetime)
activate publisherAction
publisherAction -> PublisherServiceDefault
deactivate publisherAction
PublisherServiceDefault -> publisherAction: setActionType(ActionType.VALIDATE)
activate publisherAction
publisherAction -> PublisherServiceDefault
deactivate publisherAction
PublisherServiceDefault -> publisherAction: setPublisherVersion(publisherVersion)
activate publisherAction
publisherAction -> PublisherServiceDefault
deactivate publisherAction
PublisherServiceDefault -> publisherAction: setPublisher(publisher)
activate publisherAction
publisherAction -> PublisherServiceDefault
deactivate publisherAction
PublisherServiceDefault -> PublisherServiceDefault: savePublisher(publisher)
activate PublisherServiceDefault
PublisherServiceDefault -> PublisherRepository: save(publisher)
activate PublisherRepository
PublisherRepository -> PublisherServiceDefault
deactivate PublisherRepository
PublisherServiceDefault -> PublisherServiceDefault
deactivate PublisherServiceDefault
PublisherServiceDefault -> PublisherServiceDefault: index(publisher)
activate PublisherServiceDefault
PublisherServiceDefault -> PublisherServiceDefault
note right: Traité dans la partie indexation et recherche
deactivate PublisherServiceDefault
PublisherServiceDefault -> PublisherActionRepository: save(publisherAction)
activate PublisherActionRepository
PublisherActionRepository -> PublisherServiceDefault
deactivate PublisherActionRepository
PublisherServiceDefault -> ListPublisherVersionView: publisherAction
deactivate PublisherServiceDefault
ListPublisherVersionView -> listPublisherVersions.xhtml
deactivate ListPublisherVersionView
listPublisherVersions.xhtml -> Validator
deactivate listPublisherVersions.xhtml
@enduml
\ No newline at end of file