|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.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 CastorRegistryService
org.apache.turbine.services.InitializationException
public boolean getReplaceImportedEntries()
public java.util.Enumeration getNames()
CastorRegistryService
getNames
in interface RegistryService
getNames
in class CastorRegistryService
public java.util.List listDatabaseRegistries()
HybridRegistry
listDatabaseRegistries
in interface HybridRegistry
public java.util.List listFileRegistries()
HybridRegistry
listFileRegistries
in interface HybridRegistry
public Registry get(java.lang.String registryName)
CastorRegistryService
get
in interface RegistryService
get
in class CastorRegistryService
registryName
- the name of the registry to fetch
public RegistryEntry createEntry(java.lang.String registryName)
CastorRegistryService
createEntry
in interface RegistryService
createEntry
in class CastorRegistryService
registryName
- the name of the registry to use
public RegistryEntry getEntry(java.lang.String registryName, java.lang.String entryName)
CastorRegistryService
Registry.getEntry(java.lang.String)
getEntry
in interface RegistryService
getEntry
in class CastorRegistryService
registryName
- 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
CastorRegistryService
Registry.addEntry(org.apache.jetspeed.om.registry.RegistryEntry)
addEntry
in interface RegistryService
addEntry
in class CastorRegistryService
registryName
- the name of the registryentry
- the Registry entry to add
RegistryException
public void removeEntry(java.lang.String registryName, java.lang.String entryName)
CastorRegistryService
Registry.removeEntry(org.apache.jetspeed.om.registry.RegistryEntry)
removeEntry
in interface RegistryService
removeEntry
in class CastorRegistryService
registryName
- the name of the registryentryName
- the name of the entry to removepublic void saveEntry(java.lang.String registryName, RegistryEntry entry) throws RegistryException
RegistryService
Registry.removeEntry(org.apache.jetspeed.om.registry.RegistryEntry)
saveEntry
in interface RegistryService
saveEntry
in class CastorRegistryService
RegistryException
org.apache.jetspeed.services.registry.RegistryService#saveEntry(java.lang.String, java.lang.String)
protected void refresh(java.lang.String regName)
CastorRegistryService
refresh
in class CastorRegistryService
regName
- the name of the Registry to refreshpublic void init() throws org.apache.turbine.services.InitializationException
init
in interface org.apache.turbine.services.Initable
init
in class CastorRegistryService
org.apache.turbine.services.InitializationException
public void shutdown()
Service
framework
shutdown
in interface org.apache.turbine.services.Initable
shutdown
in class CastorRegistryService
public void onMessage(javax.jms.Message message)
onMessage
in interface javax.jms.MessageListener
onMessage
in class CastorRegistryService
MessageListener.onMessage(javax.jms.Message)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |