Esri Geoportal Server
1.2.9

com.esri.gpt.control.harvest
Class HarvestController

java.lang.Object
  extended by com.esri.gpt.framework.jsf.BaseActionListener
      extended by com.esri.gpt.control.harvest.BaseHarvestController
          extended by com.esri.gpt.control.harvest.HarvestController
All Implemented Interfaces:
EventListener, ActionListener, FacesListener

public class HarvestController
extends BaseHarvestController

Harvest controller. Provides functionality to support *.jsp pages to list, and edit harvest repository data.


Field Summary
 
Fields inherited from class com.esri.gpt.control.harvest.BaseHarvestController
_harvestContext, _pageCursorPanel
 
Constructor Summary
HarvestController()
          Creates instance of the controller.
 
Method Summary
 boolean getAlwaysFalse()
          Gets always false.
 HrCriteria getCriteria()
          Gets harvest criteria.
 HarvestEditor getEditor()
          Gets harvest repository editor.
 String getEditRepositoryView()
          Prepares page to display edited repository.
 HeCriteria getHistoryCriteria()
          Gets harvest history criteria.
 boolean getInfoEnabled()
          Checks if info enabled.
 String getListRepositoriesPostView()
          Does post-preparation of the list of harvest repositories.
 String getListRepositoriesView()
          Prepares page to display list of harvest repositories.
 ManageMetadataController getMmController()
           
 String getPrepareSelectedPublishers()
          Prepares selected publishers.
 ArrayList<SelectItem> getProtocols()
          Gets protocols eligible to choose.
 HrResult getResult()
          Gets harvest result.
 boolean getRobotsTxtOverride()
          Checks if robots.txt mode can be overridden.
 SelectablePublishers getSelectablePublishers()
          Gets selectable publishers.
 SortDirectionStyle getSortDirectionStyle()
          Gets sort direction style.
 BaseSortDirectionStyleMap getSortDirectionStyleMap()
          Gets sort direction style map.
 String getSynchronizationStatistics()
          Gets synchronization statistics.
 String getSynchronizationStatus()
          Gets synchronization status.
 String getTimeCodes()
          Gets time codes.
 String getTimeMessages()
           
 ArrayList<TimePoint> getTimePoints()
          Gets time points.
 void handleCancelSynchronization(ActionEvent event)
          Handles canceling synchronization.
 void handleCreateRepository(ActionEvent event)
          Handles repository creation.
 void handleFullSynchronization(ActionEvent event)
          Handles initiating full synchronization.
 void handleIncSynchronization(ActionEvent event)
          Handles initiating incremental synchronization.
 void handleListRepositories(ActionEvent event)
          Called to handle list of repositories event.
 void handleTestAgp2AgpClient(ActionEvent event)
          Deprecated. replaced by handleTestAgpDestination(javax.faces.event.ActionEvent)
 void handleTestAgp2AgpQuery(ActionEvent event)
          Deprecated. identical to handleTestConnection(javax.faces.event.ActionEvent)
 void handleTestAgpDestination(ActionEvent event)
          Tests agp destination client.
 void handleTestAgs2AgpClient(ActionEvent event)
          Deprecated. replaced by handleTestAgpDestination(javax.faces.event.ActionEvent)
 void handleTestAgs2AgpConnection(ActionEvent event)
          Deprecated. identical to handleTestConnection(javax.faces.event.ActionEvent)
 void handleTestConnection(ActionEvent event)
          Checks connection to the remote server.
 void handleUpdateRepository(ActionEvent event)
          Updates repository repository.
 void handleUpdateRepositoryAndClose(ActionEvent event)
           
 String onClickButtonExecuteAction()
          Execute button action handler.
 void setAlwaysFalse(boolean ignored)
          Sets always false.
 void setCriteria(HrCriteria criteria)
          Sets harvest criteria.
 void setEditor(HarvestEditor editor)
          Sets harvest repository editor.
 void setHistoryCriteria(HeCriteria historyCriteria)
          Sets harvest history criteria.
 void setInfoEnabled(boolean enabled)
          Sets info enabled.
 void setMmController(ManageMetadataController mmController)
           
 void setPrepareSelectedPublishers(String ignore)
          Companion to getPrepareSelectedPublishers()
 void setResult(HrResult result)
          Sets harvest result.
 void setSortDirectionStyle(SortDirectionStyle style)
          Sets sort direction style.
 void setSynchronizationStatus(String status)
          Sets synchronization status.
 void setTimeCodes(String timeCodes)
          Sets time codes.
 void setTimeMessages(String timeMessages)
           
 
Methods inherited from class com.esri.gpt.control.harvest.BaseHarvestController
getHarvestContext, getPageCursorPanel, setHarvestContext
 
Methods inherited from class com.esri.gpt.framework.jsf.BaseActionListener
assertLoggedIn, authorizeAction, extractMessageBroker, extractRequestContext, getContextBroker, getKey, getLogger, getNavigationOutcome, getPrepareView, getSecurityRoles, getSecurityRoleSet, handleException, onExecutionPhaseCompleted, onExecutionPhaseStarted, onPrepareView, onPrepareViewCompleted, onPrepareViewStarted, processAction, processSubAction, setKey, setNavigationOutcome, setPrepareView, setSecurityRoles
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HarvestController

public HarvestController()
Creates instance of the controller.

Method Detail

getMmController

public ManageMetadataController getMmController()

setMmController

public void setMmController(ManageMetadataController mmController)

getCriteria

public HrCriteria getCriteria()
Gets harvest criteria.

Returns:
harvest criteria

setCriteria

public void setCriteria(HrCriteria criteria)
Sets harvest criteria.

Parameters:
criteria - harvest criteria

getResult

public HrResult getResult()
Gets harvest result.

Returns:
harvest result

setResult

public void setResult(HrResult result)
Sets harvest result.

Parameters:
result - harvest result

getHistoryCriteria

public HeCriteria getHistoryCriteria()
Gets harvest history criteria.

Returns:
harvest history criteria

setHistoryCriteria

public void setHistoryCriteria(HeCriteria historyCriteria)
Sets harvest history criteria.

Parameters:
historyCriteria - harvest history criteria

getEditor

public HarvestEditor getEditor()
Gets harvest repository editor.

Returns:
harvest repository editor

setEditor

public void setEditor(HarvestEditor editor)
Sets harvest repository editor.

Parameters:
editor - harvest repository editor

getSortDirectionStyleMap

public BaseSortDirectionStyleMap getSortDirectionStyleMap()
Gets sort direction style map.

Returns:
sort direction style map

getSortDirectionStyle

public SortDirectionStyle getSortDirectionStyle()
Gets sort direction style.

Returns:
sort direction style

setSortDirectionStyle

public void setSortDirectionStyle(SortDirectionStyle style)
Sets sort direction style.

Parameters:
style - sort direction style

getAlwaysFalse

public boolean getAlwaysFalse()
Gets always false.

Returns:
false

setAlwaysFalse

public void setAlwaysFalse(boolean ignored)
Sets always false.

Parameters:
ignored - ignored parameter

getSelectablePublishers

public SelectablePublishers getSelectablePublishers()
Gets selectable publishers.

Returns:
selectable publishers

handleListRepositories

public void handleListRepositories(ActionEvent event)
                            throws AbortProcessingException
Called to handle list of repositories event.

Reads sort columna and sort direction and stores within query criteria object.

Parameters:
event - the associated JSF action event
Throws:
AbortProcessingException - if processing should be aborted
See Also:
HarvestContext

handleCreateRepository

public void handleCreateRepository(ActionEvent event)
                            throws AbortProcessingException
Handles repository creation.

Parameters:
event - the associated JSF action event
Throws:
AbortProcessingException - if processing should be aborted

handleIncSynchronization

public void handleIncSynchronization(ActionEvent event)
                              throws AbortProcessingException
Handles initiating incremental synchronization.

Parameters:
event - action event
Throws:
AbortProcessingException - if processing has been aborted

handleFullSynchronization

public void handleFullSynchronization(ActionEvent event)
                               throws AbortProcessingException
Handles initiating full synchronization.

Parameters:
event - action event
Throws:
AbortProcessingException - if processing has been aborted

handleCancelSynchronization

public void handleCancelSynchronization(ActionEvent event)
                                 throws AbortProcessingException
Handles canceling synchronization.

Parameters:
event - action event
Throws:
AbortProcessingException - if processing has been aborted

handleUpdateRepositoryAndClose

public void handleUpdateRepositoryAndClose(ActionEvent event)
                                    throws AbortProcessingException
Throws:
AbortProcessingException

handleUpdateRepository

public void handleUpdateRepository(ActionEvent event)
                            throws AbortProcessingException
Updates repository repository.

Parameters:
event - the associated JSF action event
Throws:
AbortProcessingException - if processing should be aborted

handleTestConnection

public void handleTestConnection(ActionEvent event)
                          throws AbortProcessingException
Checks connection to the remote server.

Parameters:
event - the associated JSF action event
Throws:
AbortProcessingException - if processing should be aborted

handleTestAgs2AgpConnection

@Deprecated
public void handleTestAgs2AgpConnection(ActionEvent event)
                                 throws AbortProcessingException
Deprecated. identical to handleTestConnection(javax.faces.event.ActionEvent)

Checks connection to the remote server.

Parameters:
event - the associated JSF action event
Throws:
AbortProcessingException - if processing should be aborted

handleTestAgp2AgpQuery

@Deprecated
public void handleTestAgp2AgpQuery(ActionEvent event)
                            throws AbortProcessingException
Deprecated. identical to handleTestConnection(javax.faces.event.ActionEvent)

Tests agp-2-agp query.

Parameters:
event - action event
Throws:
AbortProcessingException - if processing should be aborted

handleTestAgpDestination

public void handleTestAgpDestination(ActionEvent event)
                              throws AbortProcessingException
Tests agp destination client.

Parameters:
event - action event
Throws:
AbortProcessingException - if processing should be aborted

handleTestAgp2AgpClient

@Deprecated
public void handleTestAgp2AgpClient(ActionEvent event)
                             throws AbortProcessingException
Deprecated. replaced by handleTestAgpDestination(javax.faces.event.ActionEvent)

Tests agp-2-agp destination client.

Parameters:
event - action event
Throws:
AbortProcessingException - if processing should be aborted

handleTestAgs2AgpClient

@Deprecated
public void handleTestAgs2AgpClient(ActionEvent event)
                             throws AbortProcessingException
Deprecated. replaced by handleTestAgpDestination(javax.faces.event.ActionEvent)

Tests agp-2-agp destination client.

Parameters:
event - action event
Throws:
AbortProcessingException - if processing should be aborted

onClickButtonExecuteAction

public String onClickButtonExecuteAction()
Execute button action handler.

Returns:
navigation outcome

getListRepositoriesView

public String getListRepositoriesView()
Prepares page to display list of harvest repositories.

Returns:
empty string

getListRepositoriesPostView

public String getListRepositoriesPostView()
Does post-preparation of the list of harvest repositories.

Returns:
empty string

getEditRepositoryView

public String getEditRepositoryView()
Prepares page to display edited repository.

Returns:
empty string

setSynchronizationStatus

public void setSynchronizationStatus(String status)
Sets synchronization status.

Parameters:
status - synchronization status

getSynchronizationStatus

public String getSynchronizationStatus()
Gets synchronization status.

Returns:
synchronization status.

getSynchronizationStatistics

public String getSynchronizationStatistics()
Gets synchronization statistics.

Returns:
synchronization statistics

getPrepareSelectedPublishers

public String getPrepareSelectedPublishers()
Prepares selected publishers.

Returns:
empty string

setPrepareSelectedPublishers

public void setPrepareSelectedPublishers(String ignore)
Companion to getPrepareSelectedPublishers()

Parameters:
ignore - ignored argument

setInfoEnabled

public void setInfoEnabled(boolean enabled)
Sets info enabled.

Parameters:
enabled - true to enabled info.

getInfoEnabled

public boolean getInfoEnabled()
Checks if info enabled.

Returns:
true if info enabled.

getProtocols

public ArrayList<SelectItem> getProtocols()
Gets protocols eligible to choose.

Returns:
collection of protocols eligible to choose

getTimePoints

public ArrayList<TimePoint> getTimePoints()
Gets time points.

Returns:
list of time points

setTimeMessages

public void setTimeMessages(String timeMessages)

getTimeMessages

public String getTimeMessages()

getTimeCodes

public String getTimeCodes()
Gets time codes.

Returns:
time codes.

setTimeCodes

public void setTimeCodes(String timeCodes)
Sets time codes.

Parameters:
timeCodes - time codes

getRobotsTxtOverride

public boolean getRobotsTxtOverride()
Checks if robots.txt mode can be overridden.

Returns:
true if robots.txt mode can be overridden

Esri Geoportal Server
1.2.9

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