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<java.lang.String,java.util.List<java.lang.String>> |
getCatalogEntryAttributesByNames(java.lang.String catentryId,
java.lang.String languageId,
java.lang.String[] attributeNames)
Gets the attributes of a catalog entry according to sepcified attribute names.
|
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.
|
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.String |
getStoreDirectory(java.lang.Integer storeId)
Returns the store directory name of the given store.
|
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 |
useClassicAttribute()
Checks if classic attributes are used by all stores.
|
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
CatalogApplicationException
public static boolean isAllowed(java.lang.String cmdName, java.lang.String action) throws CatalogSystemException
cmdName
- the command name to used for access control.action
- the action to be performed on the command, eg "-READ", "EXECUTE" etc.CatalogSystemException
public static java.lang.Integer getStoreId() throws CatalogApplicationException
CatalogApplicationException,
- if the storeId could not be retrieved or returned null.CatalogApplicationException
public static java.lang.Integer getLanguageId() throws CatalogSystemException
CatalogSystemException
- , if the language ID could not be retrieved or returned null.public static java.lang.String getMasterCatalogId() throws java.lang.Exception
java.lang.Exception
public static boolean isMasterCatalog(java.lang.String astrCatalogReferenceNumber, java.lang.String astrStoreId) throws java.lang.Exception
astrCatalogReferenceNumber
- the catalog ID.astrStoreId
- the store ID.java.lang.Exception
public static boolean isMasterCatalog(java.lang.Long anCatalogReferenceNumber) throws CatalogApplicationException
anCatalogReferenceNumber
- the catalog ID.CatalogApplicationException
public static boolean checkEntitlementForCatentry(java.lang.String cmdName, java.lang.Long catentryId)
cmdName
- The command name used to get the command context.catentryId
- the catentry ID whose entitlement needs to be checked.public static boolean isCatentryPublished(java.lang.String cmdName, CatalogEntryDataBean catentryDataBean)
cmdName
- The command name used to get the command context.catentryDataBean
- The catentry data bean whose published state needs to be checked.public static boolean isCatGroupPublished(java.lang.String cmdName, CategoryDataBean categoryDataBean)
cmdName
- The command name used to get the command context.categoryDataBean
- The category whose published state neeeds to be checked.public static java.util.Vector[] getInclusionPS(java.lang.String cmdName)
cmdName
- The command name used to get the command context.public static java.util.Vector[] getExclusionPS(java.lang.String cmdName)
cmdName
- The command name used to get the command context.public static boolean checkCatalogGroupEntitlement(java.lang.String cmdName, java.lang.Long anCatalogGroupId)
cmdName
- The command name.anCatalogGroupId
- The ID of the catalog group.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 commandCheckCatalogGroupEntitlementCmd
will be used to determine the catalog group entitlement in a batch.catalogGroupIds
- The list of catalog groups to be checked for entitlement.isAdminMode
- A flag indicating if this is in admin mode. If not provided, a default value of false will be used.CheckCatalogGroupEntitlementCmd
,
CatalogDataBean.isAdminMode()
public static java.lang.String getCatalogOwnerId() throws CatalogApplicationException
CatalogApplicationException
public static CatalogEntryType createCatalogEntryDataObject(CatalogEntryIdentifierType catEntryId)
CatalogEntryType
object using the given catalog entry identifier.catEntryId
- The catalog entry identifier assoicated with the data object.CatalogEntryType
object.public static java.lang.String getPartNumber(CatalogEntryType aCatEntry)
aCatEntry
- The catalog entry whose part number needs to be return.public static boolean validateOwner(CatalogEntryType aCatEntry, java.util.List aValidateErrorsList) throws CatalogApplicationException
ApplicationError
with message type CatalogApplicationMessageKeys._ERR_INVALID_OWNER_ID_IN_CATENTRY_NOUN
to the input parameter aValidateErrorsList
.aCatEntry
- The catalog entry noun whose owner needs to be validated.aValidateErrorsList
- The list which contains the list of validation errors.CatalogApplicationException
public static boolean validateOwner(CatalogGroupType aCatGroup, java.util.List aValidateErrorsList) throws CatalogApplicationException
ApplicationError
with message type CatalogApplicationMessageKeys._ERR_INVALID_OWNER_ID_IN_CATENTRY_NOUN
to the input parameter aValidateErrorsList
.aCatGroup
- The catalog group noun whose owner needs to be validated.aValidateErrorsList
- The list which contains the list of validation errors.CatalogApplicationException
public static boolean validateOwner(CatalogGroupIdentifierType aCatGroupIdentifier, java.util.List aValidateErrorsList) throws CatalogApplicationException
ApplicationError
with message type CatalogApplicationMessageKeys._ERR_INVALID_OWNER_ID_IN_CATENTRY_NOUN
to the input parameter aValidateErrorsList
.aCatGroupIdentifier
- The catalog group identifier whose owner needs to be validated.aValidateErrorsList
- The list which contains the list of validation errors.CatalogApplicationException
public static boolean validateOwner(CatalogType aCatalog, java.util.List aValidateErrorsList) throws CatalogApplicationException
ApplicationError
with message type CatalogApplicationMessageKeys.__ERR_INVALID_OWNER_ID
to the input parameter aValidateErrorsList
.aCatalog
- The catalog noun whose owner needs to be validated.aValidateErrorsList
- The list which contains the list of validation errors.CatalogApplicationException
public static boolean validateIfMasterCatalog(java.util.List aValidationErrors)
ApplicationError
with message type CatalogApplicationMessageKeys._ERR_INCORRECT_CATALOG_TYPE_MASTER_CATALOG
to the input parameter aValidationErrors
when the catalog is not a master catalog.aValidationErrors
- This contains the list of erros which fail the validations.public static boolean validateIfSalesCatalog(java.util.List aValidationErrors)
ApplicationError
with message type CatalogApplicationMessageKeys._ERR_INCORRECT_CATALOG_TYPE_SALES_CATALOG
to the input parameter aValidationErrors
when the catalog is not a sales catalog.aValidationErrors
- This contains the list of erros which fail the validations.public static boolean isSalesCatalog(java.lang.String strCatalogId, java.lang.String strStoreId) throws DataMediatorException
strCatalogId
- strStoreId
- DataMediatorException
public static boolean isSalesCatalog(java.lang.String strCatalogId) throws DataMediatorException
strCatalogId
- the catalog id to be checked.DataMediatorException
public static boolean isValidCatalog(java.lang.String strCatalogId) throws DataMediatorException
strCatalogId
- the catalog id to be checked.DataMediatorException
- Exception is thrown when there is error to retrieve the catalog from database.public static CatalogEntry getPhysicalCatentrySummaryProfile(CatalogEntryIdentifierType catIdentifier) throws CatalogApplicationException, DataMediatorException
catIdentifier
- CatalogEntryIdentifierType containing the unique ID or identifier of the catentry.CatalogApplicationException
DataMediatorException
public static CatalogEntry getPhysicalCatentryBasicProfile(java.lang.String catalogEntryID) throws DataMediatorException
CatalogEntry
object based on the passed catalogEntryID
parameter using the IBM_Admin_CatalogEntry_Basic_Id
access
profile.catalogEntryID
- The catalog entry ID to use for the search.DataMediatorException
- if an error is encountered on invoking the query.public static CatalogEntry getPhysicalCatentryBasicProfile(CatalogEntryIdentifierType catIdentifier) throws CatalogApplicationException, DataMediatorException
catIdentifier
- CatalogEntryIdentifierType containing the unique ID or identifier of the catentry.CatalogApplicationException
DataMediatorException
public static CatalogGroup getPhysicalCatgroup(CatalogGroupIdentifierType catgrpIdentifier) throws CatalogApplicationException, DataMediatorException
catgrpIdentifier
- CatalogGroupIdentifierType containing the unique ID or identifier of the catgroup.CatalogApplicationException
DataMediatorException
public static java.lang.Long getCatalogGroupId(CatalogGroupIdentifierType identifierType) throws DataMediatorException
identifierType
- DataMediatorException
public static java.lang.Long getCatalogId() throws BusinessObjectMediatorException
BusinessObjectMediatorException
public static boolean isCatalogGroupIdentifierAndOwnerValid(java.lang.String identifier, java.lang.String ownerID) throws CatalogApplicationException
identifier
- A string containing catalog group identifier.ownerID
- Owner ID of Catalog Group.CatalogApplicationException
public static boolean isCatalogGroupUniqueIdValid(java.lang.String uniqueID) throws CatalogApplicationException
uniqueID
- A string containing catalog group unique identifier.CatalogApplicationException
public static java.lang.String getCatalogGroupIdByIdentifierAndOwnerID(java.lang.String identifier, java.lang.String ownerID) throws DataMediatorException
identifier
- Externaldentifier of catalog group.ownerID
- Owner ID of catalog group.DataMediatorException
public static boolean isCategoryTopCatalogGroup(java.lang.String catalogGroupID)
catalogGroupID
- Unique ID of a catalog group to be checked.public static boolean isLanguageValid(java.lang.String language)
language
- The language ID to be validated.public static boolean isCatalogGroupToCatalogRelValid(java.lang.String catGroupID, java.lang.String catalogID) throws CatalogApplicationException
catGroupID
- A string containing the catalog group unique identifier.catalogID
- A string containing the catalog unique identifier.CatalogApplicationException
public static java.lang.String resolveCatalogGroupByExternalIdentifier(java.lang.String identifier, java.lang.String ownerId) throws DataMediatorException
identifier
- Catalog group external group identifier.ownerId
- Owner ID.DataMediatorException
public static boolean validateAndResolveCatalogGroupExternalIdentifier(CatalogGroupIdentifierType cgIdentifier, java.util.List validationErrors) throws DataMediatorException, CatalogApplicationException
cgIdentifier
- A catalog group identifier.validationErrors
- A list of validation errors.DataMediatorException
CatalogApplicationException
public static boolean validateCatalogGroupIdentifierInCatalog(CatalogGroupIdentifierType cgIdentifier, java.lang.String catalogId, java.util.List validationErrors) throws DataMediatorException, CatalogApplicationException
cgIdentifier
- A catalog group identifier.catalogId
- A catalog ID.validationErrors
- A list of validation errors.DataMediatorException
CatalogApplicationException
public static boolean validateParentCatalogGroupIdentifier(CatalogGroupIdentifierType parentCatGroupIdentifier, java.lang.String catalogID, java.util.List validationErrors) throws DataMediatorException, CatalogApplicationException
parentCatGroupIdentifier
- Parent catalog group identifier.catalogID
- Catalog ID.validationErrors
- List of validation error.DataMediatorException
CatalogApplicationException
public static boolean validateParentCatalogGroup(CatalogGroupIdentifierType parentCatGroupIdentifier, java.lang.String childCatGroupID, java.lang.String catalogID, java.util.List validationErrors) throws DataMediatorException, CatalogApplicationException
parentCatGroupIdentifier
- Parent catalog group identifier.childCatGroupID
- Child catalog group unique ID.catalogID
- Catalog ID for parent catalog.validationErrors
- List of validation error.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
catalogGroupID
- UniqueID of Catalog Group whose catalog has to be retrieved.CatalogApplicationException
public static java.util.List getAttributeValues(java.lang.String aatrUniqueID) throws DataMediatorException
aatrUniqueID
- DataMediatorException
public static java.lang.String getAttributeDictionaryIdInCurrentStore() throws DataMediatorException
DataMediatorException
public static PhysicalDataContainer getAttributeDictionaryAttributeValues(java.lang.String attributeID, java.util.List attributeValueIDs) throws DataMediatorException
AttrVal
based on the passed parameters of attribute ID
and attributeValueIDs. It returns a PhysicalDataContainer
containing the physical objects.attributeID
- The ID of the attribute to get the values for.attributeValueIDs
- A list of attribute value IDs to get the values for.DataMediatorException
- If an error is encountered on running the query.public static PhysicalDataContainer getAttributeDictionaryAttributeValueDescriptions(java.lang.String attrValId, java.lang.String languageId) throws DataMediatorException
AttributeValueDescription
based on the passed parameters of attribute value id and language id.
It returns a PhysicalDataContainer
containing the physical objects.attrValId
- The attribute value ID to get the values for.languageId
- The language id.DataMediatorException
- If an error is encountered on running the query.public static java.util.List getChildSKUsOfCatalogEntry(java.lang.String catalogEntryID) throws DataMediatorException
CatalogEntry
objects which are child SKUs of the catalog entry identified by the
passed parameter of catalog entry ID.catalogEntryID
- The catalog entry ID of the parent to find the child SKUs for.DataMediatorException
- If an error is encountered on running the query.public static java.util.List<CatalogEntry> getChildIDAndTypeOfCatalogEntry(java.lang.String catalogEntryID) throws DataMediatorException
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.catalogEntryID
- The catalog entry ID of the parent to find the child SKUs for.DataMediatorException
- If an error is encountered on running the query.public static PhysicalDataContainer getCatalogEntryAttributeRelations(java.util.List catalogEntryIDs, java.util.List attributeIDs) throws DataMediatorException
CatalogEntryAttributeRelation
based on the passed parameters of list of
catalog entry IDs and attribute IDs. It returns a
PhysicalDataContainer
containing the
physical objects.catalogEntryIDs
- A list of catalog entry IDs to find the relation records for.attributeIDs
- A list of attribute IDs to find the relation records for.DataMediatorException
- If an error is encountered on running the query.public static PhysicalDataContainer getCatalogEntryAttributeRelationsForDifferentAttributeUsage(java.lang.String catalogEntryID, java.lang.String attributeID, java.lang.String usage) throws DataMediatorException
PhysicalDataContainer
containing the
physical objects.catalogEntryID
- The catalog entry ID to find the relation records for.attributeID
- The attribute ID to find the relation records for.usage
- The physical usage type of the catalog entry to attribute dictionary attribute relationship.
e.g. '1' for defining attribute (sku resolution), '2' for descriptive attribute.DataMediatorException
- If an error is encountered on running the query.public static PhysicalDataContainer getCatalogEntryAttributeRelations(java.lang.String catalogEntryID, java.lang.String attributeID) throws DataMediatorException
PhysicalDataContainer
containing the
physical objects.catalogEntryID
- The catalog entry ID to find the relation records for.attributeID
- The attribute ID to find the relation records for.DataMediatorException
- If an error is encountered on running the query.public static boolean isCatalogGroupToCatalogEntryRelationInCatalogValid(java.lang.String catgroupId, java.lang.String catentryId, java.lang.String catalogId) throws DataMediatorException
catgroupId
- The parent catalog group to be checked.catentryId
- The child catalog entry to be checked.catalogId
- The catalog in which the relation is to be verified.DataMediatorException
- If an exception occurs while fetching data through DSL.public static boolean isCatalogEntryIdValid(java.lang.String catentryId) throws DataMediatorException, CatalogApplicationException
catentryId
- The catentry id to be checkedDataMediatorException
- If an exception occurs while fetching data through DSL.CatalogApplicationException
public static java.lang.String getOwnerIdForStore(java.lang.Integer storeId) throws CatalogApplicationException
storeId
- The store Id for which the owner needs to be returned.CatalogApplicationException
public static java.lang.String getIdentifierForStore(java.lang.Integer storeId) throws CatalogApplicationException
storeId
- The store Id for which the identifier needs to be returned.CatalogApplicationException
public static java.lang.String getOwnerId(CatalogType aCatalog) throws CatalogApplicationException
aCatalog
- The Catalog for which to retrieve the owner Id.CatalogApplicationException
public static java.lang.String getOwnerId(CatalogIdentifierType aCatalogIdentifier) throws CatalogApplicationException
aCatalogIdentifier
- The Catalog Identifier for which to retrieve the owner Id.CatalogApplicationException
public static java.lang.String getOwnerId(CatalogGroupType aCatalogGroup) throws CatalogApplicationException
aCatalogGroup
- The Catalog Group for which to retrieve the owner Id.CatalogApplicationException
public static java.lang.String getOwnerId(CatalogGroupIdentifierType aCatalogGroupIdentifier) throws CatalogApplicationException
aCatalogGroupIdentifier
- The Catalog Group Identifier for which to retrieve the owner Id.CatalogApplicationException
public static java.lang.String getOwnerId(CatalogEntryType aCatalogEntry) throws CatalogApplicationException
aCatalogEntry
- The Catalog Entry for which to retrieve the owner Id.CatalogApplicationException
public static java.lang.String getOwnerId(CatalogEntryIdentifierType aCatalogEntryIdentifier) throws CatalogApplicationException
aCatalogEntryIdentifier
- The Catalog Entry Identifier for which to retrieve the owner Id.CatalogApplicationException
public static java.lang.Integer[] getCatalogStorePath() throws CatalogApplicationException
CatalogApplicationException
- If an error occurs while retrieving storepath.public static boolean isEsiteStore(java.lang.Integer storeId, java.lang.Integer[] storePath)
storeId
- The store id to check.storePath
- The storepath from which to check.public static boolean isRelatedStore(java.lang.Integer storeId, java.lang.Integer[] storePath)
storeId
- The store id to check.storePath
- The storepath from which to check.public static java.lang.Integer getOwnerStoreId(CatalogEntryIdentifierType catentryIdentifier) throws DataMediatorException
catentryIdentifier
- The identifier for which to find.DataMediatorException
- If an exception occurs while retrieving data.public static java.lang.Integer getOwnerStoreId(CatalogGroupIdentifierType catgroupIdentifier) throws DataMediatorException
catgroupIdentifier
- The identifier for which to find.DataMediatorException
- If an exception occurs while retrieving data.public static StoreIdentifierType buildStoreIdentifier(StoreCatalogEntryRelation storeCatentryRel)
storeCatentryRel
- The store catalog entry relation for which to build.public static StoreIdentifierType buildStoreIdentifier(StoreCatalogGroupRelation storeCatgroupRel)
storeCatgroupRel
- The store catalog group relation for which to build.public static ChangeControlBusinessObjectMediator getChangeControlMediator(java.lang.Object noun) throws java.lang.Exception
noun
- The noun for which to retrieve the change control mediator.java.lang.Exception
public static long getParentCatalogGroupID(CatalogEntryIdentifierType catIdentifier) throws CatalogApplicationException, DataMediatorException
catIdentifier
- CatalogEntryIdentifierType containing the unique ID or identifier of the catentry.CatalogApplicationException
DataMediatorException
public static long getParentCatalogGroupID(CatalogGroupIdentifierType catIdentifier) throws CatalogApplicationException, DataMediatorException
catIdentifier
- CatalogGroupIdentifierType containing the unique ID or identifier of the catentry.CatalogApplicationException
DataMediatorException
public static long getParentCatalogEntryID(CatalogEntryIdentifierType catIdentifier) throws CatalogApplicationException, DataMediatorException
catIdentifier
- CatalogEntryIdentifierType containing the unique ID or identifier of the catentry.CatalogApplicationException
DataMediatorException
public static void validateIfChannelHubStore(java.util.List validationErrors) throws CatalogApplicationException
validationErrors
- The list where to add the validation error.CatalogApplicationException
public static boolean isCatalogGroupEmpty(java.lang.String catalogGroupID) throws DataMediatorException
catalogGroupID
- The catalog group id for which to check.DataMediatorException
public static java.lang.String getOwnerIdForCatentryId(java.lang.String catalogEntryId) throws DataMediatorException
catalogEntryId
- The catalog entry Id for which to fine.DataMediatorException
public static java.lang.Long getOwnerIdForAttributeDictionary(java.lang.String attrDictId) throws CatalogApplicationException, DataMediatorException
attrDictId
- The attribute dictionary Id.CatalogApplicationException
- Exception is thown when there is problem retrieving attribute dictionaryDataMediatorException
- Exception is thown when there is problem retrieving member id of storepublic static java.lang.Long getOwnerIdForAttribute(java.lang.String attrId) throws CatalogApplicationException, DataMediatorException
attrId
- The attribute Id.CatalogApplicationException
- Exception is thown when there is problem retrieving attributeDataMediatorException
- Exception is thown when there is problem retrieving member id of storepublic static java.lang.Long getOwnerIdForAttributeGroup(java.lang.String attrGrpId) throws CatalogApplicationException, DataMediatorException
attrGrpId
- The attribute group Id.CatalogApplicationException
- Exception is thown when there is problem retrieving attribute groupDataMediatorException
- Exception is thown when there is problem retrieving member id of storepublic static java.lang.String getOwnerIdForCatgroupId(java.lang.String catalogGroupId) throws DataMediatorException
catalogGroupId
- The catalog group Id for which to fine.DataMediatorException
public static java.lang.String getOwnerIdForCatalogId(java.lang.String catalogId) throws DataMediatorException
catalogId
- The catalog Id for which to fine.DataMediatorException
public static com.ibm.commerce.catalog.facade.server.entity.datatypes.Attr getAttributeDictionaryAttribute(java.lang.String attrId) throws DataMediatorException
attrId
- The attribute ID.DataMediatorException
public static com.ibm.commerce.catalog.facade.server.entity.datatypes.Attr findAttributeByAttrDictIDAndIdentifier(java.lang.String attrDictID, java.lang.String identifier) throws DataMediatorException
Attr
object based on the passed attribute dictionary ID
attrDictID
and the attribute identifier
identifier
. The query uses the
IBM_Admin_IdResolve
access profile.attrDictID
- The unique attribute dictionary ID.identifier
- The attribute dictionary attribute's identifier.DataMediatorException
- if an error is encountered on invoking the query.public static boolean isAttributeDictionaryAttributeValueValid(java.lang.String attrValId) throws DataMediatorException
attrValId
- The attribute value ID.DataMediatorException
public static boolean isAttributeDictionaryAttributeAllowedValueValid(java.lang.String attrId, java.lang.String attrValId) throws DataMediatorException
attrId
- The attribute ID.attrValId
- The attribute value ID.DataMediatorException
public static boolean isAttributeDictionaryAttributeValueDescriptionExist(java.lang.String attrValId, java.lang.String languageId) throws DataMediatorException
attrValId
- The attribute value ID.languageId
- The language ID.DataMediatorException
public static boolean isAttributeDictionaryAttributeAllowedValueIdentifierExist(java.lang.String attrId, java.lang.String identifier) throws DataMediatorException
attrId
- The attribute ID.identifier
- The attribute value identifier.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)
aExtendedValue
- The extended value map logical objectaPATTRVAL
- The AttrVal physical objectaPATTRVALDESC
- The AttributeValueDescription physical objectpublic static void validateInputForIntegerFields(java.lang.Object aNounPart) throws DataMediatorException
aNounPart
- The logical noun part whose extended values need to be validated.DataMediatorException
public static java.lang.Boolean parseString(java.lang.String inputString) throws DataMediatorException
inputString
- The input string to be parsed.DataMediatorException
public static java.util.List getSelectIDs(java.lang.String queryName, java.util.Map paramMap, java.lang.String columnName)
queryName
- query name defined in the templateparamMap
- parameters to be passed in the querycolumnName
- column name of the ID to be returnedpublic static java.lang.String appendStringWithTimeStamp(java.lang.String astrString, int anMaxLengthOfString)
astrString
- The string that will be appended by a timestamp.anMaxLengthOfString
- java.lang.Integerpublic static boolean isCatalogGroupRelationshipExist(java.lang.Long catalogId, java.lang.Long catalogGroupParentId, java.lang.Long catalogGroupChildId)
catalogId
- the catalog id in the relationshipcatalogGroupParentId
- the parent catalog group id in the relationshipcatalogGroupChildId
- the child catalog group id in the relationshippublic static boolean canResolveNoun(SelectionCriteria query) throws DataMediatorException
SelectionCriteria
object.query
- The SelectionCriteria
object which contains the xpath key, access profile and
required parameters to be passed to DSL to resolve the physical entity.DataMediatorException
public static boolean resolveCatalogEntry(CatalogEntryType catalogEntryNoun) throws java.lang.Exception
catalogEntryNoun
- The catalog entry to be resolved.java.lang.Exception
- When there is problem with resolving the catalog entry.public static java.util.Map getCatalogEntryUniqueIdsByPartNumbers(java.util.List partNumbers)
partNumbers
- The list of part numbers whose catalog entries need to be found.public static java.lang.String getPartNumber(java.lang.String uniqueId)
uniqueId
- the unique id of the catalog entrypublic static java.lang.String getCatalogGroupIdentifier(java.lang.String uniqueId)
uniqueId
- the unique id of the catalog grouppublic static com.ibm.commerce.catalog.facade.server.entity.datatypes.Attr getPhysicalAttributeDictionaryAttribute(PhysicalDataContainer aPhysicalDataContainer, com.ibm.commerce.catalog.facade.datatypes.AttributeDictionaryAttributeType aAttributeDictionaryAttribute)
aPhysicalDataContainer
- The physical data container.aAttributeDictionaryAttribute
- The attribute dictionary attribute logical noun.public static boolean isAttrDictAllowedValueForCatentryExist(java.lang.String attrId, java.lang.String attrValId) throws DataMediatorException
attrId
- The attribute ID.attrValId
- The attribute value ID.DataMediatorException
public static boolean isAttributeDictionaryAttributeDescriptionExist(java.lang.String attrId, java.lang.String languageId) throws DataMediatorException
attrId
- The attribute ID.languageId
- The language ID.DataMediatorException
public static java.lang.String getTruncatedString(java.lang.String astrValue, int anColumnSize)
astrValue
- The string to be truncated.anColumnSize
- The length limit of the database column.public static void validateAttributeValue(java.util.List validateErrors, java.lang.String attrDataType, java.lang.String attrValue)
validateErrors
- if the value is not vlaid, an validator error will be added to this listattrDataType
- The data type of the attirbute (STRING, INTEGER or FLOAT)attrValue
- The attribute value to be vallidate.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.
catalogNavigationView
- DataMediatorException
- DataMediatorException could be thrown if any DB operation failed.ECException
- ECException could be thrown if get trading agreements failed.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
storeId
- The storeId of the store for which the default catalogId
need to be returnedjava.lang.Exception
public static boolean isAttributeValueUsedByOtherCatalogEntries(java.lang.String attrId, java.lang.String attrValId, java.lang.String catentryId) throws QueryServiceApplicationException
attrId
- The attribute ID.attrValId
- The attribute value ID.catentryId
- The catalog entry unique ID.QueryServiceApplicationException
- Exception occurs when querying database for catalog entry attribute relationships.public static PhysicalDataContainer getAttributeDictionaryAttributeAllValueDescriptions(java.lang.String attrValId) throws DataMediatorException
AttributeValueDescription
based on the passed parameters of attribute value id.
It returns a PhysicalDataContainer
containing the physical objects.attrValId
- The attribute value ID to get the values for.DataMediatorException
- If an error is encountered on running the query.public static boolean getCurrentCmcVersionIsFEP8orHigher()
public static java.lang.String getStoreDirectory(java.lang.Integer storeId)
storeId
- Store identifierpublic static boolean useClassicAttribute()
public static java.util.Map<java.lang.String,java.util.List<java.lang.String>> getCatalogEntryAttributesByNames(java.lang.String catentryId, java.lang.String languageId, java.lang.String[] attributeNames)
catentryId
- The unique id of the catalog entry to get the attributes.languageId
- The id of the language to get the attributes. If languageId is null, the language id in the business context is used.attributeNames
- The name of the attributes to be returned. If attributeNames is null or empty, all attributes will be returned. The name of the attributes are case-insensitive.