Esri Geoportal Server
1.0

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.
 String getPrepareSelectedPublishers()
          Prepares selected publishers.
 ArrayList<SelectItem> getProtocols()
          Gets protocols eligible to choose.
 HrResult getResult()
          Gets harvest result.
 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.
 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 handleTestConnection(ActionEvent event)
          Checks connection to the remote server.
 void handleUpdateRepository(ActionEvent event)
          Updates repository repository.
 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 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.
 
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

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

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

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

Esri Geoportal Server
1.0

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