Class AttachmentsMigrationProvider

java.lang.Object
com.webmethods.caf.faces.bean.PageFlowScopeAdapter
com.webmethods.caf.jcr.faces.data.AttachmentsMigrationProvider
All Implemented Interfaces:
IPageFlowScopeAdapter

public class AttachmentsMigrationProvider extends PageFlowScopeAdapter
Provider for migrating files from an attachment provider to another folder.
  • Field Details

  • Constructor Details

    • AttachmentsMigrationProvider

      public AttachmentsMigrationProvider()
  • Method Details

    • getJcrSession

      public javax.jcr.Session getJcrSession()
      Returns the current JCR session
      Returns:
      the jcrSession
    • setJcrSession

      public void setJcrSession(javax.jcr.Session jcrSession)
      Sets the current JCR session
      Parameters:
      jcrSession - the jcrSession to set
    • getSourceProvider

      public IAttachmentsProvider getSourceProvider()
      Returns the source attachments provider
      Returns:
      the sourceProvider
    • setSourceProvider

      public void setSourceProvider(IAttachmentsProvider sourceProvider)
      Sets the source attachments provider
      Parameters:
      sourceProvider - the sourceProvider to set
    • getDestParentId

      public String getDestParentId()
      Returns the destination parent node id
      Returns:
      the destParentId
    • setDestParentId

      public void setDestParentId(String destParentId)
      Sets the destination parent node id
      Parameters:
      destParentId - the destParentId to set
    • getDestParentPath

      public String getDestParentPath()
      Returns the destination parent path
      Returns:
      the destParentPath
    • setDestParentPath

      public void setDestParentPath(String destParentPath)
      Sets the destination parent path
      Parameters:
      destParentPath - the destParentPath to set
    • getEncoding

      protected String getEncoding(String mimeType)
      Returns encoding from mimeType string, null if not defined
      Parameters:
      mimeType -
      Returns:
      the encoding extracted from the mimeType
    • moveAttachments

      public String moveAttachments()
      Action that copies attachments from the source attachment provider to the destination attachment provider
      Returns:
      "ok" or "error"
    • copyAttachments

      public String copyAttachments()
      Action that copies attachments from the source attachment provider to the destination attachment provider
      Returns:
      "ok" or "error"