Class PolicyParser

java.lang.Object
de.hsh.graja.common.PolicyParser

public class PolicyParser extends Object
  • Field Details

  • Constructor Details

    • PolicyParser

      public PolicyParser()
  • Method Details

    • 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.