Exemplo n.º 1
0
        public PermissionsInfo ServiceGetPermissions()
        {
            try
            {
                ServiceMetadata metadata = this.EnsureMetadataInitialized();
                PermissionsInfo result   = new PermissionsInfo();
                result.serverTimezone = DataHelperClass.GetLocalDateTimezoneOffset(DateTime.Now);
                foreach (var dbInfo in metadata.dbSets.Values)
                {
                    var permissions = dbInfo.CalculatePermissions(this.Authorizer);
                    result.permissions.Add(permissions);
                }

                return(result);
            }
            catch (Exception ex)
            {
                this.OnError(ex);
                throw;
            }
        }
Exemplo n.º 2
0
 public PermissionsInfo()
 {
     this.serverTimezone = DataHelperClass.GetLocalDateTimezoneOffset(DateTime.Now);
 }
Exemplo n.º 3
0
 public MetadataInfo()
 {
     this.serverTimezone = DataHelperClass.GetLocalDateTimezoneOffset(DateTime.Now);
 }