public void RefreshStore()
        {
            if (IsServiceConnection)
            {
                Store = new SuplexStore
                {
                    Users         = _dal.GetUserByName(null, false),
                    Groups        = _dal.GetGroupByName(null, false),
                    SecureObjects = _dal.GetSecureObjects() as List <SecureObject>
                };
            }
            else
            {
                if (HasConnectionPath)
                {
                    AsFileSystemDal.FromYamlFile(ConnectionPath);
                }
                Store = AsFileSystemDal.Store as SuplexStore;
            }

            Store.SecureObjects?.EnsureParentUIdRecursive();
        }
Beispiel #2
0
 public IEnumerable <ISecureObject> GetSecureObjects()
 {
     return(_dal.GetSecureObjects());
 }