PropertySetRepositoryImpl Class

DEPRECATED

com.bea.p13n.content
PropertySetRepositoryImpl Class

public class PropertySetRepositoryImpl

    extends Object
    implements com.bea.p13n.property.PropertySetRepository

Property set repository which will aggregate PropertySets from multiple, referenced ContentManager.

This will look in the "java:comp/env/ejb/ContentManagers" JNDI branch (which should be coming from the PropertySetManager's deployment environment). If that is a Context, it will load up all children of the Context as ContentManager homes and return all of their PropertySets.


Hierarchy
Object
  PropertySetRepositoryImpl
All Implemented Interfaces

com.bea.p13n.property.PropertySetRepository

Constructor Summary

PropertySetRepositoryImpl()

Constructor.
 

Method Summary

public boolean
addPropertySet(String name, PropertySet ps)
Add a PropertySet to this repository.
public void
clear()
Clear this repository

This operation is not supported.

public PropertySet
getPropertySet(String name)
Get the named PropertySet.
public String[]
getPropertySetNames()
Get all the PropertySet names this contains.
public Map
getPropertySets()
Get all the PropertySets this contains.
public void
removePropertySet(String name)
Remove a PropertySet from this repository.
 
Methods from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
   
Methods from interface com.bea.p13n.property.com.bea.p13n.property.PropertySetRepository
addPropertySet, clear, getPropertySet, getPropertySetNames, getPropertySets, removePropertySet
 

Constructor Detail

PropertySetRepositoryImpl

public PropertySetRepositoryImpl()
Constructor.

This will initialize the set of ContentManagers to use from the current "java:comp/env/ejb/ContentManagers" JNDI context.

 

Method Detail

addPropertySet(String, PropertySet) Method

public boolean addPropertySet(String name, 
                              PropertySet ps)
throws UnsupportedOperationException
Add a PropertySet to this repository.

This operation is not supported.

Parameters

name
the name to associate with ths PropertySet
ps
the PropertySet object itself

Returns

true if the PropertySet was modified, false if it was created

Exceptions

UnsupportedOperationException
always.

clear() Method

public void clear()
throws UnsupportedOperationException
Clear this repository

This operation is not supported.

Exceptions

UnsupportedOperationException
always.

getPropertySet(String) Method

public PropertySet getPropertySet(String name)
Get the named PropertySet.

This will iterate over our ContentManager in reverse until we find one.

Parameters

name
the name of the PropertySet

Returns

the PropertySet object, or null if it is not found

Related Topics

ContentManager.getPropertySet(String)


getPropertySetNames() Method

public String[] getPropertySetNames()
Get all the PropertySet names this contains.

This will iterate over our ContentManagers, aggregating the results of each getPropertySetNames() call.

Returns

a String array of property set names, or null if none exist

Related Topics

ContentManager.getPropertySetNames()


getPropertySets() Method

public Map getPropertySets()
Get all the PropertySets this contains.

This will iterate over our ContentManagers, aggregating the results of each getPropertySets() call.

Returns

a Map of name/PropertySet pairs, or null if none exist

Related Topics

ContentManager.getPropertySets()


removePropertySet(String) Method

public void removePropertySet(String name)
throws UnsupportedOperationException
Remove a PropertySet from this repository.

This operation is not supported.

Parameters

name
the name of the PropertySet to remove

Exceptions

UnsupportedOperationException
always.