Java Doc for PagedResourceActionII.java in  » ERP-CRM-Financial » sakai » org » sakaiproject » cheftool » 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.cheftool 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


org.sakaiproject.vm.VmServlet
   org.sakaiproject.cheftool.VmServlet
      org.sakaiproject.cheftool.ToolServlet
         org.sakaiproject.cheftool.VelocityPortletPaneledAction
            org.sakaiproject.cheftool.PagedResourceActionII

All known Subclasses:   org.sakaiproject.alias.tool.AliasesAction,  org.sakaiproject.user.tool.UsersAction,  org.sakaiproject.site.tool.SiteAction,  org.sakaiproject.authz.tool.RealmsAction,  org.sakaiproject.site.tool.SiteBrowserAction,  org.sakaiproject.site.tool.MembershipAction,  org.sakaiproject.announcement.tool.AnnouncementAction,  org.sakaiproject.site.tool.AdminSitesAction,  org.sakaiproject.assignment.tool.AssignmentAction,  org.sakaiproject.mailarchive.tool.MailboxAction,
PagedResourceActionII
abstract public class PagedResourceActionII extends VelocityPortletPaneledAction (Code)

PagedResourceAction is a base class that handles paged display of lists of Resourecs with service support for paging.



Field Summary
final protected static  intDEFAULT_PAGE_SIZE
     The default number of messages per page.
final protected static  StringFORM_PAGE_NUMBER
    
final protected static  StringFORM_SEARCH
     Form fields.
final protected static  int[]PAGESIZES
    
final protected static  StringPARAM_PAGESIZE
     portlet configuration parameter names.
final protected static  StringSTATE_CURRENT_PAGE
    
final protected static  StringSTATE_FIRST_PAGE_EXISTS
    
final protected static  StringSTATE_GOTO_PAGE
    
final protected static  StringSTATE_GO_FIRST_PAGE
    
final protected static  StringSTATE_GO_LAST_PAGE
    
final protected static  StringSTATE_GO_NEXT
    
final protected static  StringSTATE_GO_NEXT_PAGE
    
final protected static  StringSTATE_GO_PREV
    
final protected static  StringSTATE_GO_PREV_PAGE
    
final protected static  StringSTATE_LAST_PAGE_EXISTS
    
final protected static  StringSTATE_MANUAL_REFRESH
    
final protected static  StringSTATE_NEXT_EXISTS
    
final protected static  StringSTATE_NEXT_PAGE_EXISTS
    
final protected static  StringSTATE_NUM_MESSAGES
    
final protected static  StringSTATE_PAGESIZE
    
final protected static  StringSTATE_PREV_EXISTS
    
final protected static  StringSTATE_PREV_PAGE_EXISTS
    
final protected static  StringSTATE_SEARCH
    
final protected static  StringSTATE_TOP_PAGE_MESSAGE
    
final protected static  StringSTATE_TOTAL_PAGENUMBER
    
final protected static  StringSTATE_VIEW_ID
     state attribute names.
protected static  ResourceLoaderrb_praII
    


Method Summary
protected  voidaddListPagingMenus(Menu bar, SessionState state)
     Add the menus for a list mode for paging.
protected  voidaddRefreshMenus(Menu bar, SessionState state)
     Add the menus for manual / auto - refresh.
protected  voidaddSearchMenus(Menu bar, SessionState state)
     Add the menus for search.
protected  voidaddViewPagingMenus(Menu bar, SessionState state)
     Add the menus for a view mode for paging.
public  voidcleanStatePaging(SessionState state)
     Clean up all state value for paging.
public  voiddoAuto(RunData data, Context context)
    
public  voiddoChange_pagesize(RunData data, Context context)
     Handle a request to change the page size of search list.
public  voiddoList_first(RunData runData, Context context)
     Handle a first-message page (list) request.
public  voiddoList_last(RunData runData, Context context)
     Handle a last-message page (list) request.
public  voiddoList_next(RunData runData, Context context)
     Handle a next-page (list) request.
public  voiddoList_prev(RunData runData, Context context)
     Handle a prev-page (list) request.
public  voiddoRefresh(RunData data, Context context)
    
public  voiddoSearch(RunData runData, Context context)
     Handle a Search request.
public  voiddoSearch_clear(RunData runData, Context context)
     Handle a Search Clear request.
public  voiddoView_next(RunData runData, Context context)
     Handle a next-message (view) request.
public  voiddoView_page(RunData runData, Context context)
    
public  voiddoView_prev(RunData runData, Context context)
     Handle a prev-message (view) request.
public  voidenableObserver(SessionState state)
     Enable the observer, unless we are in search mode, where we want it disabled.
protected  voidinitState(SessionState state, VelocityPortlet portlet, JetspeedRunData rundata)
    
public  voidpagingInfoToContext(SessionState state, Context context)
    
protected  ListprepPage(SessionState state)
     Prepare the current page of messages to display.
abstract protected  ListreadResourcesPage(SessionState state, int first, int last)
     Implement this to return a list of all the resources in this record range, with search and sorting applied.
protected  voidresetPaging(SessionState state)
    
abstract protected  intsizeResources(SessionState state)
     Implement this to return the number of records that are currently selected.
protected  inttotalPageNumber(SessionState state)
    

Field Detail
DEFAULT_PAGE_SIZE
final protected static int DEFAULT_PAGE_SIZE(Code)
The default number of messages per page.



FORM_PAGE_NUMBER
final protected static String FORM_PAGE_NUMBER(Code)



FORM_SEARCH
final protected static String FORM_SEARCH(Code)
Form fields.



PAGESIZES
final protected static int[] PAGESIZES(Code)



PARAM_PAGESIZE
final protected static String PARAM_PAGESIZE(Code)
portlet configuration parameter names.



STATE_CURRENT_PAGE
final protected static String STATE_CURRENT_PAGE(Code)



STATE_FIRST_PAGE_EXISTS
final protected static String STATE_FIRST_PAGE_EXISTS(Code)



STATE_GOTO_PAGE
final protected static String STATE_GOTO_PAGE(Code)



STATE_GO_FIRST_PAGE
final protected static String STATE_GO_FIRST_PAGE(Code)



STATE_GO_LAST_PAGE
final protected static String STATE_GO_LAST_PAGE(Code)



STATE_GO_NEXT
final protected static String STATE_GO_NEXT(Code)



STATE_GO_NEXT_PAGE
final protected static String STATE_GO_NEXT_PAGE(Code)



STATE_GO_PREV
final protected static String STATE_GO_PREV(Code)



STATE_GO_PREV_PAGE
final protected static String STATE_GO_PREV_PAGE(Code)



STATE_LAST_PAGE_EXISTS
final protected static String STATE_LAST_PAGE_EXISTS(Code)



STATE_MANUAL_REFRESH
final protected static String STATE_MANUAL_REFRESH(Code)



STATE_NEXT_EXISTS
final protected static String STATE_NEXT_EXISTS(Code)



STATE_NEXT_PAGE_EXISTS
final protected static String STATE_NEXT_PAGE_EXISTS(Code)



STATE_NUM_MESSAGES
final protected static String STATE_NUM_MESSAGES(Code)



STATE_PAGESIZE
final protected static String STATE_PAGESIZE(Code)



STATE_PREV_EXISTS
final protected static String STATE_PREV_EXISTS(Code)



STATE_PREV_PAGE_EXISTS
final protected static String STATE_PREV_PAGE_EXISTS(Code)



STATE_SEARCH
final protected static String STATE_SEARCH(Code)



STATE_TOP_PAGE_MESSAGE
final protected static String STATE_TOP_PAGE_MESSAGE(Code)



STATE_TOTAL_PAGENUMBER
final protected static String STATE_TOTAL_PAGENUMBER(Code)



STATE_VIEW_ID
final protected static String STATE_VIEW_ID(Code)
state attribute names.



rb_praII
protected static ResourceLoader rb_praII(Code)





Method Detail
addListPagingMenus
protected void addListPagingMenus(Menu bar, SessionState state)(Code)
Add the menus for a list mode for paging.



addRefreshMenus
protected void addRefreshMenus(Menu bar, SessionState state)(Code)
Add the menus for manual / auto - refresh.



addSearchMenus
protected void addSearchMenus(Menu bar, SessionState state)(Code)
Add the menus for search.



addViewPagingMenus
protected void addViewPagingMenus(Menu bar, SessionState state)(Code)
Add the menus for a view mode for paging.



cleanStatePaging
public void cleanStatePaging(SessionState state)(Code)
Clean up all state value for paging.



doAuto
public void doAuto(RunData data, Context context)(Code)
Toggle auto-update



doChange_pagesize
public void doChange_pagesize(RunData data, Context context)(Code)
Handle a request to change the page size of search list.



doList_first
public void doList_first(RunData runData, Context context)(Code)
Handle a first-message page (list) request.



doList_last
public void doList_last(RunData runData, Context context)(Code)
Handle a last-message page (list) request.



doList_next
public void doList_next(RunData runData, Context context)(Code)
Handle a next-page (list) request.



doList_prev
public void doList_prev(RunData runData, Context context)(Code)
Handle a prev-page (list) request.



doRefresh
public void doRefresh(RunData data, Context context)(Code)
The action for when the user want's an update



doSearch
public void doSearch(RunData runData, Context context)(Code)
Handle a Search request.



doSearch_clear
public void doSearch_clear(RunData runData, Context context)(Code)
Handle a Search Clear request.



doView_next
public void doView_next(RunData runData, Context context)(Code)
Handle a next-message (view) request.



doView_page
public void doView_page(RunData runData, Context context)(Code)
Handle a view indecated page request



doView_prev
public void doView_prev(RunData runData, Context context)(Code)
Handle a prev-message (view) request.



enableObserver
public void enableObserver(SessionState state)(Code)
Enable the observer, unless we are in search mode, where we want it disabled.



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



pagingInfoToContext
public void pagingInfoToContext(SessionState state, Context context)(Code)



prepPage
protected List prepPage(SessionState state)(Code)
Prepare the current page of messages to display. List of MailArchiveMessage to display on this page.



readResourcesPage
abstract protected List readResourcesPage(SessionState state, int first, int last)(Code)
Implement this to return a list of all the resources in this record range, with search and sorting applied.
Parameters:
  first - The first record to include (1 based).
Parameters:
  last - The last record to include (inclusive, 1 based).



resetPaging
protected void resetPaging(SessionState state)(Code)
Reset to the first page



sizeResources
abstract protected int sizeResources(SessionState state)(Code)
Implement this to return the number of records that are currently selected.



totalPageNumber
protected int totalPageNumber(SessionState state)(Code)
Return the total page number



Fields inherited from org.sakaiproject.cheftool.VelocityPortletPaneledAction
final protected static String ATTR_CONFIG(Code)(Java Doc)
final protected static String ATTR_CONTEXT(Code)(Java Doc)
final public static String ATTR_FRAME_FOCUS(Code)(Java Doc)
final public static String ATTR_FRAME_REFRESH(Code)(Java Doc)
final protected static String ATTR_PORTLET(Code)(Java Doc)
final protected static String ATTR_RUNDATA(Code)(Java Doc)
final public static String ATTR_TOP_REFRESH(Code)(Java Doc)
final protected static String BUTTON(Code)(Java Doc)
final protected static String CONTEXT_SITE_COLLECTION_ID(Code)(Java Doc)
final protected static String CONTEXT_SITE_COLLECTION_URL(Code)(Java Doc)
final protected static String LAYOUT_MAIN(Code)(Java Doc)
protected MyLogger Log(Code)(Java Doc)
final public static String MODE_OPTIONS(Code)(Java Doc)
final protected static String STATE_ACTION(Code)(Java Doc)
final public static String STATE_FLOAT(Code)(Java Doc)
final public static String STATE_HELPER(Code)(Java Doc)
final public static String STATE_MESSAGE(Code)(Java Doc)
final protected static String STATE_MODE(Code)(Java Doc)
final protected static String STATE_OBSERVER(Code)(Java Doc)
final public static String STATE_OBSERVER2(Code)(Java Doc)
final public static String STATE_PRESENCE_OBSERVER(Code)(Java Doc)
final public static String STATE_TOOL(Code)(Java Doc)

Methods inherited from org.sakaiproject.cheftool.VelocityPortletPaneledAction
protected void actionDispatch(String methodBase, String methodExt, HttpServletRequest req, HttpServletResponse res)(Code)(Java Doc)
public static void addAlert(SessionState state, String message)(Code)(Java Doc)
protected void addOptionsMenu(Menu bar, JetspeedRunData data)(Code)(Java Doc)
protected boolean allowedToOptions()(Code)(Java Doc)
protected void cancelOptions()(Code)(Java Doc)
protected String clientWindowId(SessionState state, String toolId)(Code)(Java Doc)
public static void disableObservers(SessionState state)(Code)(Java Doc)
protected void doGet(HttpServletRequest req, HttpServletResponse res) throws ServletException(Code)(Java Doc)
public void doOptions(RunData runData, Context context)(Code)(Java Doc)
public void doReset(RunData runData, Context context)(Code)(Java Doc)
public static void enableObservers(SessionState state)(Code)(Java Doc)
protected Map getContext(RunData data)(Code)(Java Doc)
protected void helperActionDispatch(String methodBase, String methodExt, HttpServletRequest req, HttpServletResponse res, String className)(Code)(Java Doc)
protected void initState(SessionState state, VelocityPortlet portlet, JetspeedRunData rundata)(Code)(Java Doc)
protected void initState(SessionState state, HttpServletRequest req, HttpServletResponse res)(Code)(Java Doc)
public static void justDelivered(SessionState state)(Code)(Java Doc)
public static String mainPanelUpdateId(String toolId)(Code)(Java Doc)
protected String panelMethodName(String panel)(Code)(Java Doc)
public void processAction(HttpServletRequest req, HttpServletResponse res)(Code)(Java Doc)
protected void resetTool(SessionState state)(Code)(Java Doc)
protected void saveOptions()(Code)(Java Doc)
protected void scheduleFocusRefresh(String[] path)(Code)(Java Doc)
protected void schedulePeerFrameRefresh(String id)(Code)(Java Doc)
protected void scheduleTopRefresh()(Code)(Java Doc)
protected void setVmCourier(HttpServletRequest request, int refresh)(Code)(Java Doc)
protected void setVmStdRef(HttpServletRequest request, HttpServletResponse response)(Code)(Java Doc)
public static String titlePanelUpdateId(String toolId)(Code)(Java Doc)
protected void toolModeDispatch(String methodBase, String methodExt, HttpServletRequest req, HttpServletResponse res) throws ToolException(Code)(Java Doc)
protected void updateState(SessionState state, HttpServletRequest req, HttpServletResponse res)(Code)(Java Doc)

Fields inherited from org.sakaiproject.cheftool.ToolServlet
final protected static String ALERT_ATTR(Code)(Java Doc)
final protected static String ALERT_STATE_INITED(Code)(Java Doc)
final protected static String HELPER_ID(Code)(Java Doc)
final protected String MAIN_PANEL(Code)(Java Doc)
final protected static String MENU_ATTR(Code)(Java Doc)
final protected static String PARAM_ACTION(Code)(Java Doc)
final protected static String PARAM_ACTION_COMBO(Code)(Java Doc)
final protected String TITLE_PANEL(Code)(Java Doc)
final protected String TOOL_MODE_ATTR(Code)(Java Doc)
final protected String TOOL_MODE_DEFAULT(Code)(Java Doc)

Methods inherited from org.sakaiproject.cheftool.ToolServlet
protected void actionDispatch(String methodBase, String methodExt, HttpServletRequest req, HttpServletResponse res)(Code)(Java Doc)
protected void doGet(HttpServletRequest req, HttpServletResponse res) throws ServletException(Code)(Java Doc)
protected void doPost(HttpServletRequest req, HttpServletResponse res) throws ServletException(Code)(Java Doc)
protected Alert getAlert(HttpServletRequest req)(Code)(Java Doc)
protected Alert getAlert(SessionState state)(Code)(Java Doc)
protected Menu getMenu(HttpServletRequest req)(Code)(Java Doc)
protected String getPid(HttpServletRequest req)(Code)(Java Doc)
protected SessionState getState(HttpServletRequest req)(Code)(Java Doc)
protected String getToolMode(HttpServletRequest req)(Code)(Java Doc)
protected void initState(SessionState state, HttpServletRequest req, HttpServletResponse res)(Code)(Java Doc)
protected void prepState(HttpServletRequest req, HttpServletResponse res)(Code)(Java Doc)
protected void processAction(HttpServletRequest req, HttpServletResponse res)(Code)(Java Doc)
protected boolean sendToHelper(HttpServletRequest req, HttpServletResponse res, String target) throws ToolException(Code)(Java Doc)
protected void setToolMode(String toolMode, HttpServletRequest req)(Code)(Java Doc)
protected void setVmStdRef(HttpServletRequest request, HttpServletResponse response)(Code)(Java Doc)
protected void startHelper(HttpServletRequest req, String helperId, String panel)(Code)(Java Doc)
protected void startHelper(HttpServletRequest req, String helperId)(Code)(Java Doc)
protected void toolModeDispatch(String methodBase, String methodExt, HttpServletRequest req, HttpServletResponse res) throws ToolException(Code)(Java Doc)
protected void updateState(SessionState state, HttpServletRequest req, HttpServletResponse res)(Code)(Java Doc)

Fields inherited from org.sakaiproject.cheftool.VmServlet
final protected Validator m_validator(Code)(Java Doc)

Methods inherited from org.sakaiproject.cheftool.VmServlet
protected void setVmStdRef(HttpServletRequest request, HttpServletResponse response)(Code)(Java Doc)

Methods inherited from org.sakaiproject.vm.VmServlet
protected ActionURL getActionURL(HttpServletRequest request)(Code)(Java Doc)
public Object getVmReference(String name, HttpServletRequest request)(Code)(Java Doc)
protected void includeVm(String template, HttpServletRequest request, HttpServletResponse response) throws ServletException(Code)(Java Doc)
public void setVmReference(String name, Object value, HttpServletRequest request)(Code)(Java Doc)
protected void setVmStdRef(HttpServletRequest request, HttpServletResponse response)(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.