org.ametys.plugins.datainclusion.queries.components
Class UpdateQueryAction

java.lang.Object
  extended by org.apache.avalon.framework.logger.AbstractLogEnabled
      extended by org.apache.cocoon.acting.AbstractAction
          extended by org.apache.cocoon.acting.ServiceableAction
              extended by org.ametys.plugins.datainclusion.queries.components.UpdateQueryAction
All Implemented Interfaces:
org.apache.avalon.framework.component.Component, org.apache.avalon.framework.logger.LogEnabled, org.apache.avalon.framework.service.Serviceable, Action

public class UpdateQueryAction
extends ServiceableAction

Action which updates a query.


Field Summary
protected  DataSourceFactoryExtensionPoint _dataSourceFactoryEP
          The DataSourceFactory extension point.
protected  QueryDao _queryDao
          The Query DAO.
 
Fields inherited from class org.apache.cocoon.acting.ServiceableAction
manager
 
Fields inherited from class org.apache.cocoon.acting.AbstractAction
EMPTY_MAP
 
Fields inherited from interface org.apache.cocoon.acting.Action
ROLE
 
Constructor Summary
UpdateQueryAction()
           
 
Method Summary
protected  Query.ResultType _getResultType(String value, Query.ResultType defaultValue)
          Get a single property value.
 Map act(Redirector redirector, SourceResolver resolver, Map objectModel, String source, org.apache.avalon.framework.parameters.Parameters parameters)
           
 void service(org.apache.avalon.framework.service.ServiceManager serviceManager)
           
 
Methods inherited from class org.apache.avalon.framework.logger.AbstractLogEnabled
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_dataSourceFactoryEP

protected DataSourceFactoryExtensionPoint _dataSourceFactoryEP
The DataSourceFactory extension point.


_queryDao

protected QueryDao _queryDao
The Query DAO.

Constructor Detail

UpdateQueryAction

public UpdateQueryAction()
Method Detail

service

public void service(org.apache.avalon.framework.service.ServiceManager serviceManager)
             throws org.apache.avalon.framework.service.ServiceException
Specified by:
service in interface org.apache.avalon.framework.service.Serviceable
Overrides:
service in class ServiceableAction
Throws:
org.apache.avalon.framework.service.ServiceException

act

public Map act(Redirector redirector,
               SourceResolver resolver,
               Map objectModel,
               String source,
               org.apache.avalon.framework.parameters.Parameters parameters)
        throws Exception
Throws:
Exception

_getResultType

protected Query.ResultType _getResultType(String value,
                                          Query.ResultType defaultValue)
                                   throws RepositoryException
Get a single property value.

Parameters:
value -
defaultValue -
Returns:
the single property value.
Throws:
RepositoryException


Copyright © 2010 Anyware Services. All Rights Reserved.