|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.webmethods.caf.faces.data.csp.CSPContentObject
public class CSPContentObject
CSPContentObject is a wrapper for the real file(document) stored in CSP.
CSPContent
combine CSPContentObjects with same origin or purpose.
Constructor Summary | |
---|---|
CSPContentObject()
|
Method Summary | |
---|---|
CSPAttachmentsProvider |
getAttachmentsProvider()
|
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. |
String |
getFileExtension()
|
FileItem |
getFileItem()
Returns respective implementation of FileItem from this IAttachmentItem |
String |
getFilename()
|
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 |
String |
getOriginalFileName()
|
String |
getPath()
|
String |
getPrefix()
|
CSPPreviewImageProvider |
getPreviewImageProvider()
|
String |
getSmiPath()
|
boolean |
isDeletable()
Returns whether the attachment is deletable by the current user |
boolean |
isUpdatable()
Returns whether the attachment is updateable by the current user |
void |
setAttachmentsProvider(CSPAttachmentsProvider provider)
|
void |
setContentLength(Long size)
|
void |
setDownloadLink(String downloadLink)
|
void |
setFileExtension(String fileExtension)
|
void |
setFilename(String filename)
|
void |
setId(String id)
|
void |
setLastModifiedDate(Date date)
|
void |
setOriginalFileName(String originalFileName)
|
void |
setPath(String path)
|
void |
setPrefix(String prefix)
|
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public CSPContentObject()
Method Detail |
---|
public void setFileExtension(String fileExtension)
public String getFileExtension()
public String getPath()
public void setPath(String path)
public String getPrefix()
public void setPrefix(String prefix)
public String getFilename()
public void setFilename(String filename)
public void setContentLength(Long size)
public String getOriginalFileName()
public void setOriginalFileName(String originalFileName)
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 void setDownloadLink(String downloadLink)
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 void setId(String id)
public Date getLastModifiedDate()
IAttachmentItem
getLastModifiedDate
in interface IAttachmentItem
public void setLastModifiedDate(Date date)
public boolean isDeletable()
IAttachmentItem
isDeletable
in interface IAttachmentItem
public boolean isUpdatable()
IAttachmentItem
isUpdatable
in interface IAttachmentItem
public CSPPreviewImageProvider getPreviewImageProvider() throws COMM_Exception
COMM_Exception
public CSPAttachmentsProvider getAttachmentsProvider()
public void setAttachmentsProvider(CSPAttachmentsProvider provider)
public String getSmiPath()
public String toString()
toString
in class Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |