com.webmethods.caf.jcr.faces.data
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
public class SubFolderJcrAttachmentsProvider
- extends JcrAttachmentsProvider
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:
- Serialized Form
Methods 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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
subFolderName
protected String subFolderName
- The subfolder name
SubFolderJcrAttachmentsProvider
public SubFolderJcrAttachmentsProvider()
getSubFolderName
public String getSubFolderName()
- Returns the subfolder name
- Returns:
- the subFolderName
setSubFolderName
public void setSubFolderName(String subFolderName)
- Sets the subfolder name
- Parameters:
subFolderName
- the subFolderName to set
getOrCreateSubFolderNode
protected Node getOrCreateSubFolderNode(Node parentNode)
throws RepositoryException,
PathNotFoundException,
ItemExistsException,
NoSuchNodeTypeException,
LockException,
VersionException,
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:
RepositoryException
PathNotFoundException
ItemExistsException
NoSuchNodeTypeException
LockException
VersionException
ConstraintViolationException
getParentNode
public Node getParentNode()
- Description copied from class:
JcrAttachmentsProvider
- Returns a reference to the JCR Node that is the parent of the attachments.
- Overrides:
getParentNode
in class JcrAttachmentsProvider
- Returns:
- the parentNode