예제 #1
0
        /// <summary>
        /// 更新角色的条件
        /// </summary>
        /// <param name="owner"></param>
        /// <returns></returns>
        public SCConditionOwner UpdateRoleConditions(SCConditionOwner owner)
        {
            SCUpdateConditionsExecutor executor = new SCUpdateConditionsExecutor(SCOperationType.UpdateRoleConditions, owner);

            if (this._NeedCheckPermissions)
            {
                CheckApplicationMemberPermissions(SCOperationType.UpdateRoleConditions, "ModifyMembersInRoles", owner.OwnerID);
            }

            SCConditionOwner result = null;

            ExecuteWithActions(SCOperationType.UpdateRoleConditions, () => SCActionContext.Current.DoActions(() => result = (SCConditionOwner)executor.Execute()));

            return(result);
        }
예제 #2
0
        /// <summary>
        /// 更新群组的条件
        /// </summary>
        /// <param name="owner"></param>
        /// <returns></returns>
        public SCConditionOwner UpdateGroupConditions(SCConditionOwner owner)
        {
            SCUpdateConditionsExecutor executor = new SCUpdateConditionsExecutor(SCOperationType.UpdateGroupConditions, owner);

            if (this._NeedCheckPermissions)
            {
                CheckOrganizationChildrenPermissions(SCOperationType.UpdateGroupConditions, "EditMembersOfGroups", owner.OwnerID);
            }

            SCConditionOwner result = null;

            ExecuteWithActions(SCOperationType.UpdateGroupConditions, () => SCActionContext.Current.DoActions(() => result = (SCConditionOwner)executor.Execute()));

            return(result);
        }
예제 #3
0
		/// <summary>
		/// 更新角色的条件
		/// </summary>
		/// <param name="owner"></param>
		/// <returns></returns>
		public SCConditionOwner UpdateRoleConditions(SCConditionOwner owner)
		{
			SCUpdateConditionsExecutor executor = new SCUpdateConditionsExecutor(SCOperationType.UpdateRoleConditions, owner);

			if (this._NeedCheckPermissions)
				CheckApplicationMemberPermissions(SCOperationType.UpdateRoleConditions, "ModifyMembersInRoles", owner.OwnerID);

			SCConditionOwner result = null;

			ExecuteWithActions(SCOperationType.UpdateRoleConditions, () => SCActionContext.Current.DoActions(() => result = (SCConditionOwner)executor.Execute()));

			return result;
		}
예제 #4
0
		/// <summary>
		/// 更新群组的条件
		/// </summary>
		/// <param name="owner"></param>
		/// <returns></returns>
		public SCConditionOwner UpdateGroupConditions(SCConditionOwner owner)
		{
			SCUpdateConditionsExecutor executor = new SCUpdateConditionsExecutor(SCOperationType.UpdateGroupConditions, owner);

			if (this._NeedCheckPermissions)
				CheckOrganizationChildrenPermissions(SCOperationType.UpdateGroupConditions, "EditMembersOfGroups", owner.OwnerID);

			SCConditionOwner result = null;

			ExecuteWithActions(SCOperationType.UpdateGroupConditions, () => SCActionContext.Current.DoActions(() => result = (SCConditionOwner)executor.Execute()));

			return result;
		}