Ejemplo n.º 1
0
 public Role(string name, bool passwordRequired, SessionManager.Session session) :
     base(name, session)
 {
     this.passwordRequired = passwordRequired;
     // create managers
     createManagers();
 }
Ejemplo n.º 2
0
 public CurrentUser(
     decimal id, string name,
     object defaultTablespace, object temporaryTablespace,
     DateTime?created, DateTime?expiryDate,
     SessionManager.Session session) :
     base(id, name, defaultTablespace, temporaryTablespace, created, expiryDate, session)
 {
 }
Ejemplo n.º 3
0
        public ResourceLimitManager(SessionManager.Session session)
        {
            if (session == null)
                throw new ArgumentNullException("Session");

            this.session = session;
            this.conn = this.session.Connection;
        }
Ejemplo n.º 4
0
        public ConstraintColumnManager(SessionManager.Session session)
        {
            if (session == null)
                throw new ArgumentNullException("Session");

            this.session = session;
            this.conn = this.session.Connection;
        }
Ejemplo n.º 5
0
        public RoleManager(SessionManager.Session session)
        {
            if (session == null)
                throw new ArgumentNullException("Session");

            this.session = session;
            this.conn = session.Connection;
            privManager = session.PrivManager;
        }
Ejemplo n.º 6
0
        public QuotasManager(SessionManager.Session session)
        {
            if (session == null)
            {
                throw new ArgumentNullException("Session");
            }

            this.session = session;
            this.conn    = session.Connection;
        }
Ejemplo n.º 7
0
        public RoleManager(SessionManager.Session session)
        {
            if (session == null)
            {
                throw new ArgumentNullException("Session");
            }

            this.session = session;
            this.conn    = session.Connection;
            privManager  = session.PrivManager;
        }
Ejemplo n.º 8
0
        public ConstraintManager(SessionManager.Session session)
        {
            if (session == null)
            {
                throw new ArgumentNullException("Session");
            }

            this.session       = session;
            this.columnManager = new ConstraintColumnManager(this.session);
            this.conn          = this.session.Connection;
        }
Ejemplo n.º 9
0
            public RoleManagerLocal(SessionManager.Session session, UserRole userRole)
            {
                if (session == null)
                {
                    throw new ArgumentNullException("Session");
                }

                this.session  = session;
                manager       = session.RoleManager;
                this.userRole = userRole;
                this.conn     = session.Connection;
            }
Ejemplo n.º 10
0
        public SchemaManager(SessionManager.Session session)
        {
            if (session == null)
                throw new ArgumentNullException("Session");

            this.session = session;
            this.conn = session.Connection;
            this.tableManager = new TableManager(session);
            this.columnManager = new ColumnManager();
            this.constraintManager = new ConstraintManager();
            this.indexManager = new IndexManager();
        }
Ejemplo n.º 11
0
        public TableManager(SessionManager.Session session)
        {
            if (session == null)
                throw new ArgumentNullException("Session");

            this.session = session;
            this.manager = session.SchemaManager;
            this.conn = session.Connection;
            this.columnManager = manager.ColumnManager;
            this.constraintManager = manager.ConstraintManager;
            this.indexManager = manager.IndexManager;
        }
Ejemplo n.º 12
0
            public LocalColumnManager(SessionManager.Session session)
            {
                if (session == null)
                {
                    throw new ArgumentNullException("Session");
                }

                this.session = session;
                this.conn    = this.session.Connection;
                manager      = this.session.SchemaManager.ColumnManager;
                // set up event handlers
                this.manager.AllColumnsRefreshed += new AllColumnsRefreshedHandler(manager_AllColumnsRefreshed);
            }
Ejemplo n.º 13
0
            public PrivManagerLocal(SessionManager.Session session, UserRole userRole)
            {
                if (session == null || userRole == null)
                {
                    throw new ArgumentNullException("Session or User");
                }

                this.manager          = session.PrivManager;
                this.conn             = session.Connection;
                this.userRole         = userRole;
                this.localRoleManager = userRole.RoleManager;
                // create privilege view
                defaultView = CollectionViewSource.GetDefaultView(privileges) as ListCollectionView;
            }
Ejemplo n.º 14
0
        public TableManager(SessionManager.Session session)
        {
            if (session == null)
            {
                throw new ArgumentNullException("Session");
            }

            this.session           = session;
            this.manager           = session.SchemaManager;
            this.conn              = session.Connection;
            this.columnManager     = manager.ColumnManager;
            this.constraintManager = manager.ConstraintManager;
            this.indexManager      = manager.IndexManager;
        }
Ejemplo n.º 15
0
        public SchemaManager(SessionManager.Session session)
        {
            if (session == null)
            {
                throw new ArgumentNullException("Session");
            }

            this.session           = session;
            this.conn              = session.Connection;
            this.tableManager      = new TableManager(session);
            this.columnManager     = new ColumnManager();
            this.constraintManager = new ConstraintManager();
            this.indexManager      = new IndexManager();
        }
Ejemplo n.º 16
0
        public UserRole(string name, SessionManager.Session session)
        {
            if (session == null)
                throw new ArgumentNullException("Session");

            this.session = session;
            this.userRoleManager = session.RoleManager;
            this.name = name;
            this.conn = session.Connection;
            // register with events of the role manager
            userRoleManager.RoleGrantsOfAllRolesRefreshed +=
                new RoleGrantsOfAllRolesRefreshedHandler(manager_RoleGrantsOfAllRolesRefreshed);
            userRoleManager.RoleGrantsRefreshed +=
                new RoleGrantsRefreshedHandler(manager_RoleGrantsRefreshed);
        }
Ejemplo n.º 17
0
        public UserManager(SessionManager.Session session)
        {
            if (session == null)
                throw new ArgumentNullException("Session");

            this.session = session;
            this.conn = session.Connection;
            // load current user
            if (!loadCurrentUser())
                throw new Exception("Current user not loaded");
            // load other users
            loadUsers();
            // create user view
            defaultUserView = CollectionViewSource.GetDefaultView(users) as ListCollectionView;
        }
Ejemplo n.º 18
0
 public User(decimal id, string name,
             object defaultTablespace, object temporaryTablespace,
             DateTime?created, DateTime?expiryDate,
             SessionManager.Session session) :
     base(name, session)
 {
     this.id = id;
     this.defaultTablespace   = defaultTablespace;
     this.temporaryTablespace = temporaryTablespace;
     this.expiryDate          = expiryDate;
     this.created             = created;
     this.manager             = session.UserManager;
     // create managers
     createManagers();
 }
Ejemplo n.º 19
0
        public UserRole(string name, SessionManager.Session session)
        {
            if (session == null)
            {
                throw new ArgumentNullException("Session");
            }

            this.session         = session;
            this.userRoleManager = session.RoleManager;
            this.name            = name;
            this.conn            = session.Connection;
            // register with events of the role manager
            userRoleManager.RoleGrantsOfAllRolesRefreshed +=
                new RoleGrantsOfAllRolesRefreshedHandler(manager_RoleGrantsOfAllRolesRefreshed);
            userRoleManager.RoleGrantsRefreshed +=
                new RoleGrantsRefreshedHandler(manager_RoleGrantsRefreshed);
        }
Ejemplo n.º 20
0
        public UserManager(SessionManager.Session session)
        {
            if (session == null)
            {
                throw new ArgumentNullException("Session");
            }

            this.session = session;
            this.conn    = session.Connection;
            // load current user
            if (!loadCurrentUser())
            {
                throw new Exception("Current user not loaded");
            }
            // load other users
            loadUsers();
            // create user view
            defaultUserView = CollectionViewSource.GetDefaultView(users) as ListCollectionView;
        }
Ejemplo n.º 21
0
            public LocalColumnManager(SessionManager.Session session)
            {
                if (session == null)
                    throw new ArgumentNullException("Session");

                this.session = session;
                this.conn = this.session.Connection;
                manager = this.session.SchemaManager.ColumnManager;
                // set up event handlers
                this.manager.AllColumnsRefreshed += new AllColumnsRefreshedHandler(manager_AllColumnsRefreshed);
            }
Ejemplo n.º 22
0
        public QuotasManager(SessionManager.Session session)
        {
            if (session == null)
                throw new ArgumentNullException("Session");

            this.session = session;
            this.conn = session.Connection;
        }
Ejemplo n.º 23
0
            public RoleManagerLocal(SessionManager.Session session, UserRole userRole)
            {
                if (session == null)
                    throw new ArgumentNullException("Session");

                this.session = session;
                manager = session.RoleManager;
                this.userRole = userRole;
                this.conn = session.Connection;
            }
Ejemplo n.º 24
0
 public CurrentUserRoleManagerLocal(SessionManager.Session session,
                                    UserManager.CurrentUser currentUser) :
     base(session, currentUser)
 {
 }
Ejemplo n.º 25
0
 public UserRoleManagerLocal(SessionManager.Session session, UserManager.User user) :
     base(session, user)
 {
 }
Ejemplo n.º 26
0
 public RoleRoleManagerLocal(SessionManager.Session session, Role role) :
     base(session, role)
 {
 }
Ejemplo n.º 27
0
 public CurrentUserPrivManagerLocal(SessionManager.Session session,
                                    UserManager.CurrentUser user) :
     base(session, user)
 {
 }