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