Class JcrTempAttachmentsProvider

java.lang.Object
com.webmethods.caf.faces.data.attachments.LocalTempAttachmentsProvider
com.webmethods.caf.jcr.faces.data.JcrTempAttachmentsProvider
All Implemented Interfaces:
IAttachmentsProvider, EventListener, HttpSessionBindingListener

@Deprecated public class JcrTempAttachmentsProvider extends LocalTempAttachmentsProvider
Deprecated.
Subclass of the JcrAttachmentsProvider to store attachments in a temp JCR folder that can then be migrated to a permanent folder later.
  • Field Details

    • jcrSession

      protected transient javax.jcr.Session jcrSession
      Deprecated.
      Reference to the current JCR session
    • migrationProvider

      protected AttachmentsMigrationProvider migrationProvider
      Deprecated.
      Reference to the attachments migration provider
  • Constructor Details

    • JcrTempAttachmentsProvider

      public JcrTempAttachmentsProvider()
      Deprecated.
  • Method Details

    • getJcrSession

      public javax.jcr.Session getJcrSession()
      Deprecated.
      Returns the active JCR session
      Returns:
      the JCR Session
    • setJcrSession

      public void setJcrSession(javax.jcr.Session jcrSession)
      Deprecated.
      Sets the active JCR session
      Parameters:
      jcrSession - the JCR session to use
    • getMigrationProvider

      public AttachmentsMigrationProvider getMigrationProvider()
      Deprecated.
      Migration Provider for easier codeless migration. The JCR session is set and the migration provider's source is set to this attachments provider.
      Returns:
      attachments migration provider
    • sanityCheck

      protected boolean sanityCheck(JcrTempAttachmentsProvider.ErrorReportingMode mode)
      Deprecated.
      Validates that the JCR session is alive and that the parent node has been configured correctly
      Parameters:
      mode - the error reporting mode
      Returns:
      true if everything is ok, false otherwise
    • reportError

      protected void reportError(JcrTempAttachmentsProvider.ErrorReportingMode mode, String msg)
      Deprecated.
      Report an error
      Parameters:
      mode - the error reporting mode to use
      msg - the error message