|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.apache.turbine.services.BaseInitable
org.apache.turbine.services.BaseService
org.apache.turbine.services.TurbineBaseService
org.apache.jetspeed.services.registry.CastorRegistryService
org.apache.jetspeed.services.registry.HybridRegistryService
Implements the Jetspeed Registry Service interface, with a hybrid of Database and File-based (Castor) Registry storage. Allows user to store some registries in the database, and others on the file system.
| Field Summary |
| Fields inherited from class org.apache.jetspeed.services.registry.CastorRegistryService |
DEFAULT_EXTENSION, DEFAULT_MAPPING, DEFAULT_REFRESH, defaults, directory, enableMessaging, entryIndex, extension, format, fragments, mapping, registries, watcher |
| Fields inherited from class org.apache.turbine.services.BaseService |
configuration, name, properties, serviceBroker |
| Fields inherited from class org.apache.turbine.services.BaseInitable |
initableBroker, isInitialized |
| Fields inherited from interface org.apache.jetspeed.services.registry.RegistryService |
SERVICE_NAME |
| Constructor Summary | |
HybridRegistryService()
|
|
| Method Summary | |
void |
addEntry(java.lang.String registryName,
RegistryEntry entry)
Add a new RegistryEntry in the named Registry. |
RegistryEntry |
createEntry(java.lang.String registryName)
Creates a new RegistryEntry instance compatible with the current Registry instance implementation |
Registry |
get(java.lang.String registryName)
Returns a Registry object for further manipulation |
RegistryEntry |
getEntry(java.lang.String registryName,
java.lang.String entryName)
Returns a RegistryEntry from the named Registry. |
java.util.Enumeration |
getNames()
List all the registry currently available to this service |
boolean |
getReplaceImportedEntries()
|
void |
init()
Late init method from Turbine Service model |
void |
init(javax.servlet.ServletConfig conf)
This is the early initialization method called by the Turbine Service framework |
java.util.List |
listDatabaseRegistries()
List of all registries managed in the database. |
java.util.List |
listFileRegistries()
List of all registries managed in the file system. |
void |
onMessage(javax.jms.Message message)
|
protected void |
refresh(java.lang.String regName)
Scan all the registry fragments for new entries relevant to this registry and update its definition. |
void |
removeEntry(java.lang.String registryName,
java.lang.String entryName)
Deletes a RegistryEntry from the named Registry This is a convenience wrapper around Registry.removeEntry(org.apache.jetspeed.om.registry.RegistryEntry) |
void |
saveEntry(java.lang.String registryName,
RegistryEntry entry)
Saves a RegistryEntry to the named Registry. |
void |
shutdown()
This is the shutdown method called by the Turbine Service framework |
| Methods inherited from class org.apache.jetspeed.services.registry.CastorRegistryService |
createFragment, createMessage, createRegistry, getFragmentMap, loadDatabaseManagedRegistries, loadFragment, refresh, removeFragment, saveFragment, updateFragment |
| Methods inherited from class org.apache.turbine.services.TurbineBaseService |
init, init |
| Methods inherited from class org.apache.turbine.services.BaseService |
getConfiguration, getName, getProperties, getServiceBroker, setName, setServiceBroker |
| Methods inherited from class org.apache.turbine.services.BaseInitable |
getInit, getInitableBroker, setInit, setInitableBroker |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.apache.turbine.services.Service |
getConfiguration, getName, getProperties, setName, setServiceBroker |
| Methods inherited from interface org.apache.turbine.services.Initable |
getInit, init, setInitableBroker |
| Constructor Detail |
public HybridRegistryService()
| Method Detail |
public void init(javax.servlet.ServletConfig conf)
throws org.apache.turbine.services.InitializationException
Service framework
init in class CastorRegistryServiceorg.apache.turbine.services.InitializationExceptionpublic boolean getReplaceImportedEntries()
public java.util.Enumeration getNames()
CastorRegistryService
getNames in interface RegistryServicegetNames in class CastorRegistryServicepublic java.util.List listDatabaseRegistries()
HybridRegistry
listDatabaseRegistries in interface HybridRegistrypublic java.util.List listFileRegistries()
HybridRegistry
listFileRegistries in interface HybridRegistrypublic Registry get(java.lang.String registryName)
CastorRegistryService
get in interface RegistryServiceget in class CastorRegistryServiceregistryName - the name of the registry to fetch
public RegistryEntry createEntry(java.lang.String registryName)
CastorRegistryService
createEntry in interface RegistryServicecreateEntry in class CastorRegistryServiceregistryName - the name of the registry to use
public RegistryEntry getEntry(java.lang.String registryName,
java.lang.String entryName)
CastorRegistryServiceRegistry.getEntry(java.lang.String)
getEntry in interface RegistryServicegetEntry in class CastorRegistryServiceregistryName - the name of the registryentryName - the name of the entry to retrieve from the
registry
public void addEntry(java.lang.String registryName,
RegistryEntry entry)
throws RegistryException
CastorRegistryServiceRegistry.addEntry(org.apache.jetspeed.om.registry.RegistryEntry)
addEntry in interface RegistryServiceaddEntry in class CastorRegistryServiceregistryName - the name of the registryentry - the Registry entry to add
RegistryException
public void removeEntry(java.lang.String registryName,
java.lang.String entryName)
CastorRegistryServiceRegistry.removeEntry(org.apache.jetspeed.om.registry.RegistryEntry)
removeEntry in interface RegistryServiceremoveEntry in class CastorRegistryServiceregistryName - the name of the registryentryName - the name of the entry to remove
public void saveEntry(java.lang.String registryName,
RegistryEntry entry)
throws RegistryException
RegistryServiceRegistry.removeEntry(org.apache.jetspeed.om.registry.RegistryEntry)
saveEntry in interface RegistryServicesaveEntry in class CastorRegistryServiceRegistryExceptionorg.apache.jetspeed.services.registry.RegistryService#saveEntry(java.lang.String, java.lang.String)protected void refresh(java.lang.String regName)
CastorRegistryService
refresh in class CastorRegistryServiceregName - the name of the Registry to refresh
public void init()
throws org.apache.turbine.services.InitializationException
init in interface org.apache.turbine.services.Initableinit in class CastorRegistryServiceorg.apache.turbine.services.InitializationExceptionpublic void shutdown()
Service framework
shutdown in interface org.apache.turbine.services.Initableshutdown in class CastorRegistryServicepublic void onMessage(javax.jms.Message message)
onMessage in interface javax.jms.MessageListeneronMessage in class CastorRegistryServiceMessageListener.onMessage(javax.jms.Message)
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||