Interface PrivilegeHandler


  • public interface PrivilegeHandler
    Interface used to define the (de)serialization mode of the privilege definitions.
    • 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