|
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.sql.BaseDao com.esri.gpt.catalog.context.CatalogIndexAdapter
public abstract class CatalogIndexAdapter
Super-class for an adapter that maintains and searches an index of metadata documents.
Constructor Summary | |
---|---|
CatalogIndexAdapter(RequestContext requestContext)
Constructs with an associated request context. |
Method Summary | |
---|---|
abstract int |
countDocuments()
Counts the documents within the index. |
void |
deleteDocument(String uuid)
Deletes a document from the index. |
abstract void |
deleteDocuments(String[] uuids)
Deletes a collection of documents from the index. |
protected Logger |
getLogger()
Gets the logger. |
String |
publishDocument(String uuid,
Publisher publisher)
Publishes a document to the index, first reading it's XML from the metadata server. |
abstract void |
publishDocument(String uuid,
Timestamp updateDate,
Schema schema,
String acl)
Publishes a document to the index based upon a metadata schema. |
abstract void |
purgeIndex()
Purges the entire catalog index. |
abstract String[] |
queryAcls(String uuid)
Queries the ACL values indexed for a document. |
abstract Timestamp |
queryModifiedDate(String uuid)
Queries the system modified date associated with an indexed document. |
Methods inherited from class com.esri.gpt.framework.sql.BaseDao |
---|
appendExpression, appendValueFilter, closeResultSet, closeStatement, getApplicationConfiguration, getRequestContext, logExpression, returnConnection, setRequestContext |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CatalogIndexAdapter(RequestContext requestContext)
requestContext
- the request contextMethod Detail |
---|
protected Logger getLogger()
public abstract int countDocuments() throws CatalogIndexException
CatalogIndexException
- if an exception occurspublic void deleteDocument(String uuid) throws CatalogIndexException
uuid
- the document UUID to delete
CatalogIndexException
- if an exception occurspublic abstract void deleteDocuments(String[] uuids) throws CatalogIndexException
uuids
- the collection of document UUIDS to delete
CatalogIndexException
- if an exception occurspublic String publishDocument(String uuid, Publisher publisher) throws CatalogIndexException
uuid
- the document's UUIDpublisher
- a publisher who has read access to the document
CatalogIndexException
- if an exception occurspublic abstract void publishDocument(String uuid, Timestamp updateDate, Schema schema, String acl) throws CatalogIndexException
uuid
- the document's UUIDupdateDate
- the document's update dateschema
- the evaluated schema associated with the document to be indexedacl
- an XML string represent the access control information associated
the document (if null, no ACL information is indexed)
CatalogIndexException
- if an exception occurspublic abstract void purgeIndex() throws CatalogIndexException
CatalogIndexException
- if an exception occurspublic abstract String[] queryAcls(String uuid) throws CatalogIndexException
uuid
- the document UUID
CatalogIndexException
- if an exception occurspublic abstract Timestamp queryModifiedDate(String uuid) throws CatalogIndexException
uuid
- the document UUID
CatalogIndexException
- 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 |