public class SubFolderJcrAttachmentsProvider extends JcrAttachmentsProvider
JcrAttachmentsProvider.ErrorReportingMode, JcrAttachmentsProvider.JcrAttachmentItem, JcrAttachmentsProvider.JcrFileItem
Modifier and Type | Field and Description |
---|---|
protected String |
subFolderName
The subfolder name
|
autoSave, iconBaseUrl, jcrFileServletPath, jcrSession, parentId, parentNode, parentPath, useWebDav
fExpireWithPageFlow
Constructor and Description |
---|
SubFolderJcrAttachmentsProvider() |
Modifier and Type | Method and Description |
---|---|
protected 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 |
getParentNode()
Returns a reference to the JCR Node that is the parent of the attachments.
|
String |
getSubFolderName()
Returns the subfolder name
|
void |
setSubFolderName(String subFolderName)
Sets the subfolder name
|
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
getExpireWithPageFlow, setExpireWithPageFlow
protected String subFolderName
public String getSubFolderName()
public void setSubFolderName(String subFolderName)
subFolderName
- the subFolderName to setprotected 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
parentNode
- the parentNode of the attachments subfolderjavax.jcr.RepositoryException
javax.jcr.PathNotFoundException
javax.jcr.ItemExistsException
javax.jcr.nodetype.NoSuchNodeTypeException
javax.jcr.lock.LockException
javax.jcr.version.VersionException
javax.jcr.nodetype.ConstraintViolationException
public javax.jcr.Node getParentNode()
JcrAttachmentsProvider
getParentNode
in class JcrAttachmentsProvider