|
Copyright © 2006 BEA Systems, Inc. All Rights Reserved | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.beasys.commerce.ebusiness.catalog.MutableCatalogItemImpl
public class 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 Form| Field Summary |
|---|
| Fields inherited from interface com.beasys.commerce.ebusiness.catalog.CatalogItem |
|---|
LARGE_IMAGE_INDEX, LONG_DESCRIPTION_INDEX, MAX_DESCRIPTION, MAX_IMAGES, SHORT_DESCRIPTION_INDEX, SMALL_IMAGE_INDEX |
| Fields inherited from interface com.bea.p13n.property.ConfigurableEntity |
|---|
RESERVED_PROPERTY_SET |
| Method Summary | |
|---|---|
void |
addBusinessPolicy(String policyKey,
BusinessPolicy businessPolicy)
Add a new business policy to the object with the specified key |
void |
addPropertyValue(String scopeName,
String key,
Object propertyValue)
Add the specified property value to the collection of values associated with the named key for the specified scope. |
void |
addPropertyValueMapped(String scopeName,
String propertyKey,
String mappedKey,
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(String policyKey)
Retrieve the business policy with the specified key. |
String |
getContributor()
Get the contributor for this catalog item |
String |
getCoverage()
Get the coverage for this catalog item |
Date |
getCreationDate()
Get the creation date for this catalog item |
String |
getCreator()
Get the creator for this catalog item |
String |
getDescription(int index)
Get the description for this catalog item |
ImageInfo |
getImage(int index)
Get an Image for this catalog item |
String |
getJndiName()
Retrieve the jndi name for an entity. |
CatalogItemKey |
getKey()
Get the primary key for this catalog item |
String |
getLanguage()
Get the language for this catalog item |
protected Map |
getModificationMap()
Returns the Map that can be used to query the changes made to attributes in this object. |
Date |
getModifiedDate()
Get the modified date for this catalog item |
String |
getName()
Get the name for this catalog item |
String |
getPkString()
Retrieve the pk string for an entity. |
Map |
getProperties()
|
Map |
getProperties(String scopeName)
|
Object |
getProperty(String key,
Object defaultValue)
Retrieve the value associated with the named key in the default scope. |
Object |
getProperty(String propertySet,
String propertyName)
Retrieve the value that was persisted for this entity for the given property, within the given property set. |
Object |
getProperty(String scopeName,
String key,
ConfigurableEntity successor,
Object defaultValue)
Retrieve the value associated with the named key in the specified scope. |
String |
getPropertyAsString(String propertySet,
String propertyName)
Convenience method to return a property as a String. |
String |
getPropertyAsString(String scopeName,
String key,
ConfigurableEntity successor,
String defaultValue)
Retrieve the String value of the property associated the named key in the specified scope. |
Object |
getPropertyDefault(String scopeName,
String key,
ConfigurableEntity successor)
Retrieve the default value from the Schema for the named key and the specified scope. |
Object |
getPropertyNoDefault(String propertySet,
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. |
Object |
getPropertyNoDefault(String scopeName,
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. |
String |
getPublisher()
Get the publisher for this catalog item |
String |
getRelation()
Get the relation for this catalog item |
String |
getRights()
Get the rights for this catalog item |
String |
getSource()
Get the source for this catalog item |
ConfigurableEntity |
getSuccessor(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(String fieldName)
|
protected boolean |
isPropertyModified(String fieldName)
|
protected void |
modifyProperty(String fieldName,
Object value)
Mark an attribute as modified. |
BusinessPolicy |
removeBusinessPolicy(String policyKey)
Remove the business policy with the specified key. |
void |
removeProperties()
Remove the property associated with the named key in the specified scope. |
Object |
removeProperty(String key)
Remove the property associated with the named key in the default scope. |
Object |
removeProperty(String propertySet,
String propertyName)
Remove the property associated with the named key in the specified property set. |
Object |
removePropertyValue(String scopeName,
String key,
Object propertyValue)
Remove the property value object from the collection associated with the named key in the specified scope. |
Object |
removePropertyValueMapped(String scopeName,
String propertyKey,
String mappedKey)
Remove the property value object from the map associated with the named key in the specified scope. |
ConfigurableEntity |
removeSuccessor(String scopeName)
Remove the successor for the specified scope. |
void |
setContributor(String contributor)
Set the contributor for this catalog item |
void |
setCoverage(String coverage)
Set the coverage for this catalog item |
void |
setCreationDate(Date date)
Set the creation date for this catalog item |
void |
setCreator(String creator)
Set the creator for this catalog item |
void |
setDescription(int index,
String description)
Set the description for this catalog item |
void |
setImage(int index,
ImageInfo imageInfo)
Set an Image for this catalog item |
void |
setLanguage(String language)
Set the language for this catalog item |
void |
setModifiedDate(Date date)
Set the modified date for this catalog item |
void |
setName(String name)
Set the name for this catalog item |
void |
setProperty(String key,
Object value)
Associate the specified value with the named key in the default scope. |
void |
setProperty(String propertySet,
String propertyName,
Object value)
Associate the specified value with the named key in the specified property set. |
void |
setPublisher(String publisher)
Set the publisher for this catalog item |
void |
setRelation(String relation)
Set the relation for this catalog item |
void |
setRights(String rights)
Set the rights for this catalog item |
void |
setSource(String source)
Set the source for this catalog item |
void |
setSuccessor(String scopeName,
ConfigurableEntity successor)
Set the successor for the specified scope. |
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()
getKey in interface CatalogItemCatalogItemKeypublic String getName()
getName in interface CatalogItempublic void setName(String name)
setName in interface MutableCatalogItemthe - new name for the itempublic String getDescription(int index)
getDescription in interface CatalogItemindex - the description to retrive, either CatalogItem.SHORT_DESCRIPTION_INDEX or CatalogItem.LONG_DESCRIPTION_INDEX
public void setDescription(int index,
String description)
setDescription in interface MutableCatalogItemindex - the description to set, either CatalogItem.SHORT_DESCRIPTION_INDEX or CatalogItem.LONG_DESCRIPTION_INDEXdescription - the new description for the itempublic String getCreator()
getCreator in interface CatalogItempublic void setCreator(String creator)
setCreator in interface MutableCatalogItemcreator - the new creator for the itempublic String getPublisher()
getPublisher in interface CatalogItempublic void setPublisher(String publisher)
setPublisher in interface MutableCatalogItempublisher - the new publisher for the itempublic String getContributor()
getContributor in interface CatalogItempublic void setContributor(String contributor)
setContributor in interface MutableCatalogItemcontributor - the new contributor for the itempublic Date getCreationDate()
getCreationDate in interface CatalogItempublic void setCreationDate(Date date)
setCreationDate in interface MutableCatalogItemdate - the new creation date for the itempublic String getSource()
getSource in interface CatalogItempublic void setSource(String source)
setSource in interface MutableCatalogItemsource - the new source for the itempublic String getLanguage()
getLanguage in interface CatalogItempublic void setLanguage(String language)
setLanguage in interface MutableCatalogItemlanguage - the new language for the itempublic String getRelation()
getRelation in interface CatalogItempublic void setRelation(String relation)
setRelation in interface MutableCatalogItemrelation - the new relation for the itempublic String getCoverage()
getCoverage in interface CatalogItempublic void setCoverage(String coverage)
setCoverage in interface MutableCatalogItemcoverage - the new coverage for the itempublic String getRights()
getRights in interface CatalogItempublic void setRights(String rights)
setRights in interface MutableCatalogItemrights - the new rights for the itempublic ImageInfo getImage(int index)
getImage in interface CatalogItemindex - the image to retrive, either SMALL_IMAGE_INDEX or LARGE_IMAGE_INDEX
public void setImage(int index,
ImageInfo imageInfo)
setImage in interface MutableCatalogItemindex - the image to set, either SMALL_IMAGE_INDEX or LARGE_IMAGE_INDEXan - ImageInfo object for the imagepublic Date getModifiedDate()
getModifiedDate in interface CatalogItempublic void setModifiedDate(Date date)
setModifiedDate in interface MutableCatalogItemthe - new modified date for the item
public void addPropertyValue(String scopeName,
String key,
Object propertyValue)
throws SystemException,
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.
SystemException
RemoteException
public void addPropertyValueMapped(String scopeName,
String propertyKey,
String mappedKey,
Object propertyValue)
throws SystemException,
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.
SystemException
RemoteException
public Object getProperty(String key,
Object defaultValue)
throws SystemException,
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.
SystemException
RemoteException
public Object getProperty(String scopeName,
String key,
ConfigurableEntity successor,
Object defaultValue)
throws SystemException,
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.
SystemException
RemoteException
public Map getProperties(String scopeName)
throws SystemException,
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.
SystemException
RemoteException
public Map getProperties()
throws SystemException,
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.
SystemException
RemoteException
public String getPropertyAsString(String scopeName,
String key,
ConfigurableEntity successor,
String defaultValue)
throws SystemException,
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.
SystemException
RemoteExceptionConfigurableEntity.getProperty(java.lang.String, java.lang.String)
public Object getPropertyDefault(String scopeName,
String key,
ConfigurableEntity successor)
throws SystemException,
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.
SystemException
RemoteException
public Object getPropertyNoDefault(String scopeName,
String key,
ConfigurableEntity successor)
throws SystemException,
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.
SystemException
RemoteException
public ConfigurableEntity getSuccessor(String scopeName)
throws SystemException,
RemoteException
scopeName - The name of the scope.
SystemException
RemoteException
public Object removeProperty(String key)
throws SystemException,
RemoteException
key - The name of the property to remove.
SystemException
RemoteException
public void removeProperties()
throws SystemException,
RemoteException
scopeName - The name of the scope.key - The name of the property to remove.
SystemException
RemoteException
public Object removePropertyValue(String scopeName,
String key,
Object propertyValue)
throws SystemException,
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.
SystemException
RemoteException
public Object removePropertyValueMapped(String scopeName,
String propertyKey,
String mappedKey)
throws SystemException,
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.
SystemException
RemoteException
public ConfigurableEntity removeSuccessor(String scopeName)
throws RemoteException
scopeName - The name of the scope.
RemoteException
public void setProperty(String key,
Object value)
throws SystemException,
RemoteException
name - The name to associate the value with.value - The value to associate with the name.
SystemException
RemoteException
public void setSuccessor(String scopeName,
ConfigurableEntity successor)
throws SystemException,
RemoteException
scopeName - The name of the scope.successor - The scope-level successor used during the
search of a property.
SystemException
RemoteException
public void addBusinessPolicy(String policyKey,
BusinessPolicy businessPolicy)
throws SystemException,
RemoteException
SystemException
RemoteException
public BusinessPolicy getBusinessPolicy(String policyKey)
throws SystemException,
RemoteException
SystemException
RemoteException
public BusinessPolicy removeBusinessPolicy(String policyKey)
throws SystemException,
RemoteException
SystemException
RemoteException
public Object getProperty(String propertySet,
String propertyName)
throws RemoteException
getProperty in interface ConfigurableEntitypropertySet - The name of the property set to look inpropertyName - The name of the property to retrieve.
RemoteException
public String getPropertyAsString(String propertySet,
String propertyName)
throws RemoteException
getPropertyAsString in interface ConfigurableEntitypropertySet - The name of the property set to look inpropertyName - The name of the property to retrieve.
RemoteException
public Object getPropertyNoDefault(String propertySet,
String propertyName)
throws RemoteException
getPropertyNoDefault in interface ConfigurableEntitypropertySet - The name of the property setpropertyName - The name of the property to retrieve.
RemoteException
public void setProperty(String propertySet,
String propertyName,
Object value)
throws PropertyValidationException,
RemoteException
setProperty in interface ConfigurableEntitypropertySet - The name of the property set.propertyName - The name of the property to assignvalue - The value to associate with the property name
PropertyValidationException - If the property value does not match the PropertyDefinition for this property set
RemoteException
public Object removeProperty(String propertySet,
String propertyName)
throws RemoteException
NOTE: if an explicit setter method is found for this property, this method will set the value to null.
removeProperty in interface ConfigurableEntitypropertySet - The name of the property set.propertyName - The name of the property to remove.
RemoteException
public long getUniqueId()
throws RemoteException
getUniqueId in interface ConfigurableEntityRemoteException
public String getPkString()
throws RemoteException
getPkString in interface ConfigurableEntityRemoteException
public String getJndiName()
throws RemoteException
getJndiName in interface ConfigurableEntityRemoteExceptionprotected void clearPropertyModifications()
protected Map getModificationMap()
protected boolean isPropertyModified(String fieldName)
protected boolean isPropertyExplicit(String fieldName)
protected void initPropertyModifications()
protected void modifyProperty(String fieldName,
Object value)
fieldName - the name of the attrbutevalue - the new value for the attributepublic String toString()
toString in class Object
|
Copyright © 2006 BEA Systems, Inc. All Rights Reserved | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||