public class ChangeGiftListMediator extends AbstractChangeBusinessObjectMediatorImpl
GiftList
nouns, and validates
that the create, update, or delete action can be performed. GiftList updates
are done by the GiftList base part mediator.Constructor and Description |
---|
ChangeGiftListMediator() |
Modifier and Type | Method and Description |
---|---|
void |
change(java.lang.Object aNoun)
This method performs no actions as GiftList updates are done by the change GiftList part mediator.
|
void |
create(java.lang.Object aNoun)
This method populates the physical data container with the physical SDO object to create.
|
void |
createUserAuthentication(GiftListType logicalGiftList,
com.ibm.commerce.giftcenter.facade.server.entity.datatypes.Grgftreg physicalGiftList)
This method is for creating the authentication details for the gift list
that is being created.
|
void |
delete(java.lang.Object aNoun)
This method updates the physical data container with the physical SDO object to delete.
|
java.lang.Object |
findPhysicalEntity(java.lang.Object aNoun)
This method returns the physical SDO from the
PhysicalDataContainer that was created in the
initializePhysicalDataContainer method that matches the provided noun. |
java.util.List |
validateChange(java.lang.Object aNoun)
This method checks if the logical GiftList noun can be updated.
|
java.util.List |
validateCreate(java.lang.Object aNoun)
This method checks if the logical GiftList noun can be created.
|
java.util.List |
validateDelete(java.lang.Object aNoun)
This method checks if the logical GiftList noun can be deleted.
|
applyChanges, getChangeNounPartMediator, getNouns, getPhysicalDataContainer, initialize
getUpdateAccessProfile, setUpdateAccessProfile
initializeConfig
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getUpdateAccessProfile, setUpdateAccessProfile
initializeConfig
public void create(java.lang.Object aNoun) throws AbstractApplicationException
aNoun
- The logical GiftListType
SDO business object to create.AbstractApplicationException
public void createUserAuthentication(GiftListType logicalGiftList, com.ibm.commerce.giftcenter.facade.server.entity.datatypes.Grgftreg physicalGiftList)
logicalGiftList
- the logical gift list objectphysicalGiftList
- the physical gift list object#createDefaultUserAuthentication(Long, String, Integer)}
public void change(java.lang.Object aNoun) throws AbstractApplicationException
change
in interface ChangeBusinessObjectMediator
change
in class AbstractChangeBusinessObjectMediatorImpl
aNoun
- The logical GiftListType
SDO business object.AbstractApplicationException
public void delete(java.lang.Object aNoun) throws AbstractApplicationException
aNoun
- The logical GiftListType
SDO business object to delete.AbstractApplicationException
public java.lang.Object findPhysicalEntity(java.lang.Object aNoun) throws DataMediatorException
PhysicalDataContainer
that was created in the
initializePhysicalDataContainer
method that matches the provided noun.aNoun
- The logical GiftListType
SDO.DataMediatorException
public java.util.List validateCreate(java.lang.Object aNoun) throws AbstractApplicationException
aNoun
- The logical GiftListType
SDO business object to validate.ApplicationError
if there are any
errors, otherwise the list will be empty.AbstractApplicationException
public java.util.List validateChange(java.lang.Object aNoun) throws AbstractApplicationException
aNoun
- The logical GiftListType
SDO business object to validate.ApplicationError
if there are any
errors, otherwise the list will be empty.AbstractApplicationException
public java.util.List validateDelete(java.lang.Object aNoun) throws AbstractApplicationException
aNoun
- The logical GiftListType
SDO business object to validate.ApplicationError
if there are any
errors, otherwise the list will be empty.AbstractApplicationException