public class ChangeGiftListAccessSpecifierPartMediator extends AbstractChangeGiftListPartMediator
Modifier and Type | Field and Description |
---|---|
static java.lang.String | COPYRIGHT
IBM copyright notice field.
|
static java.lang.String[] | xpaths
The XPath supported by the mediator.
|
Constructor and Description |
---|
ChangeGiftListAccessSpecifierPartMediator() |
Modifier and Type | Method and Description |
---|---|
void | create(java.lang.Object noun, java.lang.Object nounPart)
Creates the physical Gruserauth objects for the guest user password and registrant password to be persisted.
|
protected com.ibm.commerce.giftcenter.facade.server.entity.datatypes.Gruserauth | createUserAuthentication(java.lang.Long uniqueID, java.lang.String plainTextPassword, int accessType)
Creates the user authentication based on the type.
|
void | delete(java.lang.Object aNoun, java.lang.Object aNounPart)
This method performs no actions as GiftList deletion is done by the change GiftList mediator.
|
java.lang.Object | findPhysicalEntity(java.lang.Object aNoun, java.lang.Object aNounPart)
This method is not used by default and always returns null.
|
com.ibm.commerce.giftcenter.facade.server.entity.datatypes.Gruserauth | findUserAuthenticationByType(java.lang.Long uniqueID, int accessType)
Finds the active Gruserauth physical object based on the gift list unique ID and the access type.
|
java.lang.String[] | getNounPartXPaths()
This method gets the XPath for the main GiftList noun part.
|
protected PhysicalDataContainer | initializePhysicalDataContainer(java.util.Map mapNounPart)
Initializes the physical data container with the physical data objects based on the noun parts that are passed.
|
protected boolean | resolveByExternalIdentifier(java.lang.Object aNoun, java.lang.Object aNounPart)
Resolves the unique ID of the noun part from it's external identifier.
|
void | update(java.lang.Object noun, java.lang.Object nounPart)
This method updates the gift list access options as well the user authentication entries.
|
protected void | updateGiftListAccessSpecifier(com.ibm.commerce.giftcenter.facade.datatypes.GiftListType logicalGiftList, com.ibm.commerce.giftcenter.facade.server.entity.datatypes.Grgftreg physicalGiftList)
Updates the physical gift list with the access specifier provided in the logical gift list.
|
java.util.List | validateChange(java.lang.Object noun, java.lang.Object nounPart)
Validates if the user authentication for the gift list can be updated or not.
|
java.util.List | validateCreate(java.lang.Object noun, java.lang.Object nounPart)
Validates if the user authentication for the gift list can be created or not.
|
java.util.List | validateDelete(java.lang.Object noun, java.lang.Object nounPart)
Validates if the access option can be deleted or not.
|
public static final java.lang.String COPYRIGHT
public static java.lang.String[] xpaths
public ChangeGiftListAccessSpecifierPartMediator()
protected PhysicalDataContainer initializePhysicalDataContainer(java.util.Map mapNounPart) throws java.lang.Exception
protected boolean resolveByExternalIdentifier(java.lang.Object aNoun, java.lang.Object aNounPart) throws java.lang.Exception
public void create(java.lang.Object noun, java.lang.Object nounPart) throws AbstractApplicationException
protected com.ibm.commerce.giftcenter.facade.server.entity.datatypes.Gruserauth createUserAuthentication(java.lang.Long uniqueID, java.lang.String plainTextPassword, int accessType) throws AbstractApplicationException
public void delete(java.lang.Object aNoun, java.lang.Object aNounPart) throws AbstractApplicationException
public java.lang.Object findPhysicalEntity(java.lang.Object aNoun, java.lang.Object aNounPart) throws DataMediatorException
public java.lang.String[] getNounPartXPaths()
public void update(java.lang.Object noun, java.lang.Object nounPart) throws AbstractApplicationException
public com.ibm.commerce.giftcenter.facade.server.entity.datatypes.Gruserauth findUserAuthenticationByType(java.lang.Long uniqueID, int accessType) throws DataMediatorException
public java.util.List validateChange(java.lang.Object noun, java.lang.Object nounPart) throws AbstractApplicationException
public java.util.List validateCreate(java.lang.Object noun, java.lang.Object nounPart) throws AbstractApplicationException
public java.util.List validateDelete(java.lang.Object noun, java.lang.Object nounPart) throws AbstractApplicationException
protected void updateGiftListAccessSpecifier(com.ibm.commerce.giftcenter.facade.datatypes.GiftListType logicalGiftList, com.ibm.commerce.giftcenter.facade.server.entity.datatypes.Grgftreg physicalGiftList)
The method uses the value mapping service to map the access specifier types in the noun to those stored in the database.