Esri Geoportal Server
1.0

com.esri.gpt.catalog.harvest.jobs
Class HjCancelRequest

java.lang.Object
  extended by com.esri.gpt.framework.sql.BaseDao
      extended by com.esri.gpt.framework.request.DaoRequest<RequestDefinition<HjCriteria,HjResult>>
          extended by com.esri.gpt.catalog.harvest.jobs.HjRequest
              extended by com.esri.gpt.catalog.harvest.jobs.HjCancelRequest
All Implemented Interfaces:
IRequest<RequestDefinition<HjCriteria,HjResult>>

public class HjCancelRequest
extends HjRequest

Cancel request.


Constructor Summary
HjCancelRequest(RequestContext requestContext, String resourceUuid)
          Creates instance of the request.
 
Method Summary
 boolean execute()
          Executes request.
 
Methods inherited from class com.esri.gpt.catalog.harvest.jobs.HjRequest
getActionCriteria, getActionResult, getHarvestingHistoryTableName, getHarvestingJobsCompletedTableName, getHarvestingJobsPendingTableName, getHarvestingTableName, getQueryCriteria, getQueryResult
 
Methods inherited from class com.esri.gpt.framework.request.DaoRequest
getRequestDefinition, setRequestDefinition
 
Methods inherited from class com.esri.gpt.framework.sql.BaseDao
appendExpression, appendValueFilter, closeResultSet, closeStatement, getApplicationConfiguration, getRequestContext, logExpression, returnConnection, setRequestContext
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HjCancelRequest

public HjCancelRequest(RequestContext requestContext,
                       String resourceUuid)
Creates instance of the request.

Parameters:
requestContext - request context
resourceUuid - resource UUID
Method Detail

execute

public boolean execute()
                throws SQLException
Executes request.

Returns:
true if records has been found and deleted
Throws:
SQLException - if deleting jobs fails

Esri Geoportal Server
1.0

Copyright 2011 Environmental Systems Research Institute. All rights reserved. Use is subject to license terms.