|
Esri Geoportal Server 1.0
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.esri.gpt.framework.request.Record com.esri.gpt.catalog.harvest.repository.HrRecord
public class HrRecord
Harvest repository record.
Represents single harvest repository definition. Usually, objects of this class are stored withinHrRecords
. Object of the class
HrSelectRequest
is being used to read a list of records from the
database.
HrRecords
,
HrSelectRequest
Nested Class Summary | |
---|---|
static class |
HrRecord.HarvestFrequency
Harvest frequency. |
static class |
HrRecord.RecentJobStatus
Harvest job status. |
Constructor Summary | |
---|---|
HrRecord()
|
Method Summary | |
---|---|
void |
checkConnection()
Checks connection to the remote host. |
Native |
generateNativeResource()
Generates temporary native resource. |
MmdEnums.ApprovalStatus |
getApprovalStatus()
Gets approval status. |
boolean |
getFindable()
Checks if record is findable. |
HrRecord.HarvestFrequency |
getHarvestFrequency()
Gets harvest frequency. |
String |
getHostUrl()
Gets host url. |
String |
getHostUrlShort()
Gets short version of host url. |
Date |
getInputDate()
Gets input date. |
boolean |
getIsHarvestDue()
Checks if is harvest due now. |
Date |
getLastHarvestDate()
Gets last harvest date. |
Date |
getLastSyncDate()
Gets last synchronization date. |
int |
getLocalId()
Gets local id. |
String |
getName()
Gets name. |
Date |
getNextHarvestDate()
Gets next harvest date. |
int |
getOwnerId()
Gets owner user local id. |
Protocol |
getProtocol()
Gets harvest protocol. |
HrRecord.RecentJobStatus |
getRecentJobStatus()
Gets recent job status. |
boolean |
getSearchable()
Checks if records is searchable. |
boolean |
getSendNotification()
Gets sending notification switch flag. |
boolean |
getSynchronizable()
Checks if records is synchronizable. |
Date |
getUpdateDate()
Gets update date. |
String |
getUuid()
Gets harvest repository UUID. |
QueryBuilder |
newQueryBuilder(IterationContext iterationContext)
Creates new query builder. |
void |
setApprovalStatus(MmdEnums.ApprovalStatus approvalStatus)
Sets approval status. |
void |
setFindable(boolean findable)
Sets record is findable. |
void |
setHarvestFrequency(HrRecord.HarvestFrequency harvestFrequency)
Sets harvest frequency. |
void |
setHostUrl(String hostUrl)
Sets host url. |
void |
setInputDate(Date inputDate)
Sets input date. |
void |
setLastHarvestDate(Date lastHarvestDate)
Sets last harvest date. |
void |
setLastSyncDate(Date lastSyncDate)
Sets last synchronization date. |
void |
setLocalId(int localId)
Sets local id. |
void |
setName(String name)
Sets name. |
void |
setOwnerId(int ownerId)
Sets owner user local id. |
void |
setProtocol(Protocol protocol)
Sets protocol. |
void |
setSearchable(boolean searchable)
Sets records is searchable. |
void |
setSendNotification(boolean sendNotification)
Sets sending notification switch flag. |
void |
setSynchronizable(boolean synchronizable)
Sets records is synchronizable. |
void |
setUpdateDate(Date updateDate)
Sets update date. |
void |
setUuid(String uuid)
Sets harvest repository UUID. |
String |
toString()
Creates string representation of the site. |
Methods inherited from class com.esri.gpt.framework.request.Record |
---|
getIsSelected, setIsSelected |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public HrRecord()
Method Detail |
---|
public int getLocalId()
public void setLocalId(int localId)
localId
- local idpublic String getUuid()
public void setUuid(String uuid)
uuid
argument is invald, UUID becomes an empty
string.
uuid
- harvest UUIDpublic int getOwnerId()
public void setOwnerId(int ownerId)
ownerId
- owner user local idpublic Date getInputDate()
public void setInputDate(Date inputDate)
inputDate
is null
than input date is set
to current date.
inputDate
- input date.public Date getUpdateDate()
public void setUpdateDate(Date updateDate)
lastHarvestDate
is null
than update date is
set to current date.
updateDate
- update datepublic String getName()
public void setName(String name)
name
- namepublic String getHostUrl()
public void setHostUrl(String hostUrl)
hostUrl
- host urlpublic String getHostUrlShort()
public Protocol getProtocol()
public void setProtocol(Protocol protocol)
protocol
- protocolpublic HrRecord.HarvestFrequency getHarvestFrequency()
public void setHarvestFrequency(HrRecord.HarvestFrequency harvestFrequency)
harvestFrequency
- harvest frequencypublic boolean getSendNotification()
public void setSendNotification(boolean sendNotification)
sendNotification
- sending notification switch flagpublic Date getLastHarvestDate()
null
if no harvest performed on
the repository.
public void setLastHarvestDate(Date lastHarvestDate)
lastHarvestDate
- last harvest datepublic Date getNextHarvestDate()
null
harvesting not due yetpublic HrRecord.RecentJobStatus getRecentJobStatus()
public boolean getFindable()
true
if record is findablepublic void setFindable(boolean findable)
findable
- true
to make record is findablepublic boolean getSynchronizable()
true
if records is synchronizablepublic void setSynchronizable(boolean synchronizable)
synchronizable
- true
to make records is synchronizablepublic boolean getSearchable()
true
if records is searchablepublic void setSearchable(boolean searchable)
searchable
- public MmdEnums.ApprovalStatus getApprovalStatus()
public void setApprovalStatus(MmdEnums.ApprovalStatus approvalStatus)
approvalStatus
- approval statuspublic Date getLastSyncDate()
public void setLastSyncDate(Date lastSyncDate)
lastSyncDate
- last synchronization datepublic String toString()
toString
in class Object
public void checkConnection() throws HRInvalidProtocolException, HRConnectionException
HRInvalidProtocolException
- when protocol attributes are invalid
HRConnectionException
- if connecting remote repository failedpublic boolean getIsHarvestDue()
true
if harvest is due nowpublic QueryBuilder newQueryBuilder(IterationContext iterationContext)
iterationContext
- iteration context (can be null
)
null
if no protocolpublic Native generateNativeResource() throws IllegalArgumentException
IllegalArgumentException
- if title not provided
|
Esri Geoportal Server 1.0
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |