|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.apache.jetspeed.om.registry.base.BaseRegistry
org.apache.jetspeed.om.registry.base.BasePortletRegistry
Provides base functionality within a Portlet Registry.
To avoid loops, a RegistryService implementation using this class nees to call the addLocalEntry/removeLocalEntry methods to modify the in memory state of this Registry
| Field Summary |
| Fields inherited from class org.apache.jetspeed.om.registry.base.BaseRegistry |
DEBUG, entries |
| Constructor Summary | |
BasePortletRegistry()
|
|
| Method Summary | |
void |
addEntry(RegistryEntry entry)
Add the given entry to the registry with the given name. |
void |
addLocalEntry(RegistryEntry entry)
This method is used to only add the entry in the local memory cache of the registry without any coherency check with persistent storage |
RegistryEntry |
createEntry()
Creates a new RegistryEntry instance compatible with the current Registry instance implementation |
java.util.Iterator |
findPortletsByCategory(java.lang.String category)
|
java.util.Iterator |
findPortletsByGroupCategory(java.lang.String group,
java.lang.String category)
|
java.lang.String |
getCategoryKey(Category category)
|
java.util.Iterator |
listByCategory()
|
void |
removeEntry(RegistryEntry entry)
Removes the given entry from the Registry |
void |
removeEntry(java.lang.String name)
Removes the given entry from the Registry |
void |
removeLocalEntry(RegistryEntry entry)
This method is used to only remove the entry from the local memory cache of the registry without any coherency check with persistent storage |
void |
removeLocalEntry(java.lang.String name)
This method is used to only remove the entry from the local memory cache of the registry without any coherency check with persistent storage |
void |
setEntry(RegistryEntry entry)
Set the entry in the registry with the specified name and Entry |
void |
setLocalEntry(RegistryEntry entry)
This method is used to only set the entry in the local memory cache of the registry without any coherency check with persistent storage |
protected void |
setPortletEntry(PortletEntry entry)
|
| Methods inherited from class org.apache.jetspeed.om.registry.base.BaseRegistry |
getEntries, getEntry, getEntryCount, hasEntry, listEntryNames, toArray |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.apache.jetspeed.om.registry.Registry |
getEntries, getEntry, getEntryCount, hasEntry, listEntryNames, toArray |
| Constructor Detail |
public BasePortletRegistry()
| Method Detail |
public void setEntry(RegistryEntry entry)
throws InvalidEntryException
Registry
setEntry in interface RegistrysetEntry in class BaseRegistryInvalidEntryExceptionRegistry#setEntry
public void addEntry(RegistryEntry entry)
throws InvalidEntryException
Registry
addEntry in interface RegistryaddEntry in class BaseRegistryInvalidEntryExceptionRegistry.addEntry(java.lang.String, org.apache.jetspeed.om.registry.RegistryEntry)public void removeEntry(java.lang.String name)
Registry
removeEntry in interface RegistryremoveEntry in class BaseRegistryRegistry.removeEntry(java.lang.String, java.lang.String)public void removeEntry(RegistryEntry entry)
Registry
removeEntry in interface RegistryremoveEntry in class BaseRegistryRegistry.removeEntry(java.lang.String, java.lang.String)
protected void setPortletEntry(PortletEntry entry)
throws InvalidEntryException
InvalidEntryExceptionpublic java.lang.String getCategoryKey(Category category)
getCategoryKey in interface PortletRegistrypublic java.util.Iterator findPortletsByCategory(java.lang.String category)
findPortletsByCategory in interface PortletRegistry
public java.util.Iterator findPortletsByGroupCategory(java.lang.String group,
java.lang.String category)
findPortletsByGroupCategory in interface PortletRegistrypublic java.util.Iterator listByCategory()
listByCategory in interface PortletRegistrypublic RegistryEntry createEntry()
createEntry in interface RegistrycreateEntry in class BaseRegistry
public void setLocalEntry(RegistryEntry entry)
throws InvalidEntryException
BaseRegistry
setLocalEntry in interface LocalRegistrysetLocalEntry in class BaseRegistryentry - the RegistryEntry to store
InvalidEntryExceptionRegistry#setEntry
public void addLocalEntry(RegistryEntry entry)
throws InvalidEntryException
BaseRegistry
addLocalEntry in interface LocalRegistryaddLocalEntry in class BaseRegistryentry - the RegistryEntry to store
InvalidEntryExceptionRegistry.addEntry(java.lang.String, org.apache.jetspeed.om.registry.RegistryEntry)public void removeLocalEntry(java.lang.String name)
BaseRegistry
removeLocalEntry in interface LocalRegistryremoveLocalEntry in class BaseRegistryname - the name of the RegistryEntry to removeRegistry.removeEntry(java.lang.String, java.lang.String)public void removeLocalEntry(RegistryEntry entry)
BaseRegistry
removeLocalEntry in interface LocalRegistryremoveLocalEntry in class BaseRegistryentry - the RegistryEntry to removeRegistry.removeEntry(java.lang.String, java.lang.String)
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||