Esri Geoportal Server
1.2.9

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.


Nested Class Summary
static class HarvestEditor.FrequencyMode
          Frequency mode.
 
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.
 boolean getArcgisDotComAllowed()
          Deprecated. 
 HarvestProtocolArcIms getArcIms()
          Gets ArcIMS properties.
 Map<String,String> getAttrs()
          Gets map of attributes.
 boolean getAutoApprove()
          Checks if 'auto-approve' is enabled.
 boolean getCrossAllowed()
          Deprecated. 
 HarvestProtocolCsw getCsw()
          Gets CSW properties.
 HarvestEditor.FrequencyMode getFrequencyMode()
           
 String getFrequencyModeAsString()
           
 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.
 boolean getRetryAsDraft()
          Checks if another attempt to publish as "draft" should be made if first attempt failed validation.
 String getRobotsTxtMode()
          Gets robots.txt mode.
 String getSendNotification()
          Gets sending notification switch flag.
 String getSoapUrl()
          Gets SOAP URL.
 String getTimeCodes()
          Gets time codes.
 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 prepareForEdit()
          Prepares repository for edit.
 void prepareForUpdate()
          Prepares repository for update.
 void setApprovalStatus(String status)
          Approval status.
 void setArcgisDotComAllowed(boolean arcgisDotComAllowed)
          Deprecated. 
 void setAutoApprove(boolean enabled)
          Enables/disables 'auto-approve'
 void setCrossAllowed(boolean crossAllowed)
          Deprecated. 
 void setFrequencyMode(HarvestEditor.FrequencyMode frequencyMode)
           
 void setFrequencyModeAsString(String frequencyMode)
           
 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 setRetryAsDraft(boolean retryAsDraft)
          Allows to make another attempt to publish as a draft if first attempt failed validation.
 void setRobotsTxtMode(String robotsTxtMode)
          Sets robots.txt mode.
 void setSendNotification(String sendNotification)
          Sets sending notification switch flag.
 void setSoapUrl(String url)
          Sets SOAP URL.
 void setTimeCodes(String timeCodes)
          Sets time codes.
 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

getArcgisDotComAllowed

@Deprecated
public boolean getArcgisDotComAllowed()
Deprecated. 


setArcgisDotComAllowed

@Deprecated
public void setArcgisDotComAllowed(boolean arcgisDotComAllowed)
Deprecated. 


getCrossAllowed

@Deprecated
public boolean getCrossAllowed()
Deprecated. 


setCrossAllowed

@Deprecated
public void setCrossAllowed(boolean crossAllowed)
Deprecated. 


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'

getRetryAsDraft

public boolean getRetryAsDraft()
Checks if another attempt to publish as "draft" should be made if first attempt failed validation. first attempt failed.

Returns:
true if another attempt should be made

setRetryAsDraft

public void setRetryAsDraft(boolean retryAsDraft)
Allows to make another attempt to publish as a draft if first attempt failed validation.

Parameters:
retryAsDraft - true if another attempt should be made

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

prepareForEdit

public void prepareForEdit()
Prepares repository for edit.


prepareForUpdate

public void prepareForUpdate()
Prepares repository for update.


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

getFrequencyMode

public HarvestEditor.FrequencyMode getFrequencyMode()

setFrequencyMode

public void setFrequencyMode(HarvestEditor.FrequencyMode frequencyMode)

getFrequencyModeAsString

public String getFrequencyModeAsString()

setFrequencyModeAsString

public void setFrequencyModeAsString(String frequencyMode)

getTimeCodes

public String getTimeCodes()
Gets time codes.

Returns:
time codes.

setTimeCodes

public void setTimeCodes(String timeCodes)
Sets time codes.

Parameters:
timeCodes - time codes

getRobotsTxtMode

public String getRobotsTxtMode()
Gets robots.txt mode.

Returns:
robots.txt mode.

setRobotsTxtMode

public void setRobotsTxtMode(String robotsTxtMode)
Sets robots.txt mode.

Parameters:
robotsTxtMode - robots.txt mode

Esri Geoportal Server
1.2.9

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