public class ChangeGiftListAccessSpecifierPartMediator extends AbstractChangeGiftListPartMediator
AccessSpecifier
noun part in the GiftList
noun.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. |
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.
|
void |
update(java.lang.Object noun,
java.lang.Object nounPart)
This method updates the gift list access options as well the user
authentication entries.
|
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.
|
createAddress, findGiftListPhysicalEntity, updateAddress
applyChanges, convertToBigDecimal, convertToDate, convertToDouble, convertToInteger, convertToLong, getNounParts, getParentPhysicalDataContainer, getPhysicalDataContainer, initialize
getUpdateAccessProfile, setUpdateAccessProfile
initializeConfig
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getUpdateAccessProfile, setUpdateAccessProfile
initializeConfig
public static final java.lang.String COPYRIGHT
public static java.lang.String[] xpaths
public ChangeGiftListAccessSpecifierPartMediator()
public void create(java.lang.Object noun, java.lang.Object nounPart) throws AbstractApplicationException
Gruserauth
objects for the guest user
password and registrant password to be persisted. The access specifier
element in the the GiftListAccessSpecifierType
noun part is
persisted by the ChangeGiftListMediator
.noun
- - The GiftListType
object.nounPart
- - The GiftListAccessSpecifierType
object.AbstractApplicationException
- - when an error occurs.public void delete(java.lang.Object aNoun, java.lang.Object aNounPart) throws AbstractApplicationException
aNoun
- The logical GiftListType
SDO business object.aNounPart
- The logical GiftListType
SDO business object.AbstractApplicationException
public java.lang.Object findPhysicalEntity(java.lang.Object aNoun, java.lang.Object aNounPart) throws DataMediatorException
findUserAuthenticationByType
method instead.aNoun
- The logical GiftListType
SDO.aNounPart
- The logical GiftListType
SDO.PhysicalGiftList
object if
it is found, otherwise it returns null.DataMediatorException
ChangeGiftListAccessSpecifierPartMediator#findUserAuthenticationByType(Long, int)}
public java.lang.String[] getNounPartXPaths()
public void update(java.lang.Object noun, java.lang.Object nounPart) throws AbstractApplicationException
Public
and Private
gift lists, the method removes all previous Gruserauth
entries. For Protected
gift lists, the method updates the
existing user authentication entries if they exist. If not, new entries
are created in the Gruserauth
table.noun
- The logical GiftListType
SDO business object.nounPart
- The logical GiftListAccessSpecifierType
SDO business object.AbstractApplicationException
public com.ibm.commerce.giftcenter.facade.server.entity.datatypes.Gruserauth findUserAuthenticationByType(java.lang.Long uniqueID, int accessType) throws DataMediatorException
Gruserauth
physical object based on the gift list
unique ID and the access type.uniqueID
- The unique ID of the gift list.accessType
- The access type based on which the Gruserauth
entry is retrieved.Gruserauth
physical object.DataMediatorException
GiftListServerConstants#AUTH_TYPE_GIFTGIVER_ACCESS}
{@link GiftListServerConstants#AUTH_TYPE_MANAGE_ACCESS}
public java.util.List validateChange(java.lang.Object noun, java.lang.Object nounPart) throws AbstractApplicationException
validateParameters
method to perform the
validation.validateChange
in interface ChangeBusinessObjectPartMediator
validateChange
in class AbstractChangeGiftListPartMediator
noun
- The GiftListType
noun object.nounPart
- The GiftListAccessSpecifier
noun part.ApplicationError
AbstractApplicationException
ApplicationError}
public java.util.List validateCreate(java.lang.Object noun, java.lang.Object nounPart) throws AbstractApplicationException
validateParameters
method to perform the
validation.validateCreate
in interface ChangeBusinessObjectPartMediator
validateCreate
in class AbstractChangeGiftListPartMediator
noun
- The GiftListType
noun object.nounPart
- The GiftListAccessSpecifier
noun part.ApplicationError
AbstractApplicationException
ApplicationError}
public java.util.List validateDelete(java.lang.Object noun, java.lang.Object nounPart) throws AbstractApplicationException
validateDelete
in interface ChangeBusinessObjectPartMediator
validateDelete
in class AbstractChangeGiftListPartMediator
noun
- The gift list noun.nounPart
- The gift list access specifier noun part.ApplicationError
objects.AbstractApplicationException