public class ChangePageMediator extends AbstractChangeBusinessObjectMediatorImpl
ChangePageMediator
creates and deletes Page nouns, and validates that
the create or delete action can be performed.Modifier and Type | Field and Description |
---|---|
static java.lang.String |
COPYRIGHT
The IBM copyright field.
|
Constructor and Description |
---|
ChangePageMediator() |
Modifier and Type | Method and Description |
---|---|
void |
change(java.lang.Object aNoun)
This method performs no actions as Page updates are done by the change
Page part mediator.
|
void |
create(java.lang.Object aNoun)
This method populates the physical data container with the physical SDO
object to create.
|
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 Page noun can be updated.
|
java.util.List |
validateCreate(java.lang.Object aNoun)
This method checks if the logical Page noun can be created.
|
java.util.List |
validateDelete(java.lang.Object aNoun)
This method checks if the logical Page 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 static final java.lang.String COPYRIGHT
public void create(java.lang.Object aNoun) throws AbstractApplicationException
aNoun
- The logical PageType
SDO business object to
create.AbstractApplicationException
- exception could be thrown if any error occurspublic void change(java.lang.Object aNoun) throws AbstractApplicationException
change
in interface ChangeBusinessObjectMediator
change
in class AbstractChangeBusinessObjectMediatorImpl
aNoun
- The logical PageType
SDO business object.AbstractApplicationException
- exception could be thrown if any error occurspublic void delete(java.lang.Object aNoun) throws AbstractApplicationException
aNoun
- The logical PageType
SDO business object to
delete.AbstractApplicationException
- exception could be thrown if any error occurspublic 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 PageType
SDO.DataMediatorException
- exception could be thrown if any error occurspublic java.util.List validateCreate(java.lang.Object aNoun) throws DataMediatorException
aNoun
- The logical PageType
SDO business object to
validate.ApplicationError
if
there are any errors, otherwise the list will be empty.DataMediatorException
- exception could be thrown if any error occurspublic java.util.List validateChange(java.lang.Object aNoun) throws DataMediatorException
aNoun
- The logical PageType
SDO business object to
validate.ApplicationError
if
there are any errors, otherwise the list will be empty.DataMediatorException
- exception could be thrown if any error occurspublic java.util.List validateDelete(java.lang.Object aNoun) throws DataMediatorException
aNoun
- The logical PageType
SDO business object to
validate.ApplicationError
if
there are any errors, otherwise the list will be empty.DataMediatorException
- exception could be thrown if any error occurs