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();
        }
Exemplo n.º 2
0
 public List <Group> GetGroupByName(string name, bool exact = false)
 {
     return(_dal.GetGroupByName(name, exact));
 }