|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.exoplatform.services.wsrp2.consumer.impl.ProducerRegistryImpl
public class ProducerRegistryImpl
| Field Summary | |
|---|---|
protected org.exoplatform.container.ExoContainer |
cont
|
| Constructor Summary | |
|---|---|
ProducerRegistryImpl(org.exoplatform.container.ExoContainerContext ctx,
org.exoplatform.services.database.HibernateService dbService)
|
|
| Method Summary | |
|---|---|
void |
addProducer(Producer producer)
Add a producer to the registry |
Producer |
createProducerInstance()
Create a new producer instance according to the implementation |
boolean |
existsProducer(String id)
Check if a producer with the given ID exists in the registry. |
Iterator<Producer> |
getAllProducers()
Get all producer in the registry |
long |
getLastModifiedTime()
Get the last time that a producer is added or removed |
Producer |
getProducer(String id)
Get the producer for the given URL |
WSRP2ProducerData |
load(String id)
|
WSRP2ProducerData |
load(String id,
org.hibernate.Session session)
|
Collection<WSRP2ProducerData> |
loadAll()
|
void |
remove(String id)
|
void |
removeAll()
|
void |
removeAllProducers()
Remove all producer objects from the registry |
Producer |
removeProducer(String id)
Remove the producer with the given ID from the registry |
void |
save(Producer p)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected org.exoplatform.container.ExoContainer cont
| Constructor Detail |
|---|
public ProducerRegistryImpl(org.exoplatform.container.ExoContainerContext ctx,
org.exoplatform.services.database.HibernateService dbService)
throws org.exoplatform.container.configuration.ConfigurationException
org.exoplatform.container.configuration.ConfigurationException| Method Detail |
|---|
public void addProducer(Producer producer)
ProducerRegistry
addProducer in interface ProducerRegistryproducer - The producer to addpublic Producer getProducer(String id)
ProducerRegistry
getProducer in interface ProducerRegistryid - The ID of the producer
public Iterator<Producer> getAllProducers()
ProducerRegistry
getAllProducers in interface ProducerRegistrypublic Producer removeProducer(String id)
ProducerRegistry
removeProducer in interface ProducerRegistryid - The ID of the producer
public void removeAllProducers()
throws Exception
ProducerRegistry
removeAllProducers in interface ProducerRegistryExceptionpublic boolean existsProducer(String id)
ProducerRegistry
existsProducer in interface ProducerRegistryid - The ID of the producer
public Producer createProducerInstance()
ProducerRegistry
createProducerInstance in interface ProducerRegistrypublic long getLastModifiedTime()
ProducerRegistry
getLastModifiedTime in interface ProducerRegistry
public final void save(Producer p)
throws Exception
Exception
public final Collection<WSRP2ProducerData> loadAll()
throws Exception
Exception
public final WSRP2ProducerData load(String id)
throws Exception
Exception
public final WSRP2ProducerData load(String id,
org.hibernate.Session session)
throws Exception
Exception
public final void remove(String id)
throws Exception
Exception
public final void removeAll()
throws Exception
Exception
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||