|
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.catalog.publication.ResourceProcessor
public abstract class ResourceProcessor
Super-class for a processor that interacts with a resource for the express purpose of publishing metadata to the catalog.
Constructor Summary | |
---|---|
ResourceProcessor(ProcessingContext context)
Constructs with a supplied processing context. |
Method Summary | |
---|---|
protected void |
collectExistingSourceURIs(String pattern,
String pattern2)
Collects document source URIs associated with a parent resource (SQL LIKE). |
abstract Query |
createQuery(IterationContext context,
Criteria criteria)
Creates iteration query. |
protected void |
deleteUnreferencedSourceURIs()
Deletes catalog documents that are no longer referenced by the parent resource. |
ProcessingContext |
getContext()
Gets the processing context. |
abstract Native |
getNativeResource(IterationContext context)
Gets native resource. |
String |
getPublicationMethod()
Gets the publication method. |
abstract void |
process()
Invokes processing against the resource. |
void |
publishMetadata(String resourceUrl,
String resourceXml)
Publishes metadata associated with a resource. |
void |
publishMetadata(String resourceUrl,
String resourceXml,
String sourceUri)
Publishes metadata associated with a resource. |
void |
setPublicationMethod(String method)
Sets the publication method. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ResourceProcessor(ProcessingContext context)
context
- the resource processing contextMethod Detail |
---|
public ProcessingContext getContext()
public String getPublicationMethod()
public void setPublicationMethod(String method)
method
- the publication methodprotected void collectExistingSourceURIs(String pattern, String pattern2) throws SQLException
pattern
- the source URI pattern of the parent resourcepattern2
- optional secondary source URI pattern of the parent resource
SQLException
- if an exception occurs while communicating with the databaseprotected void deleteUnreferencedSourceURIs() throws SQLException, ImsServiceException, CatalogIndexException
SQLException
- if an exception occurs while communicating with the database
ImsServiceException
- if an exception occurs during delete
CatalogIndexException
- if an exception occurs during deletepublic abstract void process() throws Exception
Exception
- if an exception occurspublic abstract Query createQuery(IterationContext context, Criteria criteria)
context
- iteration contextcriteria
- query criteria or null
if no criteria
public abstract Native getNativeResource(IterationContext context)
Publishable
and each repository has to be able to
provide one.
context
- iteration context
public void publishMetadata(String resourceUrl, String resourceXml) throws Exception
resourceUrl
- the URL for the resource being publishedresourceXml
- the resource XML
Exception
- if an exception occurspublic void publishMetadata(String resourceUrl, String resourceXml, String sourceUri) throws Exception
resourceUrl
- the URL for the resource being publishedresourceXml
- the resource XMLsourceUri
- a URI identifying the source
Exception
- if an exception occurs
|
Esri Geoportal Server 1.0
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |