Java Doc for VelocityPortletPaneledAction.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

All known Subclasses:   org.sakaiproject.presence.tool.PresenceToolAction,  org.sakaiproject.cheftool.PagedResourceHelperAction,  org.sakaiproject.memory.tool.MemoryAction,  org.sakaiproject.news.tool.NewsAction,  org.sakaiproject.cheftool.NewPagedResourceAction,  org.sakaiproject.rights.tool.RightsHelperAction,  org.sakaiproject.archive.tool.ArchiveAction,  org.sakaiproject.chat.tool.ChatAction,  org.sakaiproject.cheftool.PagedResourceAction,  org.sakaiproject.cheftool.PagedResourceActionII,  org.sakaiproject.cheftool.VelocityPortletStateAction,  org.sakaiproject.discussion.tool.DiscussionAction,  org.sakaiproject.web.tool.IFrameAction,  org.sakaiproject.content.tool.ResourcesHelperAction,  org.sakaiproject.authz.tool.PermissionsHelperAction,  org.sakaiproject.message.tool.SynopticMessageAction,  org.sakaiproject.citation.tool.CitationHelperAction,
VelocityPortletPaneledAction
abstract public class VelocityPortletPaneledAction extends ToolServlet (Code)

VelocityPortletPaneledAction ...


Inner Class :protected class MyLogger

Field Summary
final protected static  StringATTR_CONFIG
     A PortletConfig bound into the request attributes.
final protected static  StringATTR_CONTEXT
     A Context bound into the request attributes.
final public static  StringATTR_FRAME_FOCUS
     Tool session attribute name used to schedule a focus change.
final public static  StringATTR_FRAME_REFRESH
     Tool session attribute name used to schedule a peer frame refresh.
final protected static  StringATTR_PORTLET
     A VelocityPortlet bound into the request attributes.
final protected static  StringATTR_RUNDATA
     A JetspeedRunData bound into the request attributes.
final public static  StringATTR_TOP_REFRESH
     Tool session attribute name used to schedule a whole page refresh.
final protected static  StringBUTTON
    
final protected static  StringCONTEXT_SITE_COLLECTION_ID
    
final protected static  StringCONTEXT_SITE_COLLECTION_URL
    
final protected static  StringLAYOUT_MAIN
     The panel name of the main panel - append the tool's id.
protected  MyLoggerLog
    
final public static  StringMODE_OPTIONS
     Standard modes.
final protected static  StringSTATE_ACTION
    
final public static  StringSTATE_FLOAT
    
final public static  StringSTATE_HELPER
     The currently active helper mode static class.
final public static  StringSTATE_MESSAGE
    
final protected static  StringSTATE_MODE
    
final protected static  StringSTATE_OBSERVER
    
final public static  StringSTATE_OBSERVER2
    
final public static  StringSTATE_PRESENCE_OBSERVER
    
final public static  StringSTATE_TOOL
    


Method Summary
protected  voidactionDispatch(String methodBase, String methodExt, HttpServletRequest req, HttpServletResponse res)
     Dispatch to a "processAction" method based on reflection.
public static  voidaddAlert(SessionState state, String message)
     Add another string to the alert message.
protected  voidaddOptionsMenu(Menu bar, JetspeedRunData data)
     Add the options to the menu bar, if allowed.
protected  booleanallowedToOptions()
    
protected  voidcancelOptions()
     Cancel the options process.
protected  StringclientWindowId(SessionState state, String toolId)
     Compute the deliver address for the current request.
public static  voiddisableObservers(SessionState state)
    
protected  voiddoGet(HttpServletRequest req, HttpServletResponse res)
    
public  voiddoOptions(RunData runData, Context context)
     Handle a request to set options.
public  voiddoReset(RunData runData, Context context)
     Handle the "reset tool" option from the Title bar.
public static  voidenableObservers(SessionState state)
    
protected  MapgetContext(RunData data)
     This is used to get "template" from the map, the default template registered for the tool in chef_tools.xreg.
protected  voidhelperActionDispatch(String methodBase, String methodExt, HttpServletRequest req, HttpServletResponse res, String className)
     Dispatch to a "processAction" method based on reflection in a helper class.
protected  voidinitState(SessionState state, VelocityPortlet portlet, JetspeedRunData rundata)
    
protected  voidinitState(SessionState state, HttpServletRequest req, HttpServletResponse res)
     Initialize for the first time the session state for this session.
public static  voidjustDelivered(SessionState state)
     Tell the main observer we have just delivered.
public static  StringmainPanelUpdateId(String toolId)
     Compute the courier update html element id for the main panel - add "." and other names for inner panels.
Parameters:
  toolId - The tool (portlet) id.
protected  StringpanelMethodName(String panel)
    
public  voidprocessAction(HttpServletRequest req, HttpServletResponse res)
     Process a Portlet action.
protected  voidresetTool(SessionState state)
     Reset the tool (state) to "home" conditions.
protected  voidsaveOptions()
     Complete the options process with a save.
protected  voidscheduleFocusRefresh(String[] path)
     Schedule a focus change.
protected  voidschedulePeerFrameRefresh(String id)
     Schedule a refresh for a peer frame.
protected  voidscheduleTopRefresh()
    
protected  voidsetVmCourier(HttpServletRequest request, int refresh)
    
protected  voidsetVmStdRef(HttpServletRequest request, HttpServletResponse response)
     Add some standard references to the vm context.
public static  StringtitlePanelUpdateId(String toolId)
     Compute the courier update html element id for the title panel.
Parameters:
  toolId - The tool (portlet) id.
protected  voidtoolModeDispatch(String methodBase, String methodExt, HttpServletRequest req, HttpServletResponse res)
     Dispatch to a "do" method based on reflection.
protected  voidupdateState(SessionState state, HttpServletRequest req, HttpServletResponse res)
     Update for this request processing the session state.

Field Detail
ATTR_CONFIG
final protected static String ATTR_CONFIG(Code)
A PortletConfig bound into the request attributes.



ATTR_CONTEXT
final protected static String ATTR_CONTEXT(Code)
A Context bound into the request attributes.



ATTR_FRAME_FOCUS
final public static String ATTR_FRAME_FOCUS(Code)
Tool session attribute name used to schedule a focus change.



ATTR_FRAME_REFRESH
final public static String ATTR_FRAME_REFRESH(Code)
Tool session attribute name used to schedule a peer frame refresh.



ATTR_PORTLET
final protected static String ATTR_PORTLET(Code)
A VelocityPortlet bound into the request attributes.



ATTR_RUNDATA
final protected static String ATTR_RUNDATA(Code)
A JetspeedRunData bound into the request attributes.



ATTR_TOP_REFRESH
final public static String ATTR_TOP_REFRESH(Code)
Tool session attribute name used to schedule a whole page refresh.



BUTTON
final protected static String BUTTON(Code)



CONTEXT_SITE_COLLECTION_ID
final protected static String CONTEXT_SITE_COLLECTION_ID(Code)
The name of the context variable containing the identifier for the site's root content collection



CONTEXT_SITE_COLLECTION_URL
final protected static String CONTEXT_SITE_COLLECTION_URL(Code)
The name of the context variable containing the access URL for the site's root content collection



LAYOUT_MAIN
final protected static String LAYOUT_MAIN(Code)
The panel name of the main panel - append the tool's id.



Log
protected MyLogger Log(Code)



MODE_OPTIONS
final public static String MODE_OPTIONS(Code)
Standard modes.



STATE_ACTION
final protected static String STATE_ACTION(Code)



STATE_FLOAT
final public static String STATE_FLOAT(Code)



STATE_HELPER
final public static String STATE_HELPER(Code)
The currently active helper mode static class.



STATE_MESSAGE
final public static String STATE_MESSAGE(Code)



STATE_MODE
final protected static String STATE_MODE(Code)



STATE_OBSERVER
final protected static String STATE_OBSERVER(Code)



STATE_OBSERVER2
final public static String STATE_OBSERVER2(Code)



STATE_PRESENCE_OBSERVER
final public static String STATE_PRESENCE_OBSERVER(Code)



STATE_TOOL
final public static String STATE_TOOL(Code)





Method Detail
actionDispatch
protected void actionDispatch(String methodBase, String methodExt, HttpServletRequest req, HttpServletResponse res)(Code)
Dispatch to a "processAction" method based on reflection.
Parameters:
  methodBase - The base name of the method to call.
Parameters:
  methodExt - The end name of the method to call.
Parameters:
  req - The HttpServletRequest.
Parameters:
  res - The HttpServletResponse
throws:
  PortletExcption - ,IOException, just like the "do" methods.



addAlert
public static void addAlert(SessionState state, String message)(Code)
Add another string to the alert message.
Parameters:
  state - The session state.
Parameters:
  message - The string to add.



addOptionsMenu
protected void addOptionsMenu(Menu bar, JetspeedRunData data)(Code)
Add the options to the menu bar, if allowed.
Parameters:
  bar - The menu bar to add to,
Parameters:
  ref - The resource reference to base the security decision upon.



allowedToOptions
protected boolean allowedToOptions()(Code)
Check if the current user is allowed to do options for the current context (site based) true if the user is allowed to modify the current context's options, false if not.



cancelOptions
protected void cancelOptions()(Code)
Cancel the options process.



clientWindowId
protected String clientWindowId(SessionState state, String toolId)(Code)
Compute the deliver address for the current request. Compute the client window id, based on the float state
Parameters:
  state - The tool state.
Parameters:
  toolId - The tool instance id, which might be used as part of the client window id if floating. The client window id, based on the float state.



disableObservers
public static void disableObservers(SessionState state)(Code)
Disable any observers registered in state in STATE_OBSERVER or STATE_OBSERVER2
Parameters:
  state - The session state.



doGet
protected void doGet(HttpServletRequest req, HttpServletResponse res) throws ServletException(Code)
Respond to a request by dispatching to a portlet like "do" method based on the portlet mode and tool mode



doOptions
public void doOptions(RunData runData, Context context)(Code)
Handle a request to set options.



doReset
public void doReset(RunData runData, Context context)(Code)
Handle the "reset tool" option from the Title bar.



enableObservers
public static void enableObservers(SessionState state)(Code)
Enable any observers registered in state in STATE_OBSERVER or STATE_OBSERVER2
Parameters:
  state - The session state.



getContext
protected Map getContext(RunData data)(Code)
This is used to get "template" from the map, the default template registered for the tool in chef_tools.xreg.



helperActionDispatch
protected void helperActionDispatch(String methodBase, String methodExt, HttpServletRequest req, HttpServletResponse res, String className)(Code)
Dispatch to a "processAction" method based on reflection in a helper class.
Parameters:
  methodBase - The base name of the method to call.
Parameters:
  methodExt - The end name of the method to call.
Parameters:
  req - The HttpServletRequest.
Parameters:
  res - The HttpServletResponse
throws:
  PortletExcption - ,IOException, just like the "do" methods.



initState
protected void initState(SessionState state, VelocityPortlet portlet, JetspeedRunData rundata)(Code)



initState
protected void initState(SessionState state, HttpServletRequest req, HttpServletResponse res)(Code)
Initialize for the first time the session state for this session. If overridden in a sub-class, make sure to call super.
Parameters:
  state - The session state.
Parameters:
  req - The current portlet request.
Parameters:
  res - The current portlet response.



justDelivered
public static void justDelivered(SessionState state)(Code)
Tell the main observer we have just delivered.
Parameters:
  state - The session state.



mainPanelUpdateId
public static String mainPanelUpdateId(String toolId)(Code)
Compute the courier update html element id for the main panel - add "." and other names for inner panels.
Parameters:
  toolId - The tool (portlet) id. The courier update html element id for the main panel.



panelMethodName
protected String panelMethodName(String panel)(Code)
Allow extension classes to control which build method gets called for this pannel
Parameters:
  panel -



processAction
public void processAction(HttpServletRequest req, HttpServletResponse res)(Code)
Process a Portlet action.



resetTool
protected void resetTool(SessionState state)(Code)
Reset the tool (state) to "home" conditions. Default here is to clear everything from state.
Parameters:
  state - The tool's session state.



saveOptions
protected void saveOptions()(Code)
Complete the options process with a save.



scheduleFocusRefresh
protected void scheduleFocusRefresh(String[] path)(Code)
Schedule a focus change.
Parameters:
  path - The desired focus path elements



schedulePeerFrameRefresh
protected void schedulePeerFrameRefresh(String id)(Code)
Schedule a refresh for a peer frame.
Parameters:
  id - The peer frame's id.



scheduleTopRefresh
protected void scheduleTopRefresh()(Code)
Schedule a refresh for whole page



setVmCourier
protected void setVmCourier(HttpServletRequest request, int refresh)(Code)
Setup the vm context for a courier
Parameters:
  request -



setVmStdRef
protected void setVmStdRef(HttpServletRequest request, HttpServletResponse response)(Code)
Add some standard references to the vm context.
Parameters:
  request - The render request.
Parameters:
  response - The render response.



titlePanelUpdateId
public static String titlePanelUpdateId(String toolId)(Code)
Compute the courier update html element id for the title panel.
Parameters:
  toolId - The tool (portlet) id. The courier update html element id for the title panel.



toolModeDispatch
protected void toolModeDispatch(String methodBase, String methodExt, HttpServletRequest req, HttpServletResponse res) throws ToolException(Code)
Dispatch to a "do" method based on reflection. Override ToolServlet to support the old "build" ways.
Parameters:
  methodBase - The base name of the method to call.
Parameters:
  methodExt - The end name of the method to call.
Parameters:
  req - The HttpServletRequest.
Parameters:
  res - The HttpServletResponse



updateState
protected void updateState(SessionState state, HttpServletRequest req, HttpServletResponse res)(Code)
Update for this request processing the session state. If overridden in a sub-class, make sure to call super.
Parameters:
  state - The session state.
Parameters:
  req - The current portlet request.
Parameters:
  res - The current portlet response.



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.