Esempio n. 1
0
        public void GenerateCode(IConceptInfo conceptInfo, ICodeBuilder codeBuilder)
        {
            var info = (RowPermissionsSingleFunctionRuleInfo)conceptInfo;

            codeBuilder.InsertCode(
                RowPermissionsUtility.GetSnippetFilterExpression(info, allowNotDeny: true),
                RowPermissionsPluginableFiltersInfo.WriteFilterExpressionsTag,
                info.Dependency_RowPermissionsWrite);
        }
Esempio n. 2
0
        public void GenerateCode(IConceptInfo conceptInfo, ICodeBuilder codeBuilder)
        {
            var info = (RowPermissionsInheritWriteFromInfo)conceptInfo;

            codeBuilder.InsertCode(
                RowPermissionsUtility.GetInheritSnippet(info.InheritFromInfo, RowPermissionsWriteInfo.PermissionsExpressionName),
                RowPermissionsPluginableFiltersInfo.WriteFilterExpressionsTag,
                info.Dependency_RowPermissionsWrite);
        }
        public void GenerateCode(IConceptInfo conceptInfo, ICodeBuilder codeBuilder)
        {
            var info = (RowPermissionsSingleFunctionRuleInfo)conceptInfo;

            var ruleExpressionMethod = RowPermissionsUtility.CreateRuleExpressionMethod(codeBuilder, info);

            codeBuilder.InsertCode(
                RowPermissionsUtility.GetSnippetFilterExpression(ruleExpressionMethod, allowNotDeny: false),
                RowPermissionsPluginableFiltersInfo.ReadFilterExpressionsTag,
                info.Dependency_RowPermissionsRead);
        }
        public void GenerateCode(IConceptInfo conceptInfo, ICodeBuilder codeBuilder)
        {
            var info = (RowPermissionsInheritReadInfo)conceptInfo;

            codeBuilder.InsertCode(
                RowPermissionsUtility.GetInheritSnippet(
                    info.InheritFromInfo,
                    RowPermissionsReadInfo.PermissionsExpressionName,
                    SameMembersTag.Evaluate(info)),
                RowPermissionsPluginableFiltersInfo.ReadFilterExpressionsTag,
                info.Dependency_RowPermissionsRead);
        }