예제 #1
0
        internal static ExchangeRunspaceConfiguration ReadExchangeRunspaceConfiguration(IRecipientSession recipientSession, string userId)
        {
            RBACContext rbaccontext = null;

            if (RBACContext.TryParseRbacContextString(userId, out rbaccontext))
            {
                return(rbaccontext.CreateExchangeRunspaceConfiguration());
            }
            try
            {
                Guid   guid   = new Guid(userId);
                ADUser aduser = (ADUser)recipientSession.Read(new ADObjectId(guid));
                if (aduser != null)
                {
                    GenericIdentity identity = new GenericIdentity(aduser.Sid.ToString());
                    return(new ExchangeRunspaceConfiguration(identity));
                }
            }
            catch (Exception arg)
            {
                Util.Tracer.TraceError <Exception>(0L, "ReadExchangeRunspaceConfiguration error: {0}", arg);
            }
            return(null);
        }
예제 #2
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="_rbacContext"></param>
 public RoleController(RBACContext _rbacContext)
 {
     this.rbacContext = _rbacContext;
 }
예제 #3
0
 ///
 public MenuController(RBACContext _rbacContext)
 {
     this.rbacContext = _rbacContext;
 }
예제 #4
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="_rbacContext"></param>
 public SignController(RBACContext _rbacContext)
 {
     this.rbacContext = _rbacContext;
 }
예제 #5
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="_rbacContext"></param>
 public OrgController(RBACContext _rbacContext)
 {
     this.rbacContext = _rbacContext;
 }
예제 #6
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="_rbacContext"></param>
 public UserController(RBACContext _rbacContext)
 {
     this.rbacContext = _rbacContext;
 }