Interface PrivilegeHandler
-
public interface PrivilegeHandlerInterface used to define the (de)serialization mode of the privilege definitions.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description PrivilegeDefinition[]readDefinitions(InputStream in, Map<String,String> namespaces)Read the privilege definitions and update the specified namespace mapping.PrivilegeDefinition[]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 Detail
-
readDefinitions
PrivilegeDefinition[] readDefinitions(InputStream in, Map<String,String> namespaces) throws ParseException
Read 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 ParseException
Read 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 IOException
Write 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 IOException
Write the specified privilege definitions to the given writer.- Parameters:
writer-definitions-namespaces-- Throws:
IOException
-
-