|
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.arcims.ImsMetadataAdminDao
public class ImsMetadataAdminDao
Database access object associated with the ArcIMS metadata administration table.
Field Summary | |
---|---|
static int |
SYNCSTATUS_SYNCHRONIZED
Status code for synchronized records = 1 |
static int |
SYNCSTATUS_UNSYNCHRONIZED
Status code for unsynchronized records = 0 |
Constructor Summary | |
---|---|
protected |
ImsMetadataAdminDao()
Default constructor. |
|
ImsMetadataAdminDao(RequestContext requestContext)
Constructs with an associated request context. |
Method Summary | |
---|---|
int |
countReferencedRecords()
Gets the count of records (non-folder) from the ADMIN table that are referenced within the ArcIMS metadata table. |
int |
countUnreferencedRecords()
Gets the count of records from the ADMIN table that are not referenced within the ArcIMS metadata table. |
void |
createIndex(Schema schema,
PublicationRecord record)
Creates index. |
void |
deleteIndex(PublicationRecord record)
Deletes index. |
int |
deleteRecord(Publisher publisher,
MmdQueryCriteria criteria)
Deletes records matching criteria. |
int |
deleteRecord(String uuid)
Deletes a metadata administration record. |
int |
deleteUnreferencedRecords(int maxValuesForIndex)
Deletes records from the ADMIN table that are not referenced within the ArcIMS metadata table. |
String |
findExistingSourceUri(String uuid)
Finds source URI from metadata UUID. |
String |
findExistingUuid(String fileIdentifier,
String sourceUri)
Checks for an existing metadata document UUID for a document that is about to be published. |
String |
findUuid(String id)
Checks for an existing metadata document UUID based upon a supplied UUID or FileIdentifier. |
boolean |
hadUnalteredDraftDocuments()
Gets the status indicating whether or not documents in draft mode were unaltered by an update. |
void |
onRecordsSynchronized(StringSet uuids)
Updates the synchronization status code (SYNCSTATUS_SYNCHRONIZED) for the supplied UUIDs. |
String |
queryAclByUUID(String uuid)
Queries the acl associated with a document. |
String |
queryApprovalStatus(String uuid)
Queries the approval status associated with a document. |
boolean |
queryIndexEnabled(String uuid)
Checks if current record is eligible to be found. |
String |
queryOwnerDN(String uuid)
Determines the distinguished name associated with the owner of a document. |
String |
queryOwnerName(String uuid)
Queries the ArcIMS owner name associated with a document. |
StringSet |
querySiteUuid(String siteUuid)
Finds documents harvested from the specific site. |
Timestamp |
queryUpdateDate(String uuid)
Queries the system update date associated with a document. |
StringSet |
readUuidsForSynchronization(int maxUuids)
Reads the UUIDs for the currently unsynchronized records. |
void |
resetSynchronizationStatus()
Resets the synchronization status code (SYNCSTATUS_UNSYNCHRONIZED) for all records. |
int |
transferOwnership(Publisher publisher,
MmdQueryCriteria criteria,
int localId)
Transfers ownership for records matching criteria. |
int |
unindexRecord(String uuid)
Unindexes record. |
int |
updateAcl(Publisher publisher,
MmdQueryCriteria criteria,
String acl)
Updates the acl for records matching criteria. |
int |
updateAcl(Publisher publisher,
StringSet uuids,
String acl)
Updates the acl for a set of UUIDs. |
int |
updateApprovalStatus(Publisher publisher,
MmdQueryCriteria criteria,
MmdEnums.ApprovalStatus approvalStatus)
Updates the approval status for records matching criteria. |
int |
updateApprovalStatus(Publisher publisher,
StringSet uuids,
MmdEnums.ApprovalStatus approvalStatus)
Updates the approval status for a set of UUIDs. |
int |
updateRecord(Schema schema,
PublicationRecord record)
Updates metadata administration record following publication. |
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 |
Field Detail |
---|
public static final int SYNCSTATUS_SYNCHRONIZED
public static final int SYNCSTATUS_UNSYNCHRONIZED
Constructor Detail |
---|
protected ImsMetadataAdminDao()
public ImsMetadataAdminDao(RequestContext requestContext)
requestContext
- the request contextMethod Detail |
---|
public boolean hadUnalteredDraftDocuments()
public int countReferencedRecords() throws SQLException
SQLException
- if a database exception occurspublic int countUnreferencedRecords() throws SQLException
SQLException
- if a database exception occurspublic int deleteRecord(String uuid) throws SQLException, CatalogIndexException
uuid
- the UUID for the record to delete
SQLException
- if a database exception occurs
CatalogIndexException
- if a document indexing exception occurspublic int deleteRecord(Publisher publisher, MmdQueryCriteria criteria) throws Exception
criteria
- filter criteriapublisher
- publisher
Exception
- if performing operation failspublic int transferOwnership(Publisher publisher, MmdQueryCriteria criteria, int localId) throws Exception
localId
- new owner local idcriteria
- filter criteriapublisher
- publisher
Exception
- if transferring ownership failspublic int unindexRecord(String uuid) throws SQLException, CatalogIndexException
uuid
- the UUID for the record to delete
SQLException
- if a database exception occurs
CatalogIndexException
- if a document indexing exception occurspublic int deleteUnreferencedRecords(int maxValuesForIndex) throws SQLException, CatalogIndexException
maxValuesForIndex
- the maximum number to collect for catalog index deletion
SQLException
- if a database exception occurs
CatalogIndexException
- if a document indexing exception occurspublic String findExistingUuid(String fileIdentifier, String sourceUri) throws SQLException
fileIdentifier
- the file identifier to checksourceUri
- the source uri to check
SQLException
- if a database exception occurspublic String findExistingSourceUri(String uuid) throws SQLException
uuid
- metadata UUID
SQLException
- if a database exception occurspublic String findUuid(String id) throws SQLException
id
- the UUID of FileIdentifier to check
SQLException
- if a database exception occurspublic void onRecordsSynchronized(StringSet uuids) throws SQLException
uuids
- the collection of UUIDs to update
SQLException
- if a database exception occurspublic String queryAclByUUID(String uuid) throws SQLException
uuid
- the document UUID
SQLException
- if a database exception occurspublic String queryApprovalStatus(String uuid) throws SQLException
uuid
- the document UUID
SQLException
- if a database exception occurspublic String queryOwnerDN(String uuid) throws SQLException
uuid
- the document UUID
SQLException
- if a database exception occurspublic String queryOwnerName(String uuid) throws SQLException
uuid
- the document UUID
SQLException
- if a database exception occurspublic Timestamp queryUpdateDate(String uuid) throws SQLException
uuid
- the document UUID
SQLException
- if a database exception occurspublic StringSet querySiteUuid(String siteUuid) throws SQLException
siteUuid
- harvest site UUID
SQLException
- if a database exception occurspublic StringSet readUuidsForSynchronization(int maxUuids) throws SQLException
maxUuids
- the maximum number to read
SQLException
- if a database exception occurspublic void resetSynchronizationStatus() throws SQLException
SQLException
- if a database exception occurspublic int updateAcl(Publisher publisher, MmdQueryCriteria criteria, String acl) throws Exception
publisher
- the publisher executing this requestcriteria
- filter criteriaacl
- the new acl
SQLException
- if a database exception occurs
CatalogIndexException
- if a document indexing exception occurs
Exception
public int updateAcl(Publisher publisher, StringSet uuids, String acl) throws SQLException, CatalogIndexException
publisher
- the publisher executing this requestuuids
- the set of uuids to updateacl
- the new acl
SQLException
- if a database exception occurs
CatalogIndexException
- if a document indexing exception occurspublic int updateApprovalStatus(Publisher publisher, StringSet uuids, MmdEnums.ApprovalStatus approvalStatus) throws SQLException, CatalogIndexException
uuids
- the set of uuids to updateapprovalStatus
- the new approval status
SQLException
- if a database exception occurs
CatalogIndexException
- if a document indexing exception occurspublic boolean queryIndexEnabled(String uuid) throws SQLException
false
.
If the record is not repository it will return true
.
If the record is a repository it will return value of the FINDABLE.
uuid
- record UUID
true
if record is eligible to be found
SQLException
- if accessing database failspublic int updateApprovalStatus(Publisher publisher, MmdQueryCriteria criteria, MmdEnums.ApprovalStatus approvalStatus) throws Exception
criteria
- filter criteriaapprovalStatus
- the new approval status
SQLException
- if a database exception occurs
CatalogIndexException
- if a document indexing exception occurs
Exception
public int updateRecord(Schema schema, PublicationRecord record) throws SQLException, CatalogIndexException
schema
- the associated schemarecord
- the associated metadata document
SQLException
- if a database exception occurs
CatalogIndexException
- if a document indexing exception occurspublic void createIndex(Schema schema, PublicationRecord record) throws SQLException, CatalogIndexException
schema
- schemarecord
- publication record
SQLException
- if accessing database fails
CatalogIndexException
- if accessing index file failspublic void deleteIndex(PublicationRecord record) throws CatalogIndexException, SQLException
record
- publication record
SQLException
- if accessing database fails
CatalogIndexException
- if accessing index file fails
|
Esri Geoportal Server 1.0
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |