| 
Compoze Software, Inc. | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--portlets.compoze.groupware.AbstractItem
This class represents the abstract item.
| Constructor Summary | |
protected  | 
AbstractItem()
Constructor.  | 
protected  | 
AbstractItem(java.lang.String sID)
Constructor.  | 
| Method Summary | |
 int | 
getAttachmentCount()
Gets the number of attachments for the item.  | 
 AttachmentInfo[] | 
getAttachmentInfoArray()
Gets the attachment info array for this item.  | 
 java.lang.String | 
getBodyHtml()
Gets the body in HTML format.  | 
 java.lang.String | 
getBodyText()
Gets the body of the item in plain text format.  | 
 java.lang.String | 
getBodyTextAsHtml()
Gets the body text in HTML format.  | 
 java.util.Date | 
getDateCreated()
Gets the date the item was created.  | 
 java.lang.String | 
getID()
Gets the item ID.  | 
 Importance | 
getImportance()
Gets the importance of the item.  | 
 int | 
getIndex()
Gets the index of the item.  | 
 ItemType | 
getItemType()
Gets the item type of this item.  | 
 int | 
getSize()
Gets the size of the item in bytes.  | 
 int | 
getSizeInKilobytes()
Gets the size of the item in kilobytes.  | 
 java.lang.String | 
getSubject()
Gets the subject of the item.  | 
 java.lang.String | 
getSubject(int iLength)
Gets the subject of the item truncated to the specified length.  | 
 boolean | 
hasAttachment()
Checks if the item has an attachment.  | 
protected static java.lang.String | 
prettyTruncate(java.lang.String sStr,
               java.lang.String sPostfix,
               int iLength)
Truncates a string after a certain number of characters and append the specified string to it.  | 
 void | 
setAttachmentCount(int iAttachmentCount)
Sets the number of attachments for the item.  | 
 void | 
setAttachmentInfoArray(AttachmentInfo[] attachmentInfoArray)
Sets the attachment info array for this item.  | 
 void | 
setBodyHtml(java.lang.String sBodyHtml)
Sets the body in HTML format.  | 
 void | 
setBodyText(java.lang.String sBody)
Sets the body of the item in plain text format.  | 
 void | 
setDateCreated(java.util.Date dateCreated)
Sets the item creation date.  | 
 void | 
setHasAttachment(boolean bHasAttachment)
Sets the flag if the item has an attachment.  | 
 void | 
setID(java.lang.String sID)
Sets the item ID.  | 
 void | 
setImportance(Importance importance)
Sets the importance of the item.  | 
 void | 
setIndex(int iIndex)
Sets the index of the item.  | 
 void | 
setItemType(ItemType type)
Sets the item type of the item.  | 
 void | 
setSize(int iSize)
Sets the size of the item in bytes.  | 
 void | 
setSubject(java.lang.String sSubject)
Sets the subject of the item.  | 
| Methods inherited from class java.lang.Object | 
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Constructor Detail | 
protected AbstractItem()
protected AbstractItem(java.lang.String sID)
sID - the id of the item| Method Detail | 
public java.lang.String getID()
null for nonepublic void setID(java.lang.String sID)
sID - the item IDpublic java.util.Date getDateCreated()
null for nonepublic void setDateCreated(java.util.Date dateCreated)
dateCreated - the item creation datepublic int getSize()
public void setSize(int iSize)
iSize - the size of the itempublic boolean hasAttachment()
true if item has attachment or false otherwisepublic void setHasAttachment(boolean bHasAttachment)
bHasAttachment - true if item has attachment or false otherwisepublic int getAttachmentCount()
public void setAttachmentCount(int iAttachmentCount)
iAttachmentCount - the attachment count of the itempublic ItemType getItemType()
public void setItemType(ItemType type)
type - the item type (may not be null)public AttachmentInfo[] getAttachmentInfoArray()
public void setAttachmentInfoArray(AttachmentInfo[] attachmentInfoArray)
attachmentInfoArray - the attachment info array (may not be null)public java.lang.String getSubject()
null for nonepublic java.lang.String getSubject(int iLength)
iLength - the length of the subjectnull for nonepublic void setSubject(java.lang.String sSubject)
sSubject - the subjectpublic int getSizeInKilobytes()
public java.lang.String getBodyText()
null for nonepublic void setBodyText(java.lang.String sBody)
sBody - the bodypublic java.lang.String getBodyTextAsHtml()
public Importance getImportance()
public void setImportance(Importance importance)
importance - the importance (may not be null)public java.lang.String getBodyHtml()
null for nonepublic void setBodyHtml(java.lang.String sBodyHtml)
sBodyHtml - the HTML body
protected static java.lang.String prettyTruncate(java.lang.String sStr,
                                                 java.lang.String sPostfix,
                                                 int iLength)
sStr - the original stringsPostfix - the string to put at the end of the original stringiLength - the maximum length of the result (string plus postfix)public int getIndex()
public void setIndex(int iIndex)
iIndex - the index of the item
  | 
Compoze Software, Inc. | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||