Class StorageManager

java.lang.Object
org.sonews.storage.StorageManager

public class StorageManager extends Object
Provides access to a storage backend.
Since:
sonews/1.0
Author:
Christian Lins
  • Constructor Details

    • StorageManager

      public StorageManager()
  • Method Details

    • createArticle

      public static Article createArticle()
    • createArticle

      public static Article createArticle(String headers, byte[] body)
    • createArticle

      public static Article createArticle(javax.mail.Message msg) throws IOException, javax.mail.MessagingException
      Throws:
      IOException
      javax.mail.MessagingException
    • current

      public static Storage current() throws StorageBackendException
      Throws:
      StorageBackendException
    • dispose

      public static void dispose()
    • enableProvider

      public static void enableProvider(StorageProvider provider)
      Sets the current storage provider.
      Parameters:
      provider -
    • disableProvider

      public static void disableProvider()
      Disables the current provider.