Exemple #1
0
        /// <summary>
        /// 更新对象的权限信息
        /// </summary>
        /// <param name="container">Acl的容器</param>
        /// <returns>返回容器本身</returns>
        public SCAclContainer UpdateObjectAcl(SCAclContainer container)
        {
            if (this._NeedCheckPermissions)
            {
                CheckUpdateAclPermissions(AUOperationType.UpdateObjectAcl, container.ContainerID);
            }

            AUUpdateObjectAclExecutor executor = new AUUpdateObjectAclExecutor(AUOperationType.UpdateObjectAcl, container);

            SCAclContainer result = null;

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

            return(result);
        }
Exemple #2
0
		/// <summary>
		/// 更新对象的权限信息
		/// </summary>
		/// <param name="container">Acl的容器</param>
		/// <returns>返回容器本身</returns>
		public SCAclContainer UpdateObjectAcl(SCAclContainer container)
		{
			if (this._NeedCheckPermissions)
				CheckUpdateAclPermissions(AUOperationType.UpdateObjectAcl, container.ContainerID);

			AUUpdateObjectAclExecutor executor = new AUUpdateObjectAclExecutor(AUOperationType.UpdateObjectAcl, container);

			SCAclContainer result = null;

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

			return result;
		}