public interface IDfDbor
Modifier and Type | Method and Description |
---|---|
IDfEnumeration |
getAll()
Get a list of all services (service based and type based) in DBOR.
|
java.lang.String |
lookupObject(java.lang.String name)
Look up a TBO in DBOR.
|
java.lang.String |
lookupService(java.lang.String name)
Gets the name of the class mapped to the service interface, if found.
|
void |
register(IDfDborEntry entry)
Adds either a "service" or a "type" entry to DBOR.
|
void |
unregister(java.lang.String name)
To remove a service method
unregisterService can be used. |
java.lang.String lookupService(java.lang.String name) throws DfDborNotFoundException, DfServiceNotFoundException
DfServiceCriticalException
runtime exception object
if it finds the specified entry name but it is a TBO instead of a service.name
- A String that represents the fully qualified interface name
for a service-based object.DfDborNotFoundException
- Cannot find the registryDfServiceNotFoundException
- Cannot find the service in the
registryjava.lang.String lookupObject(java.lang.String name) throws DfDborNotFoundException, DfServiceNotFoundException
name
- repository type nameDfDborNotFoundException
- Cannot find DBORDfServiceNotFoundException
- Cannot find service in DBORIDfEnumeration getAll() throws DfServiceException
IDfDborEntry
DfServiceException
void register(IDfDborEntry entry) throws DfServiceException
IDfDborEntry
object passed as an argument needs to be
initialized with four values, the "name", its type (true
for
an SBO, false
for a TBO), the fully qualified class name of
the implementing class, and its version.
IDfDbor dbor = m_client.getDbor(); // if not already registered... IDfDborEntry entry = new DfDborEntry(); entry.setName( strDocbaseTypeOrServiceInterfaceName ); entry.setServiceBased( bDborService ); // true for SBO, false for TBO String strJavaClass = AutoNumberType.class.getName(); entry.setJavaClass( strJavaClass ); entry.setVersion( strVersion ); // i.e. "1.0" dbor.register( entry );
NOTE: Entries cannot be overwritten. If an entry must be modified, unregister first and then register again.
Throws a DfServiceCriticalException
runtime exception object if:
MSG_DBOR_NOT_DEFINED
: There is something wrong with the registry.
MSG_SERVICE_EXISTS
: If the entry already exists.entry
- an IDfDborEntry
object.DfServiceException
- DM_VEL_DBOR_IO_ERROR
if an Internal error
with the registry is encountered.void unregister(java.lang.String name) throws DfServiceException
unregisterService
can be used.
IDfDbor dbor = m_client.getDbor(); dbor.register( strDocbaseTypeOrServiceInterfaceName );
Throws a DfServiceCriticalException
runtime exception object if:
MSG_DBOR_NOT_DEFINED
: There is something wrong with the registry.
MSG_SERVICE_DOES_NOT_EXISTS
: If the entry does not exist.
name
- - service nameDfServiceException
- DM_VEL_DBOR_IO_ERROR
: If there is a problem
accessing the registry,Copyright 1994-2023 OpenText Corporation. All rights reserved.