com.webmethods.caf.jcr.faces.data
Class JcrTempAttachmentsProvider

java.lang.Object
  extended by com.webmethods.caf.faces.data.attachments.LocalTempAttachmentsProvider
      extended by com.webmethods.caf.jcr.faces.data.JcrTempAttachmentsProvider
All Implemented Interfaces:
IAttachmentsProvider

Deprecated. use LocalTempAttachmentsProvider instead

@Deprecated
public class JcrTempAttachmentsProvider
extends LocalTempAttachmentsProvider

Subclass of the JcrAttachmentsProvider to store attachments in a temp JCR folder that can then be migrated to a permanent folder later.


Nested Class Summary
protected static class JcrTempAttachmentsProvider.ErrorReportingMode
          Deprecated. Used to affect how errors are reported
 
Nested classes/interfaces inherited from class com.webmethods.caf.faces.data.attachments.LocalTempAttachmentsProvider
LocalTempAttachmentsProvider.FileItemImpl, LocalTempAttachmentsProvider.TempAttachmentItem
 
Field Summary
protected  Session jcrSession
          Deprecated. Reference to the current JCR session
protected  AttachmentsMigrationProvider migrationProvider
          Deprecated. Reference to the attachments migration provider
 
Fields inherited from class com.webmethods.caf.faces.data.attachments.LocalTempAttachmentsProvider
fTempFolder
 
Constructor Summary
JcrTempAttachmentsProvider()
          Deprecated.  
 
Method Summary
 Session getJcrSession()
          Deprecated. Returns the active JCR session
 AttachmentsMigrationProvider getMigrationProvider()
          Deprecated. Migration Provider for easier codeless migration.
protected  void reportError(JcrTempAttachmentsProvider.ErrorReportingMode mode, String msg)
          Deprecated. Report an error
protected  boolean sanityCheck(JcrTempAttachmentsProvider.ErrorReportingMode mode)
          Deprecated. Validates that the JCR session is alive and that the parent node has been configured correctly
 void setJcrSession(Session jcrSession)
          Deprecated. Sets the active JCR session
 
Methods inherited from class com.webmethods.caf.faces.data.attachments.LocalTempAttachmentsProvider
addAttachment, finalize, getHasAttachments, getTempFolder, isAddAttachmentsAvailable, listAttachments, removeAttachment, updateAttachment, valueBound, valueUnbound
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

jcrSession

protected transient Session jcrSession
Deprecated. 
Reference to the current JCR session


migrationProvider

protected AttachmentsMigrationProvider migrationProvider
Deprecated. 
Reference to the attachments migration provider

Constructor Detail

JcrTempAttachmentsProvider

public JcrTempAttachmentsProvider()
Deprecated. 
Method Detail

getJcrSession

public Session getJcrSession()
Deprecated. 
Returns the active JCR session

Returns:
the JCR Session

setJcrSession

public void setJcrSession(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