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); }
/// <summary> /// /// </summary> /// <param name="_rbacContext"></param> public RoleController(RBACContext _rbacContext) { this.rbacContext = _rbacContext; }
/// public MenuController(RBACContext _rbacContext) { this.rbacContext = _rbacContext; }
/// <summary> /// /// </summary> /// <param name="_rbacContext"></param> public SignController(RBACContext _rbacContext) { this.rbacContext = _rbacContext; }
/// <summary> /// /// </summary> /// <param name="_rbacContext"></param> public OrgController(RBACContext _rbacContext) { this.rbacContext = _rbacContext; }
/// <summary> /// /// </summary> /// <param name="_rbacContext"></param> public UserController(RBACContext _rbacContext) { this.rbacContext = _rbacContext; }