(on insert of XML document)
Generates a unique Accession Number or if provided check it
for uniqueness and register it into the db connection
(on update or delete of XML document)
Check for existance of provided Accession Number
Adds a new feature (from a SpatialDocument)
This is faster than insertOrUpdate but
relying on this method might cause duplication
of docids in the spatial cache.
Take input from the user in an HTTP request about an property to be changed
and update the metacat property file with that new value if it has
changed from the value that was originally set.
Take input from the user in an HTTP request about an property to be
changed and update the metacat property file with that new value if it
has changed from the value that was originally set.
Take input from the user in an HTTP request about an property to be changed
and update the metacat property file with that new value if it has
changed from the value that was originally set.
Take input from the user in an HTTP request about an property to be
changed and update the metacat property file with that new value if it
has changed from the value that was originally set.
Check user input against existing value and update the metacat property
file with that new value if it has changed from the value that was
originally set.
format a simple free-text value query as an XML document that conforms
to the pathquery.dtd and is appropriate for submission to the DBQuery
structured query engine
format a simple free-text value query as an XML document that conforms
to the pathquery.dtd and is appropriate for submission to the DBQuery
structured query engine
format a structured query as an XML document that conforms to the
pathquery.dtd and is appropriate for submission to the DBQuery
structured query engine
This class provides an implementation of DataConnetionPoolInterface
Implementation and database information for this class will be read from property file.
A database aware Class implementing DTDHandler interface for the SAX
parser to call when processing the XML stream and intercepting notations
and unparsed entities
A database aware Class implementing EntityResolver interface for the SAX
parser to call when processing the XML stream and intercepting any
external entities (including the external DTD subset and external
parameter entities, if any) before including them.
A Class that searches a relational DB for elements and attributes that have
free text matches a query string, or structured query matches to a path
specified node in the XML hierarchy.
DBQuery() -
Constructor for class edu.ucsb.nceas.metacat.DBQuery
Construct an instance of DBQuery Class
BUT accept a docid Vector that will supersede
the query.printSQL() method
If a docid Vector is passed in,
the docids will be used to create a simple IN query
without the multiple subselects of the printSQL() method
Using this constructor, we just check for
a docidOverride Vector in the findResultDoclist() method
A database aware Class implementing callback methods for the SAX parser to
call when processing the XML stream and generating events
Here is the rules for user which has write permission in top level access
rules(he can update metadata but can't update access module) try to update
a document:
1.
To a given docid, found a dataset docid which contains the the given docid
This will be done by searching xml_relation table
If couldn't find, null will be return
Generate all of the sitemap files needed to list the URLs from this
instance of Metacat, using the open sitemap format described here:
URLs are written to a single file, unless the maximum number of URLs
allowed inthe sitemap file is exceeded, in which subsequent numbered
files are created.
A bean may have a "default" property that is the property that will
mostly commonly be initially chosen for update by human's who are
customizing the bean.
Get last revision number from database for a docid If couldn't find an
entry, -1 will return The return value is integer because we want compare
it to there new one
Gets the available upgrade versions for metacat by getting a list of
upgrade script from properties in metacat.properties that start with
"database.upgradeVersion".
The Oracle unique ID generator through use of sequences
The name of the sequence used to generate the unique id
is made from the name of the table that uses the id by
appending "_id_seq" to it.
The PostgreSQL unique ID /sequence generator
The name of the sequence used to generate the unique id
is made from the name of the table that uses the id by
appending "_id_seq" to it.
Creates a list of database update script names by looking at the database
version and the metacat version and then getting any script that is
inbetween the two (inclusive of metacat version).
Gets the available upgrade versions for metacat by getting a list of
upgrade script from properties in metacat.properties that start with
"database.upgradeVersion".
when a forcereplication data file request comes in, local host sends a
readdata request to the requesting server (remote server) for the specified
docid.
Sends the contents of the xml_catalog table encoded in xml
The xml format is:
All of the sub elements of row are #PCDATA
If printFlag == false then do not print to out.
Checks to see if the user is logged in as admin by first checking if the
user is logged in and then seeing if the user's account is on the
administrators list in metacat.properties.
This interface provides methods for initializing and logging in to a
Metacat server, and then querying, reading, transforming, inserting,
updating and deleting documents from that server.
This interface provides methods for initializing and logging in to a
Metacat server, and then querying, reading, transforming, inserting,
updating and deleting documents from that server.
A metadata catalog server implemented as a Java Servlet
Valid actions are:
action=login
username
password
qformat
action=logout
qformat
action=query -- query the values of all elements and attributes and return a result set of nodes
meta_file_id --
returndoctype --
filterdoctype --
returnfield --
owner --
site --
operator --
casesensitive --
searchmode --
anyfield --
action=spatial_query -- run a spatial query.
This interface provides methods for initializing and logging in to a
Metacat server, and then querying, reading, transforming, inserting,
updating and deleting documents from that server.
This interface provides methods for initializing and logging in to a
Metacat server, and then querying, reading, transforming, inserting,
updating and deleting documents from that server.
PathIndexEntry contains all of the data fields needed to insert an path into
the xml_index table or the xml_path_index table, depending on which
constructor is used.
The Parser call this method before opening any external entity
except the top-level document entity (including the external DTD subset,
external entities referenced within the DTD, and external entities
referenced within the document element)
Method to decrease dbconnection pool size when all dbconnections are idle
If all connections are free and connection pool size greater than initial
value, shrink connection pool size to initial value
Method to decrease dbconnection pool size when all dbconnections are idle
If all connections are free and connection pool size greater than
initial value, shrink connection pool size to intital value
A Sitemap represents a document that lists all of the content of the Metacat
server for use by harvesting spiders that wish to index the contents of the
Metacat site.
Class to generate Styled Layer Descriptors allowing geoserver to
filter the feature rendering based on various contraints
such as permissions, non-spatial queries and skin configuration.
Creates the XML string that represents this AdvancedSearchQueryGroup,
including the querygroups and queryterms that are descendants of this
querygroup.
USED FROM SEPARATE THREAD RUNNED from DBSAXHandler on endDocument()
Update the node index (xml_index) for this node by generating
test strings that represent all of the relative and absolute
paths through the XML tree from document root to this node