Esri Geoportal Server
1.0

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

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

public class HrUpdateRequest
extends HrRequest

Harvest repository update request.

Allows to store harvest repository data in the database. If the harvest repository has no uuid defined, it will be a new hr created with new uuid. If has, current hr will be overwriten.


Constructor Summary
HrUpdateRequest(RequestContext requestContext, User owner, HrRecord record)
          Create instance of the request.
 
Method Summary
 void executeUpdate(Native nativeResource)
          Executes request.
 User getOwner()
          Gets owner.
 HrRecord getRepository()
          Gets repository to update.
 void setOwner(User owner)
          Sets owner.
 void setRepository(HrRecord repository)
          Sets repository to update.
 
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

HrUpdateRequest

public HrUpdateRequest(RequestContext requestContext,
                       User owner,
                       HrRecord record)
Create instance of the request.

Parameters:
requestContext - request context
owner - owner of the records
record - record to update
Method Detail

getOwner

public User getOwner()
Gets owner.

Returns:
owner of the repository

setOwner

public void setOwner(User owner)
Sets owner.

If the owner argument is null than the owner of repositories is set to non existing user.

Parameters:
owner - owner of the repository

getRepository

public HrRecord getRepository()
Gets repository to update.

Returns:
repository to update

setRepository

public void setRepository(HrRecord repository)
Sets repository to update.

Parameters:
repository - repository to update

executeUpdate

public void executeUpdate(Native nativeResource)
                   throws Exception
Executes request. If native resource not provided, no metadata will be created for the repository.

Parameters:
nativeResource - native resource or null
Throws:
Exception - if request execution fails

Esri Geoportal Server
1.0

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