|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.sakaiproject.announcement.tool.AnnouncementAction.AnnouncementWrapper
public static class AnnouncementAction.AnnouncementWrapper
Decorator for the "Message" class. It adds various properties to the decorated real Announcement message.
| Field Summary |
|---|
| Fields inherited from interface org.sakaiproject.entity.api.Entity |
|---|
SEPARATOR |
| Constructor Summary | |
|---|---|
AnnouncementAction.AnnouncementWrapper(AnnouncementAction.AnnouncementWrapper mWrapper)
Constructor |
|
AnnouncementAction.AnnouncementWrapper(AnnouncementMessage message,
AnnouncementChannel currentChannel,
AnnouncementChannel hostingChannel,
AnnouncementActionState.DisplayOptions options,
String range)
Constructor |
|
| Method Summary | |
|---|---|
int |
compareTo(Object arg0)
|
AnnouncementMessageHeader |
getAnnouncementHeader()
|
String |
getAuthorDisplayName()
|
String |
getBody()
|
String |
getChannelDisplayName()
Returns the string that is used to show the channel to the user. |
org.sakaiproject.message.api.MessageHeader |
getHeader()
|
String |
getId()
|
AnnouncementMessage |
getMessage()
|
org.sakaiproject.entity.api.ResourceProperties |
getProperties()
|
String |
getRange()
returns the range string |
String |
getReference()
|
String |
getReference(String rootProperty)
|
String |
getTrimmedBody()
|
String |
getUrl()
|
String |
getUrl(String rootProperty)
|
boolean |
isEditable()
Returns true if the message is editable. |
void |
setRange(String range)
Set the range string |
Element |
toXml(Document doc,
Stack stack)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AnnouncementAction.AnnouncementWrapper(AnnouncementMessage message,
AnnouncementChannel currentChannel,
AnnouncementChannel hostingChannel,
AnnouncementActionState.DisplayOptions options,
String range)
message - The message to be wrapped.currentChannel - The channel in which the message is contained.hostingChannel - The channel into which the message is being merged.maxNumberOfChars - The maximum number of characters that will be returned by getTrimmedBody().public AnnouncementAction.AnnouncementWrapper(AnnouncementAction.AnnouncementWrapper mWrapper)
announcementWrapper - The message to be wrapped.| Method Detail |
|---|
public AnnouncementMessage getMessage()
public org.sakaiproject.message.api.MessageHeader getHeader()
getHeader in interface org.sakaiproject.message.api.Messagepublic String getBody()
getBody in interface org.sakaiproject.message.api.Messagepublic String getTrimmedBody()
public String getUrl()
getUrl in interface org.sakaiproject.entity.api.Entitypublic String getReference()
getReference in interface org.sakaiproject.entity.api.Entitypublic String getReference(String rootProperty)
getReference in interface org.sakaiproject.entity.api.Entitypublic String getUrl(String rootProperty)
getUrl in interface org.sakaiproject.entity.api.Entitypublic String getId()
getId in interface org.sakaiproject.entity.api.Entitypublic org.sakaiproject.entity.api.ResourceProperties getProperties()
getProperties in interface org.sakaiproject.entity.api.Entitypublic String getRange()
public void setRange(String range)
public Element toXml(Document doc,
Stack stack)
toXml in interface org.sakaiproject.entity.api.Entitypublic int compareTo(Object arg0)
compareTo in interface Comparablepublic boolean isEditable()
public String getChannelDisplayName()
public AnnouncementMessageHeader getAnnouncementHeader()
getAnnouncementHeader in interface AnnouncementMessagepublic String getAuthorDisplayName()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||