Interface PrivilegeHandler


  • public interface PrivilegeHandler
    Interface 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​(java.io.InputStream in, java.util.Map<java.lang.String,​java.lang.String> namespaces)
      Read the privilege definitions and update the specified namespace mapping.
      PrivilegeDefinition[] readDefinitions​(java.io.Reader reader, java.util.Map<java.lang.String,​java.lang.String> namespaces)
      Read the privilege definitions and update the specified namespace mapping.
      void writeDefinitions​(java.io.OutputStream out, PrivilegeDefinition[] definitions, java.util.Map<java.lang.String,​java.lang.String> namespaces)
      Write the specified privilege definitions to the given output stream.
      void writeDefinitions​(java.io.Writer writer, PrivilegeDefinition[] definitions, java.util.Map<java.lang.String,​java.lang.String> namespaces)
      Write the specified privilege definitions to the given writer.
    • Method Detail

      • readDefinitions

        PrivilegeDefinition[] readDefinitions​(java.io.InputStream in,
                                              java.util.Map<java.lang.String,​java.lang.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​(java.io.Reader reader,
                                              java.util.Map<java.lang.String,​java.lang.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​(java.io.OutputStream out,
                              PrivilegeDefinition[] definitions,
                              java.util.Map<java.lang.String,​java.lang.String> namespaces)
                       throws java.io.IOException
        Write the specified privilege definitions to the given output stream.
        Parameters:
        out -
        definitions -
        namespaces -
        Throws:
        java.io.IOException
      • writeDefinitions

        void writeDefinitions​(java.io.Writer writer,
                              PrivilegeDefinition[] definitions,
                              java.util.Map<java.lang.String,​java.lang.String> namespaces)
                       throws java.io.IOException
        Write the specified privilege definitions to the given writer.
        Parameters:
        writer -
        definitions -
        namespaces -
        Throws:
        java.io.IOException