public class ChangeCampaignMediator extends AbstractChangeBusinessObjectMediatorImpl
Constructor and Description |
---|
ChangeCampaignMediator() |
Modifier and Type | Method and Description |
---|---|
void |
change(java.lang.Object aNoun)
This method performs no actions as the updating of campaigns is done by the change campaign part mediator.
|
void |
create(java.lang.Object aNoun)
This method populates the physical data container with the new
Dmcampaign
object to create. |
void |
delete(java.lang.Object aNoun)
This method updates the physical data container with the
Dmcampaign
object to delete. |
java.lang.Object |
findPhysicalEntity(java.lang.Object aNoun)
This method returns the
Dmcampaign physical SDO from the
PhysicalDataContainer that was created in the
initializePhysicalDataContainer method. |
java.util.List |
validateChange(java.lang.Object aNoun)
This method checks if the logical campaign noun can be updated.
|
java.util.List |
validateCreate(java.lang.Object aNoun)
This method checks if the logical campaign noun can be created.
|
java.util.List |
validateDelete(java.lang.Object aNoun)
This method checks if the logical campaign 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
Dmcampaign
object to create. It sets all the campaign data, including any provided user data,
from the logical campaign noun.aNoun
- The logical CampaignType
SDO business object to create.AbstractApplicationException
public void change(java.lang.Object aNoun) throws AbstractApplicationException
change
in interface ChangeBusinessObjectMediator
change
in class AbstractChangeBusinessObjectMediatorImpl
aNoun
- The logical CampaignType
SDO business object.AbstractApplicationException
public void delete(java.lang.Object aNoun) throws AbstractApplicationException
Dmcampaign
object to delete. If any activities are associated with the campaign, then
the activities are set to not be associated with any campaign.aNoun
- The logical CampaignType
SDO business object to delete.AbstractApplicationException
public java.lang.Object findPhysicalEntity(java.lang.Object aNoun) throws DataMediatorException
Dmcampaign
physical SDO from the
PhysicalDataContainer
that was created in the
initializePhysicalDataContainer
method.aNoun
- The logical CampaignType
SDO.Dmcampaign
object if it is found, otherwise it returns null.DataMediatorException
public java.util.List validateCreate(java.lang.Object aNoun) throws DataMediatorException
aNoun
- The logical CampaignType
SDO business object to validate.ApplicationError
if there are any
errors, otherwise the list will be empty.DataMediatorException
public java.util.List validateChange(java.lang.Object aNoun) throws DataMediatorException
aNoun
- The logical CampaignType
SDO business object to validate.ApplicationError
if there are any
errors, otherwise the list will be empty.DataMediatorException
public java.util.List validateDelete(java.lang.Object aNoun) throws DataMediatorException
aNoun
- The logical CampaignType
SDO business object to validate.ApplicationError
if there are any
errors, otherwise the list will be empty.DataMediatorException