コード例 #1
0
        /// <summary>
        /// 更新对象的权限信息
        /// </summary>
        /// <param name="container">Acl的容器</param>
        /// <returns>返回容器本身</returns>
        public SCAclContainer UpdateObjectAcl(SCAclContainer container)
        {
            SCUpdateObjectAclExecutor executor = new SCUpdateObjectAclExecutor(SCOperationType.UpdateObjectAcl, container);

            if (this._NeedCheckPermissions)
            {
                CheckUpdateAclPermissions(SCOperationType.UpdateObjectAcl, container.ContainerID);
            }

            SCAclContainer result = null;

            ExecuteWithActions(SCOperationType.UpdateObjectAcl, () => SCActionContext.Current.DoActions(() => result = (SCAclContainer)executor.Execute()));

            return(result);
        }
コード例 #2
0
		/// <summary>
		/// 更新对象的权限信息
		/// </summary>
		/// <param name="container">Acl的容器</param>
		/// <returns>返回容器本身</returns>
		public SCAclContainer UpdateObjectAcl(SCAclContainer container)
		{
			SCUpdateObjectAclExecutor executor = new SCUpdateObjectAclExecutor(SCOperationType.UpdateObjectAcl, container);

			if (this._NeedCheckPermissions)
				CheckUpdateAclPermissions(SCOperationType.UpdateObjectAcl, container.ContainerID);

			SCAclContainer result = null;

			ExecuteWithActions(SCOperationType.UpdateObjectAcl, () => SCActionContext.Current.DoActions(() => result = (SCAclContainer)executor.Execute()));

			return result;
		}