Beispiel #1
0
            public Session(OracleConnection conn)
            {
                if (conn == null)
                {
                    throw new ArgumentNullException("Connection");
                }

                this.conn = conn;

                try
                {
                    // create managers
                    privManager   = new SysPrivManager(this);
                    roleManager   = new RoleManager(this);
                    userManager   = new UserManager(this);
                    schemaManager = new SchemaManager(this);
                    // store current user reference
                    currentUser = userManager.SessionUser;
                }
                catch (Exception e)
                {
                    MessageBox.Show(string.Format("Exception caught:\n{0}", e.Message));
                }
            }
Beispiel #2
0
            public Session(OracleConnection conn)
            {
                if(conn == null)
                    throw new ArgumentNullException("Connection");

                this.conn = conn;

                try
                {
                    // create managers
                    privManager = new SysPrivManager(this);
                    roleManager = new RoleManager(this);
                    userManager = new UserManager(this);
                    schemaManager = new SchemaManager(this);
                    // store current user reference
                    currentUser = userManager.SessionUser;
                }
                catch (Exception e)
                {
                    MessageBox.Show(string.Format("Exception caught:\n{0}", e.Message));
                }
            }
Beispiel #3
0
 public CurrentUserRoleManagerLocal(SessionManager.Session session,
                                    UserManager.CurrentUser currentUser) :
     base(session, currentUser)
 {
 }
Beispiel #4
0
 public CurrentUserRoleManagerLocal CreateCurrentUserLocalManager(UserManager.CurrentUser currentUser)
 {
     return(new CurrentUserRoleManagerLocal(session, currentUser));
 }
Beispiel #5
0
 public CurrentUserPrivManagerLocal(SessionManager.Session session,
                                    UserManager.CurrentUser user) :
     base(session, user)
 {
 }
Beispiel #6
0
 public CurrentUserPrivManagerLocal CreateCurrentUserPrivManagerLocal(UserManager.CurrentUser user)
 {
     return(new CurrentUserPrivManagerLocal(session, user));
 }