Esri Geoportal Server
1.0

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

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.HrSelectRequest
All Implemented Interfaces:
IRequest<RequestDefinition<HrCriteria,HrResult>>

public class HrSelectRequest
extends HrRequest

Harvest repository search request.


Constructor Summary
HrSelectRequest(RequestContext requestContext)
          Create instance of the request.
HrSelectRequest(RequestContext requestContext, boolean ignoreUser)
          Create instance of the request.
HrSelectRequest(RequestContext requestContext, HrCriteria criteria, HrResult result, boolean ignoreUser)
          Create instance of the request.
HrSelectRequest(RequestContext requestContext, int localId)
          Create instance of the request.
HrSelectRequest(RequestContext requestContext, String uuid)
          Create instance of the request.
 
Method Summary
 void execute()
          Executes request.
 void setIgnorePagination(boolean value)
          Sets the ignore pagination.
 
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

HrSelectRequest

public HrSelectRequest(RequestContext requestContext,
                       HrCriteria criteria,
                       HrResult result,
                       boolean ignoreUser)
Create instance of the request. Uses search criteria to select repositories.

Parameters:
requestContext - request context
criteria - request criteria
ignoreUser - true to ignore logged in user and search within repositories registered by any user
result - request result

HrSelectRequest

public HrSelectRequest(RequestContext requestContext,
                       String uuid)
Create instance of the request. Uses repository uui to pick exactly one repository

Parameters:
requestContext - request context
uuid - uuid of record to read

HrSelectRequest

public HrSelectRequest(RequestContext requestContext,
                       int localId)
Create instance of the request. Uses localId to pick exactly one repository

Parameters:
requestContext - request context
localId - local id of record to read

HrSelectRequest

public HrSelectRequest(RequestContext requestContext)
Create instance of the request. Creates list of all repositories

Parameters:
requestContext - request context

HrSelectRequest

public HrSelectRequest(RequestContext requestContext,
                       boolean ignoreUser)
Create instance of the request. Creates list of all repositories

Parameters:
requestContext - request context
ignoreUser - true to ignore logged in user and search within repositories registered by any user
Method Detail

setIgnorePagination

public void setIgnorePagination(boolean value)
Sets the ignore pagination.

Parameters:
value - the new ignore pagination

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.