|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.webmethods.caf.jcr.faces.data.JcrAttachmentsProvider.JcrAttachmentItem
protected class JcrAttachmentsProvider.JcrAttachmentItem
Implementation of IAttachmentItem to wrap a JCR file node.
Field Summary | |
---|---|
protected Node |
fileNode
The attachment file node |
protected String |
mwsRepositoryPath
The path prefix used to build WebDAV urls |
Constructor Summary | |
---|---|
JcrAttachmentsProvider.JcrAttachmentItem(Node fileNode)
Constructor |
Method Summary | |
---|---|
long |
getContentLength()
Returns the length of the file (number of bytes). |
String |
getContentType()
Returns the MIME type of the file content. |
String |
getDownloadLink()
Returns the URL for downloading the file to a browser. |
FileItem |
getFileItem()
Returns respective implementation of FileItem from this IAttachmentItem |
String |
getFileName()
Returns the name of the attachment item. |
String |
getIconUrl()
Returns the icon url (may be null) |
String |
getId()
Returns the id of the attachment |
Date |
getLastModifiedDate()
Returns the date when the attachment was last modified |
boolean |
isDeletable()
Returns whether the attachment is deletable by the current user |
boolean |
isUpdatable()
Returns whether the attachment is updateable by the current user |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected Node fileNode
protected String mwsRepositoryPath
Constructor Detail |
---|
public JcrAttachmentsProvider.JcrAttachmentItem(Node fileNode)
fileNode
- the attachment file nodeMethod Detail |
---|
public long getContentLength()
IAttachmentItem
getContentLength
in interface IAttachmentItem
public String getContentType()
IAttachmentItem
getContentType
in interface IAttachmentItem
public String getDownloadLink()
IAttachmentItem
getDownloadLink
in interface IAttachmentItem
public FileItem getFileItem() throws IOException
IAttachmentItem
getFileItem
in interface IAttachmentItem
IOException
public String getFileName()
IAttachmentItem
getFileName
in interface IAttachmentItem
public String getIconUrl()
IAttachmentItem
getIconUrl
in interface IAttachmentItem
public String getId()
IAttachmentItem
getId
in interface IAttachmentItem
public boolean isDeletable()
IAttachmentItem
isDeletable
in interface IAttachmentItem
public boolean isUpdatable()
IAttachmentItem
isUpdatable
in interface IAttachmentItem
public Date getLastModifiedDate()
IAttachmentItem
getLastModifiedDate
in interface IAttachmentItem
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |