Esri Geoportal Server
1.0

com.esri.gpt.catalog.harvest.repository
Class HrHarvestRequest

java.lang.Object
  extended by com.esri.gpt.framework.sql.BaseDao
      extended by com.esri.gpt.framework.request.DaoRequest<RequestDefinition<HrCriteria,HrResult>>
          extended by com.esri.gpt.catalog.harvest.repository.HrRequest
              extended by com.esri.gpt.catalog.harvest.repository.HrHarvestRequest
All Implemented Interfaces:
IRequest<RequestDefinition<HrCriteria,HrResult>>

public class HrHarvestRequest
extends HrRequest

Harvest request.


Constructor Summary
HrHarvestRequest(RequestContext requestContext, String[] uuids, HjRecord.JobType jobType, HrCriteria criteria, HrResult result)
          Create instance of the request.
 
Method Summary
 void execute()
          Executes request.
 HjRecord.JobType getJobType()
          Gets job type.
 String[] getUuids()
          Gets uuids of records to harvest.
 void setJobType(HjRecord.JobType jobType)
          Sets job type.
 void setUuids(String[] uuids)
          Sets uuids of records to harvest.
 
Methods inherited from class com.esri.gpt.catalog.harvest.repository.HrRequest
getActionCriteria, getActionResult, getHarvestingDataTableName, getHarvestingHistoryTableName, getHarvestingJobsCompletedTableName, getHarvestingJobTableName, 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

HrHarvestRequest

public HrHarvestRequest(RequestContext requestContext,
                        String[] uuids,
                        HjRecord.JobType jobType,
                        HrCriteria criteria,
                        HrResult result)
Create instance of the request.

Parameters:
requestContext - request appCtx
uuids - uuids of records to delete
jobType - job type
criteria - request criteria
result - request result
Method Detail

getUuids

public String[] getUuids()
Gets uuids of records to harvest.

Returns:
uuids of records to harvest

setUuids

public void setUuids(String[] uuids)
Sets uuids of records to harvest.

Parameters:
uuids - uuids of records to harvest

getJobType

public HjRecord.JobType getJobType()
Gets job type.

Returns:
job type

setJobType

public void setJobType(HjRecord.JobType jobType)
Sets job type.

Parameters:
jobType - job type

execute

public void execute()
             throws SQLException
Executes request.

Throws:
SQLException - if request execution fails

Esri Geoportal Server
1.0

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