ArcGIS Server Geoportal extension
10

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<javax.faces.model.SelectItem> getAllProfiles()
          Gets all CSW profiles.
 String getApprovalStatus()
          Gets approval status.
 HarvestProtocolResource getArcGis()
          Deprecated. since 10.0 with no intent of replacement
 HarvestProtocolArcIms getArcIms()
          Deprecated. since 10.0 with no intent of replacement
 Map<String,String> getAttrs()
          Gets map of attributes.
 boolean getAutoApprove()
          Checks if 'auto-approve' is enabled.
 HarvestProtocolCsw getCsw()
          Deprecated. since 10.0 with no intent of replacement
 String getCswProfile()
          Deprecated. since 10.0 with no intent of replacement
 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()
          Deprecated. since 10.0 with no intent of replacement
 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 getThemeLookup()
          Gets theme lookup.
 String getType()
          Gets protocol name.
 boolean getUpdateContent()
          Checks if 'deep harvest' is enabled.
 boolean getUpdateDefinition()
          Checks if 'xml generation' is enabled.
 String getUseThemeLookup()
          Deprecated. since 9.3.1 with no replacement and not intent of future use
 HarvestProtocolWaf getWaf()
          Deprecated. since 10.0 with no intent of replacement
 HarvestProtocolZ3950 getZ3950()
          Deprecated. since 10.0 with no intent of replacement
 String getZ3950Format()
          Deprecated. since 10.0 with no intent of replacement
 void setApprovalStatus(String status)
          Approval status.
 void setAutoApprove(boolean enabled)
          Enables/disables 'auto-approve'
 void setCswProfile(String profile)
          Deprecated. since 10.0 with no intent of replacement
 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 setThemeLookup(String themeLookup)
          Sets theme lookup.
 void setType(String name)
          Sets protocol name.
 void setUpdateContent(boolean enabled)
          Enables/disables 'deep harvest'
 void setUpdateDefinition(boolean enabled)
          Enables/disables 'xml generation'
 void setUseThemeLookup(String useThemeLookup)
          Deprecated. since 9.3.1 with no replacement and not intent of future use
 void setZ3950Format(String format)
          Deprecated. since 10.0 with no intent of replacement
 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
Since:
10.0

getType

public String getType()
Gets protocol name.

Returns:
protocol name

setType

public void setType(String name)
Sets protocol name.

Parameters:
name - protocol name name

getUseThemeLookup

@Deprecated
public String getUseThemeLookup()
Deprecated. since 9.3.1 with no replacement and not intent of future use

Gets use theme lookup switch flag.


setUseThemeLookup

@Deprecated
public void setUseThemeLookup(String useThemeLookup)
Deprecated. since 9.3.1 with no replacement and not intent of future use

Gets use theme lookup switch flag.

Parameters:
useThemeLookup - use theme lookup switch flag

getThemeLookup

public String getThemeLookup()
Gets theme lookup.

Returns:
theme lookup

setThemeLookup

public void setThemeLookup(String themeLookup)
Sets theme lookup.

Parameters:
themeLookup - theme lookup

getUpdateContent

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

Returns:
true if 'deep harvest' is enabled
Since:
10.0

setUpdateContent

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

Parameters:
enabled - true to enable 'deep harvest'
Since:
10.0

getUpdateDefinition

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

Returns:
true if 'xml generation' is enabled
Since:
10.0

setUpdateDefinition

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

Parameters:
enabled - true to enable 'xml generation'
Since:
10.0

getAutoApprove

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

Returns:
true if 'auto-approve' is enabled
Since:
10.0

setAutoApprove

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

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

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
Since:
10.0

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'
Since:
10.0

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

@Deprecated
public HarvestProtocolArcIms getArcIms()
Deprecated. since 10.0 with no intent of replacement

Gets ArcIMS properties.

Returns:
ArcIMS properties

getZ3950

@Deprecated
public HarvestProtocolZ3950 getZ3950()
Deprecated. since 10.0 with no intent of replacement

Gets Z39.50 properties.

Returns:
Z39.50 properties

getZ3950Format

@Deprecated
public String getZ3950Format()
Deprecated. since 10.0 with no intent of replacement

Gets Z39.50 format.

Returns:
Z39.50 format

setZ3950Format

@Deprecated
public void setZ3950Format(String format)
Deprecated. since 10.0 with no intent of replacement

Sets Z39.50 format.

Parameters:
format - Z39.50 format

getOai

@Deprecated
public HarvestProtocolOai getOai()
Deprecated. since 10.0 with no intent of replacement

Gets OAI properties.

Returns:
OAI properties

getWaf

@Deprecated
public HarvestProtocolWaf getWaf()
Deprecated. since 10.0 with no intent of replacement

Gets WAF properties.

Returns:
WAF properties

getCsw

@Deprecated
public HarvestProtocolCsw getCsw()
Deprecated. since 10.0 with no intent of replacement

Gets CSW properties.

Returns:
CSW properties

getArcGis

@Deprecated
public HarvestProtocolResource getArcGis()
Deprecated. since 10.0 with no intent of replacement

Gets CSW properties.

Returns:
CSW properties

getCswProfile

@Deprecated
public String getCswProfile()
Deprecated. since 10.0 with no intent of replacement

Gets CSW profile.

Returns:
CSW profile

setCswProfile

@Deprecated
public void setCswProfile(String profile)
Deprecated. since 10.0 with no intent of replacement

Sets CSW profile.

Parameters:
profile - CSW profile

getAllProfiles

public ArrayList<javax.faces.model.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
Since:
10.0

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

ArcGIS Server Geoportal extension
10

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