PropertySetRepositoryImpl Class

com.bea.content.manager.propertysets
PropertySetRepositoryImpl Class

public class PropertySetRepositoryImpl

    extends Object
    implements PropertySetRepository

This is PropertySetRepository implementation for the PropertySetManager which returns PropertySets for the ObjectClasses in a content repositories.


Hierarchy
Object
  PropertySetRepositoryImpl
All Implemented Interfaces

PropertySetRepository

Field Summary

public static final String
SEPERATOR
The constant for the objectclass, repository separator
public static final String
STANDARD_NAME
String
public static final PropertySet
stdPropertySet
PropertySet
 

Constructor Summary

PropertySetRepositoryImpl()

No argument Constructor.
 

Method Summary

public boolean
addPropertySet(String name, PropertySet ps)
Add a PropertySet to this repository.
public void
clear()
Clear this repository.
public PropertySet
convert(ObjectClass oc)
Convert an ObjectClass into a PropertySet.
public ObjectClass[]
getObjectClasses()
Connect to the repository manager and get the object classes.
public PropertySet
getPropertySet(String name)
Get the named PropertySet.
public String
getPropertySetName(ObjectClass oc)
Get the property set name for the object class.
public String[]
getPropertySetNames()
Return an string array of property set names of all the property sets in the content management system.
public Map
getPropertySets()
Get all the PropertySets available in the content management system.
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.PropertySetRepository
addPropertySet, clear, getPropertySet, getPropertySetNames, getPropertySets, removePropertySet
 

Field Detail

SEPERATOR

public static final String SEPERATOR
The constant for the objectclass, repository separator


STANDARD_NAME

public static final String STANDARD_NAME


stdPropertySet

public static final PropertySet stdPropertySet

 

Constructor Detail

PropertySetRepositoryImpl

public PropertySetRepositoryImpl()
No argument Constructor. In the future should take in user name and password for authentication. Currently it assumes that the username is in the Subject.

This will connect to the current repositories using the repository manager.

 

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.

convert(ObjectClass) Method

public PropertySet convert(ObjectClass oc)
throws RepositoryException
Convert an ObjectClass into a PropertySet.

Exceptions

RepositoryException

getObjectClasses() Method

public ObjectClass[] getObjectClasses()
throws RepositoryException
Connect to the repository manager and get the object classes.

If not repositories are configured, this will return an empty array.

Exceptions

RepositoryException

getPropertySet(String) Method

public PropertySet getPropertySet(String name)
Get the named PropertySet. The name should be prefixed by the repository name in the following syntax : "myRepository/MyPropSet". If you pass in just the property set name, it will return a null.

Parameters

name
The name of the property set to retrieve. Returns a null if it cannot find the named property set.

Returns

the PropertySet object, or null if it is not found

getPropertySetName(ObjectClass) Method

public String getPropertySetName(ObjectClass oc)
Get the property set name for the object class.

Object class property set names look like reponame/object-class-name.


getPropertySetNames() Method

public String[] getPropertySetNames()
Return an string array of property set names of all the property sets in the content management system. The property set names returned will be in the format : "repositoryName/propertySetName".

Returns

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

Related Topics

PropertySetRepository.getPropertySetNames()


getPropertySets() Method

public Map getPropertySets()
Get all the PropertySets available in the content management system.

Returns

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

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.