public class CatalogComponentHelper
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.util.Map<java.lang.String,java.lang.Integer> | CALCODE_CODEID_TO_USAGEID_MAP
A map of calculation code usage ID strings to the usage identifier: DiscountCalculationCodeUniqueId:-1 ShippingCalculationCodeUniqueId:-2 SalesTaxCalculationCodeUniqueId:-3 ShippingTaxCalculationCodeUniqueId:-4 CouponCalculationCodeUniqueId:-5 SurchargeCalculationCodeUniqueId:-6 ShippingAdjustmentCalculationCodeUniqueId:-7
|
static java.util.List | CALCODE_ID_LIST
Array of supported calculation code usage unique ID strings: DiscountCalculationCodeUniqueId ShippingCalculationCodeUniqueId SalesTaxCalculationCodeUniqueId ShippingTaxCalculationCodeUniqueId CouponCalculationCodeUniqueId SurchargeCalculationCodeUniqueId ShippingAdjustmentCalculationCodeUniqueId
|
static java.util.List | CALCODE_NAME_LIST
Array of supported calculation code usage names: DiscountCalculationCode ShippingCalculationCode SalesTaxCalculationCode ShippingTaxCalculationCode CouponCalculationCode SurchargeCalculationCode ShippingAdjustmentCalculationCode
|
static java.util.Map<java.lang.Integer,java.lang.String> | CALCODE_USAGEID_TO_NAME_MAP
A map of calculation code usage identifiers (in CALUSAGE table) to the usage name: -1:DiscountCalculationCode -2:ShippingCalculationCode -3:SalesTaxCalculationCode -4:ShippingTaxCalculationCode -5:CouponCalculationCode -6:SurchargeCalculationCode -7:ShippingAdjustmentCalculationCode
|
static java.lang.String | DEFAULT_DEVICE_TYPE_ID
Default Device Type ID used to retrieve display template for Catalog Entry and Catalog Group details access profile from tables DISPENTREL and DISPCGPREL respectively.
|
static java.lang.Long | DEFAULT_MEMBER_ID
Default Member ID used to retrieve display template for Catalog Entry and Catalog Group details access profile from tables DISPENTREL and DISPCGPREL respectively.
|
static java.lang.String | STORE_TYPE_SCP
Store type for the Supplier Marketplace Hub store.
|
Modifier and Type | Method and Description |
---|---|
static java.lang.String | appendStringWithTimeStamp(java.lang.String astrString, int anMaxLengthOfString)
Append a timestamp to a string and return the new string.
|
static StoreIdentifierType | buildStoreIdentifier(StoreCatalogEntryRelation storeCatentryRel)
Builds the store identifier given the store catalog entry relation.
|
static StoreIdentifierType | buildStoreIdentifier(StoreCatalogGroupRelation storeCatgroupRel)
Builds the store identifier given the store catalog group relation.
|
static boolean | canResolveNoun(SelectionCriteria query)
Resolves a noun according to the selection criteria passed as SelectionCriteria object.
|
static java.lang.Long[] | checkCatalogGroupEntitlement(java.lang.Long[] catalogGroupIds, java.lang.Boolean isAdminMode)
This method whether the passed in array of catalog group internal identifiers is explicity included or excluded in regards to entitlement.
|
static boolean | checkCatalogGroupEntitlement(java.lang.String cmdName, java.lang.Long anCatalogGroupId)
Determines whether the passed in catalog group ID is explicity included or excluded in regards to entitlement.
|
static boolean | checkEntitlementForCatentry(java.lang.String cmdName, java.lang.Long catentryId)
This method checks if a catentry is entitled to the user or not.
|
static boolean | checkSEOEnabled()
Checks if SEO feature is enabled or not.
|
static CatalogEntryType | createCatalogEntryDataObject(CatalogEntryIdentifierType catEntryId)
This method creates an instance of CatalogEntryType object using the given catalog entry identifier.
|
static com.ibm.commerce.catalog.facade.server.entity.datatypes.Attr | findAttributeByAttrDictIDAndIdentifier(java.lang.String attrDictID, java.lang.String identifier)
This method is used to find and return a physical Attr object based on the passed attribute dictionary ID attrDictID and the attribute identifier identifier.
|
static com.ibm.commerce.catalog.facade.server.entity.datatypes.Attr | getAttributeDictionaryAttribute(java.lang.String attrId)
This method gets the physical attribute dictionary attribute record , given the attribute id
|
static PhysicalDataContainer | getAttributeDictionaryAttributeAllValueDescriptions(java.lang.String attrValId)
This method is used get the physical attribute value description objects in all languages AttributeValueDescription based on the passed parameters of attribute value id.
|
static PhysicalDataContainer | getAttributeDictionaryAttributeValueDescriptions(java.lang.String attrValId, java.lang.String languageId)
This method is used get the physical attribute value description objects AttributeValueDescription based on the passed parameters of attribute value id and language id.
|
static PhysicalDataContainer | getAttributeDictionaryAttributeValues(java.lang.String attributeID, java.util.List attributeValueIDs)
This method is used get the physical attribute value objects AttrVal based on the passed parameters of attribute ID and attributeValueIDs.
|
static java.lang.String | getAttributeDictionaryIdInCurrentStore()
This method gets attribute dictoinary id for current store
|
static java.util.List | getAttributeValues(java.lang.String aatrUniqueID)
Get the list of atribute values.
|
static CatalogContext | getCatalogContext()
This method gets the catalog context from the service context.
|
static PhysicalDataContainer | getCatalogEntryAttributeRelations(java.util.List catalogEntryIDs, java.util.List attributeIDs)
This method is used get the physical catalog entry attribute relation records CatalogEntryAttributeRelation based on the passed parameters of list of catalog entry IDs and attribute IDs.
|
static PhysicalDataContainer | getCatalogEntryAttributeRelations(java.lang.String catalogEntryID, java.lang.String attributeID)
This method is used get the physical catalog entry attribute relation.
|
static PhysicalDataContainer | getCatalogEntryAttributeRelationsForDifferentAttributeUsage(java.lang.String catalogEntryID, java.lang.String attributeID, java.lang.String usage)
This method is used get the physical catalog entry attribute relation of differet usage than the usage type provided.
|
static java.util.Map | getCatalogEntryUniqueIdsByPartNumbers(java.util.List partNumbers)
Find the catalog entry ids by given a list of part number and store path.
|
static java.lang.Long | getCatalogGroupId(CatalogGroupIdentifierType identifierType)
This method resolves the catalog group ID of the catalog group.
|
static java.lang.String | getCatalogGroupIdByIdentifierAndOwnerID(java.lang.String identifier, java.lang.String ownerID)
Gets the catalog group unique ID given the external identifier and owner ID.
|
static java.lang.String | getCatalogGroupIdentifier(java.lang.String uniqueId)
Get the external identifier of a catalog group according to its unique id.
|
static java.lang.Long | getCatalogId()
Gets the catalog ID from the catalog context.
|
static java.util.List | getCatalogIDsOfCatalogGroup(java.lang.String catalogGroupID)
This method returns the list of Catalog IDs which contains the catalog group whose UniqueId is passed in request.
|
static com.ibm.commerce.datatype.TransactionCachedMap | getCatalogNavigationTransactionCacheMap()
Get TransactionCacheMap for catalog navigation usage.
|
static java.lang.String | getCatalogOwnerId()
Gets the catalog owner ID.
|
static java.lang.Integer[] | getCatalogStorePath()
This method returns the store path ids which the current store has the 'com.ibm.commerce.catalog' store relationship type with.
|
static ChangeControlBusinessObjectMediator | getChangeControlMediator(java.lang.Object noun)
Returns the ChangeControlMediator after initializing it with the noun being passed.
|
static java.util.List<CatalogEntry> | getChildIDAndTypeOfCatalogEntry(java.lang.String catalogEntryID)
This method is used to return a list of CatalogEntry objects which only contains Catalog Entry ID and Type of the child SKUs catalog entry identified by the passed parameter of catalog entry ID.
|
static java.util.List | getChildSKUsOfCatalogEntry(java.lang.String catalogEntryID)
This method is used to return a list of CatalogEntry objects which are child SKUs of the catalog entry identified by the passed parameter of catalog entry ID.
|
static boolean | getCurrentCmcVersionIsFEP8orHigher()
This method returns if the CMC feature is currently at FEP8 or higher.
|
static java.lang.String | getDefaultCatalogId(java.lang.String storeId)
Returns the default catalogId for the store
|
static java.lang.String | getDefaultCurrency()
This method returns the default currency of the current store in context.
|
static java.lang.String | getDefaultLanguageId()
This method returns the default language id of the current store in context.
|
static java.util.Map<java.lang.Long,java.util.Map<java.lang.Long,java.util.List<java.lang.Long>>> | getEntitledCatalogEntryRelationMap(CatalogNavigationViewType catalogNavigationView)
Get entitled catalog entry ralations for CatalogNavigationViewType object.
|
static java.util.Vector[] | getExclusionPS(java.lang.String cmdName)
Gets the exclusion product set of contracts.
|
static java.lang.String | getIdentifierForStore(java.lang.Integer storeId)
Gets the identifier for the given store.
|
static java.util.Vector[] | getInclusionPS(java.lang.String cmdName)
Gets the inclusion product sets in the contracts applicable to the user.
|
protected static JDBCQueryService | getJDBCQueryService()
Gets the JDBC query service instance.
|
static java.lang.Integer | getLanguageId()
This method gets the language ID from the service context.
|
static java.lang.String | getMasterCatalogId()
Gets the master catalog ID of the store in context.
|
static java.lang.String | getOwnerId(CatalogEntryIdentifierType aCatalogEntryIdentifier)
Gets the owner id for the given Catalog Entry Identifier.
|
static java.lang.String | getOwnerId(CatalogEntryType aCatalogEntry)
Gets the owner id for the given Catalog Entry.
|
static java.lang.String | getOwnerId(CatalogGroupIdentifierType aCatalogGroupIdentifier)
Gets the owner id for the given Catalog Group Identifier.
|
static java.lang.String | getOwnerId(CatalogGroupType aCatalogGroup)
Gets the owner id for the given Catalog Group.
|
static java.lang.String | getOwnerId(CatalogIdentifierType aCatalogIdentifier)
Gets the owner id for the given Catalog Identifier.
|
static java.lang.String | getOwnerId(CatalogType aCatalog)
Gets the owner id for the given Catalog.
|
static java.lang.Long | getOwnerIdForAttribute(java.lang.String attrId)
Returns the owner id of the given attribute Id.
|
static java.lang.Long | getOwnerIdForAttributeDictionary(java.lang.String attrDictId)
Returns the owner id of the given attribute dictionary Id.
|
static java.lang.Long | getOwnerIdForAttributeGroup(java.lang.String attrGrpId)
Returns the owner id of the given attribute group Id.
|
static java.lang.String | getOwnerIdForCatalogId(java.lang.String catalogId)
Returns the owner id of the given catalog Id.
|
static java.lang.String | getOwnerIdForCatentryId(java.lang.String catalogEntryId)
Returns the owner id of the given catalog entry Id.
|
static java.lang.String | getOwnerIdForCatgroupId(java.lang.String catalogGroupId)
Returns the owner id of the given catalog group Id.
|
static java.lang.String | getOwnerIdForStore(java.lang.Integer storeId)
Gets the owner Id for the given store.
|
static java.lang.Integer | getOwnerStoreId(CatalogEntryIdentifierType catentryIdentifier)
Returns the store id for the given catalog entry identifier.
|
static java.lang.Integer | getOwnerStoreId(CatalogGroupIdentifierType catgroupIdentifier)
Returns the store id for the given catalog group identifier.
|
static long | getParentCatalogEntryID(CatalogEntryIdentifierType catIdentifier)
This method gets the parent catalog entry id , given the unique or catentry identifier is present in the input CatalogEntryIdentifierType.
|
static long | getParentCatalogGroupID(CatalogEntryIdentifierType catIdentifier)
This method gets the parent catalog group id , given the unique or catentry identifier is present in the input CatalogEntryIdentifierType.
|
static long | getParentCatalogGroupID(CatalogGroupIdentifierType catIdentifier)
This method gets the parent catalog group id , given the unique or catentry identifier is present in the input CatalogGroupIdentifierType.
|
static java.lang.String | getPartNumber(CatalogEntryType aCatEntry)
This method returns the part number of the given catalog entry.
|
static java.lang.String | getPartNumber(java.lang.String uniqueId)
Get the part number of a catalog entry according to its unique id.
|
static com.ibm.commerce.catalog.facade.server.entity.datatypes.Attr | getPhysicalAttributeDictionaryAttribute(PhysicalDataContainer aPhysicalDataContainer, com.ibm.commerce.catalog.facade.datatypes.AttributeDictionaryAttributeType aAttributeDictionaryAttribute)
Find the ATTR physical object in the given physical data container for the given logical attribute dictionary attribute noun.
|
static CatalogEntry | getPhysicalCatentryBasicProfile(CatalogEntryIdentifierType catIdentifier)
This method gets the physical catalog entry row , given the unique or catentry identifier is present in the input CatalogEntryIdentifierType.
|
static CatalogEntry | getPhysicalCatentryBasicProfile(java.lang.String catalogEntryID)
This method is used to find and return a physical CatalogEntry object based on the passed catalogEntryID parameter using the IBM_Admin_CatalogEntry_Basic_Id access profile.
|
static CatalogEntry | getPhysicalCatentrySummaryProfile(CatalogEntryIdentifierType catIdentifier)
This method gets the physical catalog entry type , given the unique or catentry identifier is present in the input CatalogEntryIdentifierType.
|
static CatalogGroup | getPhysicalCatgroup(CatalogGroupIdentifierType catgrpIdentifier)
This method gets the physical catalog group type , given the unique or catgroup identifier is present in the input CatalogGroupIdentifierType.
|
static java.util.List | getSelectIDs(java.lang.String queryName, java.util.Map paramMap, java.lang.String columnName)
Return a list of IDs from the select query.
|
static java.lang.Integer | getStoreId()
This method gets the store ID from the service context.
|
static java.lang.String | getStoreInventory()
This method returns inventory system of the current store in context.
|
static java.lang.String | getTruncatedString(java.lang.String astrValue, int anColumnSize)
Gets the truncated string based on the UTF-8 encoding and database column size.
|
static boolean | isAllowed(java.lang.String cmdName, java.lang.String action)
This method is used for access control for the command.
|
static boolean | isAttrDictAllowedValueForCatentryExist(java.lang.String attrId, java.lang.String attrValId)
Checks whether the Attribute Dictionary attribute allowed value is associated with a catalog entry.
|
static boolean | isAttributeDictionaryAttributeAllowedValueIdentifierExist(java.lang.String attrId, java.lang.String identifier)
Checks whether the AttributeDictionary attribute allowed value identifier exists.
|
static boolean | isAttributeDictionaryAttributeAllowedValueValid(java.lang.String attrId, java.lang.String attrValId)
Checks whether the AttributeDictionary attribute allowed value is valid
|
static boolean | isAttributeDictionaryAttributeDescriptionExist(java.lang.String attrId, java.lang.String languageId)
Checks whether the Attribute Dictionary attribute description exists for the combination of attrID and languageID.
|
static boolean | isAttributeDictionaryAttributeValueDescriptionExist(java.lang.String attrValId, java.lang.String languageId)
Checks whether the Attribute Dictionary attribute value description exists for the combination of atrValID and languageID.
|
static boolean | isAttributeDictionaryAttributeValueValid(java.lang.String attrValId)
Checks whether the AttributeDictionary attribute value is valid
|
static boolean | isAttributeValueUsedByOtherCatalogEntries(java.lang.String attrId, java.lang.String attrValId, java.lang.String catentryId)
Checks whether the attribute value is used by any catalog entries other than the specified catalog entry.
|
static boolean | isCatalogEntryIdValid(java.lang.String catentryId)
Checks whether the given catentry id is valid.
|
static boolean | isCatalogGroupEmpty(java.lang.String catalogGroupID)
Checks if the given catalog group id has any child catalog entries or child catalog groups.
|
static boolean | isCatalogGroupIdentifierAndOwnerValid(java.lang.String identifier, java.lang.String ownerID)
This method checks if the Catalog Group, whose Identifier and OwnerID is passed, is a valid Catalog Group i.e.
|
static boolean | isCatalogGroupRelationshipExist(java.lang.Long catalogId, java.lang.Long catalogGroupParentId, java.lang.Long catalogGroupChildId)
Checks if the specified catalog group relationship exists.
|
static boolean | isCatalogGroupToCatalogEntryRelationInCatalogValid(java.lang.String catgroupId, java.lang.String catentryId, java.lang.String catalogId)
Checks if the given catalog group is a parent of the given catalog entry in the given catalog.
|
static boolean | isCatalogGroupToCatalogRelValid(java.lang.String catGroupID, java.lang.String catalogID)
This method checks if the Catalog Group, whose UniqueID is passed, is a valid Catalog Group i.e.
|
static boolean | isCatalogGroupUniqueIdValid(java.lang.String uniqueID)
This method checks if the Catalog Group, whose UniqueID is passed, is a valid Catalog Group i.e.
|
static boolean | isCategoryTopCatalogGroup(java.lang.String catalogGroupID)
This method checks if a Catalog Group passed to this method is a Top Catalog Group.
|
static boolean | isCatentryPublished(java.lang.String cmdName, CatalogEntryDataBean catentryDataBean)
Checks if the catentry is published.
|
static boolean | isCatGroupPublished(java.lang.String cmdName, CategoryDataBean categoryDataBean)
Checks if a given catalog group is published or not.
|
static boolean | isEsiteStore(java.lang.Integer storeId, java.lang.Integer[] storePath)
Checks if the given store id is an esite store according to the given store path.
|
static boolean | isLanguageValid(java.lang.String language)
This method validates the language ID passed against the list of supported language ids in the currenct store.
|
static boolean | isMasterCatalog(java.lang.Long anCatalogReferenceNumber)
Checks if the catalog passed is the master catalog of the store in the context.
|
static boolean | isMasterCatalog(java.lang.String astrCatalogReferenceNumber, java.lang.String astrStoreId)
Checks if the catalog passed is the master catalog of the store.
|
static boolean | isRelatedStore(java.lang.Integer storeId, java.lang.Integer[] storePath)
Checks if the given store id is a related (asset) store according to the given store path.
|
static boolean | isSalesCatalog(java.lang.String strCatalogId)
Checks if the catalog is a sales catalog in current store path.
|
static boolean | isSalesCatalog(java.lang.String strCatalogId, java.lang.String strStoreId)
Checks if the catalog is a sales catalog.
|
static boolean | isValidCatalog(java.lang.String strCatalogId)
Checks if the catalog id is a valid catalog in current store.
|
static java.lang.Boolean | parseString(java.lang.String inputString)
Parses the input string.
|
static void | populatePhysicalAttributeValueExtendedValue(java.util.Map aExtendedValue, com.ibm.commerce.catalog.facade.server.entity.datatypes.AttrVal aPATTRVAL, com.ibm.commerce.catalog.facade.server.entity.datatypes.AttributeValueDescription aPATTRVALDESC)
Add the extended values in extended value map logical object to the AttributeValueDescription and AttrVal physical objects.
|
static boolean | resolveCatalogEntry(CatalogEntryType catalogEntryNoun)
Resolve the catalog entry by using the catalog entry identifier provided in the noun.
|
static java.lang.String | resolveCatalogGroupByExternalIdentifier(java.lang.String identifier, java.lang.String ownerId)
Resolves the catalog group by external identifier.
|
static boolean | validateAndResolveCatalogGroupExternalIdentifier(CatalogGroupIdentifierType cgIdentifier, java.util.List validationErrors)
Validates that the catalog group identified by the catalog group external identifier is a valid catalog group.
|
static void | validateAttributeValue(java.util.List validateErrors, java.lang.String attrDataType, java.lang.String attrValue)
Validates if the attribue value is valid for the given attibute type.
|
static boolean | validateCatalogGroupIdentifierInCatalog(CatalogGroupIdentifierType cgIdentifier, java.lang.String catalogId, java.util.List validationErrors)
Validate that the catalog group identified by the catalog group catalog group identifier exists in the given catalog.
|
static void | validateIfChannelHubStore(java.util.List validationErrors)
Validates if the store id in the context is a Hub Store.
|
static boolean | validateIfMasterCatalog(java.util.List aValidationErrors)
Validates whether the catalog in catalog context is a master catalog.
|
static boolean | validateIfSalesCatalog(java.util.List aValidationErrors)
Validates whether the catalog in catalog context is a sales catalog.
|
static void | validateInputForIntegerFields(java.lang.Object aNounPart)
Validate that the input specified is a valid number for the custom Integer fields.
|
static boolean | validateOwner(CatalogEntryType aCatEntry, java.util.List aValidateErrorsList)
This method validate the owner ID provided in the given catalog entry.
|
static boolean | validateOwner(CatalogGroupIdentifierType aCatGroupIdentifier, java.util.List aValidateErrorsList)
This method validate the owner ID provided in the given catalog group identifier.
|
static boolean | validateOwner(CatalogGroupType aCatGroup, java.util.List aValidateErrorsList)
This method validate the owner ID provided in the given catalog group.
|
static boolean | validateOwner(CatalogType aCatalog, java.util.List aValidateErrorsList)
This method validate the owner ID provided in the given catalog .
|
static boolean | validateParentCatalogGroup(CatalogGroupIdentifierType parentCatGroupIdentifier, java.lang.String childCatGroupID, java.lang.String catalogID, java.util.List validationErrors)
Validate the parent catalog group.
|
static boolean | validateParentCatalogGroupIdentifier(CatalogGroupIdentifierType parentCatGroupIdentifier, java.lang.String catalogID, java.util.List validationErrors)
Validate the parent catalog group identifier.
|
public static final java.util.Map<java.lang.Integer,java.lang.String> CALCODE_USAGEID_TO_NAME_MAP
public static final java.util.Map<java.lang.String,java.lang.Integer> CALCODE_CODEID_TO_USAGEID_MAP
public static final java.util.List CALCODE_ID_LIST
public static final java.util.List CALCODE_NAME_LIST
public static final java.lang.Long DEFAULT_MEMBER_ID
public static final java.lang.String STORE_TYPE_SCP
public static final java.lang.String DEFAULT_DEVICE_TYPE_ID
public static CatalogContext getCatalogContext() throws CatalogApplicationException
public static boolean isAllowed(java.lang.String cmdName, java.lang.String action) throws CatalogSystemException
public static java.lang.Integer getStoreId() throws CatalogApplicationException
public static java.lang.Integer getLanguageId() throws CatalogSystemException
public static java.lang.String getMasterCatalogId() throws java.lang.Exception
public static boolean isMasterCatalog(java.lang.String astrCatalogReferenceNumber, java.lang.String astrStoreId) throws java.lang.Exception
public static boolean isMasterCatalog(java.lang.Long anCatalogReferenceNumber) throws CatalogApplicationException
public static boolean checkEntitlementForCatentry(java.lang.String cmdName, java.lang.Long catentryId)
public static boolean isCatentryPublished(java.lang.String cmdName, CatalogEntryDataBean catentryDataBean)
public static boolean isCatGroupPublished(java.lang.String cmdName, CategoryDataBean categoryDataBean)
public static java.util.Vector[] getInclusionPS(java.lang.String cmdName)
public static java.util.Vector[] getExclusionPS(java.lang.String cmdName)
public static boolean checkCatalogGroupEntitlement(java.lang.String cmdName, java.lang.Long anCatalogGroupId)
public static java.lang.Long[] checkCatalogGroupEntitlement(java.lang.Long[] catalogGroupIds, java.lang.Boolean isAdminMode)
This method whether the passed in array of catalog group internal identifiers is explicity included or excluded in regards to entitlement.
The command CheckCatalogGroupEntitlementCmd will be used to determine the catalog group entitlement in a batch.public static java.lang.String getCatalogOwnerId() throws CatalogApplicationException
public static CatalogEntryType createCatalogEntryDataObject(CatalogEntryIdentifierType catEntryId)
public static java.lang.String getPartNumber(CatalogEntryType aCatEntry)
public static boolean validateOwner(CatalogEntryType aCatEntry, java.util.List aValidateErrorsList) throws CatalogApplicationException
public static boolean validateOwner(CatalogGroupType aCatGroup, java.util.List aValidateErrorsList) throws CatalogApplicationException
public static boolean validateOwner(CatalogGroupIdentifierType aCatGroupIdentifier, java.util.List aValidateErrorsList) throws CatalogApplicationException
public static boolean validateOwner(CatalogType aCatalog, java.util.List aValidateErrorsList) throws CatalogApplicationException
public static boolean validateIfMasterCatalog(java.util.List aValidationErrors)
public static boolean validateIfSalesCatalog(java.util.List aValidationErrors)
public static boolean isSalesCatalog(java.lang.String strCatalogId, java.lang.String strStoreId) throws DataMediatorException
public static boolean isSalesCatalog(java.lang.String strCatalogId) throws DataMediatorException
public static boolean isValidCatalog(java.lang.String strCatalogId) throws DataMediatorException
public static CatalogEntry getPhysicalCatentrySummaryProfile(CatalogEntryIdentifierType catIdentifier) throws CatalogApplicationException, DataMediatorException
public static CatalogEntry getPhysicalCatentryBasicProfile(java.lang.String catalogEntryID) throws DataMediatorException
public static CatalogEntry getPhysicalCatentryBasicProfile(CatalogEntryIdentifierType catIdentifier) throws CatalogApplicationException, DataMediatorException
public static CatalogGroup getPhysicalCatgroup(CatalogGroupIdentifierType catgrpIdentifier) throws CatalogApplicationException, DataMediatorException
public static java.lang.Long getCatalogGroupId(CatalogGroupIdentifierType identifierType) throws DataMediatorException
public static java.lang.Long getCatalogId() throws BusinessObjectMediatorException
public static boolean isCatalogGroupIdentifierAndOwnerValid(java.lang.String identifier, java.lang.String ownerID) throws CatalogApplicationException
public static boolean isCatalogGroupUniqueIdValid(java.lang.String uniqueID) throws CatalogApplicationException
public static java.lang.String getCatalogGroupIdByIdentifierAndOwnerID(java.lang.String identifier, java.lang.String ownerID) throws DataMediatorException
public static boolean isCategoryTopCatalogGroup(java.lang.String catalogGroupID)
public static boolean isLanguageValid(java.lang.String language)
public static boolean isCatalogGroupToCatalogRelValid(java.lang.String catGroupID, java.lang.String catalogID) throws CatalogApplicationException
public static java.lang.String resolveCatalogGroupByExternalIdentifier(java.lang.String identifier, java.lang.String ownerId) throws DataMediatorException
public static boolean validateAndResolveCatalogGroupExternalIdentifier(CatalogGroupIdentifierType cgIdentifier, java.util.List validationErrors) throws DataMediatorException, CatalogApplicationException
public static boolean validateCatalogGroupIdentifierInCatalog(CatalogGroupIdentifierType cgIdentifier, java.lang.String catalogId, java.util.List validationErrors) throws DataMediatorException, CatalogApplicationException
public static boolean validateParentCatalogGroupIdentifier(CatalogGroupIdentifierType parentCatGroupIdentifier, java.lang.String catalogID, java.util.List validationErrors) throws DataMediatorException, CatalogApplicationException
public static boolean validateParentCatalogGroup(CatalogGroupIdentifierType parentCatGroupIdentifier, java.lang.String childCatGroupID, java.lang.String catalogID, java.util.List validationErrors) throws DataMediatorException, CatalogApplicationException
public static java.lang.String getDefaultCurrency()
public static java.lang.String getDefaultLanguageId()
public static java.lang.String getStoreInventory()
public static java.util.List getCatalogIDsOfCatalogGroup(java.lang.String catalogGroupID) throws CatalogApplicationException
public static java.util.List getAttributeValues(java.lang.String aatrUniqueID) throws DataMediatorException
public static java.lang.String getAttributeDictionaryIdInCurrentStore() throws DataMediatorException
public static PhysicalDataContainer getAttributeDictionaryAttributeValues(java.lang.String attributeID, java.util.List attributeValueIDs) throws DataMediatorException
public static PhysicalDataContainer getAttributeDictionaryAttributeValueDescriptions(java.lang.String attrValId, java.lang.String languageId) throws DataMediatorException
public static java.util.List getChildSKUsOfCatalogEntry(java.lang.String catalogEntryID) throws DataMediatorException
public static java.util.List<CatalogEntry> getChildIDAndTypeOfCatalogEntry(java.lang.String catalogEntryID) throws DataMediatorException
public static PhysicalDataContainer getCatalogEntryAttributeRelations(java.util.List catalogEntryIDs, java.util.List attributeIDs) throws DataMediatorException
public static PhysicalDataContainer getCatalogEntryAttributeRelationsForDifferentAttributeUsage(java.lang.String catalogEntryID, java.lang.String attributeID, java.lang.String usage) throws DataMediatorException
public static PhysicalDataContainer getCatalogEntryAttributeRelations(java.lang.String catalogEntryID, java.lang.String attributeID) throws DataMediatorException
public static boolean isCatalogGroupToCatalogEntryRelationInCatalogValid(java.lang.String catgroupId, java.lang.String catentryId, java.lang.String catalogId) throws DataMediatorException
public static boolean isCatalogEntryIdValid(java.lang.String catentryId) throws DataMediatorException, CatalogApplicationException
public static java.lang.String getOwnerIdForStore(java.lang.Integer storeId) throws CatalogApplicationException
public static java.lang.String getIdentifierForStore(java.lang.Integer storeId) throws CatalogApplicationException
public static java.lang.String getOwnerId(CatalogType aCatalog) throws CatalogApplicationException
public static java.lang.String getOwnerId(CatalogIdentifierType aCatalogIdentifier) throws CatalogApplicationException
public static java.lang.String getOwnerId(CatalogGroupType aCatalogGroup) throws CatalogApplicationException
public static java.lang.String getOwnerId(CatalogGroupIdentifierType aCatalogGroupIdentifier) throws CatalogApplicationException
public static java.lang.String getOwnerId(CatalogEntryType aCatalogEntry) throws CatalogApplicationException
public static java.lang.String getOwnerId(CatalogEntryIdentifierType aCatalogEntryIdentifier) throws CatalogApplicationException
public static java.lang.Integer[] getCatalogStorePath() throws CatalogApplicationException
public static boolean isEsiteStore(java.lang.Integer storeId, java.lang.Integer[] storePath)
public static boolean isRelatedStore(java.lang.Integer storeId, java.lang.Integer[] storePath)
public static java.lang.Integer getOwnerStoreId(CatalogEntryIdentifierType catentryIdentifier) throws DataMediatorException
public static java.lang.Integer getOwnerStoreId(CatalogGroupIdentifierType catgroupIdentifier) throws DataMediatorException
public static StoreIdentifierType buildStoreIdentifier(StoreCatalogEntryRelation storeCatentryRel)
public static StoreIdentifierType buildStoreIdentifier(StoreCatalogGroupRelation storeCatgroupRel)
public static ChangeControlBusinessObjectMediator getChangeControlMediator(java.lang.Object noun) throws java.lang.Exception
public static long getParentCatalogGroupID(CatalogEntryIdentifierType catIdentifier) throws CatalogApplicationException, DataMediatorException
public static long getParentCatalogGroupID(CatalogGroupIdentifierType catIdentifier) throws CatalogApplicationException, DataMediatorException
public static long getParentCatalogEntryID(CatalogEntryIdentifierType catIdentifier) throws CatalogApplicationException, DataMediatorException
public static void validateIfChannelHubStore(java.util.List validationErrors) throws CatalogApplicationException
public static boolean isCatalogGroupEmpty(java.lang.String catalogGroupID) throws DataMediatorException
public static java.lang.String getOwnerIdForCatentryId(java.lang.String catalogEntryId) throws DataMediatorException
public static java.lang.Long getOwnerIdForAttributeDictionary(java.lang.String attrDictId) throws CatalogApplicationException, DataMediatorException
public static java.lang.Long getOwnerIdForAttribute(java.lang.String attrId) throws CatalogApplicationException, DataMediatorException
public static java.lang.Long getOwnerIdForAttributeGroup(java.lang.String attrGrpId) throws CatalogApplicationException, DataMediatorException
public static java.lang.String getOwnerIdForCatgroupId(java.lang.String catalogGroupId) throws DataMediatorException
public static java.lang.String getOwnerIdForCatalogId(java.lang.String catalogId) throws DataMediatorException
public static com.ibm.commerce.catalog.facade.server.entity.datatypes.Attr getAttributeDictionaryAttribute(java.lang.String attrId) throws DataMediatorException
public static com.ibm.commerce.catalog.facade.server.entity.datatypes.Attr findAttributeByAttrDictIDAndIdentifier(java.lang.String attrDictID, java.lang.String identifier) throws DataMediatorException
public static boolean isAttributeDictionaryAttributeValueValid(java.lang.String attrValId) throws DataMediatorException
public static boolean isAttributeDictionaryAttributeAllowedValueValid(java.lang.String attrId, java.lang.String attrValId) throws DataMediatorException
public static boolean isAttributeDictionaryAttributeValueDescriptionExist(java.lang.String attrValId, java.lang.String languageId) throws DataMediatorException
public static boolean isAttributeDictionaryAttributeAllowedValueIdentifierExist(java.lang.String attrId, java.lang.String identifier) throws DataMediatorException
public static void populatePhysicalAttributeValueExtendedValue(java.util.Map aExtendedValue, com.ibm.commerce.catalog.facade.server.entity.datatypes.AttrVal aPATTRVAL, com.ibm.commerce.catalog.facade.server.entity.datatypes.AttributeValueDescription aPATTRVALDESC)
public static void validateInputForIntegerFields(java.lang.Object aNounPart) throws DataMediatorException
public static java.lang.Boolean parseString(java.lang.String inputString) throws DataMediatorException
public static java.util.List getSelectIDs(java.lang.String queryName, java.util.Map paramMap, java.lang.String columnName)
public static java.lang.String appendStringWithTimeStamp(java.lang.String astrString, int anMaxLengthOfString)
public static boolean isCatalogGroupRelationshipExist(java.lang.Long catalogId, java.lang.Long catalogGroupParentId, java.lang.Long catalogGroupChildId)
protected static JDBCQueryService getJDBCQueryService()
public static boolean canResolveNoun(SelectionCriteria query) throws DataMediatorException
public static boolean resolveCatalogEntry(CatalogEntryType catalogEntryNoun) throws java.lang.Exception
public static java.util.Map getCatalogEntryUniqueIdsByPartNumbers(java.util.List partNumbers)
public static java.lang.String getPartNumber(java.lang.String uniqueId)
public static java.lang.String getCatalogGroupIdentifier(java.lang.String uniqueId)
public static com.ibm.commerce.catalog.facade.server.entity.datatypes.Attr getPhysicalAttributeDictionaryAttribute(PhysicalDataContainer aPhysicalDataContainer, com.ibm.commerce.catalog.facade.datatypes.AttributeDictionaryAttributeType aAttributeDictionaryAttribute)
public static boolean isAttrDictAllowedValueForCatentryExist(java.lang.String attrId, java.lang.String attrValId) throws DataMediatorException
public static boolean isAttributeDictionaryAttributeDescriptionExist(java.lang.String attrId, java.lang.String languageId) throws DataMediatorException
public static java.lang.String getTruncatedString(java.lang.String astrValue, int anColumnSize)
public static void validateAttributeValue(java.util.List validateErrors, java.lang.String attrDataType, java.lang.String attrValue)
public static java.util.Map<java.lang.Long,java.util.Map<java.lang.Long,java.util.List<java.lang.Long>>> getEntitledCatalogEntryRelationMap(CatalogNavigationViewType catalogNavigationView) throws DataMediatorException, ECException
The structure of the relations map should be one of the followings.
public static com.ibm.commerce.datatype.TransactionCachedMap getCatalogNavigationTransactionCacheMap()
public static boolean checkSEOEnabled()
public static java.lang.String getDefaultCatalogId(java.lang.String storeId) throws java.lang.Exception
public static boolean isAttributeValueUsedByOtherCatalogEntries(java.lang.String attrId, java.lang.String attrValId, java.lang.String catentryId) throws QueryServiceApplicationException
public static PhysicalDataContainer getAttributeDictionaryAttributeAllValueDescriptions(java.lang.String attrValId) throws DataMediatorException
public static boolean getCurrentCmcVersionIsFEP8orHigher()