Ignore:
Timestamp:
03/31/12 16:18:46 (10 years ago)
Author:
Garth Braithwaite
Message:

view java and webapp - temp commit - in middle of saved def cleanup

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.1/src/main/webapps/ibisph-view/WEB-INF/config/spring/query_definition.xml

    r3677 r3678  
    2222                <constructor-arg type="java.lang.String" value="QueryDefinition"/>
    2323        </bean>
     24        <bean id="QueryDefinition.QueryDefinition.HTTPRequestParameterName" class="java.lang.String">
     25                <constructor-arg type="java.lang.String" value="queryDefinitionName"/>
     26        </bean>
    2427
    2528
     
    7073        >
    7174                <description>
    72                         Used to get the selected qd by the CriteriaBuilder, DefinitionBuilder,
    73                         and DefinitionResult.  All use this model to merge into the QM.
    74                 </description>
    75                 <property name="queryDefinitionNameHTTPRequestParameterName" value="queryDefinitionName"/>
     75                        Used to get the qd name from the request (param or end of path) and
     76                        loads it from the XML based on the user details.  This is used  by
     77                        the CriteriaBuilder, DefinitionBuilder, and DefinitionResult type
     78                        requests.  A following modelmap call to load this definition to the
     79                        query module.
     80                </description>
     81                <property name="queryDefinitionNameHTTPRequestParameterName" ref="QueryDefinition.QueryDefinition.HTTPRequestParameterName"/>
    7682                <property name="queryDefinitionsService" ref="QueryDefinition.XML.Service"/>
    7783                <property name="modelMapKey" ref="QueryDefinition.QueryDefinition.ModelMapKey"/>
    7884        </bean>
    7985
    80         <bean id="QueryDefinition.QueryModuleFromHTTPRequestAndQueryDefinition.ModelMap"
    81                 class="org.ibisph.querymodule.modelmap.QueryModuleFromHTTPRequestAndQueryDefinition"
    82                 parent="Common.XMLModelMap.CommonProperties"
    83         >
    84                 <description>
    85                         QD is passed in via the model map, QM is from the session if not
    86                         found then the QD's config path is used to load up the module.  The
    87                         QD is then loaded into the QM and returned.
    88                 </description>
    89                 <property name="queryDefinitionModelMapKey" ref="QueryDefinition.QueryDefinition.ModelMapKey"/>
    90                 <property name="queryModuleSessionName" ref="Query.Module.SessionName"/>
    91                 <property name="queryModuleService"     ref="Query.Module.XML.Service"/>
    92                 <property name="queryDefinitionToQueryModuleService" ref="QueryDefinition.DefinitionToModule.Service"/>
    93         </bean>
    94 
    95 
    96 <bean id="QueryDefinition.DeleteQueryDefinitionParamaeters.ModelMap" class="org.ibisph.xml.modelmap.DeleteElementsFromDocument">
     86        <bean id="QueryDefinition.DeleteQueryDefinitionParamaeters.ModelMap" class="org.ibisph.xml.modelmap.DeleteElementsFromDocument">
    9787                <description>
    9888                        used inline to remove the parameters from the query definition that is
     
    110100        </bean>
    111101
     102        <bean id="QueryDefinition.QueryModuleFromHTTPRequestAndQueryDefinition.ModelMap"
     103                class="org.ibisph.querymodule.modelmap.QueryModuleFromHTTPRequestAndQueryDefinition"
     104                parent="Common.XMLModelMap.CommonProperties"
     105        >
     106                <description>
     107                        QD is passed in via the model map, QM is from the session if not
     108                        found then the QD's config path is used to load up the module.  The
     109                        QD is then loaded into the QM and returned.  The QM is the main XML
     110                        model that is used for the apply criteria, query builder and result
     111                        pages.
     112                </description>
     113                <property name="queryDefinitionModelMapKey" ref="QueryDefinition.QueryDefinition.ModelMapKey"/>
     114                <property name="queryModuleSessionName" ref="Query.Module.SessionName"/>
     115                <property name="queryModuleService"     ref="Query.Module.XML.Service"/>
     116                <property name="queryDefinitionToQueryModuleService" ref="QueryDefinition.DefinitionToModule.Service"/>
     117        </bean>
     118
     119        <bean id="QueryDefinition.BaseQueryDefinitionFromHTTPRequest.ModelMap" class="org.ibisph.web.modelmap.HTTPRequestParametersToXML">
     120                <description>
     121                        Loads the HTTP Request Parameters into a base QUERY_DEFINITION XML
     122                        container element which is placed into the model map.  This code
     123                        is used to save and init the query definition which will then be
     124                        updated via subsequent model map calls with the actual query module
     125                        selections.
     126                </description>
     127                <property name="HTTPRequestParametersToContainerElementService" ref="QueryDefinition.HTTPRequestParametersToQueryDefinition.Service"/>
     128                <property name="modelMapKey" ref="QueryDefinition.QueryDefinition.ModelMapKey"/>
     129        </bean>
     130
     131        <bean id="QueryDefinition.QueryModuleToQueryDefinition.ModelMap" class="org.ibisph.querydefinition.modelmap.QueryModuleToQueryDefinition">
     132                <description>
     133                        Loads the query module selections into the query definition.
     134                </description>
     135                <property name="queryModuleSessionName" ref="Query.Module.SessionName"/>
     136                <property name="queryDefinitionModelMapKey" ref="QueryDefinition.QueryDefinition.ModelMapKey"/>
     137                <property name="queryModuleToQueryDefinitionService" ref="QueryDefinition.ModuleToDefinition.Service"/>
     138        </bean>
     139
     140        <bean id="QueryDefinition.QueryDefinitionToQueryDefinitions.ModelMap" class="org.ibisph.querydefinition.modelmap.QueryDefinitionToQueryDefinitions">
     141                <description>
     142                        Saves the QUERY_DEFINITION XML that is found in the supplied model
     143                        map to the user's query definitions.  This code should be called
     144                        after creating the query definition and loading with the query
     145                        module.  So typically used in the save query def controller.
     146                </description>
     147                <property name="queryDefinitionsService" ref="QueryDefinition.XML.Service"/>
     148                <property name="modelMapKey" ref="QueryDefinition.QueryDefinition.ModelMapKey"/>
     149        </bean>
     150
    112151<bean id="QueryDefinition.DeleteQueryDefinitionFromHTTPRequest.ModelMap" class="org.ibisph.querydefinition.modelmap.DeleteQueryDefinitionFromHTTPRequest">
    113                 <description>QD from HTTP REQUEST PARAM - POSTED OR GET.</description>
    114                 <property name="queryDefinitionNameHTTPRequestParameterName" value="queryDefinitionName"/>
     152                <description>
     153                        Deletes the named/specified QD from the user's saved query definitions. 
     154                        The QD name is retrieved from specified HTTP request parameter or
     155                        from the end of the request path. 
     156                </description>
     157                <property name="queryDefinitionNameHTTPRequestParameterName" ref="QueryDefinition.QueryDefinition.HTTPRequestParameterName"/>
    115158                <property name="queryDefinitionsService" ref="QueryDefinition.XML.Service"/>
    116159<property name="modelMapKey" value="SavedQueryDefinition"/>
    117160        </bean>
    118161
    119 
    120 <bean id="QueryDefinition.HTTPRequestToQueryDefinition.ModelMap" class="org.ibisph.web.modelmap.HTTPRequestParametersToXML">
    121                 <description>
    122                 </description>
    123                 <property name="HTTPRequestParametersToContainerElementService" ref="QueryDefinition.HTTPRequestParametersToQueryDefinition.Service"/>
    124                 <property name="modelMapKey" ref="QueryDefinition.QueryDefinition.ModelMapKey"/>
    125         </bean>
    126 
    127 <bean id="QueryDefinition.SavedQueryDefinitionFromHTTPRequestAndLoadedQueryDefinition.ModelMap" class="org.ibisph.querydefinition.modelmap.QueryDefinitionToQueryDefinitions">
    128                 <property name="queryDefinitionsService" ref="QueryDefinition.XML.Service"/>
    129 <property name="modelMapKey" value="SavedQueryDefinition"/>
    130         </bean>
    131162
    132163
     
    212243        </bean>
    213244
    214 
    215 <bean id="QueryDefinition.EditBuilderDefinition.Controller" class="org.ibisph.web.springmvc.ModelMapListProcessingController">
     245        <bean id="QueryDefinition.EditBuilderDefinition.Controller" class="org.ibisph.web.springmvc.ModelMapListProcessingController">
    216246                <description>
    217247                        /edit/query/builder/definition/**
     
    233263        </bean>
    234264
    235 <bean id="QueryDefinition.EditResultDefinition.Controller" class="org.ibisph.web.springmvc.ModelMapListProcessingController">
     265        <bean id="QueryDefinition.EditResultDefinition.Controller" class="org.ibisph.web.springmvc.ModelMapListProcessingController">
    236266                <description>
    237267                        /edit/query/result/definition/**"
     
    246276                <property name="view" ref="QueryDefinition.EditDetail.View"/>
    247277        </bean>
    248 
    249 
    250278
    251279<bean id="QueryDefinition.SaveDefinition.Controller" class="org.ibisph.web.springmvc.ModelMapListProcessingController">
     
    259287                <property name="modelMapList">
    260288                        <list>
    261                                 <ref bean="QueryDefinition.HTTPRequestToQueryDefinition.ModelMap"/>
    262 <ref bean="QueryDefinition.SavedQueryDefinitionFromHTTPRequestAndLoadedQueryDefinition.ModelMap"/>
     289                                <ref bean="QueryDefinition.BaseQueryDefinitionFromHTTPRequest.ModelMap"/>
     290                                <ref bean="QueryDefinition.QueryModuleToQueryDefinition.ModelMap"/>
     291                                <ref bean="QueryDefinition.QueryDefinitionToQueryDefinitions.ModelMap"/>
    263292                                <ref bean="QueryDefinition.QueryDefinitionsFromHTTPRequest.ModelMap"/>
    264293                                <ref bean="Common.HTTPRequestParameters.ModelMap"/>
     
    269298        </bean>
    270299
    271 <bean id="QueryDefinition.DeleteDefinition.Controller" class="org.ibisph.web.springmvc.ModelMapListProcessingController">
    272                 <description>
     300        <bean id="QueryDefinition.DeleteDefinition.Controller" class="org.ibisph.web.springmvc.ModelMapListProcessingController">
     301                <description>
     302                        Deletes the specified query definition and returns to the definition list page.
    273303                </description>
    274304                <property name="modelMapList">
Note: See TracChangeset for help on using the changeset viewer.