|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.jetspeed.om.registry.base.BaseRegistry org.apache.jetspeed.om.registry.base.BaseSecurityRegistry
Extends BaseRegistry implementation to override object creation method and ensure Registry object is synchronized with its persistence backend by delegating actual addition/deletion of objects to the registry service.
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 | |
BaseSecurityRegistry()
|
Method Summary | |
void |
addEntry(RegistryEntry entry)
Add the given entry to the registry with the given name. |
SecurityEntry |
cloneSecurityEntry(java.lang.String original,
java.lang.String newName)
Makes an exact copy of the named role, but changing the nmae attribute to the value of newName |
RegistryEntry |
createEntry()
Creates a new RegistryEntry instance compatible with the current Registry instance implementation |
SecurityEntry |
createSecurityEntry()
|
SecurityEntry |
getSecurityEntry(java.lang.String name)
returns a security entry from the registry based on the name provided |
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 |
setEntry(RegistryEntry entry)
Set the entry in the registry with the specified name and Entry |
Methods inherited from class org.apache.jetspeed.om.registry.base.BaseRegistry |
addLocalEntry, getEntries, getEntry, getEntryCount, hasEntry, listEntryNames, removeLocalEntry, removeLocalEntry, setLocalEntry, toArray |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public BaseSecurityRegistry()
Method Detail |
public void setEntry(RegistryEntry entry) throws InvalidEntryException
Registry
setEntry
in interface Registry
setEntry
in class BaseRegistry
InvalidEntryException
Registry#setEntry
public void addEntry(RegistryEntry entry) throws InvalidEntryException
Registry
addEntry
in interface Registry
addEntry
in class BaseRegistry
InvalidEntryException
Registry.addEntry(java.lang.String, org.apache.jetspeed.om.registry.RegistryEntry)
public void removeEntry(java.lang.String name)
Registry
removeEntry
in interface Registry
removeEntry
in class BaseRegistry
Registry.removeEntry(java.lang.String, java.lang.String)
public void removeEntry(RegistryEntry entry)
Registry
removeEntry
in interface Registry
removeEntry
in class BaseRegistry
Registry.removeEntry(java.lang.String, java.lang.String)
public RegistryEntry createEntry()
createEntry
in interface Registry
createEntry
in class BaseRegistry
public SecurityEntry getSecurityEntry(java.lang.String name)
name
argument or null if no such entry exists.public SecurityEntry createSecurityEntry()
public SecurityEntry cloneSecurityEntry(java.lang.String original, java.lang.String newName)
newName
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |