Package de.hsh.graja.common
Class PolicyParser
java.lang.Object
de.hsh.graja.common.PolicyParser
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringgrepSectionFromPolicyContent(String content, String section) returns permissions enclosed by curly braces that are prefixed bysection.
-
Field Details
-
SECTION_SUBMISSION
- See Also:
-
SECTION_GRADER
- See Also:
-
SECTION_GRAJA_CORE
- See Also:
-
-
Constructor Details
-
PolicyParser
public PolicyParser()
-
-
Method Details
-
grepSectionFromPolicyContent
returns permissions enclosed by curly braces that are prefixed bysection.- Parameters:
content- the policy file contentsection- expected values:SECTION_SUBMISSIONorSECTION_GRADER.- Returns:
- null, if there is no opening or no matching closing curly brace. return "", if the requested section is
not contained in
content.
-