Beispiel #1
0
        private static string GenerateRulesString(IEnumerable <OraclePackageData> packages)
        {
            KeyValuePairEncoder valuePairEncoder = new KeyValuePairEncoder();

            foreach (OraclePackageData package in packages)
            {
                valuePairEncoder.AppendKeyValuePair(package.Name, package.Prefix);
            }
            return(valuePairEncoder.GetEncodedKeyValuePairs());
        }
        private static String GenerateAttributesString(NameValueCollection attributes)
        {
            KeyValuePairEncoder encoder = new KeyValuePairEncoder();

            foreach (String key in attributes.AllKeys)
            {
                encoder.AppendKeyValuePair(key, attributes[key]);
            }
            return(encoder.GetEncodedKeyValuePairs());
        }
Beispiel #3
0
        private static String GenerateRulesString(NamedElementCollection <AuthorizationRuleData> rules)
        {
            KeyValuePairEncoder encoder = new KeyValuePairEncoder();

            foreach (AuthorizationRuleData ruleData in rules)
            {
                encoder.AppendKeyValuePair(ruleData.Name, ruleData.Expression);
            }

            return(encoder.GetEncodedKeyValuePairs());
        }
Beispiel #4
0
        private static String GenerateRulesString(NamedElementCollection <OraclePackageData> packages)
        {
            KeyValuePairEncoder encoder = new KeyValuePairEncoder();

            foreach (OraclePackageData packageData in packages)
            {
                encoder.AppendKeyValuePair(packageData.Name, packageData.Prefix);
            }

            return(encoder.GetEncodedKeyValuePairs());
        }