public class ReadCatalogEntryAttributesMediator extends AbstractReadBusinessObjectPartMediatorImpl
Modifier and Type | Field and Description |
---|---|
static java.lang.String | ATTRIBUTE_FACETABLE_PROPERTY_NO_MAX_VALUE
A constant representing a flag that will tell a facet to display all values or not.
|
static java.lang.String | ATTRIBUTE_FACETABLE_PROPERTY_NO_MAX_VALUE_FALSE
A constant representing a flag that will tell a facet to display all values or not.
|
static java.lang.String | ATTRIBUTE_FACETABLE_PROPERTY_NO_MAX_VALUE_TRUE
A constant representing a flag that will tell a facet to display all values or not.
|
Constructor and Description |
---|
ReadCatalogEntryAttributesMediator() |
Modifier and Type | Method and Description |
---|---|
protected void | buildAttributeAllowedValue(CatalogAttributeType catalogAttribute, java.util.List attrValDescs)
Populate the attribute allowable values portion of a catalog attribute from a physical object (ATTRDESC table).
|
protected void | buildAttributeDefinition(CatalogAttributeType catalogAttribute, com.ibm.commerce.catalog.facade.server.entity.datatypes.AttributeDescription pATTRDESC)
Populate the attribute property portion of a catalog attribute from a physical object (ATTRDESC table).
|
protected void | buildAttributeExtendedValue(java.util.Map extendedValue, com.ibm.commerce.catalog.facade.server.entity.datatypes.Attr pATTR)
Add the extended values in Attr physical object to the extended value map logical object.
|
protected void | buildAttributeExtendedValue(java.util.Map extendedValue, com.ibm.commerce.catalog.facade.server.entity.datatypes.AttributeValueDescription pATTRVALDESC)
Add the extended values in AttributeValueDescription physical object to the extended value map logical object.
|
protected void | buildAttributeExtendedValue(java.util.Map extendedValue, com.ibm.commerce.catalog.facade.server.entity.datatypes.AttrVal pATTRVAL)
Add the extended values in ATTRVAL physical object to the extended value map logical object.
|
protected void | buildAttributeExtendedValue(java.util.Map extendedValue, com.ibm.commerce.catalog.facade.server.entity.datatypes.CatalogEntryAttributeRelation pCATENTRYATTR)
Add the extended values in CatalogEntryAttributeRelation physical object to the extended value map logical object.
|
protected void | buildAttributeIdentifier(CatalogAttributeType catalogAttribute, com.ibm.commerce.catalog.facade.server.entity.datatypes.Attr pATTR)
Populate the attribute identifier for an attribute dictionary attribute (ATTR table) from Attr physical object.
|
protected void | buildAttributeIdentifier(CatalogAttributeType catalogAttribute, com.ibm.commerce.catalog.facade.server.entity.datatypes.AttrVal pATTRVAL)
Populate the attribute identifier for an attribute dictionary attribute (ATTR table) from AttrVal physical object.
|
protected void | buildAttributeValue(CatalogAttributeType catalogAttribute, com.ibm.commerce.catalog.facade.server.entity.datatypes.AttrVal pATTRVAL, com.ibm.commerce.catalog.facade.server.entity.datatypes.AttributeValueDescription pATTRVALDESC)
Populate the value portion of a catalog attribute from a physical object (ATTRVALDESC table).
|
protected void | buildAttributeValues(CatalogAttributeType catalogAttribute, com.ibm.commerce.catalog.facade.server.entity.datatypes.CatalogEntryAttributeRelation pCATENTRYATTR, com.ibm.commerce.catalog.facade.server.entity.datatypes.AttrVal pATTRVAL, com.ibm.commerce.catalog.facade.server.entity.datatypes.AttributeValueDescription pATTRVALDESC)
Populate the values portion of a catalog attribute from a physical object (ATTRVALDESC table).
|
protected CatalogAttributeType | buildCatalogAttributeFromAttribute(CatalogEntryAttributesType aCatalogEntryAttributes, Attribute pATTRIBUTE)
Create a logical CatalogEntryAttributeType object from a physical Attribute object (ATTRIBUTE table) and add it to the CatalogEntryAttributesType noun part.It handles the ATTRVALUE records that have a foreign key to the catalog entry.
|
protected CatalogAttributeType | buildCatalogAttributeFromAttributeValue(CatalogEntryAttributesType aCatalogEntryAttributes, AttributeValue pATTRVALUE)
Create a logical CatalogEntryAttributeType object (classic attribute) from a physical AttributeValue object (ATTRVALUE table) and add it to the CatalogEntryAttributesType noun part.It handles the ATTRVALUE records that have a foreign key to the catalog entry.
|
protected void | buildCatalogAttributeFromCalCode(CatalogEntryAttributesType aCatalogEntryAttributes, CatalogEntryCalculationCode pCATENCALCD)
For the specified catalog group calculation code association, adds the calculation code information to the catalog entry attributes.
|
protected CatalogAttributeType | buildCatalogAttributeFromCatalogEntryAttributeRelation(CatalogEntryAttributesType aCatalogEntryAttributes, com.ibm.commerce.catalog.facade.server.entity.datatypes.CatalogEntryAttributeRelation pCATENTRYATTR)
Create a logical CatalogEntryAttributeType (attribute dictionary attribute) object from a physical CatalogEntryAttributeRelation object (CATENTRYATTR table) and add it to the CatalogEntryAttributesType noun part.
|
protected void | buildCatalogEntryAttributes(CatalogEntry aCatalogEntryPhysicalEntity, CatalogEntryAttributesType aCatalogEntryAttributes)
Mediate the attributes from the physical model to the logical model.
|
protected void | buildClassicAttributeAllowedValues(CatalogAttributeType catalogAttribute, Attribute pATTRIBUTE)
Populate the attribute allowable values portion of a catalog attribute from a classic physical object (ATTRIBUTE table).
|
protected void | buildClassicAttributeExtendedValue(java.util.Map extendedValue, AttributeValue pATTRVALUE)
Add the extended values in classic AttributeValue physical object to the extended value map logical object.
|
protected void | buildClassicAttributeIdentifier(CatalogAttributeType catalogAttribute, Attribute pATTRIBUTE)
Populate the attribute identifier for classic attribute(ATTRIBUTE table).
|
protected void | buildClassicAttributeValue(CatalogAttributeType catalogAttribute, AttributeValue pATTRVALUE)
Populate the value portion of a catalog attribute from a classic physical object (ATTRVALUE table).
|
void | buildNounPart(java.lang.Object aNoun, java.lang.Object aPhysicalEntity)
Build the /CatalogEntry/CatalogEntryAttributes portion of the CatalogEntry noun, based on data contained in the result graph.
|
protected java.lang.String | convertToLogicalUsage(java.lang.String aUsage)
Converts an attribute usage value stored in to physical schema to an external attribute usage value in the logical schema.
|
protected CatalogAttributeType | createAttributeFromCatalogEntryAttributeRelation(com.ibm.commerce.catalog.facade.server.entity.datatypes.CatalogEntryAttributeRelation pCATENTRYATTR)
Create a CatalogAttributeType logical object from CatalogEntryAttributeRelation physical object.
|
protected CatalogAttributeType | createAttributeFromClassicAttribute(Attribute pATTRIBUTE)
Create a CatalogAttributeType logical object fromfrom the classic physical object (ATTRIBUTE table).
|
protected void | populateNameValuePairTypeAttribute(BusinessObjectAttributeMappingConfig aBusinessObjectAttributeMapping, CatalogEntryAttributesType aCatalogEntryAttributes, java.lang.Object apCATENTRY)
Populate the name/value pair style attributes of CATENTRY physical object (like buyable, state) as attributes under CatalogEntryAttributesType logical object, based on the mediator configuration
|
static void | setAttributeType(AttributePropertyType attribute, java.lang.Integer aAttrTypeId)
Set the attribute type in the attribute.
|
protected void | setAttributeType(CatalogAttributeType catalogAttribute, java.lang.String aAttrTypeId)
Set the attribute type in the attribute.
|
public static final java.lang.String ATTRIBUTE_FACETABLE_PROPERTY_NO_MAX_VALUE
public static final java.lang.String ATTRIBUTE_FACETABLE_PROPERTY_NO_MAX_VALUE_TRUE
public static final java.lang.String ATTRIBUTE_FACETABLE_PROPERTY_NO_MAX_VALUE_FALSE
public void buildNounPart(java.lang.Object aNoun, java.lang.Object aPhysicalEntity) throws BusinessObjectMediatorException
protected void populateNameValuePairTypeAttribute(BusinessObjectAttributeMappingConfig aBusinessObjectAttributeMapping, CatalogEntryAttributesType aCatalogEntryAttributes, java.lang.Object apCATENTRY) throws java.lang.Exception
protected CatalogAttributeType buildCatalogAttributeFromAttributeValue(CatalogEntryAttributesType aCatalogEntryAttributes, AttributeValue pATTRVALUE)
protected CatalogAttributeType buildCatalogAttributeFromAttribute(CatalogEntryAttributesType aCatalogEntryAttributes, Attribute pATTRIBUTE)
protected void buildCatalogAttributeFromCalCode(CatalogEntryAttributesType aCatalogEntryAttributes, CatalogEntryCalculationCode pCATENCALCD)
protected void buildCatalogEntryAttributes(CatalogEntry aCatalogEntryPhysicalEntity, CatalogEntryAttributesType aCatalogEntryAttributes)
protected void buildClassicAttributeValue(CatalogAttributeType catalogAttribute, AttributeValue pATTRVALUE)
protected void buildAttributeValue(CatalogAttributeType catalogAttribute, com.ibm.commerce.catalog.facade.server.entity.datatypes.AttrVal pATTRVAL, com.ibm.commerce.catalog.facade.server.entity.datatypes.AttributeValueDescription pATTRVALDESC)
protected void buildAttributeValues(CatalogAttributeType catalogAttribute, com.ibm.commerce.catalog.facade.server.entity.datatypes.CatalogEntryAttributeRelation pCATENTRYATTR, com.ibm.commerce.catalog.facade.server.entity.datatypes.AttrVal pATTRVAL, com.ibm.commerce.catalog.facade.server.entity.datatypes.AttributeValueDescription pATTRVALDESC)
protected void buildAttributeExtendedValue(java.util.Map extendedValue, com.ibm.commerce.catalog.facade.server.entity.datatypes.AttributeValueDescription pATTRVALDESC)
protected void buildClassicAttributeAllowedValues(CatalogAttributeType catalogAttribute, Attribute pATTRIBUTE)
protected void buildClassicAttributeExtendedValue(java.util.Map extendedValue, AttributeValue pATTRVALUE)
protected void buildAttributeAllowedValue(CatalogAttributeType catalogAttribute, java.util.List attrValDescs)
protected CatalogAttributeType createAttributeFromClassicAttribute(Attribute pATTRIBUTE)
protected void buildAttributeDefinition(CatalogAttributeType catalogAttribute, com.ibm.commerce.catalog.facade.server.entity.datatypes.AttributeDescription pATTRDESC)
protected CatalogAttributeType createAttributeFromCatalogEntryAttributeRelation(com.ibm.commerce.catalog.facade.server.entity.datatypes.CatalogEntryAttributeRelation pCATENTRYATTR)
protected CatalogAttributeType buildCatalogAttributeFromCatalogEntryAttributeRelation(CatalogEntryAttributesType aCatalogEntryAttributes, com.ibm.commerce.catalog.facade.server.entity.datatypes.CatalogEntryAttributeRelation pCATENTRYATTR)
protected java.lang.String convertToLogicalUsage(java.lang.String aUsage)
protected void buildAttributeIdentifier(CatalogAttributeType catalogAttribute, com.ibm.commerce.catalog.facade.server.entity.datatypes.Attr pATTR)
protected void buildAttributeExtendedValue(java.util.Map extendedValue, com.ibm.commerce.catalog.facade.server.entity.datatypes.Attr pATTR)
protected void buildAttributeExtendedValue(java.util.Map extendedValue, com.ibm.commerce.catalog.facade.server.entity.datatypes.CatalogEntryAttributeRelation pCATENTRYATTR)
protected void buildAttributeExtendedValue(java.util.Map extendedValue, com.ibm.commerce.catalog.facade.server.entity.datatypes.AttrVal pATTRVAL)
protected void buildAttributeIdentifier(CatalogAttributeType catalogAttribute, com.ibm.commerce.catalog.facade.server.entity.datatypes.AttrVal pATTRVAL)
protected void buildClassicAttributeIdentifier(CatalogAttributeType catalogAttribute, Attribute pATTRIBUTE)
protected void setAttributeType(CatalogAttributeType catalogAttribute, java.lang.String aAttrTypeId)
public static void setAttributeType(AttributePropertyType attribute, java.lang.Integer aAttrTypeId)