[FDD 2016] Mateusz Stasch - Architektura, która pomaga!
-
Upload
future-processing -
Category
Software
-
view
59 -
download
0
Transcript of [FDD 2016] Mateusz Stasch - Architektura, która pomaga!
C : ApproveAgreement E : AgreementApproved
EH : AgreementNotificationHandler
EH : SupersedeAgreementHandler
EH : AgreementMailHandler
class AgreementAuditLog: IHandle<AgreementPublished>
{// ...
public void Handle(AgreementPublished @event){
// ...}
}
class AgreementAuditLog: IHandle<AgreementPublished>
{// ...
public void Handle(AgreementPublished @event){
// ...}
}
class AgreementMailHandler: IHandle<AgreementApproved>
{// ...
public void Handle(AgreementApproved @event){
MailService.Send();}
}
AgreementCreated
AgreementConditionsChanged
AgreementApproved
AgreementSuperseded
AgreementArchived
mstasch
jkowalski
jkowalski
system
mstasch
2016/01/05 12:34:34
2016/01/05 14:35:28
2016/01/07 10:04:10
2016/06/01 14:12:34
2017/01/01 00:00:50
if (user.Roles.Any(RolesHelper.IsAdministrator) && agreement.status == AgrementStatus.Active){
// ...}
if (user.roles.some(roleHelper.isAdministrator) && agreement.status === "Active"){
// ...}
...
.Where(agr => agr.Owner == user.Id && agr.Editors.Contains(user.Id))
...
Resource Resource
W
S
PAllowed
Operations
"AllowedOperations":{
"CanEdit": false,"CanApprove": true,"CanReject": true,"CanUploadContract": false,...