Class PolicyParser


  • public class PolicyParser
    extends Object
    • Constructor Detail

      • PolicyParser

        public PolicyParser()
    • Method Detail

      • grepSectionFromPolicyContent

        public static String grepSectionFromPolicyContent​(String content,
                                                          String section)
        returns permissions enclosed by curly braces that are prefixed by section.
        Parameters:
        content - the policy file content
        section - expected values: SECTION_SUBMISSION or SECTION_GRADER.
        Returns:
        null, if there is no opening or no matching closing curly brace. return "", if the requested section is not contained in content.