|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.sakaiproject.cheftool.ControllerState
org.sakaiproject.announcement.tool.AnnouncementActionState
public class AnnouncementActionState
AnnouncementActionState is the state object for the AnnouncementAction tool. This object listens for changes on the announcement, and requests a UI delivery when changes occur.
| Nested Class Summary | |
|---|---|
static class |
AnnouncementActionState.DisplayOptions
Holds the display options for the Announcements tool |
| Field Summary | |
|---|---|
static int |
DEFAULT_DAYS_IN_PAST_OPTION
|
static int |
DEFAULT_DISPLAY_NUMBER_OPTION
|
| Constructor Summary | |
|---|---|
AnnouncementActionState()
Creates new AnnouncementActionState |
|
| Method Summary | |
|---|---|
List |
getAttachments()
Get |
Vector |
getAttachProperties(String key)
Get the attachment properties |
String |
getChannelId()
Get the channel id of current state |
protected boolean |
getCurrentSortAsc()
get the current sort property |
protected String |
getCurrentSortedBy()
get the current sorted by property name |
Vector |
getDelete_messages()
Get |
AnnouncementActionState.DisplayOptions |
getDisplayOptions()
|
AnnouncementMessageEdit |
getEdit()
Get edit object |
org.sakaiproject.site.api.Site |
getEditSite()
|
Vector |
getFileProperties(String key)
Get the the file properties for uploading |
boolean |
getIsListVM()
Get the current vm: true - in main list view; false - in other view |
boolean |
getIsNewAnnouncement()
Get the status of preview: true - view new created; false - view revised existed |
String |
getMessageReference()
Returns the currently selected message reference. |
Vector |
getMoreAttachments()
Get |
Vector |
getSelectedAttachments()
Get |
String |
getStatus()
Get the status to be |
String |
getTempAnnounceTo()
Get |
Collection |
getTempAnnounceToGroups()
Get |
Vector |
getTempAttachments()
Get |
String |
getTempBody()
Get |
Boolean |
getTempHidden()
|
Vector |
getTempMoreAttachments()
Get |
org.sakaiproject.time.api.Time |
getTempReleaseDate()
|
org.sakaiproject.time.api.Time |
getTempRetractDate()
|
String |
getTempSubject()
Get |
protected void |
init()
Init to startup values |
void |
recycle()
Release any resources and restore the object to initial conditions to be reused. |
void |
setAttachments(List attachments)
Set |
void |
setAttachProperties(String key,
Vector properties)
Set the attachProperties |
void |
setChannelId(String channelId)
Set the chat channel id to listen to. |
protected void |
setCurrentSortAsc(boolean asc)
set the current sort property |
protected void |
setCurrentSortedBy(String name)
set the current sorted by property name |
void |
setDeleteMessages(Vector delete_messages)
Set |
void |
setDisplayOptions(AnnouncementActionState.DisplayOptions options)
|
void |
setEdit(AnnouncementMessageEdit edit)
Get edit The edit object |
void |
setEditSite(org.sakaiproject.site.api.Site site)
|
void |
setFileProperties(String key,
Vector properties)
Set the fileProperties |
void |
setIsListVM(boolean isListVM)
Set the current vm: true - in main list view; false - in other view |
void |
setIsNewAnnouncement(boolean isNewAnn)
Set the status of preview: true - view new created; false - view revised existed |
void |
setMessageReference(String string)
Sets the currently selected message reference. |
void |
setMoreAttachments(Vector moreAttachments)
Set |
void |
setSelectedAttachments(Vector selectedAttachments)
Set |
void |
setStatus(String status)
Set the status to be |
void |
setTempAnnounceTo(String tempAnnounceTo)
set |
void |
setTempAnnounceToGroups(Collection tempAnnounceToGroups)
set |
void |
setTempAttachments(Vector tempAttachments)
Set |
void |
setTempBody(String tempBody)
Get |
void |
setTempHidden(Boolean hidden)
|
void |
setTempMoreAttachments(Vector tempMoreAttachments)
Set |
void |
setTempReleaseDate(org.sakaiproject.time.api.Time tempDate)
|
void |
setTempRetractDate(org.sakaiproject.time.api.Time tempDate)
|
void |
setTempSubject(String tempSubject)
Get |
void |
update(Observable o,
Object arg)
This method is called whenever the observed object is changed. |
void |
valueBound(org.sakaiproject.tool.api.SessionBindingEvent event)
SessionBindingListener implementation |
void |
valueUnbound(org.sakaiproject.tool.api.SessionBindingEvent event)
|
| Methods inherited from class org.sakaiproject.cheftool.ControllerState |
|---|
getId, getKey, getSetId, setId, setSetId |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static int DEFAULT_DISPLAY_NUMBER_OPTION
public static int DEFAULT_DAYS_IN_PAST_OPTION
| Constructor Detail |
|---|
public AnnouncementActionState()
| Method Detail |
|---|
public void recycle()
recycle in class org.sakaiproject.cheftool.ControllerStateprotected void init()
init in class org.sakaiproject.cheftool.ControllerStatepublic String getTempSubject()
public String getTempBody()
public String getTempAnnounceTo()
public void setTempAnnounceTo(String tempAnnounceTo)
public Collection getTempAnnounceToGroups()
public void setTempAnnounceToGroups(Collection tempAnnounceToGroups)
public void setTempSubject(String tempSubject)
public void setTempBody(String tempBody)
public void setTempReleaseDate(org.sakaiproject.time.api.Time tempDate)
public org.sakaiproject.time.api.Time getTempReleaseDate()
public void setTempRetractDate(org.sakaiproject.time.api.Time tempDate)
public org.sakaiproject.time.api.Time getTempRetractDate()
public Boolean getTempHidden()
public void setTempHidden(Boolean hidden)
public String getChannelId()
public void setChannelId(String channelId)
channel - The chat channel id to listen to.public Vector getFileProperties(String key)
public void setFileProperties(String key,
Vector properties)
key - The key for map class, which is the absolute local path of fileproperties - The Vector which stores the inputStream, contentType, fileName of the file in orderpublic Vector getAttachProperties(String key)
public void setAttachProperties(String key,
Vector properties)
key - The key for map class, which is the absolute local path of fileproperties - The Vector which stores the attachment properties: title, description, and copyright in orderpublic boolean getIsNewAnnouncement()
public void setIsNewAnnouncement(boolean isNewAnn)
preview_status - The status of preview: true - view new created; false - view revised existedpublic boolean getIsListVM()
public void setIsListVM(boolean isListVM)
m_isListVM: - true - in main list view; false - in other viewpublic Vector getDelete_messages()
public void setDeleteMessages(Vector delete_messages)
public void setEdit(AnnouncementMessageEdit edit)
public AnnouncementMessageEdit getEdit()
public List getAttachments()
public void setAttachments(List attachments)
public Vector getSelectedAttachments()
public void setSelectedAttachments(Vector selectedAttachments)
public Vector getMoreAttachments()
public void setMoreAttachments(Vector moreAttachments)
public Vector getTempAttachments()
public void setTempAttachments(Vector tempAttachments)
public Vector getTempMoreAttachments()
public void setTempMoreAttachments(Vector tempMoreAttachments)
public void update(Observable o,
Object arg)
notifyObservers method to have all the object's observers notified of the change. default implementation is to
cause the courier service to deliver to the interface controlled by my controller. Extensions can override.
update in interface Observerupdate in class org.sakaiproject.cheftool.ControllerStateo - the observable object.arg - an argument passed to the notifyObservers method.public String getStatus()
public void setStatus(String status)
status - The status to beprotected void setCurrentSortedBy(String name)
name - The sorted by property nameprotected String getCurrentSortedBy()
protected void setCurrentSortAsc(boolean asc)
asc - "true" if the property is sorted ascendingly; "false" if the property is sorted descendinglyprotected boolean getCurrentSortAsc()
public String getMessageReference()
public void setMessageReference(String string)
public org.sakaiproject.site.api.Site getEditSite()
public void setEditSite(org.sakaiproject.site.api.Site site)
public AnnouncementActionState.DisplayOptions getDisplayOptions()
public void setDisplayOptions(AnnouncementActionState.DisplayOptions options)
public void valueBound(org.sakaiproject.tool.api.SessionBindingEvent event)
valueBound in interface org.sakaiproject.tool.api.SessionBindingListenerpublic void valueUnbound(org.sakaiproject.tool.api.SessionBindingEvent event)
valueUnbound in interface org.sakaiproject.tool.api.SessionBindingListener
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||