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.
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
Nested ClassesModifier and TypeClassDescriptionprotected static enum
Deprecated.Used to affect how errors are reportedNested classes/interfaces inherited from class com.webmethods.caf.faces.data.attachments.LocalTempAttachmentsProvider
LocalTempAttachmentsProvider.FileItemImpl, LocalTempAttachmentsProvider.TempAttachmentItem
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected javax.jcr.Session
Deprecated.Reference to the current JCR sessionprotected AttachmentsMigrationProvider
Deprecated.Reference to the attachments migration providerFields inherited from class com.webmethods.caf.faces.data.attachments.LocalTempAttachmentsProvider
fTempFolder
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionjavax.jcr.Session
Deprecated.Returns the active JCR sessionDeprecated.Migration Provider for easier codeless migration.protected void
Deprecated.Report an errorprotected boolean
Deprecated.Validates that the JCR session is alive and that the parent node has been configured correctlyvoid
setJcrSession
(javax.jcr.Session jcrSession) Deprecated.Sets the active JCR sessionMethods inherited from class com.webmethods.caf.faces.data.attachments.LocalTempAttachmentsProvider
addAttachment, finalize, getHasAttachments, getTempFolder, isAddAttachmentsAvailable, listAttachments, removeAttachment, updateAttachment, valueBound, valueUnbound
-
Field Details
-
jcrSession
protected transient javax.jcr.Session jcrSessionDeprecated.Reference to the current JCR session -
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
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
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
Deprecated.Report an error- Parameters:
mode
- the error reporting mode to usemsg
- the error message
-
LocalTempAttachmentsProvider
instead