public IEnumerable <IConceptInfo> CreateNewConcepts(RowPermissionsPluginableFiltersInfo conceptInfo, IDslModel existingConcepts)
        {
            var rowPermissionsRead = new RowPermissionsReadInfo()
            {
                Source    = conceptInfo.DataStructure,
                Parameter = RowPermissionsReadInfo.FilterName
            };

            rowPermissionsRead.SimplifiedExpression = GetSnippetRowPermissionsFilter(conceptInfo,
                                                                                     RowPermissionsPluginableFiltersInfo.ReadFilterExpressionsTag.Evaluate(rowPermissionsRead));

            var rowPermissionsWrite = new RowPermissionsWriteInfo()
            {
                Source    = conceptInfo.DataStructure,
                Parameter = RowPermissionsWriteInfo.FilterName
            };

            rowPermissionsWrite.SimplifiedExpression = GetSnippetRowPermissionsFilter(conceptInfo,
                                                                                      RowPermissionsPluginableFiltersInfo.WriteFilterExpressionsTag.Evaluate(rowPermissionsWrite));

            CheckForIncompatibleSpecificRowPermissionsFilter(existingConcepts, rowPermissionsRead, conceptInfo);
            CheckForIncompatibleSpecificRowPermissionsFilter(existingConcepts, rowPermissionsWrite, conceptInfo);

            return(new IConceptInfo[] { rowPermissionsRead, rowPermissionsWrite });
        }
Beispiel #2
0
 public void InitializeNonparsableProperties(out IEnumerable <IConceptInfo> createdConcepts)
 {
     Dependency_RowPermissionsWrite = new RowPermissionsWriteInfo
     {
         Source    = InheritFromInfo.RowPermissionsFilters.DataStructure,
         Parameter = RowPermissionsWriteInfo.FilterName,
     };
     createdConcepts = null;
 }
 public void InitializeNonparsableProperties(out IEnumerable<IConceptInfo> createdConcepts)
 {
     Dependency_RowPermissionsWrite = new RowPermissionsWriteInfo
     {
         Source = InheritFromInfo.RowPermissionsFilters.DataStructure,
         Parameter = RowPermissionsWriteInfo.FilterName,
     };
     createdConcepts = null;
 }