Package org.mycore.restapi.v2
Class MCRRestCheckAPIAccessResolver
java.lang.Object
org.mycore.restapi.v2.MCRRestCheckAPIAccessResolver
- All Implemented Interfaces:
URIResolver
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
MCRRestCheckAPIAccessResolver
public MCRRestCheckAPIAccessResolver()
-
-
Method Details
-
resolve
public Source resolve(String href, String base) throws TransformerException, IllegalArgumentException Checks permission for a given rest api path. Syntax:checkRestAPIAccess:{path}:{permission}
- Specified by:
resolve
in interfaceURIResolver
- Parameters:
href
- URI in the syntax abovebase
- not used- Returns:
- the root element "boolean" of the XML document with content string "true" or "false"
- Throws:
TransformerException
IllegalArgumentException
- See Also:
-