|
© 2002 BEA Systems, Inc. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.beasys.commerce.ebusiness.catalog.MutableCatalogItemImpl
This is the mutable implementation class for all mutable items contained by the Catalog. This class exposes data accessors and mutators for item data conforming to the Dublin Core Metadata. Refer to the DCM spec for details: Dublin Core Element Set
MutableCatalogItem
, Serialized FormMethod Summary | |
void |
addBusinessPolicy(java.lang.String policyKey,
BusinessPolicy businessPolicy)
Add a new business policy to the object with the specified key |
void |
addPropertyValue(java.lang.String scopeName,
java.lang.String key,
java.lang.Object propertyValue)
Add the specified property value to the collection of values associated with the named key for the specified scope. |
void |
addPropertyValueMapped(java.lang.String scopeName,
java.lang.String propertyKey,
java.lang.String mappedKey,
java.lang.Object propertyValue)
Add the specified property value to the map object associated with the named key for the specified scope. |
protected void |
clearPropertyModifications()
Clears any changes to attributes that have been tracked for this object. |
BusinessPolicy |
getBusinessPolicy(java.lang.String policyKey)
Retrieve the business policy with the specified key. |
java.lang.String |
getContributor()
Get the contributor for this catalog item |
java.lang.String |
getCoverage()
Get the coverage for this catalog item |
java.util.Date |
getCreationDate()
Get the creation date for this catalog item |
java.lang.String |
getCreator()
Get the creator for this catalog item |
java.lang.String |
getDescription(int index)
Get the description for this catalog item |
ImageInfo |
getImage(int index)
Get an Image for this catalog item |
java.lang.String |
getJndiName()
Retrieve the jndi name for an entity. |
CatalogItemKey |
getKey()
Get the primary key for this catalog item |
java.lang.String |
getLanguage()
Get the language for this catalog item |
protected java.util.Map |
getModificationMap()
Returns the Map that can be used to query the changes made to attributes in this object. |
java.util.Date |
getModifiedDate()
Get the modified date for this catalog item |
java.lang.String |
getName()
Get the name for this catalog item |
java.lang.String |
getPkString()
Retrieve the pk string for an entity. |
java.util.Map |
getProperties()
|
java.util.Map |
getProperties(java.lang.String scopeName)
|
java.lang.Object |
getProperty(java.lang.String key,
java.lang.Object defaultValue)
Retrieve the value associated with the named key in the default scope. |
java.lang.Object |
getProperty(java.lang.String propertySet,
java.lang.String propertyName)
Retrieve the value that was persisted for this entity for the given property, within the given property set. |
java.lang.Object |
getProperty(java.lang.String scopeName,
java.lang.String key,
ConfigurableEntity successor,
java.lang.Object defaultValue)
Retrieve the value associated with the named key in the specified scope. |
java.lang.String |
getPropertyAsString(java.lang.String propertySet,
java.lang.String propertyName)
Convenience method to return a property as a String. |
java.lang.String |
getPropertyAsString(java.lang.String scopeName,
java.lang.String key,
ConfigurableEntity successor,
java.lang.String defaultValue)
Retrieve the String value of the property associated the named key in the specified scope. |
java.lang.Object |
getPropertyDefault(java.lang.String scopeName,
java.lang.String key,
ConfigurableEntity successor)
Retrieve the default value from the Schema for the named key and the specified scope. |
java.lang.Object |
getPropertyNoDefault(java.lang.String propertySet,
java.lang.String propertyName)
Retrieve the value associated with the named key in the specified property set, but does not return a default value from the property's PropertyDefinition if a value was not persisted for this entity. |
java.lang.Object |
getPropertyNoDefault(java.lang.String scopeName,
java.lang.String key,
ConfigurableEntity successor)
Retrieve the value associated with the named key in the specified scope but does not return a default value if the property does not exist for the entity of in the hierarchy of successors. |
java.lang.String |
getPublisher()
Get the publisher for this catalog item |
java.lang.String |
getRelation()
Get the relation for this catalog item |
java.lang.String |
getRights()
Get the rights for this catalog item |
java.lang.String |
getSource()
Get the source for this catalog item |
ConfigurableEntity |
getSuccessor(java.lang.String scopeName)
Retrieve the successor associated with this ConfigurableEntity for the specified scope. |
long |
getUniqueId()
Retrieve the unique identifier generated for this ConfigurableEntity. |
protected void |
initPropertyModifications()
Initialize change tracking. |
protected boolean |
isPropertyExplicit(java.lang.String fieldName)
|
protected boolean |
isPropertyModified(java.lang.String fieldName)
|
protected void |
modifyProperty(java.lang.String fieldName,
java.lang.Object value)
Mark an attribute as modified. |
BusinessPolicy |
removeBusinessPolicy(java.lang.String policyKey)
Remove the business policy with the specified key. |
void |
removeProperties()
Remove the property associated with the named key in the specified scope. |
java.lang.Object |
removeProperty(java.lang.String key)
Remove the property associated with the named key in the default scope. |
java.lang.Object |
removeProperty(java.lang.String propertySet,
java.lang.String propertyName)
Remove the property associated with the named key in the specified property set. |
java.lang.Object |
removePropertyValue(java.lang.String scopeName,
java.lang.String key,
java.lang.Object propertyValue)
Remove the property value object from the collection associated with the named key in the specified scope. |
java.lang.Object |
removePropertyValueMapped(java.lang.String scopeName,
java.lang.String propertyKey,
java.lang.String mappedKey)
Remove the property value object from the map associated with the named key in the specified scope. |
ConfigurableEntity |
removeSuccessor(java.lang.String scopeName)
Remove the successor for the specified scope. |
void |
setContributor(java.lang.String contributor)
Set the contributor for this catalog item |
void |
setCoverage(java.lang.String coverage)
Set the coverage for this catalog item |
void |
setCreationDate(java.util.Date date)
Set the creation date for this catalog item |
void |
setCreator(java.lang.String creator)
Set the creator for this catalog item |
void |
setDescription(int index,
java.lang.String description)
Set the description for this catalog item |
void |
setImage(int index,
ImageInfo imageInfo)
Set an Image for this catalog item |
void |
setLanguage(java.lang.String language)
Set the language for this catalog item |
void |
setModifiedDate(java.util.Date date)
Set the modified date for this catalog item |
void |
setName(java.lang.String name)
Set the name for this catalog item |
void |
setProperty(java.lang.String key,
java.lang.Object value)
Associate the specified value with the named key in the default scope. |
void |
setProperty(java.lang.String propertySet,
java.lang.String propertyName,
java.lang.Object value)
Associate the specified value with the named key in the specified property set. |
void |
setPublisher(java.lang.String publisher)
Set the publisher for this catalog item |
void |
setRelation(java.lang.String relation)
Set the relation for this catalog item |
void |
setRights(java.lang.String rights)
Set the rights for this catalog item |
void |
setSource(java.lang.String source)
Set the source for this catalog item |
void |
setSuccessor(java.lang.String scopeName,
ConfigurableEntity successor)
Set the successor for the specified scope. |
java.lang.String |
toString()
Builds a string representation of this object. |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
Method Detail |
public CatalogItemKey getKey()
public java.lang.String getName()
public void setName(java.lang.String name)
the
- new name for the itempublic java.lang.String getDescription(int index)
index
- the description to retrive, either CatalogItem.SHORT_DESCRIPTION_INDEX or CatalogItem.LONG_DESCRIPTION_INDEXpublic void setDescription(int index, java.lang.String description)
index
- the description to set, either CatalogItem.SHORT_DESCRIPTION_INDEX or CatalogItem.LONG_DESCRIPTION_INDEXdescription
- the new description for the itempublic java.lang.String getCreator()
public void setCreator(java.lang.String creator)
creator
- the new creator for the itempublic java.lang.String getPublisher()
public void setPublisher(java.lang.String publisher)
publisher
- the new publisher for the itempublic java.lang.String getContributor()
public void setContributor(java.lang.String contributor)
contributor
- the new contributor for the itempublic java.util.Date getCreationDate()
public void setCreationDate(java.util.Date date)
date
- the new creation date for the itempublic java.lang.String getSource()
public void setSource(java.lang.String source)
source
- the new source for the itempublic java.lang.String getLanguage()
public void setLanguage(java.lang.String language)
language
- the new language for the itempublic java.lang.String getRelation()
public void setRelation(java.lang.String relation)
relation
- the new relation for the itempublic java.lang.String getCoverage()
public void setCoverage(java.lang.String coverage)
coverage
- the new coverage for the itempublic java.lang.String getRights()
public void setRights(java.lang.String rights)
rights
- the new rights for the itempublic ImageInfo getImage(int index)
index
- the image to retrive, either SMALL_IMAGE_INDEX or LARGE_IMAGE_INDEXpublic void setImage(int index, ImageInfo imageInfo)
index
- the image to set, either SMALL_IMAGE_INDEX or LARGE_IMAGE_INDEXan
- ImageInfo object for the imagepublic java.util.Date getModifiedDate()
public void setModifiedDate(java.util.Date date)
the
- new modified date for the itempublic void addPropertyValue(java.lang.String scopeName, java.lang.String key, java.lang.Object propertyValue) throws SystemException, java.rmi.RemoteException
scopeName
- The name of the scope.key
- The name to associate the collection of values with.propertyValue
- The value to associate with the key and scope.public void addPropertyValueMapped(java.lang.String scopeName, java.lang.String propertyKey, java.lang.String mappedKey, java.lang.Object propertyValue) throws SystemException, java.rmi.RemoteException
scopeName
- The name of the scope.propertykey
- The name to associate the map object with.mappedkey
- The map key to associate the value in the map.propertyValue
- The value put in the map for the map key.public java.lang.Object getProperty(java.lang.String key, java.lang.Object defaultValue) throws SystemException, java.rmi.RemoteException
key
- The name of the property to retrieve.defaultValue
- The value to return if that property is
not set and there is not default value
found in the Schema.public java.lang.Object getProperty(java.lang.String scopeName, java.lang.String key, ConfigurableEntity successor, java.lang.Object defaultValue) throws SystemException, java.rmi.RemoteException
scopeName
- The name of the scope.key
- The name of the property to retrieve.successor
- The explicit successor to use for sucessor hiearchy
search if the entity does not have the property defined.defaultValue
- The value to return if that property is not set.public java.util.Map getProperties(java.lang.String scopeName) throws SystemException, java.rmi.RemoteException
scopeName
- The name of the scope.key
- The name of the property to retrieve.successor
- The explicit successor to use for sucessor hiearchy
search if the entity does not have the property defined.defaultValue
- The value to return if that property is not set.public java.util.Map getProperties() throws SystemException, java.rmi.RemoteException
scopeName
- The name of the scope.key
- The name of the property to retrieve.successor
- The explicit successor to use for sucessor hiearchy
search if the entity does not have the property defined.defaultValue
- The value to return if that property is not set.public java.lang.String getPropertyAsString(java.lang.String scopeName, java.lang.String key, ConfigurableEntity successor, java.lang.String defaultValue) throws SystemException, java.rmi.RemoteException
scopeName
- The name of the scope.key
- The name of the property to retrieve.successor
- The explicit successor to use for sucessor hiearchy
search if the entity does not have the property defined.defaultValue
- The String to return if that property is not set.com.beasys.commerce.foundation.ConfigurableEntity#getProperty(String scopeName, String key, ConfigurableEntity successor, Object defaultValue)
public java.lang.Object getPropertyDefault(java.lang.String scopeName, java.lang.String key, ConfigurableEntity successor) throws SystemException, java.rmi.RemoteException
scopeName
- The name of the scope.key
- The name of the property to retrieve.successor
- The explicit successor to use for sucessor hiearchy
search if the entity does not have the property defined.public java.lang.Object getPropertyNoDefault(java.lang.String scopeName, java.lang.String key, ConfigurableEntity successor) throws SystemException, java.rmi.RemoteException
scopeName
- The name of the scope.key
- The name of the property to retrieve.successor
- The explicit successor to use for sucessor hiearchy
search if the entity does not have the property defined.public ConfigurableEntity getSuccessor(java.lang.String scopeName) throws SystemException, java.rmi.RemoteException
scopeName
- The name of the scope.public java.lang.Object removeProperty(java.lang.String key) throws SystemException, java.rmi.RemoteException
key
- The name of the property to remove.public void removeProperties() throws SystemException, java.rmi.RemoteException
scopeName
- The name of the scope.key
- The name of the property to remove.public java.lang.Object removePropertyValue(java.lang.String scopeName, java.lang.String key, java.lang.Object propertyValue) throws SystemException, java.rmi.RemoteException
scopeName
- The name of the scope.key
- The name of the property that is associated
with the collection of values.propertyValue
- The object to remove from the collection.public java.lang.Object removePropertyValueMapped(java.lang.String scopeName, java.lang.String propertyKey, java.lang.String mappedKey) throws SystemException, java.rmi.RemoteException
scopeName
- The name of the scope.propertykey
- The name of the property that is associated
with the map.propertyValue
- The map key of the object to remove from the map.public ConfigurableEntity removeSuccessor(java.lang.String scopeName) throws java.rmi.RemoteException
scopeName
- The name of the scope.public void setProperty(java.lang.String key, java.lang.Object value) throws SystemException, java.rmi.RemoteException
name
- The name to associate the value with.value
- The value to associate with the name.public void setSuccessor(java.lang.String scopeName, ConfigurableEntity successor) throws SystemException, java.rmi.RemoteException
scopeName
- The name of the scope.successor
- The scope-level successor used during the
search of a property.public void addBusinessPolicy(java.lang.String policyKey, BusinessPolicy businessPolicy) throws SystemException, java.rmi.RemoteException
public BusinessPolicy getBusinessPolicy(java.lang.String policyKey) throws SystemException, java.rmi.RemoteException
public BusinessPolicy removeBusinessPolicy(java.lang.String policyKey) throws SystemException, java.rmi.RemoteException
public java.lang.Object getProperty(java.lang.String propertySet, java.lang.String propertyName) throws java.rmi.RemoteException
propertySet
- The name of the property set to look inpropertyName
- The name of the property to retrieve.public java.lang.String getPropertyAsString(java.lang.String propertySet, java.lang.String propertyName) throws java.rmi.RemoteException
propertySet
- The name of the property set to look inpropertyName
- The name of the property to retrieve.public java.lang.Object getPropertyNoDefault(java.lang.String propertySet, java.lang.String propertyName) throws java.rmi.RemoteException
propertySet
- The name of the property setpropertyName
- The name of the property to retrieve.public void setProperty(java.lang.String propertySet, java.lang.String propertyName, java.lang.Object value) throws PropertyValidationException, java.rmi.RemoteException
propertySet
- The name of the property set.propertyName
- The name of the property to assignvalue
- The value to associate with the property namepublic java.lang.Object removeProperty(java.lang.String propertySet, java.lang.String propertyName) throws java.rmi.RemoteException
NOTE: if an explicit setter method is found for this property, this method will set the value to null.
propertySet
- The name of the property set.propertyName
- The name of the property to remove.public long getUniqueId() throws java.rmi.RemoteException
public java.lang.String getPkString() throws java.rmi.RemoteException
public java.lang.String getJndiName() throws java.rmi.RemoteException
protected void clearPropertyModifications()
protected java.util.Map getModificationMap()
protected boolean isPropertyModified(java.lang.String fieldName)
protected boolean isPropertyExplicit(java.lang.String fieldName)
protected void initPropertyModifications()
protected void modifyProperty(java.lang.String fieldName, java.lang.Object value)
fieldName
- the name of the attrbutevalue
- the new value for the attributepublic java.lang.String toString()
|
© 2002 BEA Systems, Inc. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |