removed svg, updated final diagrams

Need to create one more for enabling an account
This commit is contained in:
Im_Alpha 2021-12-09 00:08:52 -08:00
parent 639d738dba
commit 93b8e9a327
16 changed files with 186 additions and 77 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 395 KiB

After

Width:  |  Height:  |  Size: 478 KiB

File diff suppressed because one or more lines are too long

Before

Width:  |  Height:  |  Size: 132 KiB

View File

@ -23,7 +23,7 @@ Controller.cs->SqlDAO:++IDataSource factory.GetDataSource(string DbName, string
activate SqlDAO #D3D3D3 activate SqlDAO #D3D3D3
SqlDAO->SqlDAO:++Constructor(string connInfo)++ SqlDAO->SqlDAO:++Constructor(string connInfo)++
group #red Data Store Timed Out #white group #red Data Store Timed Out #white
SqlDAO->SqlDAO: ++Catch SqlException++ SqlDAO->SqlDAO:++Catch Exception++
Controller.cs<--SqlDAO:++return "Data Source Timed Out"++ Controller.cs<--SqlDAO:++return "Data Source Timed Out"++
end end
group #blue Data Store Online #white group #blue Data Store Online #white
@ -38,12 +38,27 @@ SystemAccountManager->SystemAccountManager:++Constructor(IDataSource conn)++
Controller.cs<--SystemAccountManager:++ New SystemAccountManager++ Controller.cs<--SystemAccountManager:++ New SystemAccountManager++
deactivate SystemAccountManager deactivate SystemAccountManager
// GetUserName
Controller.cs->Controller.cs:++string GetUserName()++
// GetPassword
Controller.cs->Controller.cs:++string GetPassword()++
// //
Controller.cs->UserAccount:++ new UserAccount(string username,\n string password,\n DateTime TimeStamp)++
activate UserAccount #CBC3E3 activate UserAccount #CBC3E3
Controller.cs->UserAccount:++ new UserAccount(string username,\n string password,\n string email,\n DateTime RegistrationTimeStamp)++ UserAccount->UserAccount:++Constructor(string username,\n string password,\n DateTime TimeStamp)++
UserAccount->UserAccount: ++Constructor(string username,\n string password,\n string email,\n DateTime RegistrationTimeStamp)++
Controller.cs<--UserAccount:++New UserAccount++ Controller.cs<--UserAccount:++New UserAccount++
deactivate UserAccount deactivate UserAccount
activate SystemAccountManager #ffffe0
SystemAccountManager->SystemAccountManager:++isInputValid(user: UserAccount)++
group #red Invalid Information #white
Controller.cs<--SystemAccountManager:++return "Invalid input"++
User<--Controller.cs:++ return "Invalid input"++
end
Controller.cs<--SystemAccountManager:++return true++
deactivate SystemAccountManager
// //
Controller.cs->SystemAccountManager:++manager.CreateUserRecord(user:UserAccount)++ Controller.cs->SystemAccountManager:++manager.CreateUserRecord(user:UserAccount)++
@ -79,21 +94,37 @@ deactivate SqlServer(MariaDB)
SystemAccountManager<--SqlDAO:++return true++ SystemAccountManager<--SqlDAO:++return true++
deactivate SqlDAO deactivate SqlDAO
deactivate SystemAccountManager deactivate SystemAccountManager
activate SystemAccountManager #ffffe0
SystemAccountManager->SystemAccountManager:++isInputValid(user: UserAccount)++
group #red Invalid Information #white
Controller.cs<--SystemAccountManager:++return "Invalid input"++
User<--Controller.cs:++ return "Invalid input"++
deactivate SystemAccountManager
end
group #green Valid Information #white group #green Valid Information #white
activate SystemAccountManager #ffffe0 activate SystemAccountManager #ffffe0
SystemAccountManager->AccountService:++AccountService\n.CreateUserRecord(user:UserAccount)++ // GetUserName
SystemAccountManager->SystemAccountManager:++string NewUserName()++
// Enter UserName
User->SystemAccountManager:++string NewUserName++
// GetPassword
SystemAccountManager->SystemAccountManager:++string NewPassword()++
// Enter Password
User->SystemAccountManager:++string NewPassword++
// GetEmail
SystemAccountManager->SystemAccountManager:++string NewEmail()++
// Enter Email
User->SystemAccountManager:++string NewEmail++
// GetRole
SystemAccountManager->SystemAccountManager:++string NewRole()++
// Enter Role
User->SystemAccountManager:++string NewRole++
// Create NewUser object
UserAccount<-SystemAccountManager:++new NewUser(\nstring NewUserName,\nstring NewPassword,\nstring New Email,\nstring NewRole,\nDateTime TimeStamp)++
activate UserAccount #CBC3E3
UserAccount->UserAccount:++Constructor(\nstring NewUserName,\nstring NewPassword,\nstring New Email,\nstring NewRole,\nDateTime TimeStamp)++
UserAccount-->SystemAccountManager:++return NewUser++
deactivate UserAccount
//Create User Record
SystemAccountManager->AccountService:++AccountService\n.CreateUserRecord(user:NewUser)++
activate AccountService #ff8b3d activate AccountService #ff8b3d
AccountService->SqlDAO:++SqlDAO\n.CreateUserRecord(user:UserAccount)++ AccountService->SqlDAO:++SqlDAO\n.CreateUserRecord(user:NewUser)++
activate SqlDAO #D3D3D3 activate SqlDAO #D3D3D3
SqlDAO->SqlServer(MariaDB):++SqlRead \nisUser(user:UserAccount)++ SqlDAO->SqlServer(MariaDB):++SqlRead \nisUser(user:NewUser)++
activate SqlServer(MariaDB) #00FFFF activate SqlServer(MariaDB) #00FFFF
SqlServer(MariaDB)->SqlServer(MariaDB):++ Select *\nFrom Users\nwhere Username\n= @UserName OR\nemail = @Email++ SqlServer(MariaDB)->SqlServer(MariaDB):++ Select *\nFrom Users\nwhere Username\n= @UserName OR\nemail = @Email++
group #red data store timed out #white group #red data store timed out #white
@ -111,11 +142,12 @@ group #blue data store is online #white
group #green User does exist #white group #green User does exist #white
activate SqlServer(MariaDB) #00FFFF activate SqlServer(MariaDB) #00FFFF
SqlDAO<--SqlServer(MariaDB):++ return True++ SqlDAO<--SqlServer(MariaDB):++ return True++
deactivate SqlServer(MariaDB)
AccountService<--SqlDAO:++return "User is already registered"++ AccountService<--SqlDAO:++return "User is already registered"++
SystemAccountManager<--AccountService:++return "User is already registered"++ SystemAccountManager<--AccountService:++return "User is already registered"++
Controller.cs<--SystemAccountManager:++return "User is already registered"++ Controller.cs<--SystemAccountManager:++return "User is already registered"++
User<--Controller.cs:++ return \n"User is already registered"++ User<--Controller.cs:++ return \n"User is already registered"++
deactivate SqlServer(MariaDB)
end end
// User doesn't exist // User doesn't exist
group #green User does not exist #white group #green User does not exist #white
@ -123,14 +155,15 @@ activate SqlServer(MariaDB) #00FFFF
SqlDAO<--SqlServer(MariaDB):++ return False++ SqlDAO<--SqlServer(MariaDB):++ return False++
SqlDAO->SqlServer(MariaDB):++ SQL insert\nuser credentials++ SqlDAO->SqlServer(MariaDB):++ SQL insert\nuser credentials++
SqlDAO<--SqlServer(MariaDB):++ return 1++ SqlDAO<--SqlServer(MariaDB):++ return 1++
AccountService<--SqlDAO:++return "User is now registered"++
SystemAccountManager<--AccountService:++return "User is now registered"++
Controller.cs<--SystemAccountManager:++return "User is now registered"++
User<--Controller.cs:++ return \n"User is now registered"++
deactivate AccountService
deactivate SqlDAO
deactivate SqlServer(MariaDB) deactivate SqlServer(MariaDB)
AccountService<--SqlDAO:++return "User is now registered"++
deactivate SqlDAO
SystemAccountManager<--AccountService:++return "User is now registered"++
deactivate AccountService
Controller.cs<--SystemAccountManager:++return "User is now registered"++
deactivate SystemAccountManager deactivate SystemAccountManager
User<--Controller.cs:++ return \n"User is now registered"++
deactivate Controller.cs deactivate Controller.cs
end end
//deactivate User //deactivate User
@ -138,4 +171,3 @@ end
end end
end end
end end
end

Binary file not shown.

Before

Width:  |  Height:  |  Size: 440 KiB

After

Width:  |  Height:  |  Size: 474 KiB

File diff suppressed because one or more lines are too long

Before

Width:  |  Height:  |  Size: 134 KiB

View File

@ -37,12 +37,28 @@ SystemAccountManager->SystemAccountManager:++Constructor(IDataSource conn)++
Controller.cs<--SystemAccountManager:++ New SystemAccountManager++ Controller.cs<--SystemAccountManager:++ New SystemAccountManager++
deactivate SystemAccountManager deactivate SystemAccountManager
// GetUserName
Controller.cs->Controller.cs:++string GetUserName()++
// GetPassword
Controller.cs->Controller.cs:++string GetPassword()++
// //
activate UserAccount #CBC3E3
Controller.cs->UserAccount:++ new UserAccount(string username,\n string password\n DateTime RegistrationTimeStamp)++ Controller.cs->UserAccount:++ new UserAccount(string username,\n string password\n DateTime RegistrationTimeStamp)++
activate UserAccount #CBC3E3
UserAccount->UserAccount: ++Constructor(string username,\n string password,\n DateTime RegistrationTimeStamp)++ UserAccount->UserAccount: ++Constructor(string username,\n string password,\n DateTime RegistrationTimeStamp)++
Controller.cs<--UserAccount:++New UserAccount++ Controller.cs<--UserAccount:++New UserAccount++
deactivate UserAccount deactivate UserAccount
activate SystemAccountManager #ffffe0
SystemAccountManager->SystemAccountManager:++isInputValid(user: UserAccount)++
group #red Invalid Information #white
Controller.cs<--SystemAccountManager:++return "Invalid input"++
User<--Controller.cs:++ return "Invalid input"++
end
Controller.cs<--SystemAccountManager:++return true++
deactivate SystemAccountManager
// //
Controller.cs->SystemAccountManager: ++manager.DeleteUserRecord(user:UserAccount)++ Controller.cs->SystemAccountManager: ++manager.DeleteUserRecord(user:UserAccount)++
@ -77,20 +93,31 @@ deactivate SqlServer(MariaDB)
SystemAccountManager<--SqlDAO:++return true++ SystemAccountManager<--SqlDAO:++return true++
deactivate SqlDAO deactivate SqlDAO
deactivate SystemAccountManager deactivate SystemAccountManager
activate SystemAccountManager #ffffe0
SystemAccountManager->SystemAccountManager:++isInputValid(user: UserAccount)++
group #red Invalid Information #white
Controller.cs<--SystemAccountManager:++return "Invalid input"++
User<--Controller.cs:++ return "Invalid input"++
deactivate SystemAccountManager
end
group #green Valid Information #white group #green Valid Information #white
activate SystemAccountManager #ffffe0 activate SystemAccountManager #ffffe0
SystemAccountManager->AccountService:++AccountService\n.DeleteUserRecord(user:UserAccount)++ // GetUserName
SystemAccountManager->SystemAccountManager:++string NewUserName()++
// Enter UserName
User->SystemAccountManager:++string NewUserName++
// GetPassword
SystemAccountManager->SystemAccountManager:++string NewPassword()++
// Enter Password
User->SystemAccountManager:++string NewPassword++
// GetRole
SystemAccountManager->SystemAccountManager:++string NewRole()++
// Enter Role
User->SystemAccountManager:++string NewRole++
// Create NewUser object
UserAccount<-SystemAccountManager:++new NewUser(\nstring NewUserName,\nstring NewPassword,\nstring role,\nDateTime TimeStamp)++
activate UserAccount #CBC3E3
UserAccount->UserAccount:++Constructor(\nstring NewUserName,\nstring NewPassword,\nstring role,\nDateTime TimeStamp)++
UserAccount-->SystemAccountManager:++return NewUser++
deactivate UserAccount
SystemAccountManager->AccountService:++AccountService\n.DeleteUserRecord(user:NewUser,\nUpdateType: userDelete)++
activate AccountService #ff8b3d activate AccountService #ff8b3d
AccountService->SqlDAO:++SqlDAO\n.DeleteUserRecord(user:UserAccount)++ AccountService->SqlDAO:++SqlDAO\n.DeleteUserRecord(user:NewUser,\nUpdateType: userDelete)++
activate SqlDAO #D3D3D3 activate SqlDAO #D3D3D3
SqlDAO->SqlServer(MariaDB): ++isUser(user:UserAccount)++ SqlDAO->SqlServer(MariaDB):++isUser(user:NewUser)++
activate SqlServer(MariaDB) #00FFFF activate SqlServer(MariaDB) #00FFFF
SqlServer(MariaDB)->SqlServer(MariaDB):++ Select *\nFrom Users\nwhere Username\n= @UserName OR\nemail = @Email++ SqlServer(MariaDB)->SqlServer(MariaDB):++ Select *\nFrom Users\nwhere Username\n= @UserName OR\nemail = @Email++
group #red data store timed out #white group #red data store timed out #white

Binary file not shown.

Before

Width:  |  Height:  |  Size: 533 KiB

After

Width:  |  Height:  |  Size: 457 KiB

File diff suppressed because one or more lines are too long

Before

Width:  |  Height:  |  Size: 131 KiB

View File

@ -37,12 +37,28 @@ SystemAccountManager->SystemAccountManager:++Constructor(IDataSource conn)++
Controller.cs<--SystemAccountManager:++ New SystemAccountManager++ Controller.cs<--SystemAccountManager:++ New SystemAccountManager++
deactivate SystemAccountManager deactivate SystemAccountManager
// GetUserName
Controller.cs->Controller.cs:++string GetUserName()++
// GetPassword
Controller.cs->Controller.cs:++string GetPassword()++
// Pass object // Pass object
activate UserAccount #CBC3E3
Controller.cs->UserAccount:++ new UserAccount(string username,\n string password\n DateTime RegistrationTimeStamp)++ Controller.cs->UserAccount:++ new UserAccount(string username,\n string password\n DateTime RegistrationTimeStamp)++
activate UserAccount #CBC3E3
UserAccount->UserAccount: ++Constructor(string username,\n string password,\n DateTime RegistrationTimeStamp)++ UserAccount->UserAccount: ++Constructor(string username,\n string password,\n DateTime RegistrationTimeStamp)++
Controller.cs<--UserAccount:++New UserAccount++ Controller.cs<--UserAccount:++New UserAccount++
deactivate UserAccount deactivate UserAccount
activate SystemAccountManager #ffffe0
SystemAccountManager->SystemAccountManager:++isInputValid(user: UserAccount)++
group #red Invalid Information #white
Controller.cs<--SystemAccountManager:++return "Invalid input"++
User<--Controller.cs:++ return "Invalid input"++
end
Controller.cs<--SystemAccountManager:++return true++
deactivate SystemAccountManager
// //
Controller.cs->SystemAccountManager: ++manager.DisableUserRecord(user:UserAccount)++ Controller.cs->SystemAccountManager: ++manager.DisableUserRecord(user:UserAccount)++
@ -77,21 +93,28 @@ deactivate SqlServer(MariaDB)
SystemAccountManager<--SqlDAO:++return true++ SystemAccountManager<--SqlDAO:++return true++
deactivate SqlDAO deactivate SqlDAO
deactivate SystemAccountManager deactivate SystemAccountManager
activate SystemAccountManager #ffffe0
SystemAccountManager->SystemAccountManager:++isInputValid(user: UserAccount)++
group #red Invalid Information #white
Controller.cs<--SystemAccountManager:++return "Invalid input"++
User<--Controller.cs:++ return "Invalid input"++
deactivate SystemAccountManager
end
group #green Valid Information #white group #green Valid Information #white
activate SystemAccountManager #ffffe0 activate SystemAccountManager #ffffe0
SystemAccountManager->AccountService:++AccountService\n.DisableUserRecord(user:UserAccount)++ // GetUserName
SystemAccountManager->SystemAccountManager:++string NewUserName()++
// Enter UserName
User->SystemAccountManager:++string NewUserName++
// GetRole
SystemAccountManager->SystemAccountManager:++string NewRole()++
// Enter Role
User->SystemAccountManager:++string NewRole++
// Create NewUser object
UserAccount<-SystemAccountManager:++new NewUser(\nstring NewUserName,\nstring role,\nDateTime TimeStamp)++
activate UserAccount #CBC3E3
UserAccount->UserAccount:++Constructor(\nstring NewUserName,\nstring role,\nDateTime TimeStamp)++
UserAccount-->SystemAccountManager:++return NewUser++
deactivate UserAccount
SystemAccountManager->AccountService:++AccountService\n.DisableUserRecord(user:NewUser,\nUpdateType:userDisable)++
activate AccountService #ff8b3d activate AccountService #ff8b3d
AccountService->SqlDAO:++SqlDAO\n.DisableUser(user:UserAccount)++ AccountService->SqlDAO:++SqlDAO\n.DisableUser(user:NewUser,\nUpdateType:userDisable)++
activate SqlDAO #D3D3D3 activate SqlDAO #D3D3D3
SqlDAO->SqlServer(MariaDB): ++isUser(user:UserAccount)++ SqlDAO->SqlServer(MariaDB):++isUser(user:NewUser)++
activate SqlServer(MariaDB) #00FFFF activate SqlServer(MariaDB) #00FFFF
SqlServer(MariaDB)->SqlServer(MariaDB):++ Select *\nFrom Users\nwhere Username\n= @UserName OR\nemail = @Email++ SqlServer(MariaDB)->SqlServer(MariaDB):++ Select *\nFrom Users\nwhere Username\n= @UserName OR\nemail = @Email++
group #red data store timed out #white group #red data store timed out #white
@ -111,24 +134,24 @@ activate SqlServer(MariaDB) #00FFFF
SqlDAO<--SqlServer(MariaDB):++ return True++ SqlDAO<--SqlServer(MariaDB):++ return True++
SqlDAO->SqlServer(MariaDB):++Update users Set isActive = 0\nwhere UserName = @UserName++ SqlDAO->SqlServer(MariaDB):++Update users Set isActive = 0\nwhere UserName = @UserName++
SqlDAO<--SqlServer(MariaDB):++ return 1++ SqlDAO<--SqlServer(MariaDB):++ return 1++
deactivate SqlServer(MariaDB)
AccountService<--SqlDAO:++return "User is now disabled"++ AccountService<--SqlDAO:++return "User is now disabled"++
SystemAccountManager<--AccountService:++return "User is now disabled"++ SystemAccountManager<--AccountService:++return "User is now disabled"++
Controller.cs<--SystemAccountManager:++return "User is now disabled"++ Controller.cs<--SystemAccountManager:++return "User is now disabled"++
User<--Controller.cs:++ return \n"User is now disabled"++ User<--Controller.cs:++ return \n"User is now disabled"++
deactivate SqlServer(MariaDB)
end end
// User doesn't exist // User doesn't exist
group #red User does not exist #white group #red User does not exist #white
activate SqlServer(MariaDB) #00FFFF activate SqlServer(MariaDB) #00FFFF
SqlDAO<--SqlServer(MariaDB):++ return False++ SqlDAO<--SqlServer(MariaDB):++ return False++
AccountService<--SqlDAO:++return "User does not exist"++
SystemAccountManager<--AccountService:++return "User does not exist"++
Controller.cs<--SystemAccountManager:++return "User does not exist"++
User<--Controller.cs:++ return \n"User does not exist"++
deactivate AccountService
deactivate SqlDAO
deactivate SqlServer(MariaDB) deactivate SqlServer(MariaDB)
AccountService<--SqlDAO:++return "User does not exist"++
deactivate SqlDAO
SystemAccountManager<--AccountService:++return "User does not exist"++
deactivate AccountService
Controller.cs<--SystemAccountManager:++return "User does not exist"++
deactivate SystemAccountManager deactivate SystemAccountManager
User<--Controller.cs:++ return \n"User does not exist"++
deactivate Controller.cs deactivate Controller.cs
end end
//deactivate User //deactivate User

Binary file not shown.

Before

Width:  |  Height:  |  Size: 469 KiB

After

Width:  |  Height:  |  Size: 440 KiB

File diff suppressed because one or more lines are too long

Before

Width:  |  Height:  |  Size: 139 KiB

View File

@ -23,7 +23,7 @@ Controller.cs->SqlDAO:++IDataSource factory.GetDataSource(string DbName, string
activate SqlDAO #D3D3D3 activate SqlDAO #D3D3D3
SqlDAO->SqlDAO:++Constructor(string connInfo)++ SqlDAO->SqlDAO:++Constructor(string connInfo)++
group #red Data Store Timed Out #white group #red Data Store Timed Out #white
SqlDAO->SqlDAO: ++Catch SqlException++ SqlDAO->SqlDAO: ++Catch Exception++
Controller.cs<--SqlDAO:++return "Data Source Timed Out"++ Controller.cs<--SqlDAO:++return "Data Source Timed Out"++
end end
group #blue Data Store Online #white group #blue Data Store Online #white
@ -37,14 +37,30 @@ SystemAccountManager->SystemAccountManager:++Constructor(IDataSource conn)++
Controller.cs<--SystemAccountManager:++ New SystemAccountManager++ Controller.cs<--SystemAccountManager:++ New SystemAccountManager++
deactivate SystemAccountManager deactivate SystemAccountManager
// GetUserName
Controller.cs->Controller.cs:++string GetUserName()++
// GetPassword
Controller.cs->Controller.cs:++string GetPassword()++
// //
Controller.cs->UserAccount:++ new UserAccount(string username,\n string password,\n DateTime RegistrationTimeStamp)++
activate UserAccount #CBC3E3 activate UserAccount #CBC3E3
Controller.cs->UserAccount:++ new UserAccount(string username,\n string password,\n string email,\n DateTime RegistrationTimeStamp)++ UserAccount->UserAccount: ++string username,\n string password,\n DateTime RegistrationTimeStamp++
UserAccount->UserAccount: ++string username,\n string password,\n string email,\n DateTime RegistrationTimeStamp++
Controller.cs<--UserAccount:++New UserAccount++ Controller.cs<--UserAccount:++New UserAccount++
deactivate UserAccount deactivate UserAccount
activate SystemAccountManager #ffffe0
SystemAccountManager->SystemAccountManager:++isInputValid(user: UserAccount)++
group #red Invalid Information #white
Controller.cs<--SystemAccountManager:++return "Invalid input"++
User<--Controller.cs:++ return "Invalid input"++
end
Controller.cs<--SystemAccountManager:++return true++
deactivate SystemAccountManager
//look over //look over
Controller.cs->SystemAccountManager: ++manager.UpdateUserRecord(user:UserAccount,\nActiveUser:user, UpdateObj: userUpdate)++ Controller.cs->SystemAccountManager:++manager.UpdateUserRecord(user:UserAccount)++
//check if there is an admin user //check if there is an admin user
activate SystemAccountManager #ffffe0 activate SystemAccountManager #ffffe0
@ -78,22 +94,37 @@ deactivate SqlServer(MariaDB)
SystemAccountManager<--SqlDAO:++return true++ SystemAccountManager<--SqlDAO:++return true++
deactivate SqlDAO deactivate SqlDAO
deactivate SystemAccountManager deactivate SystemAccountManager
activate SystemAccountManager #ffffe0
SystemAccountManager->SystemAccountManager:++isInputValid(user: UserAccount)++
group #red Invalid Information #white
Controller.cs<--SystemAccountManager:++return "Invalid input"++
User<--Controller.cs:++ return "Invalid input"++
deactivate SystemAccountManager
end
group #green Valid Information #white group #green Valid Information #white
activate SystemAccountManager #ffffe0 activate SystemAccountManager #ffffe0
SystemAccountManager->AccountService: ++AccountService\n.CreateUserRecord(user:UserAccount\n,ActiveUser:user, UpdateObj: userUpdate)++ // GetUserName
SystemAccountManager->SystemAccountManager:++string NewUserName()++
// Enter UserName
User->SystemAccountManager:++string NewUserName++
// GetPassword
SystemAccountManager->SystemAccountManager:++string NewPassword()++
// Enter Password
User->SystemAccountManager:++string NewPassword++
// GetEmail
SystemAccountManager->SystemAccountManager:++string NewEmail()++
// Enter Email
User->SystemAccountManager:++string NewEmail++
// GetRole
SystemAccountManager->SystemAccountManager:++string NewRole()++
// Enter Role
User->SystemAccountManager:++string NewRole++
// Create NewUser object
UserAccount<-SystemAccountManager:++new NewUser(\nstring NewUserName,\nstring NewPassword,\nstring New Email,\nstring NewRole,\nDateTime TimeStamp)++
activate UserAccount #CBC3E3
UserAccount->UserAccount:++Constructor(\nstring NewUserName,\nstring NewPassword,\nstring New Email,\nstring NewRole,\nDateTime TimeStamp)++
UserAccount-->SystemAccountManager:++return NewUser++
deactivate UserAccount
SystemAccountManager->AccountService:++AccountService\n.UpdateUserRecord(user:NewUser,\nUpdateType: userUpdate)++
activate AccountService #ff8b3d activate AccountService #ff8b3d
AccountService->SqlDAO: ++SqlDAO\n.CreateUserRecord(user:UserAccount\n,ActiveUser:user, UpdateObj: userUpdate)++ AccountService->SqlDAO:++SqlDAO\n.UpdateUserRecord(user:NewUser,\nUpdateType: userUpdate)++
activate SqlDAO #D3D3D3 activate SqlDAO #D3D3D3
SqlDAO->SqlServer(MariaDB): ++isUser(user:UserAccount)++ SqlDAO->SqlServer(MariaDB):++isUser(user:NewUser)++
activate SqlServer(MariaDB) #00FFFF activate SqlServer(MariaDB) #00FFFF
SqlServer(MariaDB)->SqlServer(MariaDB):++ Select *\nFrom Users\nwhere Username\n= @UserName OR\nemail = @Email++ SqlServer(MariaDB)->SqlServer(MariaDB):++Update *\nFrom Users\nwhere Username\n= @UserName OR\nemail = @Email++
group #red data store timed out #white group #red data store timed out #white
SqlDAO<--SqlServer(MariaDB):++SqlException++ SqlDAO<--SqlServer(MariaDB):++SqlException++
deactivate SqlServer(MariaDB) deactivate SqlServer(MariaDB)
@ -109,13 +140,13 @@ group #blue data store is online #white
group #green User does exist #white group #green User does exist #white
activate SqlServer(MariaDB) #00FFFF activate SqlServer(MariaDB) #00FFFF
SqlDAO<--SqlServer(MariaDB):++ return True++ SqlDAO<--SqlServer(MariaDB):++ return True++
SqlDAO->SqlServer(MariaDB):++ SQL insert\nuser credentials++ SqlDAO->SqlServer(MariaDB):++ SQL insert\nupdate credentials++
SqlDAO<--SqlServer(MariaDB):++ return 1++ SqlDAO<--SqlServer(MariaDB):++ return 1++
deactivate SqlServer(MariaDB)
AccountService<--SqlDAO:++return "User information updated successfully"++ AccountService<--SqlDAO:++return "User information updated successfully"++
SystemAccountManager<--AccountService:++return "User information updated successfully"++ SystemAccountManager<--AccountService:++return "User information updated successfully"++
Controller.cs<--SystemAccountManager:++return "User information updated successfully"++ Controller.cs<--SystemAccountManager:++return "User information updated successfully"++
User<--Controller.cs:++ return "User information\n updated successfully"++ User<--Controller.cs:++ return "User information\n updated successfully"++
deactivate SqlServer(MariaDB)
end end
// User doesn't exist // User doesn't exist
group #green User does not exist #white group #green User does not exist #white
@ -123,14 +154,14 @@ activate SqlServer(MariaDB) #00FFFF
SqlDAO<--SqlServer(MariaDB):++ return False++ SqlDAO<--SqlServer(MariaDB):++ return False++
SqlDAO->SqlServer(MariaDB):++ SQL insert\nuser credentials++ SqlDAO->SqlServer(MariaDB):++ SQL insert\nuser credentials++
SqlDAO<--SqlServer(MariaDB):++ return 1++ SqlDAO<--SqlServer(MariaDB):++ return 1++
AccountService<--SqlDAO:++return "User is now registered"++
SystemAccountManager<--AccountService:++return "User is now registered"++
Controller.cs<--SystemAccountManager:++return "User is now registered"++
User<--Controller.cs:++ return \n"User is now registered"++
deactivate AccountService
deactivate SqlDAO
deactivate SqlServer(MariaDB) deactivate SqlServer(MariaDB)
AccountService<--SqlDAO:++return "User is now registered"++
deactivate SqlDAO
SystemAccountManager<--AccountService:++return "User is now registered"++
deactivate AccountService
Controller.cs<--SystemAccountManager:++return "User is now registered"++
deactivate SystemAccountManager deactivate SystemAccountManager
User<--Controller.cs:++ return \n"User is now registered"++
deactivate Controller.cs deactivate Controller.cs
end end
//deactivate User //deactivate User