public class PromotionImportExportTools extends GenericService
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CLASS_VERSION
Class version string
|
SERVICE_INFO_KEY
DEFAULT_LOG_TRACE_STATUS
DEFAULT_LOG_DEBUG_STATUS, DEFAULT_LOG_ERROR_STATUS, DEFAULT_LOG_INFO_STATUS, DEFAULT_LOG_WARNING_STATUS
Constructor and Description |
---|
PromotionImportExportTools() |
Modifier and Type | Method and Description |
---|---|
RepositoryItem |
createClosenessQualifier(java.util.Map<java.lang.String,java.lang.String> pClosenessQualifierPropertyValues)
createClosenessQualifier
This method creates a closeness qualifier repository item and sets its properties to the
values specified in the map parameter.
|
RepositoryItem |
createPromotion(java.util.Map<java.lang.String,java.lang.String> pPromotionPropertyValues,
java.lang.String pItemDescriptor)
createPromotion
This method creates a promotion repository item and sets its properties to the
values specified in the map parameter.
|
RepositoryItem |
createPromotionFolder(java.util.Map<java.lang.String,java.lang.String> pPromotionFolderPropertyValues)
createPromotionFolder
This method creates a promotion folder repository item and sets its properties to the
values specified in the map parameter.
|
RepositoryItem |
createPromotionFolderFromPath(java.lang.String pPromotionFolderPath)
createPromotionFolderFromPath
This method creates a series of promotion folders, from the path provided.
|
void |
deleteClosenessQualifier(java.lang.String pClosenessQualifierId)
deleteClosenessQualifier
This method deletes a closeness qualifier from the promotions repository.
|
ClaimableTools |
getClaimableTools()
Gets claimableTools.
|
RepositoryItem |
getClosenessQualifier(java.lang.String pClosenessQualifierId)
getClosenessQualifier
This method retrieves a closeness qualifier repository item using the specified id.
|
java.lang.String |
getClosenessQualifierItemDescriptorName()
Get the closeness qualifier item descriptor name.
|
java.lang.String |
getClosenessQualifierPMDLRuleProperty()
Get the closeness qualifier PMDL rule property.
|
java.lang.String |
getClosenessQualifierTemplateValuesProperty()
Get the closeness qualifier template values property.
|
RepositoryItem |
getPromotion(java.lang.String pPromotionId)
getPromotion
This method retrieves a promotion repository item using the specified id.
|
RepositoryItem |
getPromotionFolder(java.lang.String pPromotionFolderId)
getPromotionFolder
This method retrieves a promotion folder repository item using the specified id.
|
java.lang.String |
getPromotionFolderItemDescriptorName()
Get the promotion folder item descriptor name.
|
java.lang.String |
getPromotionFolderNameProperty()
Get the promotion folder name property.
|
java.lang.String |
getPromotionFolderParentFolderProperty()
Get the promotion folder parent folder property.
|
java.lang.String |
getPromotionFolderPath(java.lang.String pPromotionFolderId)
getPromotionFolderPath
This method retrieves the promotion folder's full path.
|
java.util.List<PromotionImportExportInfo> |
getPromotionsById(java.util.List<java.lang.String> pPromotionIds)
getPromotionsById
This method retrieves the promotion repository items, specified by the ids in the list.
|
java.util.List<PromotionImportExportInfo> |
getPromotionsByRQLQuery(java.lang.String pRQLQuery)
getPromotionsByRQLQuery
This method retrieves a list of promotion repository items, using the specified
RQL query.
|
PromotionTools |
getPromotionTools()
Get promotionTools
|
javax.transaction.TransactionManager |
getTransactionManager()
Gets the transactionManager.
|
java.util.Properties |
getTypeCodeToItemDescriptorMap()
Get the typeCodeToItemDescriptorMap property.
|
protected java.util.List<ClosenessQualifierImportExportInfo> |
processClosenessQualifiers(java.util.Set pClosenessQualifiers)
processClosenessQualifiers
This method processes an array of closeness qualifier repository items to get thie property values.
|
protected java.util.List<PromotionImportExportInfo> |
processPromotions(RepositoryItem[] pPromotions)
processPromotions
This method process the array of repository items and gets all of the associated details
|
void |
setClaimableTools(ClaimableTools pClaimableTools)
Sets claimableTools.
|
void |
setClosenessQualifierItemDescriptorName(java.lang.String pClosenessQualifierItemDescriptorName)
Set the closeness qualifier item descriptor name.
|
void |
setClosenessQualifierPMDLRuleProperty(java.lang.String pClosenessQualifierPMDLRuleProperty)
Set the closeness qualifier PMDL rule property.
|
void |
setClosenessQualifierTemplateValuesProperty(java.lang.String pClosenessQualifierTemplateValuesProperty)
Set the closeness qualifier template values property.
|
void |
setPromotionFolderItemDescriptorName(java.lang.String pPromotionFolderItemDescriptorName)
Set the promotion folder item descriptor name.
|
void |
setPromotionFolderNameProperty(java.lang.String pPromotionFolderNameProperty)
Set the promotion folder name property.
|
void |
setPromotionFolderParentFolderProperty(java.lang.String pPromotionFolderParentFolderProperty)
Set the promotion folder parent folder property.
|
void |
setPromotionTools(PromotionTools pPromotionTools)
Set promotionTools
|
void |
setTransactionManager(javax.transaction.TransactionManager pTransactionManager)
Sets the transactionManager.
|
void |
setTypeCodeToItemDescriptorMap(java.util.Properties pTypeCodeToItemDescriptorMap)
Set the typeCodeToItemDescriptorMap property.
|
RepositoryItem |
updateClosenessQualifier(java.util.Map<java.lang.String,java.lang.String> pClosenessQualifierPropertyValues)
updateClosenessQualifier
This method updates a closeness qualifier repository item, setting its properties to the values
specified in the map parameter.
|
RepositoryItem |
updatePromotion(java.util.Map<java.lang.String,java.lang.String> pPromotionPropertyValues,
java.lang.String pItemDescriptor)
updatePromotion
This method updates a promotion repository item, setting its properties to the
values specified in the map parameter.
|
addLogListener, createAdminServlet, doStartService, doStopService, getAbsoluteName, getAdminServlet, getAdminServletOutputStreamEncoding, getLoggingForVlogging, getLogListenerCount, getLogListeners, getName, getNameContext, getNucleus, getRoot, getServiceConfiguration, getServiceInfo, isAdminServletUseServletOutputStream, isLoggingDebug, isLoggingError, isLoggingInfo, isLoggingTrace, isLoggingWarning, isRunning, logDebug, logDebug, logDebug, logError, logError, logError, logInfo, logInfo, logInfo, logTrace, logTrace, logTrace, logWarning, logWarning, logWarning, nameContextElementBound, nameContextElementUnbound, removeLogListener, reResolveThis, resolveName, resolveName, resolveName, resolveName, sendLogEvent, setAdminServletOutputStreamEncoding, setAdminServletUseServletOutputStream, setLoggingDebug, setLoggingError, setLoggingInfo, setLoggingTrace, setLoggingWarning, setNucleus, setServiceInfo, startService, stopService
vlogDebug, vlogDebug, vlogDebug, vlogDebug, vlogDebugTrace, vlogError, vlogError, vlogError, vlogError, vlogInfo, vlogInfo, vlogInfo, vlogInfo, vlogTrace, vlogTrace, vlogTrace, vlogTrace, vlogWarning, vlogWarning, vlogWarning, vlogWarning
public static final java.lang.String CLASS_VERSION
public void setPromotionTools(PromotionTools pPromotionTools)
public PromotionTools getPromotionTools()
public javax.transaction.TransactionManager getTransactionManager()
public void setTransactionManager(javax.transaction.TransactionManager pTransactionManager)
public ClaimableTools getClaimableTools()
public void setClaimableTools(ClaimableTools pClaimableTools)
public java.lang.String getClosenessQualifierItemDescriptorName()
public void setClosenessQualifierItemDescriptorName(java.lang.String pClosenessQualifierItemDescriptorName)
public java.lang.String getClosenessQualifierPMDLRuleProperty()
public void setClosenessQualifierPMDLRuleProperty(java.lang.String pClosenessQualifierPMDLRuleProperty)
public java.lang.String getClosenessQualifierTemplateValuesProperty()
public void setClosenessQualifierTemplateValuesProperty(java.lang.String pClosenessQualifierTemplateValuesProperty)
public java.lang.String getPromotionFolderItemDescriptorName()
public void setPromotionFolderItemDescriptorName(java.lang.String pPromotionFolderItemDescriptorName)
public java.lang.String getPromotionFolderNameProperty()
public void setPromotionFolderNameProperty(java.lang.String pPromotionFolderNameProperty)
public java.lang.String getPromotionFolderParentFolderProperty()
public void setPromotionFolderParentFolderProperty(java.lang.String pPromotionFolderParentFolderProperty)
public java.util.Properties getTypeCodeToItemDescriptorMap()
public void setTypeCodeToItemDescriptorMap(java.util.Properties pTypeCodeToItemDescriptorMap)
public RepositoryItem createPromotion(java.util.Map<java.lang.String,java.lang.String> pPromotionPropertyValues, java.lang.String pItemDescriptor) throws atg.commerce.promotion.PromotionException
pPromotionPropertyValues
- - a map of the promotion property names and their values.pItemDescriptor
- - the item descriptor to use for promotion creation.atg.commerce.promotion.PromotionException
public RepositoryItem getPromotion(java.lang.String pPromotionId) throws atg.commerce.promotion.PromotionException
pPromotionId
- - the id of the promotion repository item to retrieve.atg.commerce.promotion.PromotionException
public java.util.List<PromotionImportExportInfo> getPromotionsById(java.util.List<java.lang.String> pPromotionIds) throws atg.commerce.promotion.PromotionException
pPromotionIds
- - the list of promotion ids used to retrieve the repository items.atg.commerce.promotion.PromotionException
public java.util.List<PromotionImportExportInfo> getPromotionsByRQLQuery(java.lang.String pRQLQuery) throws atg.commerce.promotion.PromotionException
pRQLQuery
- - the RQL query to use.atg.commerce.promotion.PromotionException
public RepositoryItem updatePromotion(java.util.Map<java.lang.String,java.lang.String> pPromotionPropertyValues, java.lang.String pItemDescriptor) throws atg.commerce.promotion.PromotionException
pPromotionPropertyValues
- - a map of the property names and their values.pItemDescriptor
- - the item descriptor to be used when updating the promotion.atg.commerce.promotion.PromotionException
public RepositoryItem createClosenessQualifier(java.util.Map<java.lang.String,java.lang.String> pClosenessQualifierPropertyValues) throws atg.commerce.promotion.PromotionException
pClosenessQualifierPropertyValues
- - a map of the property names and their values.atg.commerce.promotion.PromotionException
public RepositoryItem getClosenessQualifier(java.lang.String pClosenessQualifierId) throws atg.commerce.promotion.PromotionException
pClosenessQualifierId
- - the id of the repository item to retrieveatg.commerce.promotion.PromotionException
public RepositoryItem updateClosenessQualifier(java.util.Map<java.lang.String,java.lang.String> pClosenessQualifierPropertyValues) throws atg.commerce.promotion.PromotionException
pClosenessQualifierPropertyValues
- - a map of the property names and their values.atg.commerce.promotion.PromotionException
public void deleteClosenessQualifier(java.lang.String pClosenessQualifierId) throws atg.commerce.promotion.PromotionException
pClosenessQualifierId
- - the id of the closeness qualifier to be deleted.atg.commerce.promotion.PromotionException
public RepositoryItem createPromotionFolderFromPath(java.lang.String pPromotionFolderPath) throws atg.commerce.promotion.PromotionException
pPromotionFolderpath
- - the full path of the promotion folder.atg.commerce.promotion.PromotionException
public java.lang.String getPromotionFolderPath(java.lang.String pPromotionFolderId) throws atg.commerce.promotion.PromotionException
pPromotionFolderId
- - the id of the promotionFolder item, for which the path is to be constructed.atg.commerce.promotion.PromotionException
public RepositoryItem createPromotionFolder(java.util.Map<java.lang.String,java.lang.String> pPromotionFolderPropertyValues) throws atg.commerce.promotion.PromotionException
pPromotionFolderPropertyValues
- - a map of the promotion folder property names and their values.atg.commerce.promotion.PromotionException
public RepositoryItem getPromotionFolder(java.lang.String pPromotionFolderId) throws atg.commerce.promotion.PromotionException
pPromotionFolderId
- - the id of the repository item to retrieveatg.commerce.promotion.PromotionException
protected java.util.List<PromotionImportExportInfo> processPromotions(RepositoryItem[] pPromotions) throws atg.commerce.promotion.PromotionException
pPromotions
- - the array of promotion repository itemsatg.commerce.promotion.PromotionException
protected java.util.List<ClosenessQualifierImportExportInfo> processClosenessQualifiers(java.util.Set pClosenessQualifiers) throws atg.commerce.promotion.PromotionException
pClosenessQualifiers
- - the array of closeness qualifier repository itemsatg.commerce.promotion.PromotionException