Class LocalTempAttachmentsProvider.TempAttachmentItem
java.lang.Object
com.webmethods.caf.faces.data.attachments.LocalTempAttachmentsProvider.TempAttachmentItem
- All Implemented Interfaces:
IAttachmentItem
- Enclosing class:
- LocalTempAttachmentsProvider
public static class LocalTempAttachmentsProvider.TempAttachmentItem
extends Object
implements IAttachmentItem
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlong
Returns the length of the file (number of bytes).Returns the MIME type of the file content.Returns the URL for downloading the file to a browser.org.apache.commons.fileupload.FileItem
Returns respective implementation of FileItem from this IAttachmentItemReturns the name of the attachment item.Returns the icon url (may be null)getId()
Returns the id of the attachmentReturns the date when the attachment was last modifiedboolean
Returns whether the attachment is deletable by the current userboolean
Returns whether the attachment is updateable by the current user
-
Constructor Details
-
TempAttachmentItem
-
-
Method Details
-
getContentLength
public long getContentLength()Description copied from interface:IAttachmentItem
Returns the length of the file (number of bytes).- Specified by:
getContentLength
in interfaceIAttachmentItem
-
getContentType
Description copied from interface:IAttachmentItem
Returns the MIME type of the file content. http://en.wikipedia.org/wiki/Internet_media_type- Specified by:
getContentType
in interfaceIAttachmentItem
-
getDownloadLink
Description copied from interface:IAttachmentItem
Returns the URL for downloading the file to a browser. The URL can be absolute (i.e. http://mysite/att/myfile.txt) or relative to some path in the webapp (i.e. /myappcontext/mycustomdownloadservlet/myfile.txt).- Specified by:
getDownloadLink
in interfaceIAttachmentItem
-
getFileItem
Description copied from interface:IAttachmentItem
Returns respective implementation of FileItem from this IAttachmentItem- Specified by:
getFileItem
in interfaceIAttachmentItem
- Returns:
- implementation of FileItem
- Throws:
IOException
-
getFileName
Description copied from interface:IAttachmentItem
Returns the name of the attachment item.- Specified by:
getFileName
in interfaceIAttachmentItem
-
getIconUrl
Description copied from interface:IAttachmentItem
Returns the icon url (may be null)- Specified by:
getIconUrl
in interfaceIAttachmentItem
-
getId
Description copied from interface:IAttachmentItem
Returns the id of the attachment- Specified by:
getId
in interfaceIAttachmentItem
-
getLastModifiedDate
Description copied from interface:IAttachmentItem
Returns the date when the attachment was last modified- Specified by:
getLastModifiedDate
in interfaceIAttachmentItem
-
isDeletable
public boolean isDeletable()Description copied from interface:IAttachmentItem
Returns whether the attachment is deletable by the current user- Specified by:
isDeletable
in interfaceIAttachmentItem
- Returns:
- true or false
-
isUpdatable
public boolean isUpdatable()Description copied from interface:IAttachmentItem
Returns whether the attachment is updateable by the current user- Specified by:
isUpdatable
in interfaceIAttachmentItem
- Returns:
- true or false
-