Exemple #1
0
 // use case 3.1 - Open Store
 public static bool openStore(string storeName, int userNum)
 {
     return(CreateAndGetUser.GetUser(userNum).OpenStore(storeName, userNum));
 }
 // use case 4.5 - Assign store Manager
 public static bool AsssignManager(int userNum, string store, string username, bool [] privileges)
 {
     return(CreateAndGetUser.GetUser(userNum).AddStoreManager(store, AllRegisteredUsers.GetInstance().GetUserInfo(username), privileges));
 }
Exemple #3
0
 // use case 4.3 - Assign store owner
 public static bool assignStoreOwner(int I_storeOwner, string store, string username)
 {
     return(CreateAndGetUser.GetUser(I_storeOwner).AddStoreOwner(store, AllRegisteredUsers.GetInstance().GetUserInfo(username)));
 }
Exemple #4
0
 // use case 3.1 - Log Out
 public static bool Logout(int userNum)
 {
     // if the user not logged in will return false
     return(CreateAndGetUser.GetUser(userNum).LogOut());
 }
 public static bool removeStoreManager(int Im, string store, string toRemove)
 {
     return(CreateAndGetUser.GetUser(Im).RemoveStoreManager(store, AllRegisteredUsers.GetInstance().GetUserInfo(toRemove)));
 }