Esri Geoportal Server
1.0

com.esri.gpt.control.harvest
Class HarvestEditor

java.lang.Object
  extended by com.esri.gpt.control.harvest.HarvestEditor

public class HarvestEditor
extends Object

Provides harvest repository editing functionality. It assures that each harvest repository can be viewed in the same, unified way regardless the protocol. It also provides smooth values translation from/to native form as stored within the object and to/from string value as required in most cases to display on the form.


Constructor Summary
HarvestEditor(HrRecord harvestRepository)
          Creates instance of editor.
 
Method Summary
 ArrayList<SelectItem> getAllProfiles()
          Gets all CSW profiles.
 String getApprovalStatus()
          Gets approval status.
 HarvestProtocolResource getArcGis()
          Gets CSW properties.
 HarvestProtocolArcIms getArcIms()
          Gets ArcIMS properties.
 Map<String,String> getAttrs()
          Gets map of attributes.
 boolean getAutoApprove()
          Checks if 'auto-approve' is enabled.
 HarvestProtocolCsw getCsw()
          Gets CSW properties.
 String getHarvestFrequency()
          Gets harvest frequency.
 String getHostUrl()
          Gets host URL.
 boolean getLockTitle()
          Checks if 'lock-title' is enabled.
 String getName()
          Gets repository name.
 HarvestProtocolOai getOai()
          Gets OAI properties.
 String getOwnerId()
          Gets owner id as string.
 HrRecord getRepository()
          Gets edited repository.
 String getSendNotification()
          Gets sending notification switch flag.
 String getSoapUrl()
          Gets SOAP URL.
 String getType()
          Gets protocol name.
 boolean getUpdateContent()
          Checks if 'deep harvest' is enabled.
 boolean getUpdateDefinition()
          Checks if 'xml generation' is enabled.
 HarvestProtocolWaf getWaf()
          Gets WAF properties.
 void setApprovalStatus(String status)
          Approval status.
 void setAutoApprove(boolean enabled)
          Enables/disables 'auto-approve'
 void setHarvestFrequency(String harvestFrequency)
          Sets harvest frequency.
 void setHostUrl(String hostUrl)
          Sets host URL.
 void setLockTitle(boolean lockTitle)
          Enables/disables 'lock-title' If a flag is set, it means a title is locked and synchronizer is not allowed to update it, although all the rest of information is allowed to be updated.
 void setName(String name)
          Sets repository name.
 void setOwnerId(String value)
          Sets owner id from string.
 void setSendNotification(String sendNotification)
          Sets sending notification switch flag.
 void setSoapUrl(String url)
          Sets SOAP URL.
 void setType(String name)
          Sets protocol name.
 void setUpdateContent(boolean enabled)
          Enables/disables 'deep harvest'
 void setUpdateDefinition(boolean enabled)
          Enables/disables 'xml generation'
 String toString()
          Gets string representation of the object.
 boolean validate(MessageBroker mb)
          Validates entered content.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

HarvestEditor

public HarvestEditor(HrRecord harvestRepository)
Creates instance of editor.

Parameters:
harvestRepository - repository to be edited
Method Detail

getRepository

public HrRecord getRepository()
Gets edited repository.

Returns:
edited repository

getOwnerId

public String getOwnerId()
Gets owner id as string.

Returns:
owner id

setOwnerId

public void setOwnerId(String value)
Sets owner id from string.

Parameters:
value - owner id

getAttrs

public Map<String,String> getAttrs()
Gets map of attributes.

Returns:
map of attributes

getType

public String getType()
Gets protocol name.

Returns:
protocol name

setType

public void setType(String name)
Sets protocol name.

Parameters:
name - protocol name name

getUpdateContent

public boolean getUpdateContent()
Checks if 'deep harvest' is enabled.

Returns:
true if 'deep harvest' is enabled

setUpdateContent

public void setUpdateContent(boolean enabled)
Enables/disables 'deep harvest'

Parameters:
enabled - true to enable 'deep harvest'

getUpdateDefinition

public boolean getUpdateDefinition()
Checks if 'xml generation' is enabled.

Returns:
true if 'xml generation' is enabled

setUpdateDefinition

public void setUpdateDefinition(boolean enabled)
Enables/disables 'xml generation'

Parameters:
enabled - true to enable 'xml generation'

getAutoApprove

public boolean getAutoApprove()
Checks if 'auto-approve' is enabled.

Returns:
true if 'auto-approve' is enabled

setAutoApprove

public void setAutoApprove(boolean enabled)
Enables/disables 'auto-approve'

Parameters:
enabled - true to enable 'auto-approve'

getLockTitle

public boolean getLockTitle()
Checks if 'lock-title' is enabled. If a flag is set, it means a title is locked and synchronizer is not allowed to update it, although all the rest of information is allowed to be updated.

Returns:
true if 'lock-title' is enabled

setLockTitle

public void setLockTitle(boolean lockTitle)
Enables/disables 'lock-title' If a flag is set, it means a title is locked and synchronizer is not allowed to update it, although all the rest of information is allowed to be updated.

Parameters:
lockTitle - true to enable 'lock-title'

getHarvestFrequency

public String getHarvestFrequency()
Gets harvest frequency.

Returns:
harvest frequency

setHarvestFrequency

public void setHarvestFrequency(String harvestFrequency)
Sets harvest frequency.

Parameters:
harvestFrequency - harvest frequency

getSendNotification

public String getSendNotification()
Gets sending notification switch flag.

Returns:
sending notification switch flag

setSendNotification

public void setSendNotification(String sendNotification)
Sets sending notification switch flag.

Parameters:
sendNotification - sending notification switch flag

getName

public String getName()
Gets repository name.

Returns:
name

setName

public void setName(String name)
Sets repository name.

Parameters:
name - name

getHostUrl

public String getHostUrl()
Gets host URL.

Returns:
host URL

setHostUrl

public void setHostUrl(String hostUrl)
Sets host URL.

Parameters:
hostUrl - host URL

getSoapUrl

public String getSoapUrl()
Gets SOAP URL.

Returns:
SOAP URL

setSoapUrl

public void setSoapUrl(String url)
Sets SOAP URL.

Parameters:
url - SOAP URL

getArcIms

public HarvestProtocolArcIms getArcIms()
Gets ArcIMS properties.

Returns:
ArcIMS properties

getOai

public HarvestProtocolOai getOai()
Gets OAI properties.

Returns:
OAI properties

getWaf

public HarvestProtocolWaf getWaf()
Gets WAF properties.

Returns:
WAF properties

getCsw

public HarvestProtocolCsw getCsw()
Gets CSW properties.

Returns:
CSW properties

getArcGis

public HarvestProtocolResource getArcGis()
Gets CSW properties.

Returns:
CSW properties

getAllProfiles

public ArrayList<SelectItem> getAllProfiles()
Gets all CSW profiles.

Returns:
array list of all CSW profiles id's

getApprovalStatus

public String getApprovalStatus()
Gets approval status.

Returns:
approval status

setApprovalStatus

public void setApprovalStatus(String status)
Approval status.

Parameters:
status - approval status

validate

public boolean validate(MessageBroker mb)
Validates entered content.

Parameters:
mb - message broker
Returns:
true if data is valid

toString

public String toString()
Gets string representation of the object.

Overrides:
toString in class Object
Returns:
string representation

Esri Geoportal Server
1.0

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