Java Doc for ChangeServicePropertyAction.java in  » Portal » mypersonalizer » es » udc » mypersonalizer » portal » controller » actions » personalization » 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 » Portal » mypersonalizer » es.udc.mypersonalizer.portal.controller.actions.personalization 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


es.udc.mypersonalizer.kernel.controller.actions.DefaultAction
   es.udc.mypersonalizer.portal.controller.actions.personalization.ChangeServicePropertyAction

ChangeServicePropertyAction
public class ChangeServicePropertyAction extends DefaultAction (Code)
This action performs an update on a ServiceProperty object, this is, changes a given configuration for a service. It collects information probably from a form in a JSP page. It calls the model action called ChangeServicePropertyAction, which must be registered in configuration. Because of a configuration change being able to provoke a different request from a service when invoked, this action also deletes the cached responses (if any) in the cache for this service.

It receives as a parameter a struts action form which must have been populated with any fields susceptible of being changed, as may have been defined in the metainformation for the concrete service. Note, nevertheless, that it is not necessary that all fields in the metainformation be included in the form.

It also needs to take the following parameters from the request:

  • serviceIdentifier: The identifier for the service to which the property being changed belongs.
  • propertyIdentifier: The identifier (a number suitable to fit into a Long object) of the property being changed.
  • propertyUpdaterName: The name of the updater (see es.udc.mypersonalizer.portal.model.wizards.PropertyUpdater ) which update method will be applied to the service property. The action of this property updater establishes what is going to be made to the property: add, update, delete... The value of this parameter must coincide with one of the names for property updaters registered in configuration.
  • propertyStructureName: The identifier of the position of the needed structure in the property's tree. Some examples:
    • 0: Very used as a first stage for wizards, if we want to act on the root property contents, being this root property single-valued.
    • 0.a.1: Which would mean we want to act on the values for the second (number 1) value of the multi-valued property ain the first value of the root property.
  • previousPropertyStructureNames: This is a helper parameter, which consists of a comma-separated list of the values that the propertyStructureName parameter had in all previous steps of a wizard, if this has more than one because of the existance of multi-valued properties. This helps, when any update is made at a particular level, to be able to get back to the correct previous level in the wizard. An example:
    • 0,0.a.1,0.a.1.x.0: We are at the fourth level of a wizard, and the previous levels we visited referred to the property structures 0, 0.a.1 and 0.a.1.x.0
  • simplePropertyNames: A comma-separated list of all the names of the fields entered from the form and which should make their way to the repository.
  • simplePropertyNamesNotToTrim: A subset of simplePropertyNames, which is also a comma-separated list of the fields which should not be trimmed (i.e. not removed their heading and trailing spaces).
This action requires a Success forward, which will point, either to, for example, the main page, or to the page responsible for the edition of the previous level of a wizard. The second case will be the adequate when this action is called as a result to the submission of data in the second, third, etc. level of a wizard, so that the user is returned to the previous level insted to the mainpage. This feature makes use of the previousPropertyStructureNames parameter.


author:
   Daniel Fernandez
since:
   1.0





Method Summary
protected  ActionForwarddoExecute(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response)
    



Method Detail
doExecute
protected ActionForward doExecute(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception(Code)



Fields inherited from es.udc.mypersonalizer.kernel.controller.actions.DefaultAction
final public static String ACTION_FAIL_FORWARD(Code)(Java Doc)
final public static String ACTION_SUCCESS_FORWARD(Code)(Java Doc)
final public static String ERROR_MESSAGES_PREFIX(Code)(Java Doc)
final public static String ILLEGAL_CONCURRENT_ACCESS_GLOBAL_FORWARD(Code)(Java Doc)
final public static String INTERNAL_ERROR_GLOBAL_FORWARD(Code)(Java Doc)
final public static String MAIN_PAGE_FORWARD_PATH(Code)(Java Doc)

Methods inherited from es.udc.mypersonalizer.kernel.controller.actions.DefaultAction
abstract protected ActionForward doExecute(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception(Code)(Java Doc)
protected ActionForward doOnError(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response, Exception exception)(Code)(Java Doc)
public ActionForward execute(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response)(Code)(Java Doc)

w__w___w.___j__ava2s_.___c__o___m | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.