Esri Geoportal Server
1.0

com.esri.gpt.catalog.publication
Class ProcessedRecord

java.lang.Object
  extended by com.esri.gpt.catalog.publication.ProcessedRecord

public class ProcessedRecord
extends Object

Maintains status information associated with a processed record.


Nested Class Summary
static class ProcessedRecord.StatusType
          The processing status type.
 
Constructor Summary
ProcessedRecord()
          Default constructor.
 
Method Summary
 List<String> getExceptions()
          Gets the list of exception messages encountered during processing.
 String getSourceUri()
          Gets the source URI associated with the record.
 ProcessedRecord.StatusType getStatusType()
          Gets the processing status associated with the record.
 void setException(Throwable exception, MessageBroker msgBroker)
          Sets the exception encountered during processing (if applicable).
 void setExceptions(List<String> messages)
          Sets the list of exception messages encountered during processing.
 void setSourceUri(String uri)
          Sets the source URI associated with the record.
 void setStatusType(ProcessedRecord.StatusType type)
          Sets the processing status associated with the record.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ProcessedRecord

public ProcessedRecord()
Default constructor.

Method Detail

setException

public void setException(Throwable exception,
                         MessageBroker msgBroker)
Sets the exception encountered during processing (if applicable).
This method will build the message list retrievable with getExceptions().

Parameters:
exception - the processing exception
msgBroker - the message broker for message resource lookup

getExceptions

public List<String> getExceptions()
Gets the list of exception messages encountered during processing.
Can be null, more than one message will typically indicate validation issues.

Returns:
the list of exception messages

setExceptions

public void setExceptions(List<String> messages)
Sets the list of exception messages encountered during processing.
Can be null, more than one message will typically indicate validation issues.

Parameters:
messages - the list of exception messages

getSourceUri

public String getSourceUri()
Gets the source URI associated with the record.

Returns:
the source URI

setSourceUri

public void setSourceUri(String uri)
Sets the source URI associated with the record.

Parameters:
uri - the source URI

getStatusType

public ProcessedRecord.StatusType getStatusType()
Gets the processing status associated with the record.

Returns:
the status type

setStatusType

public void setStatusType(ProcessedRecord.StatusType type)
Sets the processing status associated with the record.

Parameters:
type - the status type

Esri Geoportal Server
1.0

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