Interface PrivilegeHandler
public interface PrivilegeHandler
Interface used to define the (de)serialization mode of the privilege definitions.
-
Method Summary
Modifier and TypeMethodDescriptionreadDefinitions(InputStream in, Map<String, String> namespaces) Read the privilege definitions and update the specified namespace mapping.readDefinitions(Reader reader, Map<String, String> namespaces) Read the privilege definitions and update the specified namespace mapping.voidwriteDefinitions(OutputStream out, PrivilegeDefinition[] definitions, Map<String, String> namespaces) Write the specified privilege definitions to the given output stream.voidwriteDefinitions(Writer writer, PrivilegeDefinition[] definitions, Map<String, String> namespaces) Write the specified privilege definitions to the given writer.
-
Method Details
-
readDefinitions
PrivilegeDefinition[] readDefinitions(InputStream in, Map<String, String> namespaces) throws ParseExceptionRead the privilege definitions and update the specified namespace mapping.- Parameters:
in-namespaces-- Returns:
- the privilege definitions contained in the specified stream.
- Throws:
ParseException
-
readDefinitions
PrivilegeDefinition[] readDefinitions(Reader reader, Map<String, String> namespaces) throws ParseExceptionRead the privilege definitions and update the specified namespace mapping.- Parameters:
reader-namespaces-- Returns:
- the privilege definitions contained in the specified stream.
- Throws:
ParseException
-
writeDefinitions
void writeDefinitions(OutputStream out, PrivilegeDefinition[] definitions, Map<String, String> namespaces) throws IOExceptionWrite the specified privilege definitions to the given output stream.- Parameters:
out-definitions-namespaces-- Throws:
IOException
-
writeDefinitions
void writeDefinitions(Writer writer, PrivilegeDefinition[] definitions, Map<String, String> namespaces) throws IOExceptionWrite the specified privilege definitions to the given writer.- Parameters:
writer-definitions-namespaces-- Throws:
IOException
-