|
© 2005 BEA Systems, Inc. | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.bea.p13n.content.adapter.BaseOps com.bea.p13n.content.adapter.ObjectClassOpsImpl
The object class ops for the WLP Content Repository-to-ContentManager adapter.
The uid of IDs of ObjectClasses from this will be the PropertySet name.
The uid of IDs of PropertyDefinition's from this will be the propertysetname/property name.
All adapter to DocumentManager ObjectClasses will have a primary content property called 'content' which refers to the result of calling getContentBlock() on the DocumentManager.
Field Summary |
Fields inherited from class com.bea.p13n.content.adapter.BaseOps |
CONTENT_MANAGER_HOME, credentials, PATH_IS_ID, PATH_STARTS_WITH_SLASH, pathIsId, pathStartsWithSlash, properties |
Constructor Summary | |
ObjectClassOpsImpl(Credentials credentials,
Properties properties)
|
Method Summary | |
ObjectClass |
convert(String reponame,
PropertySet ps)
Convert a PropertySet to an ObjectClass. |
static PropertyDefinition |
convert(String reponame,
String psName,
String propname,
PropertyDefinition pdef)
Convert a PropertySet PropertyDefinition to an ObjectClass PropertyDefinition. |
PropertyDefinition |
createContentPropertyDefinition(String reponame,
String psName)
Create the PropertyDefinition for the magic "content" property for DocumentManagers. |
ObjectClass |
createObjectClass(ObjectClass objectClass)
Creates the given ObjectClass. |
static PropertyChoice |
createPropertyChoice(ID id,
int type,
Object val)
Create a property choice from the given value. |
PropertyDefinition |
createPropertyDefinition(ID objectClassId,
PropertyDefinition propertyDefinition)
Adds the given propertyDefinition to the ObjectClass with the given objectClassId. |
ObjectClass |
createStandardObjectClass(String reponame)
Create an ObjectClass for the "Standard" adapter properties. |
void |
deleteObjectClass(ID objectClassId)
Deletes the ObjectClass with the given objectClassId. |
void |
deletePropertyDefinition(ID propertyDefinitionId)
Deletes the given propertyDefinition. |
ObjectClass |
getObjectClass(ID objectClassId)
Gets the ObjectClass with the given objectClassId. |
ObjectClass[] |
getObjectClasses()
Gets all of the ObjectClasses available in the content repository. |
InputStream |
getPropertyChoiceBytes(ID propertyChoiceId)
Gets the bytes for the given PropertyChoice. |
PropertyDefinition |
getPropertyDefinition(ID propertyDefinitionId)
Gets the PropertyDefinition for the given id. |
PropertyDefinition[] |
getPropertyDefinitions(ID objectClassId)
Gets all PropertyDefinitions for the given ObjectClass. |
PropertyDefinition[] |
getPropertyDefinitions(String reponame,
PropertySet ps)
Get the property definitions for a property set. |
PropertyDefinition[] |
getStandardPropertyDefinitions(String reponame)
Create the PropertyDefinitions for the "Standard" adapter properties. |
ObjectClass |
renameObjectClass(ID id,
String newName)
Renames the given ObjectClass. |
PropertyDefinition |
updatePropertyDefinition(PropertyDefinition propertyDefinition)
Updates the given propertyDefinition. |
Methods inherited from class com.bea.p13n.content.adapter.BaseOps |
getContentManager, unsupported |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ObjectClassOpsImpl(Credentials credentials, Properties properties)
Method Detail |
public ObjectClass convert(String reponame, PropertySet ps)
public static PropertyDefinition convert(String reponame, String psName, String propname, PropertyDefinition pdef)
public PropertyDefinition createContentPropertyDefinition(String reponame, String psName)
public ObjectClass createObjectClass(ObjectClass objectClass) throws RepositoryException
createObjectClass
in interface ObjectClassOps
objectClass
- - the ObjectClass to create, along with any PropertyDefinitions
to create also.
RepositoryException
- - if a system error occurs.public static PropertyChoice createPropertyChoice(ID id, int type, Object val)
id
- the property choice idtype
- the Property type constantval
- the value (non-null) from the old PropertySet
PropertyDefinition.
public PropertyDefinition createPropertyDefinition(ID objectClassId, PropertyDefinition propertyDefinition)
createPropertyDefinition
in interface ObjectClassOps
objectClassId
- - the id of the ObjectClass to add the PropertyDefinition to.propertyDefinition
- - the propertyDefinition to create and add to the ObjectClass.
public ObjectClass createStandardObjectClass(String reponame)
public void deleteObjectClass(ID objectClassId)
deleteObjectClass
in interface ObjectClassOps
objectClassId
- - the ID of the ObjectClass to delete.public void deletePropertyDefinition(ID propertyDefinitionId)
deletePropertyDefinition
in interface ObjectClassOps
propertyDefinitionId
- - the ID of the propertyDefinition to delete.public ObjectClass getObjectClass(ID objectClassId) throws NoSuchObjectClassException
getObjectClass
in interface ObjectClassOps
objectClassId
- - the ID of the ObjectClass to get.
NoSuchObjectClassException
- - if the ObjectClass to get does not exist.public ObjectClass[] getObjectClasses()
getObjectClasses
in interface ObjectClassOps
public InputStream getPropertyChoiceBytes(ID propertyChoiceId)
getPropertyChoiceBytes
in interface ObjectClassOps
propertyChoiceId
- - the ID of the propertyChoice to get the bytes for.
public PropertyDefinition getPropertyDefinition(ID propertyDefinitionId) throws NoSuchPropertyDefinitionException
ObjectClassOps
getPropertyDefinition
in interface ObjectClassOps
propertyDefinitionId
- - the ID the PropertyDefinition to get.
NoSuchPropertyDefinitionException
- - if the PropertyDefinition does not exist.public PropertyDefinition[] getPropertyDefinitions(ID objectClassId) throws NoSuchObjectClassException
getPropertyDefinitions
in interface ObjectClassOps
objectClassId
- - the ID for the ObjectClass to get its PropertyDefinitions.
NoSuchObjectClassException
- - if the ObjectClass does not exist.public PropertyDefinition[] getPropertyDefinitions(String reponame, PropertySet ps)
public PropertyDefinition[] getStandardPropertyDefinitions(String reponame)
public ObjectClass renameObjectClass(ID id, String newName) throws RepositoryException
renameObjectClass
in interface ObjectClassOps
id
- - the ID of the objectClass to rename.newName
- - the new name of the ObjectClass.
RepositoryException
- - if a system error occurs.public PropertyDefinition updatePropertyDefinition(PropertyDefinition propertyDefinition)
updatePropertyDefinition
in interface ObjectClassOps
propertyDefinition
- - the propertyDefinition to update.
|
© 2005 BEA Systems, Inc. | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |