| org.sakaiproject.cheftool.PagedResourceActionII org.sakaiproject.announcement.tool.AnnouncementAction
AnnouncementAction | public class AnnouncementAction extends PagedResourceActionII (Code) | | AnnouncementAction is an implementation of Announcement service, which provides the complete function of announcements. User could check the announcements, create own new and manage all the announcement items, under certain permission check.
|
Method Summary | |
protected String | buildCancelContext(VelocityPortlet portlet, Context context, RunData rundata, AnnouncementActionState state) | protected String | buildDeleteAnnouncementContext(VelocityPortlet portlet, Context context, RunData rundata, AnnouncementActionState state) | public String | buildMainPanelContext(VelocityPortlet portlet, Context context, RunData rundata, SessionState sstate) | public String | buildMergeContext(VelocityPortlet portlet, Context context, RunData runData, AnnouncementActionState state, SessionState sstate) | public String | buildOptionsPanelContext(VelocityPortlet portlet, Context context, RunData runData, SessionState state) Setup for the options panel. | protected String | buildPreviewContext(VelocityPortlet portlet, Context context, RunData rundata, AnnouncementActionState state) | protected String | buildReviseAnnouncementContext(VelocityPortlet portlet, Context context, RunData rundata, AnnouncementActionState state, SessionState sstate) | protected String | buildShowMetadataContext(VelocityPortlet portlet, Context context, RunData rundata, AnnouncementActionState state, SessionState sstate) | public void | buildSortedContext(VelocityPortlet portlet, Context context, RunData rundata, SessionState sstate) | public void | doAnnouncement_form(RunData data, Context context) | public void | doAttachments(RunData data, Context context) | public void | doCancel(RunData rundata, Context context) | public void | doDelete(RunData rundata, Context context) | public void | doDelete_announcement_link(RunData rundata, Context context) | public void | doDeleteannouncement(RunData rundata, Context context) | public void | doLinkcancel(RunData rundata, Context context) | public void | doMerge(RunData runData, Context context) | public void | doNewannouncement(RunData rundata, Context context) | public void | doNext_message(RunData rundata, Context context) | public void | doOptions(RunData runData, Context context) | public void | doOptionsUpdate(RunData runData, Context context) This handles the "doUpdate" if we're in a processing an update from the options page. | public void | doPermissions(RunData data, Context context) | public void | doPost(RunData rundata, Context context) | public void | doPrev_message(RunData rundata, Context context) | public void | doPreviewrevise(RunData rundata, Context context) | public void | doReviseannouncement(RunData rundata, Context context) | public void | doReviseannouncementfrommenu(RunData rundata, Context context) | public void | doRevisepreview(RunData rundata, Context context) | public void | doSavedraft(RunData rundata, Context context) | public void | doShowmetadata(RunData rundata, Context context) | public void | doSortbychannel(RunData rundata, Context context) Do sort by the announcement channel name. | public void | doSortbydate(RunData rundata, Context context) Do sort by the date of the announcement. | public void | doSortbyfor(RunData rundata, Context context) | public void | doSortbyfrom(RunData rundata, Context context) | public void | doSortbygroupdescription(RunData rundata, Context context) | public void | doSortbygrouptitle(RunData rundata, Context context) | public void | doSortbypublic(RunData rundata, Context context) | public void | doSortbyreleasedate(RunData rundata, Context context) | public void | doSortbyretractdate(RunData rundata, Context context) | public void | doSortbysubject(RunData rundata, Context context) | public void | doUpdate(RunData runData, Context context) Handles the user clicking on the save button on the page to specify which calendars will be merged into the present schedule. | public void | doView(RunData data, Context context) | protected void | enableObserver(SessionState sstate, boolean enable) | protected ControllerState | getState(Context context, RunData rundata, Class stateClass) Get the proper state for this instance (if portlet is not known, only context).
Parameters: context - The Template Context (it contains a reference to the portlet). Parameters: rundata - The Jetspeed (Turbine) rundata associated with the request. Parameters: stateClass - The Class of the ControllerState to find / create. | protected ControllerState | getState(VelocityPortlet portlet, RunData rundata, Class stateClass) Get the proper state for this instance (if portlet is known).
Parameters: portlet - The portlet being rendered. Parameters: rundata - The Jetspeed (Turbine) rundata associated with the request. Parameters: stateClass - The Class of the ControllerState to find / create. | protected ControllerState | getState(String peid, RunData rundata, Class stateClass) Get the proper state for this instance (if portlet id is known).
Parameters: peid - The portlet id. Parameters: rundata - The Jetspeed (Turbine) rundata associated with the request. Parameters: stateClass - The Class of the ControllerState to find / create. | public String | getTemplate(VelocityPortlet portlet, Context context, RunData rundata, SessionState sstate, AnnouncementActionState state, String value) | protected void | initState(SessionState state, VelocityPortlet portlet, JetspeedRunData rundata) Populate the state object, if needed. | protected boolean | notificationEnabled(AnnouncementActionState state) | protected void | postOrSaveDraft(RunData rundata, Context context, boolean post) | protected void | readAnnouncementForm(RunData rundata, Context context, boolean checkForm) | protected List | readResourcesPage(SessionState state, int first, int last) | protected void | releaseState(Context context, RunData rundata) Release the proper state for this instance (if portlet is not known, only context). | protected void | releaseState(VelocityPortlet portlet, RunData rundata) Release the proper state for this instance (if portlet is known). | protected void | releaseState(String peid, RunData rundata) Release the proper state for this instance (if portlet id is known). | protected int | sizeResources(SessionState state) |
STATE_INITED | final protected static String STATE_INITED(Code) | | |
STATE_MESSAGES | final public static String STATE_MESSAGES(Code) | | |
doAnnouncement_form | public void doAnnouncement_form(RunData data, Context context)(Code) | | Dispatcher function for various actions on add/revise announcement page
|
doCancel | public void doCancel(RunData rundata, Context context)(Code) | | Action is to use when doCancel requested, corresponding to chef_announcement "eventSubmit_doCancel"
|
doDelete | public void doDelete(RunData rundata, Context context)(Code) | | Action is to use when ddoDelete requested, to perform deletion corresponding to chef_announcements-delete "eventSubmit_doDelete"
|
doDelete_announcement_link | public void doDelete_announcement_link(RunData rundata, Context context)(Code) | | Action is to use when doDelete_announcement_link requested, corresponding to chef_announcements the link of deleting announcement item
|
doDeleteannouncement | public void doDeleteannouncement(RunData rundata, Context context)(Code) | | Action is to use when doDeleteannouncement requested, corresponding to chef_announcements or chef_announcements-metadata menu "Delete"
|
doLinkcancel | public void doLinkcancel(RunData rundata, Context context)(Code) | | Action is to use when doLinkcancel requested, corresponding to chef_announcement "eventSubmit_doLinkcancel"
|
doMerge | public void doMerge(RunData runData, Context context)(Code) | | Handle the "Merge" button on the toolbar
|
doNewannouncement | public void doNewannouncement(RunData rundata, Context context)(Code) | | Action is to use when doNewannouncement requested, corresponding to chef_announcements menu "New..."
|
doNext_message | public void doNext_message(RunData rundata, Context context)(Code) | | Responding to the request of going to next message
|
doOptionsUpdate | public void doOptionsUpdate(RunData runData, Context context)(Code) | | This handles the "doUpdate" if we're in a processing an update from the options page.
|
doPermissions | public void doPermissions(RunData data, Context context)(Code) | | Fire up the permissions editor
|
doPost | public void doPost(RunData rundata, Context context)(Code) | | Action is to use when doPost requested, corresponding to chef_announcements-revise or -preview "eventSubmit_doPost"
|
doPrev_message | public void doPrev_message(RunData rundata, Context context)(Code) | | Responding to the request of going to previous message
|
doPreviewrevise | public void doPreviewrevise(RunData rundata, Context context)(Code) | | Action is to use when doPreviewrevise requested from preview status corresponding to chef_announcements-preview "eventSubmit_doPreviewrevise"
|
doReviseannouncement | public void doReviseannouncement(RunData rundata, Context context)(Code) | | Action is to use when doReviseannouncement requested, corresponding to chef_announcements the link of any draft announcement item
|
doReviseannouncementfrommenu | public void doReviseannouncementfrommenu(RunData rundata, Context context)(Code) | | Action is to use when doReviseannouncementfrommenu requested, corresponding to chef_announcements.vm and -metadata.vm menu "Revise"
|
doRevisepreview | public void doRevisepreview(RunData rundata, Context context)(Code) | | Action is to use when doRevisePreview requested, corresponding to chef_announcements-revise "eventSubmit_doRevisePreview" from revise view to preview view
|
doSavedraft | public void doSavedraft(RunData rundata, Context context)(Code) | | Action is to use when doSavedraft requested, corresponding to chef_announcements-preview "eventSubmit_doSavedraft"
|
doShowmetadata | public void doShowmetadata(RunData rundata, Context context)(Code) | | corresponding to chef_announcements doShowMetadata
Parameters: itemId - The string used to record the announcement id |
doSortbychannel | public void doSortbychannel(RunData rundata, Context context)(Code) | | Do sort by the announcement channel name.
|
doSortbydate | public void doSortbydate(RunData rundata, Context context)(Code) | | Do sort by the date of the announcement.
|
doSortbyfor | public void doSortbyfor(RunData rundata, Context context)(Code) | | Do sort by for - grouop/site/public
|
doSortbyfrom | public void doSortbyfrom(RunData rundata, Context context)(Code) | | Do sort by from - the author
|
doSortbygroupdescription | public void doSortbygroupdescription(RunData rundata, Context context)(Code) | | Do sort by group description
|
doSortbygrouptitle | public void doSortbygrouptitle(RunData rundata, Context context)(Code) | | Do sort by group title
|
doSortbysubject | public void doSortbysubject(RunData rundata, Context context)(Code) | | Do sort by subject
|
doUpdate | public void doUpdate(RunData runData, Context context)(Code) | | Handles the user clicking on the save button on the page to specify which calendars will be merged into the present schedule.
|
enableObserver | protected void enableObserver(SessionState sstate, boolean enable)(Code) | | Enable or disable the observer
Parameters: enable - if true, the observer is enabled, if false, it is disabled |
getState | protected ControllerState getState(Context context, RunData rundata, Class stateClass)(Code) | | Get the proper state for this instance (if portlet is not known, only context).
Parameters: context - The Template Context (it contains a reference to the portlet). Parameters: rundata - The Jetspeed (Turbine) rundata associated with the request. Parameters: stateClass - The Class of the ControllerState to find / create. The proper state object for this instance. |
getState | protected ControllerState getState(VelocityPortlet portlet, RunData rundata, Class stateClass)(Code) | | Get the proper state for this instance (if portlet is known).
Parameters: portlet - The portlet being rendered. Parameters: rundata - The Jetspeed (Turbine) rundata associated with the request. Parameters: stateClass - The Class of the ControllerState to find / create. The proper state object for this instance. |
getState | protected ControllerState getState(String peid, RunData rundata, Class stateClass)(Code) | | Get the proper state for this instance (if portlet id is known).
Parameters: peid - The portlet id. Parameters: rundata - The Jetspeed (Turbine) rundata associated with the request. Parameters: stateClass - The Class of the ControllerState to find / create. The proper state object for this instance. |
postOrSaveDraft | protected void postOrSaveDraft(RunData rundata, Context context, boolean post)(Code) | | post or save draft of a message?
|
readAnnouncementForm | protected void readAnnouncementForm(RunData rundata, Context context, boolean checkForm)(Code) | | Read user inputs in announcement form
Parameters: data - Parameters: checkForm - need to check form data or not |
releaseState | protected void releaseState(Context context, RunData rundata)(Code) | | Release the proper state for this instance (if portlet is not known, only context).
Parameters: context - The Template Context (it contains a reference to the portlet). Parameters: rundata - The Jetspeed (Turbine) rundata associated with the request. |
releaseState | protected void releaseState(VelocityPortlet portlet, RunData rundata)(Code) | | Release the proper state for this instance (if portlet is known).
Parameters: portlet - The portlet being rendered. Parameters: rundata - The Jetspeed (Turbine) rundata associated with the request. |
releaseState | protected void releaseState(String peid, RunData rundata)(Code) | | Release the proper state for this instance (if portlet id is known).
Parameters: peid - The portlet id being rendered. Parameters: rundata - The Jetspeed (Turbine) rundata associated with the request. |
Methods inherited from org.sakaiproject.cheftool.PagedResourceActionII | protected void addListPagingMenus(Menu bar, SessionState state)(Code)(Java Doc) protected void addRefreshMenus(Menu bar, SessionState state)(Code)(Java Doc) protected void addSearchMenus(Menu bar, SessionState state)(Code)(Java Doc) protected void addViewPagingMenus(Menu bar, SessionState state)(Code)(Java Doc) public void cleanStatePaging(SessionState state)(Code)(Java Doc) public void doAuto(RunData data, Context context)(Code)(Java Doc) public void doChange_pagesize(RunData data, Context context)(Code)(Java Doc) public void doList_first(RunData runData, Context context)(Code)(Java Doc) public void doList_last(RunData runData, Context context)(Code)(Java Doc) public void doList_next(RunData runData, Context context)(Code)(Java Doc) public void doList_prev(RunData runData, Context context)(Code)(Java Doc) public void doRefresh(RunData data, Context context)(Code)(Java Doc) public void doSearch(RunData runData, Context context)(Code)(Java Doc) public void doSearch_clear(RunData runData, Context context)(Code)(Java Doc) public void doView_next(RunData runData, Context context)(Code)(Java Doc) public void doView_page(RunData runData, Context context)(Code)(Java Doc) public void doView_prev(RunData runData, Context context)(Code)(Java Doc) public void enableObserver(SessionState state)(Code)(Java Doc) protected void initState(SessionState state, VelocityPortlet portlet, JetspeedRunData rundata)(Code)(Java Doc) public void pagingInfoToContext(SessionState state, Context context)(Code)(Java Doc) protected List prepPage(SessionState state)(Code)(Java Doc) abstract protected List readResourcesPage(SessionState state, int first, int last)(Code)(Java Doc) protected void resetPaging(SessionState state)(Code)(Java Doc) abstract protected int sizeResources(SessionState state)(Code)(Java Doc) protected int totalPageNumber(SessionState state)(Code)(Java Doc)
|
|
|