Oracle Content Management SDK

oracle.ifs.beans
Class PropertyBundleDefinition

java.lang.Object
  |
  +--oracle.ifs.beans.LibraryObjectDefinition
        |
        +--oracle.ifs.beans.PublicObjectDefinition
              |
              +--oracle.ifs.beans.ApplicationObjectDefinition
                    |
                    +--oracle.ifs.beans.PropertyBundleDefinition
Direct Known Subclasses:
PolicyPropertyBundleDefinition, ValueDefaultPropertyBundleDefinition, ValueDomainPropertyBundleDefinition

public class PropertyBundleDefinition
extends ApplicationObjectDefinition

A PropertyBundleDefinition class is used to create or update a PropertyBundle.

Most of the specifications can be set using the setAttribute() method inherited from LibraryObjectDefinition. Only the methods used to add Property objects to the new or updated PropertyBundle require methods specific to this class.

See Also:
LibraryObjectDefinition, PropertyBundle, PropertyDefinition

Constructor Summary
PropertyBundleDefinition(LibrarySession session)
          Constructs a PropertyBundleDefinition explicitly capturing the session.
 
Method Summary
 void addPropertyDefinition(PropertyDefinition def)
          Adds a Property to the new PropertyBundle.
 void addPropertyValue(AttributeValue av)
          Adds a Property Value to the new PropertyBundle.
 void addPropertyValue(java.lang.String name, AttributeValue av)
          Adds a Property Value to the new PropertyBundle.
 PropertyDefinition[] getPropertyDefinitions()
          Gets all PropertyDefinition in the PropertyBundleDefinition.
 void setPropertyDefinitions(PropertyDefinition[] defs)
          Sets an explicit set of PropertyDefinitions.
 
Methods inherited from class oracle.ifs.beans.PublicObjectDefinition
addCategoryDefinition, getAddToFolderOption, getCategoryDefinitions, getContentQuotaCopyOption, getExplicitCreateDate, getExplicitLastModifyDate, getFreeIfLastFolderReferenceOption, getKeepLastModifierOption, getKeepLastModifyDateOption, getLockForSessionOption, getSecuringPublicObject, getUnlockForSessionOption, setAddToFolderOption, setExplicitCreateDate, setExplicitLastModifyDate, setFreeIfLastFolderReferenceOption, setKeepLastModifierOption, setKeepLastModifyDateOption, setLockForSessionOption, setSecuringPublicObject, setUnlockForSessionOption
 
Methods inherited from class oracle.ifs.beans.LibraryObjectDefinition
clone, getAttribute, getAttributes, getClassObject, getOption, getOptionKeys, removeAttribute, removeOption, setAttribute, setAttribute, setAttributeByUpperCaseName, setAttributes, setClassObject, setOption
 

Constructor Detail


PropertyBundleDefinition

public PropertyBundleDefinition(LibrarySession session)
                         throws IfsException
Constructs a PropertyBundleDefinition explicitly capturing the session.
Parameters:
session - the session
Throws:
IfsException - if the operation fails
Method Detail

addPropertyValue

public void addPropertyValue(AttributeValue av)
                      throws IfsException
Adds a Property Value to the new PropertyBundle.

This results in the creation of a PropertyDefinition, which gets added to the list of Properties to create.

Equivalent to:

     PropertyDefinition pdef = new PropertyDefinition(session);
     pdef.setValue(av);
     addPropertyDefinition(pdef);
Parameters:
av - the AttributeValue representing the Property value
Throws:
IfsException - if the operation fails

addPropertyValue

public void addPropertyValue(java.lang.String name,
                             AttributeValue av)
                      throws IfsException
Adds a Property Value to the new PropertyBundle.

This results in the creation of a PropertyDefinition, which gets added to the list of Properties to create.

Equivalent to:

     PropertyDefinition pdef = new PropertyDefinition(session);
     pdef.setValue(av);
     pdef.setName(name);
     addPropertyDefinition(pdef);
Parameters:
name - the Property name
av - the Property value
Throws:
IfsException - if the operation fails

addPropertyDefinition

public final void addPropertyDefinition(PropertyDefinition def)
                                 throws IfsException
Adds a Property to the new PropertyBundle.
Parameters:
def - the PropertyDefinition of the new Property
Throws:
IfsException - if the operation fails

setPropertyDefinitions

public void setPropertyDefinitions(PropertyDefinition[] defs)
                            throws IfsException
Sets an explicit set of PropertyDefinitions. This will discard any previous settings specified via addPropertyDefinition() or setPropertyDefinition(). If a null or empty array is specified, this instance will then contain zero definitions.
Parameters:
defs - the new set of PropertyDefinitions
Throws:
IfsException - if the operation fails

getPropertyDefinitions

public PropertyDefinition[] getPropertyDefinitions()
                                            throws IfsException
Gets all PropertyDefinition in the PropertyBundleDefinition.
Returns:
array of PropertyDefinition
Throws:
IfsException - if the operation fails

Oracle Content Management SDK

(c) 2002 Copyright Oracle Corporation. All rights reserved.