atg.commerce.claimable
Class ClaimableTools

java.lang.Object
  extended by atg.nucleus.logging.VariableArgumentApplicationLoggingImpl
      extended by atg.nucleus.GenericService
          extended by atg.commerce.claimable.ClaimableTools
All Implemented Interfaces:
NameContextBindingListener, NameContextElement, NameResolver, AdminableService, ApplicationLogging, atg.nucleus.logging.ApplicationLoggingSender, atg.nucleus.logging.TraceApplicationLogging, VariableArgumentApplicationLogging, ComponentNameResolver, Service, ServiceListener, java.util.EventListener

public class ClaimableTools
extends GenericService


Field Summary
static java.lang.String CLAIMED
          claimed option from the item property named by DEFAULT_STATUS_PROPERTY_NAME
static java.lang.String CLASS_VERSION
           
static java.lang.String DEFAULT_CLAIMABLE_ITEM_DESCRIPTOR
          Default name of the base claimable item descriptor.
static java.lang.String DEFAULT_STATUS_PROPERTY_NAME
          Default name of the property of the item descriptor that signals the status of the claimable object.
protected static java.util.ResourceBundle sResourceBundle
          Resource Bundle
 
Fields inherited from class atg.nucleus.GenericService
SERVICE_INFO_KEY
 
Fields inherited from interface atg.nucleus.logging.TraceApplicationLogging
DEFAULT_LOG_TRACE_STATUS
 
Fields inherited from interface atg.nucleus.logging.ApplicationLogging
DEFAULT_LOG_DEBUG_STATUS, DEFAULT_LOG_ERROR_STATUS, DEFAULT_LOG_INFO_STATUS, DEFAULT_LOG_WARNING_STATUS
 
Constructor Summary
ClaimableTools()
          Empty constructor.
 
Method Summary
protected  void adjustStatus(RepositoryItem[] pClaimableItems, java.lang.String pStatus)
          Change the status of a claimable repository item so that its status reflects the appropriate status.
protected  void adjustStatus(RepositoryItem pClaimableItem, java.lang.String pStatus)
          Change the status of a claimable repository item so that its status reflects the appropriate status.
 RepositoryItem createClaimableItem(java.lang.String pItemDescriptorType)
          Create a new repository item in the claimable repository using the given item descriptor type and allowing the repository to generate a default repository id for the item.
 RepositoryItem createClaimableItem(java.lang.String pId, java.lang.String pItemDescriptorType)
          Create a new repository item in the claimable repository with the specified id, using the given item descriptor type.
 RepositoryItem createClaimableItem(java.lang.String pId, java.lang.String pItemDescriptorType, boolean pTransient)
          Create a new repository item in the claimable repository with the specified id, using the given item descriptor type.
 RepositoryItem getClaimableItem(java.lang.String pId)
          Return the repository item from the claimable repository whose id is equal to pId.
 java.lang.String getClaimableItemDescriptorName()
          Return the claimableItemDescriptorName property.
 RepositoryItem[] getClaimableItems(java.lang.String[] pIds)
          Return the matching RepositoryItems
 Repository getClaimableRepository()
          Return the claimableRepository property.
 java.lang.String getCouponItemDescriptorName()
          Return the CouponItemDescriptorName property.
 java.lang.String getExpirePropertyName()
          Return the ExpirePropertyName property.
 java.lang.String getGiftCertificateAmountAuthorizedPropertyName()
          Returns property giftCertificateAmountAuthorizedPropertyName
 java.lang.String getGiftCertificateAmountAvailablePropertyName()
          Return the giftCertificateAmountAvailablePropertyName property.
 java.lang.String getGiftCertificateAmountPropertyName()
          Return the giftCertificateAmountPropertyName property.
 java.lang.String getGiftCertificateAmountRemainingPropertyName()
          Return the giftCertificateAmountRemainingPropertyName property.
 java.lang.String getGiftCertificateItemDescriptorName()
          Return the giftCertificateItemDescriptorName property.
 java.lang.String getGiftCertificateLastUsedPropertyName()
          Return the giftCertificateLastUsedPropertyName property.
 java.lang.String getGiftCertificatePurchaseDatePropertyName()
          Return the giftCertificatePurchaseDatePropertyName property.
 java.lang.String getGiftCertificatePurchaserIdPropertyName()
          Return the giftCertificatePurchaserIdPropertyName property.
 java.lang.String getPromotionPropertyName()
          Return the PromotionPropertyName property.
 java.lang.String getStatusPropertyName()
          Return the statusPropertyName property.
 java.lang.String getStoreCreditAmountAuthorizedPropertyName()
          Returns property storeCreditAmountAuthorizedPropertyName
 java.lang.String getStoreCreditAmountAvailablePropertyName()
          Returns property storeCreditAmountAvailablePropertyName
 java.lang.String getStoreCreditAmountPropertyName()
          Returns property storeCreditAmountPropertyName
 java.lang.String getStoreCreditAmountRemainingPropertyName()
          Returns property storeCreditAmountRemainingPropertyName
 java.lang.String getStoreCreditExpirationDatePropertyName()
          Returns property storeCreditExpirationDatePropertyName
 java.lang.String getStoreCreditIssueDatePropertyName()
          Returns property storeCreditIssueDatePropertyName
 java.lang.String getStoreCreditItemDescriptorName()
          Returns property storeCreditItemDescriptorName
 java.lang.String getStoreCreditLastUsedPropertyName()
          Returns property storeCreditLastUsedPropertyName
 java.lang.String getStoreCreditOwnerIdPropertyName()
          Returns property storeCreditOwnerIdPropertyName
 boolean getStrictAuthorization()
          Returns property strictAuthorization This is true by default.
 java.lang.String getTypePropertyName()
          Return the typePropertyName property.
 void persistTransientClaimableItem(RepositoryItem pClaimableItem)
          This method persist the claimable item into the repository.
 void setClaimableItemDescriptorName(java.lang.String pClaimableItemDescriptorName)
          Set the claimableItemDescriptorName property.
 void setClaimableRepository(Repository pClaimableRepository)
          Set the claimableRepository property.
 void setCouponItemDescriptorName(java.lang.String pCouponItemDescriptorName)
          Set the CouponItemDescriptorName property.
 void setExpirePropertyName(java.lang.String pExpirePropertyName)
          Set the ExpirePropertyName property.
 void setGiftCertificateAmountAuthorizedPropertyName(java.lang.String pGiftCertificateAmountAuthorizedPropertyName)
          Sets property giftCertificateAmountAuthorizedPropertyName
 void setGiftCertificateAmountAvailablePropertyName(java.lang.String pGiftCertificateAmountAvailablePropertyName)
          Set the giftCertificateAmountAvailablePropertyName property.
 void setGiftCertificateAmountPropertyName(java.lang.String pGiftCertificateAmountPropertyName)
          Set the giftCertificateAmountPropertyName property.
 void setGiftCertificateAmountRemainingPropertyName(java.lang.String pGiftCertificateAmountRemainingPropertyName)
          Set the giftCertificateAmountRemainingPropertyName property.
 void setGiftCertificateItemDescriptorName(java.lang.String pGiftCertificateItemDescriptorName)
          Set the giftCertificateItemDescriptorName property.
 void setGiftCertificateLastUsedPropertyName(java.lang.String pGiftCertificateLastUsedPropertyName)
          Set the giftCertificateLastUsedPropertyName property.
 void setGiftCertificatePurchaseDatePropertyName(java.lang.String pGiftCertificatePurchaseDatePropertyName)
          Set the giftCertificatePurchaseDatePropertyName property.
 void setGiftCertificatePurchaserIdPropertyName(java.lang.String pGiftCertificatePurchaserIdPropertyName)
          Set the giftCertificatePurchaserIdPropertyName property.
 void setPromotionPropertyName(java.lang.String pPromotionPropertyName)
          Set the PromotionPropertyName property.
 void setStatusPropertyName(java.lang.String pStatusPropertyName)
          Set the statusPropertyName property.
 void setStoreCreditAmountAuthorizedPropertyName(java.lang.String pStoreCreditAmountAuthorizedPropertyName)
          Sets property storeCreditAmountAuthorizedPropertyName
 void setStoreCreditAmountAvailablePropertyName(java.lang.String pStoreCreditAmountAvailablePropertyName)
          Sets property storeCreditAmountAvailablePropertyName
 void setStoreCreditAmountPropertyName(java.lang.String pStoreCreditAmountPropertyName)
          Sets property storeCreditAmountPropertyName
 void setStoreCreditAmountRemainingPropertyName(java.lang.String pStoreCreditAmountRemainingPropertyName)
          Sets property storeCreditAmountRemainingPropertyName
 void setStoreCreditExpirationDatePropertyName(java.lang.String pStoreCreditExpirationDatePropertyName)
          Sets property storeCreditExpirationDatePropertyName
 void setStoreCreditIssueDatePropertyName(java.lang.String pStoreCreditIssueDatePropertyName)
          Sets property storeCreditIssueDatePropertyName
 void setStoreCreditItemDescriptorName(java.lang.String pStoreCreditItemDescriptorName)
          Sets property storeCreditItemDescriptorName
 void setStoreCreditLastUsedPropertyName(java.lang.String pStoreCreditLastUsedPropertyName)
          Sets property storeCreditLastUsedPropertyName
 void setStoreCreditOwnerIdPropertyName(java.lang.String pStoreCreditOwnerIdPropertyName)
          Sets property storeCreditOwnerIdPropertyName
 void setStrictAuthorization(boolean pStrictAuthorization)
          Sets property strictAuthorization
 void setTypePropertyName(java.lang.String pTypePropertyName)
          Set the typePropertyName property.
 
Methods inherited from class atg.nucleus.GenericService
addLogListener, createAdminServlet, doStartService, doStopService, getAbsoluteName, getAdminServlet, getLoggingForVlogging, getLogListenerCount, getLogListeners, getName, getNameContext, getNucleus, getRoot, getServiceConfiguration, getServiceInfo, isLoggingDebug, isLoggingError, isLoggingInfo, isLoggingTrace, isLoggingWarning, isRunning, logDebug, logDebug, logDebug, logError, logError, logError, logInfo, logInfo, logInfo, logTrace, logTrace, logTrace, logWarning, logWarning, logWarning, nameContextElementBound, nameContextElementUnbound, removeLogListener, resolveName, resolveName, resolveName, resolveName, sendLogEvent, setLoggingDebug, setLoggingError, setLoggingInfo, setLoggingTrace, setLoggingWarning, setNucleus, setServiceInfo, startService, stopService
 
Methods inherited from class atg.nucleus.logging.VariableArgumentApplicationLoggingImpl
vlogDebug, vlogDebug, vlogDebug, vlogDebug, vlogError, vlogError, vlogError, vlogError, vlogInfo, vlogInfo, vlogInfo, vlogInfo, vlogTrace, vlogTrace, vlogTrace, vlogTrace, vlogWarning, vlogWarning, vlogWarning, vlogWarning
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CLASS_VERSION

public static java.lang.String CLASS_VERSION

sResourceBundle

protected static java.util.ResourceBundle sResourceBundle
Resource Bundle


CLAIMED

public static final java.lang.String CLAIMED
claimed option from the item property named by DEFAULT_STATUS_PROPERTY_NAME

See Also:
Constant Field Values

DEFAULT_CLAIMABLE_ITEM_DESCRIPTOR

public static final java.lang.String DEFAULT_CLAIMABLE_ITEM_DESCRIPTOR
Default name of the base claimable item descriptor. This can be overriden by setting the claimableItemDescriptorName property. This is the item descriptor that is searched for a particular item id.

See Also:
Constant Field Values

DEFAULT_STATUS_PROPERTY_NAME

public static final java.lang.String DEFAULT_STATUS_PROPERTY_NAME
Default name of the property of the item descriptor that signals the status of the claimable object. When an item is claimed, or adjusted in another way its status will get changed.

See Also:
Constant Field Values
Constructor Detail

ClaimableTools

public ClaimableTools()
Empty constructor.

Method Detail

setPromotionPropertyName

public void setPromotionPropertyName(java.lang.String pPromotionPropertyName)
Set the PromotionPropertyName property.


getPromotionPropertyName

public java.lang.String getPromotionPropertyName()
Return the PromotionPropertyName property.


setGiftCertificateLastUsedPropertyName

public void setGiftCertificateLastUsedPropertyName(java.lang.String pGiftCertificateLastUsedPropertyName)
Set the giftCertificateLastUsedPropertyName property.


getGiftCertificateLastUsedPropertyName

public java.lang.String getGiftCertificateLastUsedPropertyName()
Return the giftCertificateLastUsedPropertyName property.


setCouponItemDescriptorName

public void setCouponItemDescriptorName(java.lang.String pCouponItemDescriptorName)
Set the CouponItemDescriptorName property.


getCouponItemDescriptorName

public java.lang.String getCouponItemDescriptorName()
Return the CouponItemDescriptorName property.


setGiftCertificateItemDescriptorName

public void setGiftCertificateItemDescriptorName(java.lang.String pGiftCertificateItemDescriptorName)
Set the giftCertificateItemDescriptorName property.


getGiftCertificateItemDescriptorName

public java.lang.String getGiftCertificateItemDescriptorName()
Return the giftCertificateItemDescriptorName property.


setGiftCertificateAmountPropertyName

public void setGiftCertificateAmountPropertyName(java.lang.String pGiftCertificateAmountPropertyName)
Set the giftCertificateAmountPropertyName property.


getGiftCertificateAmountPropertyName

public java.lang.String getGiftCertificateAmountPropertyName()
Return the giftCertificateAmountPropertyName property.


setGiftCertificateAmountRemainingPropertyName

public void setGiftCertificateAmountRemainingPropertyName(java.lang.String pGiftCertificateAmountRemainingPropertyName)
Set the giftCertificateAmountRemainingPropertyName property.


getGiftCertificateAmountRemainingPropertyName

public java.lang.String getGiftCertificateAmountRemainingPropertyName()
Return the giftCertificateAmountRemainingPropertyName property.


setGiftCertificateAmountAvailablePropertyName

public void setGiftCertificateAmountAvailablePropertyName(java.lang.String pGiftCertificateAmountAvailablePropertyName)
Set the giftCertificateAmountAvailablePropertyName property.


getGiftCertificateAmountAvailablePropertyName

public java.lang.String getGiftCertificateAmountAvailablePropertyName()
Return the giftCertificateAmountAvailablePropertyName property.


setExpirePropertyName

public void setExpirePropertyName(java.lang.String pExpirePropertyName)
Set the ExpirePropertyName property.


getExpirePropertyName

public java.lang.String getExpirePropertyName()
Return the ExpirePropertyName property.


setGiftCertificateAmountAuthorizedPropertyName

public void setGiftCertificateAmountAuthorizedPropertyName(java.lang.String pGiftCertificateAmountAuthorizedPropertyName)
Sets property giftCertificateAmountAuthorizedPropertyName

Parameters:
pGiftCertificateAmountAuthorizedPropertyName - the value to set for property giftCertificateAmountAuthorizedPropertyName

getGiftCertificateAmountAuthorizedPropertyName

public java.lang.String getGiftCertificateAmountAuthorizedPropertyName()
Returns property giftCertificateAmountAuthorizedPropertyName

Returns:
returns property giftCertificateAmountAuthorizedPropertyName

setGiftCertificatePurchaserIdPropertyName

public void setGiftCertificatePurchaserIdPropertyName(java.lang.String pGiftCertificatePurchaserIdPropertyName)
Set the giftCertificatePurchaserIdPropertyName property.


getGiftCertificatePurchaserIdPropertyName

public java.lang.String getGiftCertificatePurchaserIdPropertyName()
Return the giftCertificatePurchaserIdPropertyName property.


setGiftCertificatePurchaseDatePropertyName

public void setGiftCertificatePurchaseDatePropertyName(java.lang.String pGiftCertificatePurchaseDatePropertyName)
Set the giftCertificatePurchaseDatePropertyName property.


getGiftCertificatePurchaseDatePropertyName

public java.lang.String getGiftCertificatePurchaseDatePropertyName()
Return the giftCertificatePurchaseDatePropertyName property.


setTypePropertyName

public void setTypePropertyName(java.lang.String pTypePropertyName)
Set the typePropertyName property.


getTypePropertyName

public java.lang.String getTypePropertyName()
Return the typePropertyName property.


setClaimableRepository

public void setClaimableRepository(Repository pClaimableRepository)
Set the claimableRepository property.


getClaimableRepository

public Repository getClaimableRepository()
Return the claimableRepository property.


setStatusPropertyName

public void setStatusPropertyName(java.lang.String pStatusPropertyName)
Set the statusPropertyName property.


getStatusPropertyName

public java.lang.String getStatusPropertyName()
Return the statusPropertyName property.


setClaimableItemDescriptorName

public void setClaimableItemDescriptorName(java.lang.String pClaimableItemDescriptorName)
Set the claimableItemDescriptorName property.


getClaimableItemDescriptorName

public java.lang.String getClaimableItemDescriptorName()
Return the claimableItemDescriptorName property.


getStoreCreditItemDescriptorName

public java.lang.String getStoreCreditItemDescriptorName()
Returns property storeCreditItemDescriptorName

Returns:
returns property storeCreditItemDescriptorName

setStoreCreditItemDescriptorName

public void setStoreCreditItemDescriptorName(java.lang.String pStoreCreditItemDescriptorName)
Sets property storeCreditItemDescriptorName

Parameters:
pStoreCreditItemDescriptorName - the value to set for property storeCreditItemDescriptorName

getStoreCreditAmountPropertyName

public java.lang.String getStoreCreditAmountPropertyName()
Returns property storeCreditAmountPropertyName

Returns:
returns property storeCreditAmountPropertyName

setStoreCreditAmountPropertyName

public void setStoreCreditAmountPropertyName(java.lang.String pStoreCreditAmountPropertyName)
Sets property storeCreditAmountPropertyName

Parameters:
pStoreCreditAmountPropertyName - the value to set for property storeCreditAmountPropertyName

getStoreCreditAmountAuthorizedPropertyName

public java.lang.String getStoreCreditAmountAuthorizedPropertyName()
Returns property storeCreditAmountAuthorizedPropertyName

Returns:
returns property storeCreditAmountAuthorizedPropertyName

setStoreCreditAmountAuthorizedPropertyName

public void setStoreCreditAmountAuthorizedPropertyName(java.lang.String pStoreCreditAmountAuthorizedPropertyName)
Sets property storeCreditAmountAuthorizedPropertyName

Parameters:
pStoreCreditAmountAuthorizedPropertyName - the value to set for property storeCreditAmountAuthorizedPropertyName

getStoreCreditAmountRemainingPropertyName

public java.lang.String getStoreCreditAmountRemainingPropertyName()
Returns property storeCreditAmountRemainingPropertyName

Returns:
returns property storeCreditAmountRemainingPropertyName

setStoreCreditAmountRemainingPropertyName

public void setStoreCreditAmountRemainingPropertyName(java.lang.String pStoreCreditAmountRemainingPropertyName)
Sets property storeCreditAmountRemainingPropertyName

Parameters:
pStoreCreditAmountRemainingPropertyName - the value to set for property storeCreditAmountRemainingPropertyName

getStoreCreditAmountAvailablePropertyName

public java.lang.String getStoreCreditAmountAvailablePropertyName()
Returns property storeCreditAmountAvailablePropertyName

Returns:
returns property storeCreditAmountAvailablePropertyName

setStoreCreditAmountAvailablePropertyName

public void setStoreCreditAmountAvailablePropertyName(java.lang.String pStoreCreditAmountAvailablePropertyName)
Sets property storeCreditAmountAvailablePropertyName

Parameters:
pStoreCreditAmountAvailablePropertyName - the value to set for property storeCreditAmountAvailablePropertyName

getStoreCreditOwnerIdPropertyName

public java.lang.String getStoreCreditOwnerIdPropertyName()
Returns property storeCreditOwnerIdPropertyName

Returns:
returns property storeCreditOwnerIdPropertyName

setStoreCreditOwnerIdPropertyName

public void setStoreCreditOwnerIdPropertyName(java.lang.String pStoreCreditOwnerIdPropertyName)
Sets property storeCreditOwnerIdPropertyName

Parameters:
pStoreCreditOwnerIdPropertyName - the value to set for property storeCreditOwnerIdPropertyName

getStoreCreditLastUsedPropertyName

public java.lang.String getStoreCreditLastUsedPropertyName()
Returns property storeCreditLastUsedPropertyName

Returns:
returns property storeCreditLastUsedPropertyName

setStoreCreditLastUsedPropertyName

public void setStoreCreditLastUsedPropertyName(java.lang.String pStoreCreditLastUsedPropertyName)
Sets property storeCreditLastUsedPropertyName

Parameters:
pStoreCreditLastUsedPropertyName - the value to set for property storeCreditLastUsedPropertyName

getStoreCreditIssueDatePropertyName

public java.lang.String getStoreCreditIssueDatePropertyName()
Returns property storeCreditIssueDatePropertyName

Returns:
returns property storeCreditIssueDatePropertyName

setStoreCreditIssueDatePropertyName

public void setStoreCreditIssueDatePropertyName(java.lang.String pStoreCreditIssueDatePropertyName)
Sets property storeCreditIssueDatePropertyName

Parameters:
pStoreCreditIssueDatePropertyName - the value to set for property storeCreditIssueDatePropertyName

getStoreCreditExpirationDatePropertyName

public java.lang.String getStoreCreditExpirationDatePropertyName()
Returns property storeCreditExpirationDatePropertyName

Returns:
returns property storeCreditExpirationDatePropertyName

setStoreCreditExpirationDatePropertyName

public void setStoreCreditExpirationDatePropertyName(java.lang.String pStoreCreditExpirationDatePropertyName)
Sets property storeCreditExpirationDatePropertyName

Parameters:
pStoreCreditExpirationDatePropertyName - the value to set for property storeCreditExpirationDatePropertyName

getStrictAuthorization

public boolean getStrictAuthorization()
Returns property strictAuthorization This is true by default.

Returns:
returns property strictAuthorization

setStrictAuthorization

public void setStrictAuthorization(boolean pStrictAuthorization)
Sets property strictAuthorization

Parameters:
pStrictAuthorization - the value to set for property strictAuthorization

getClaimableItem

public RepositoryItem getClaimableItem(java.lang.String pId)
                                throws RepositoryException
Return the repository item from the claimable repository whose id is equal to pId. The repository and item descriptors specified by the ClaimableRepository and ClaimableItemDescriptorName properties are used to perform the search.

Throws:
RepositoryException

getClaimableItems

public RepositoryItem[] getClaimableItems(java.lang.String[] pIds)
                                   throws RepositoryException
Return the matching RepositoryItems

Throws:
RepositoryException
See Also:
ClaimableTools#getRepositoryItem

adjustStatus

protected void adjustStatus(RepositoryItem pClaimableItem,
                            java.lang.String pStatus)
                     throws PropertyNotFoundException,
                            RepositoryException
Change the status of a claimable repository item so that its status reflects the appropriate status.

Parameters:
pClaimableItem - a value of type 'RepositoryItem'
Throws:
PropertyNotFoundException
RepositoryException

adjustStatus

protected void adjustStatus(RepositoryItem[] pClaimableItems,
                            java.lang.String pStatus)
                     throws PropertyNotFoundException,
                            RepositoryException
Change the status of a claimable repository item so that its status reflects the appropriate status.

Parameters:
pClaimableItem - a value of type 'RepositoryItem'
Throws:
PropertyNotFoundException
RepositoryException

createClaimableItem

public RepositoryItem createClaimableItem(java.lang.String pItemDescriptorType)
                                   throws ClaimableException
Create a new repository item in the claimable repository using the given item descriptor type and allowing the repository to generate a default repository id for the item.

Throws:
ClaimableException - if the repository throws any exception during item creation. The ClaimableException will wrap the underlying RepositoryException.

createClaimableItem

public RepositoryItem createClaimableItem(java.lang.String pId,
                                          java.lang.String pItemDescriptorType,
                                          boolean pTransient)
                                   throws ClaimableException
Create a new repository item in the claimable repository with the specified id, using the given item descriptor type.

Parameters:
pId - The repository id of the new item, which must be unique or null. A null id indicates that the claimable repository should generate its own unique id. If a non-null id is supplied and is not unique, a ClaimableException will be thrown that wraps the DuplicateIdException generated by the claimable repository.
pItemDescriptorType - The name of the item descriptor type for the new claimable.
pTransient - If the claimable does not need to be persisted right away, use this option.
Throws:
ClaimableException - if the repository throws any exception during item creation. The ClaimableException will wrap the underlying RepositoryException.

createClaimableItem

public RepositoryItem createClaimableItem(java.lang.String pId,
                                          java.lang.String pItemDescriptorType)
                                   throws ClaimableException
Create a new repository item in the claimable repository with the specified id, using the given item descriptor type.

Parameters:
pId - The repository id of the new item, which must be unique or null. A null id indicates that the claimable repository should generate its own unique id. If a non-null id is supplied and is not unique, a ClaimableException will be thrown that wraps the DuplicateIdException generated by the claimable repository.
pItemDescriptorType - The name of the item descriptor type for the new claimable.
Throws:
ClaimableException - if the repository throws any exception during item creation. The ClaimableException will wrap the underlying RepositoryException.

persistTransientClaimableItem

public void persistTransientClaimableItem(RepositoryItem pClaimableItem)
                                   throws ClaimableException
This method persist the claimable item into the repository.

Parameters:
pClaimableItem -
Throws:
ClaimableException