Class SubFolderJcrAttachmentsProvider
java.lang.Object
com.webmethods.caf.faces.bean.PageFlowScopeAdapter
com.webmethods.caf.jcr.faces.data.JcrAttachmentsProvider
com.webmethods.caf.jcr.faces.data.SubFolderJcrAttachmentsProvider
- All Implemented Interfaces:
IPageFlowScopeAdapter
,IAttachmentsProvider
,IWebDavAwareAttachmentsProvider
,Serializable
Content provider for exposing the children of a JCR node subfolder for use with the
CAF AttachmentsPanel control. If a subfolder whose name matches the subFolderName
does not exist, the folder is created (if permissions allow it).
- Since:
- 8.0
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class com.webmethods.caf.jcr.faces.data.JcrAttachmentsProvider
JcrAttachmentsProvider.ErrorReportingMode, JcrAttachmentsProvider.JcrAttachmentItem, JcrAttachmentsProvider.JcrFileItem
-
Field Summary
FieldsFields inherited from class com.webmethods.caf.jcr.faces.data.JcrAttachmentsProvider
autoSave, iconBaseUrl, jcrFileServletPath, jcrSession, parentId, parentNode, parentPath, useWebDav
Fields inherited from class com.webmethods.caf.faces.bean.PageFlowScopeAdapter
fExpireWithPageFlow
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected javax.jcr.Node
getOrCreateSubFolderNode
(javax.jcr.Node parentNode) Get the subfolder if it already exists, or creates it if it does not exist.javax.jcr.Node
Returns a reference to the JCR Node that is the parent of the attachments.Returns the subfolder namevoid
setSubFolderName
(String subFolderName) Sets the subfolder nameMethods inherited from class com.webmethods.caf.jcr.faces.data.JcrAttachmentsProvider
addAttachment, getHasAttachments, getIconBaseUrl, getJcrFileServletPath, getJcrSession, getParentId, getParentPath, getSafeFileName, isAddAttachmentsAvailable, isAutoSave, isUseWebDav, listAttachments, refresh, removeAttachment, reportError, safeNodeSave, sanityCheck, setAutoSave, setIconBaseUrl, setJcrFileServletPath, setJcrSession, setParentId, setParentPath, setUseWebDav, updateAttachment
Methods inherited from class com.webmethods.caf.faces.bean.PageFlowScopeAdapter
getExpireWithPageFlow, setExpireWithPageFlow
-
Field Details
-
subFolderName
The subfolder name
-
-
Constructor Details
-
SubFolderJcrAttachmentsProvider
public SubFolderJcrAttachmentsProvider()
-
-
Method Details
-
getSubFolderName
Returns the subfolder name- Returns:
- the subFolderName
-
setSubFolderName
Sets the subfolder name- Parameters:
subFolderName
- the subFolderName to set
-
getOrCreateSubFolderNode
protected javax.jcr.Node getOrCreateSubFolderNode(javax.jcr.Node parentNode) throws javax.jcr.RepositoryException, javax.jcr.PathNotFoundException, javax.jcr.ItemExistsException, javax.jcr.nodetype.NoSuchNodeTypeException, javax.jcr.lock.LockException, javax.jcr.version.VersionException, javax.jcr.nodetype.ConstraintViolationException Get the subfolder if it already exists, or creates it if it does not exist.- Parameters:
parentNode
- the parentNode of the attachments subfolder- Throws:
javax.jcr.RepositoryException
javax.jcr.PathNotFoundException
javax.jcr.ItemExistsException
javax.jcr.nodetype.NoSuchNodeTypeException
javax.jcr.lock.LockException
javax.jcr.version.VersionException
javax.jcr.nodetype.ConstraintViolationException
-
getParentNode
public javax.jcr.Node getParentNode()Description copied from class:JcrAttachmentsProvider
Returns a reference to the JCR Node that is the parent of the attachments.- Overrides:
getParentNode
in classJcrAttachmentsProvider
- Returns:
- the parentNode
-