|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--edu.ucsb.adl.middleware.IdentifiersService
The ADL identifiers service. Conceptually, this service returns the identifiers of all items in a collection.
This class reads the following properties from the main middleware configuration file:
identifiers.gatekeeper.classedu.ucsb.adl.middleware.IPAddressGatekeeper".identifiers.gatekeeper.argumentcollection_directory/export/middleware/config/collections". If the
pathname is not absolute, it is interpreted relative to the
directory containing the main middleware configuration file.collection_directory property is
D, then in loading collection C this class reads the
following properties from the collection-specific middleware
configuration file
D/C/drivers.conf:
identifiers.driver.classedu.ucsb.adl.bucket99.IdentifiersDriver".identifiers.driver.gatekeeper.classidentifiers.driver.gatekeeper.argument
@P
where P is the name of another property (see ExtendedProperties for more information). The main middleware
configuration file serves as a properties default for the
collection-specific configuration files.
$Log: IdentifiersService.java,v $ Revision 1.1 2006/06/22 19:40:01 gjanee Initial revision
| Method Summary | |
static edu.ucsb.adl.middleware.IdentifiersService |
createService(java.lang.String configurationFile)
Creates an IdentifiersService. |
void |
destroy()
Decrements the reference count. |
java.util.Vector |
performIdentifiersService(javax.servlet.ServletRequest request,
java.lang.String collection)
Performs the ADL identifiers service. |
void |
unloadCollection(java.lang.String collection)
Unloads a collection (i.e., the driver and gatekeeper for a collection) from the service. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
public static edu.ucsb.adl.middleware.IdentifiersService createService(java.lang.String configurationFile)
throws InternalErrorException
IdentifiersService. If a service
already exists for the configuration file, the extant service's
reference count is incremented and it is returned instead.
configurationFile - The filename of a main middleware configuration file.
InternalErrorException - If the initialization of the service fails.
public java.util.Vector performIdentifiersService(javax.servlet.ServletRequest request,
java.lang.String collection)
throws MiddlewareException
request - The full request.collection - The collection name, e.g., "adl_catalog".
BadRequestException - If either of the arguments is invalid.
NoAuthorizationException - If the request is valid but not allowed.
InternalErrorException - If the request cannot otherwise be completed.
MiddlewareExceptionpublic void unloadCollection(java.lang.String collection)
collection - The name of the collection, e.g., "adl_catalog".public void destroy()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||