Esempio n. 1
0
 public static void StartAllModules(SchemaBuilder sb)
 {
     TypeAuthLogic.Start(sb);
     PropertyAuthLogic.Start(sb);
     QueryAuthLogic.Start(sb);
     OperationAuthLogic.Start(sb);
     PermissionAuthLogic.Start(sb);
 }
Esempio n. 2
0
 public static void StartAllModules(SchemaBuilder sb, DynamicQueryManager dqm)
 {
     TypeAuthLogic.Start(sb, dqm);
     PropertyAuthLogic.Start(sb);
     QueryAuthLogic.Start(sb, dqm);
     OperationAuthLogic.Start(sb);
     PermissionAuthLogic.Start(sb, dqm);
 }
Esempio n. 3
0
        public static void StartAllModules(SchemaBuilder sb, bool activeDirectoryIntegration = false)
        {
            TypeAuthLogic.Start(sb);
            PropertyAuthLogic.Start(sb);
            QueryAuthLogic.Start(sb);
            OperationAuthLogic.Start(sb);
            PermissionAuthLogic.Start(sb);

            if (activeDirectoryIntegration)
            {
                PermissionAuthLogic.RegisterTypes(typeof(ActiveDirectoryPermission));
            }
        }
Esempio n. 4
0
        public static void Start(SchemaBuilder sb, DynamicQueryManager dqm)
        {
            if (sb.NotDefined(MethodInfo.GetCurrentMethod()))
            {
                AuthLogic.AssertStarted(sb);

                sb.Include<SessionLogEntity>()
                    .WithQuery(dqm, () => sl => new
                    {
                        Entity = sl,
                        sl.Id,
                        sl.User,
                        sl.SessionStart,
                        sl.SessionEnd,
                        sl.SessionTimeOut
                    });

                PermissionAuthLogic.RegisterPermissions(SessionLogPermission.TrackSession);

                ExceptionLogic.DeleteLogs += ExceptionLogic_DeleteLogs;
            }
        }