org.apache.jackrabbit.spi.commons.privilege
Interface PrivilegeHandler


public interface PrivilegeHandler

Interface used to define the (de)serialization mode of the privilege definitions.


Method Summary
 org.apache.jackrabbit.spi.PrivilegeDefinition[] readDefinitions(InputStream in, Map<String,String> namespaces)
          Read the privilege definitions and update the specified namespace mapping.
 org.apache.jackrabbit.spi.PrivilegeDefinition[] readDefinitions(Reader reader, Map<String,String> namespaces)
          Read the privilege definitions and update the specified namespace mapping.
 void writeDefinitions(OutputStream out, org.apache.jackrabbit.spi.PrivilegeDefinition[] definitions, Map<String,String> namespaces)
          Write the specified privilege definitions to the given output stream.
 void writeDefinitions(Writer writer, org.apache.jackrabbit.spi.PrivilegeDefinition[] definitions, Map<String,String> namespaces)
          Write the specified privilege definitions to the given writer.
 

Method Detail

readDefinitions

org.apache.jackrabbit.spi.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

org.apache.jackrabbit.spi.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,
                      org.apache.jackrabbit.spi.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,
                      org.apache.jackrabbit.spi.PrivilegeDefinition[] definitions,
                      Map<String,String> namespaces)
                      throws IOException
Write the specified privilege definitions to the given writer.

Parameters:
writer -
definitions -
namespaces -
Throws:
IOException


Copyright © 2004-2014 The Apache Software Foundation. All Rights Reserved.