Java Doc for AnnouncementAction.java in  » ERP-CRM-Financial » sakai » org » sakaiproject » announcement » tool » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » ERP CRM Financial » sakai » org.sakaiproject.announcement.tool 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


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.

Inner Class :class EntryProvider extends MergedListEntryProviderBase
Inner Class :public static class AnnouncementWrapper implements AnnouncementMessage

Field Summary
final protected static  StringSTATE_INITED
    
final public static  StringSTATE_MESSAGE
    
final public static  StringSTATE_MESSAGES
    


Method Summary
protected  StringbuildCancelContext(VelocityPortlet portlet, Context context, RunData rundata, AnnouncementActionState state)
    
protected  StringbuildDeleteAnnouncementContext(VelocityPortlet portlet, Context context, RunData rundata, AnnouncementActionState state)
    
public  StringbuildMainPanelContext(VelocityPortlet portlet, Context context, RunData rundata, SessionState sstate)
    
public  StringbuildMergeContext(VelocityPortlet portlet, Context context, RunData runData, AnnouncementActionState state, SessionState sstate)
    
public  StringbuildOptionsPanelContext(VelocityPortlet portlet, Context context, RunData runData, SessionState state)
     Setup for the options panel.
protected  StringbuildPreviewContext(VelocityPortlet portlet, Context context, RunData rundata, AnnouncementActionState state)
    
protected  StringbuildReviseAnnouncementContext(VelocityPortlet portlet, Context context, RunData rundata, AnnouncementActionState state, SessionState sstate)
    
protected  StringbuildShowMetadataContext(VelocityPortlet portlet, Context context, RunData rundata, AnnouncementActionState state, SessionState sstate)
    
public  voidbuildSortedContext(VelocityPortlet portlet, Context context, RunData rundata, SessionState sstate)
    
public  voiddoAnnouncement_form(RunData data, Context context)
    
public  voiddoAttachments(RunData data, Context context)
    
public  voiddoCancel(RunData rundata, Context context)
    
public  voiddoDelete(RunData rundata, Context context)
    
public  voiddoDelete_announcement_link(RunData rundata, Context context)
    
public  voiddoDeleteannouncement(RunData rundata, Context context)
    
public  voiddoLinkcancel(RunData rundata, Context context)
    
public  voiddoMerge(RunData runData, Context context)
    
public  voiddoNewannouncement(RunData rundata, Context context)
    
public  voiddoNext_message(RunData rundata, Context context)
    
public  voiddoOptions(RunData runData, Context context)
    
public  voiddoOptionsUpdate(RunData runData, Context context)
     This handles the "doUpdate" if we're in a processing an update from the options page.
public  voiddoPermissions(RunData data, Context context)
    
public  voiddoPost(RunData rundata, Context context)
    
public  voiddoPrev_message(RunData rundata, Context context)
    
public  voiddoPreviewrevise(RunData rundata, Context context)
    
public  voiddoReviseannouncement(RunData rundata, Context context)
    
public  voiddoReviseannouncementfrommenu(RunData rundata, Context context)
    
public  voiddoRevisepreview(RunData rundata, Context context)
    
public  voiddoSavedraft(RunData rundata, Context context)
    
public  voiddoShowmetadata(RunData rundata, Context context)
    
public  voiddoSortbychannel(RunData rundata, Context context)
     Do sort by the announcement channel name.
public  voiddoSortbydate(RunData rundata, Context context)
     Do sort by the date of the announcement.
public  voiddoSortbyfor(RunData rundata, Context context)
    
public  voiddoSortbyfrom(RunData rundata, Context context)
    
public  voiddoSortbygroupdescription(RunData rundata, Context context)
    
public  voiddoSortbygrouptitle(RunData rundata, Context context)
    
public  voiddoSortbypublic(RunData rundata, Context context)
    
public  voiddoSortbyreleasedate(RunData rundata, Context context)
    
public  voiddoSortbyretractdate(RunData rundata, Context context)
    
public  voiddoSortbysubject(RunData rundata, Context context)
    
public  voiddoUpdate(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  voiddoView(RunData data, Context context)
    
protected  voidenableObserver(SessionState sstate, boolean enable)
    
protected  ControllerStategetState(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  ControllerStategetState(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  ControllerStategetState(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  StringgetTemplate(VelocityPortlet portlet, Context context, RunData rundata, SessionState sstate, AnnouncementActionState state, String value)
    
protected  voidinitState(SessionState state, VelocityPortlet portlet, JetspeedRunData rundata)
     Populate the state object, if needed.
protected  booleannotificationEnabled(AnnouncementActionState state)
    
protected  voidpostOrSaveDraft(RunData rundata, Context context, boolean post)
    
protected  voidreadAnnouncementForm(RunData rundata, Context context, boolean checkForm)
    
protected  ListreadResourcesPage(SessionState state, int first, int last)
    
protected  voidreleaseState(Context context, RunData rundata)
     Release the proper state for this instance (if portlet is not known, only context).
protected  voidreleaseState(VelocityPortlet portlet, RunData rundata)
     Release the proper state for this instance (if portlet is known).
protected  voidreleaseState(String peid, RunData rundata)
     Release the proper state for this instance (if portlet id is known).
protected  intsizeResources(SessionState state)
    

Field Detail
STATE_INITED
final protected static String STATE_INITED(Code)



STATE_MESSAGE
final public static String STATE_MESSAGE(Code)



STATE_MESSAGES
final public static String STATE_MESSAGES(Code)





Method Detail
buildCancelContext
protected String buildCancelContext(VelocityPortlet portlet, Context context, RunData rundata, AnnouncementActionState state)(Code)
Build the context for cancelling the operation and going back to list view



buildDeleteAnnouncementContext
protected String buildDeleteAnnouncementContext(VelocityPortlet portlet, Context context, RunData rundata, AnnouncementActionState state)(Code)
Build the context for asking for the delete confirmation



buildMainPanelContext
public String buildMainPanelContext(VelocityPortlet portlet, Context context, RunData rundata, SessionState sstate)(Code)
Default is to use when Portal starts up



buildMergeContext
public String buildMergeContext(VelocityPortlet portlet, Context context, RunData runData, AnnouncementActionState state, SessionState sstate)(Code)
Build the context for showing merged view



buildOptionsPanelContext
public String buildOptionsPanelContext(VelocityPortlet portlet, Context context, RunData runData, SessionState state)(Code)
Setup for the options panel.



buildPreviewContext
protected String buildPreviewContext(VelocityPortlet portlet, Context context, RunData rundata, AnnouncementActionState state)(Code)
Build the context for preview an attachment



buildReviseAnnouncementContext
protected String buildReviseAnnouncementContext(VelocityPortlet portlet, Context context, RunData rundata, AnnouncementActionState state, SessionState sstate)(Code)
Build the context for revising the announcement



buildShowMetadataContext
protected String buildShowMetadataContext(VelocityPortlet portlet, Context context, RunData rundata, AnnouncementActionState state, SessionState sstate)(Code)
Build the context for viewing announcement content



buildSortedContext
public void buildSortedContext(VelocityPortlet portlet, Context context, RunData rundata, SessionState sstate)(Code)



doAnnouncement_form
public void doAnnouncement_form(RunData data, Context context)(Code)
Dispatcher function for various actions on add/revise announcement page



doAttachments
public void doAttachments(RunData data, Context context)(Code)



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



doOptions
public void doOptions(RunData runData, Context context)(Code)



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



doSortbypublic
public void doSortbypublic(RunData rundata, Context context)(Code)
Do sort by public



doSortbyreleasedate
public void doSortbyreleasedate(RunData rundata, Context context)(Code)



doSortbyretractdate
public void doSortbyretractdate(RunData rundata, Context context)(Code)



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.



doView
public void doView(RunData data, Context context)(Code)



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.



getTemplate
public String getTemplate(VelocityPortlet portlet, Context context, RunData rundata, SessionState sstate, AnnouncementActionState state, String value)(Code)



initState
protected void initState(SessionState state, VelocityPortlet portlet, JetspeedRunData rundata)(Code)
Populate the state object, if needed.



notificationEnabled
protected boolean notificationEnabled(AnnouncementActionState state)(Code)
is notification enabled?



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



readResourcesPage
protected List readResourcesPage(SessionState state, int first, int last)(Code)



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.



sizeResources
protected int sizeResources(SessionState state)(Code)



Fields inherited from org.sakaiproject.cheftool.PagedResourceActionII
final protected static int DEFAULT_PAGE_SIZE(Code)(Java Doc)
final protected static String FORM_PAGE_NUMBER(Code)(Java Doc)
final protected static String FORM_SEARCH(Code)(Java Doc)
final protected static int[] PAGESIZES(Code)(Java Doc)
final protected static String PARAM_PAGESIZE(Code)(Java Doc)
final protected static String STATE_CURRENT_PAGE(Code)(Java Doc)
final protected static String STATE_FIRST_PAGE_EXISTS(Code)(Java Doc)
final protected static String STATE_GOTO_PAGE(Code)(Java Doc)
final protected static String STATE_GO_FIRST_PAGE(Code)(Java Doc)
final protected static String STATE_GO_LAST_PAGE(Code)(Java Doc)
final protected static String STATE_GO_NEXT(Code)(Java Doc)
final protected static String STATE_GO_NEXT_PAGE(Code)(Java Doc)
final protected static String STATE_GO_PREV(Code)(Java Doc)
final protected static String STATE_GO_PREV_PAGE(Code)(Java Doc)
final protected static String STATE_LAST_PAGE_EXISTS(Code)(Java Doc)
final protected static String STATE_MANUAL_REFRESH(Code)(Java Doc)
final protected static String STATE_NEXT_EXISTS(Code)(Java Doc)
final protected static String STATE_NEXT_PAGE_EXISTS(Code)(Java Doc)
final protected static String STATE_NUM_MESSAGES(Code)(Java Doc)
final protected static String STATE_PAGESIZE(Code)(Java Doc)
final protected static String STATE_PREV_EXISTS(Code)(Java Doc)
final protected static String STATE_PREV_PAGE_EXISTS(Code)(Java Doc)
final protected static String STATE_SEARCH(Code)(Java Doc)
final protected static String STATE_TOP_PAGE_MESSAGE(Code)(Java Doc)
final protected static String STATE_TOTAL_PAGENUMBER(Code)(Java Doc)
final protected static String STATE_VIEW_ID(Code)(Java Doc)
protected static ResourceLoader rb_praII(Code)(Java Doc)

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)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.