Class PostgresHandler


  • public class PostgresHandler
    extends java.lang.Object
    • Field Detail

      • edgeCache

        protected final EdgeCache edgeCache
    • Constructor Detail

      • PostgresHandler

        public PostgresHandler​(OdooMetadata parent,
                               EdgeCache edgeCache,
                               Config config,
                               java.lang.Runnable onInitialized)
                        throws java.sql.SQLException
        Throws:
        java.sql.SQLException
    • Method Detail

      • deactivate

        public void deactivate()
      • getEdgeForApikey

        public java.util.Optional<MyEdge> getEdgeForApikey​(java.lang.String apikey)
        Gets the Edge for an API-Key, i.e. authenticates the API-Key.
        Parameters:
        apikey - the API-Key
        Returns:
        the Edge or Empty
      • logInfo

        protected void logInfo​(org.slf4j.Logger log,
                               java.lang.String message)
      • logWarn

        protected void logWarn​(org.slf4j.Logger log,
                               java.lang.String message)
      • logError

        protected void logError​(org.slf4j.Logger log,
                                java.lang.String message)