Пример #1
0
 public static StorePremissionsArchive getInstance()
 {
     if (instance == null)
     {
         instance = new StorePremissionsArchive();
     }
     return(instance);
 }
Пример #2
0
 public virtual Premissions getPremissions(User manager, Store s)
 {
     return(StorePremissionsArchive.getInstance().getAllPremissions(s.getStoreId(), manager.getUserName()));
 }
Пример #3
0
 private StorePremissions getStorePremissions(Store s)
 {
     return(StorePremissionsArchive.getInstance().GetPremissionsOfAStore(s.getStoreId()));
 }
Пример #4
0
 public static void restartInstance()
 {
     instance = new StorePremissionsArchive();
 }
Пример #5
0
 public StoreManager(User u, Store s, String addedBy, String timeAdded) : base(u, s, addedBy, timeAdded)
 {
     premissions = StorePremissionsArchive.getInstance();
     type        = "Manager";
 }
Пример #6
0
 public StoreManager(User u, Store s) : base(u, s)
 {
     premissions = StorePremissionsArchive.getInstance();
     type        = "Manager";
 }