public class ChangeSubscriptionMediator extends AbstractChangeBusinessObjectMediatorImpl
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
COPYRIGHT
IBM Copyright notice field.
|
Constructor and Description |
---|
ChangeSubscriptionMediator() |
Modifier and Type | Method and Description |
---|---|
void |
change(java.lang.Object aNoun)
This method is called when a Process service with a custom action is
called on the subscription.
|
void |
create(java.lang.Object aNoun)
This method populates the physical data container with the physical SDO
object to create.
|
java.lang.Long |
createSchedulerJob(java.lang.Object noun,
java.lang.String scheduledActionName,
java.util.Date actionDate,
java.lang.Integer jobStatus,
TypedProperty parameters)
This method creates a scheduled action on the
SUBSCRSCHJOBS
table using the parameters specified. |
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 Subscription noun can be updated.
|
java.util.List |
validateCreate(java.lang.Object aNoun)
This method checks if the logical Subscription noun can be created.
|
java.util.List |
validateDelete(java.lang.Object aNoun)
This method checks if the logical Subscription 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 SubscriptionType
SDO business object to create.AbstractApplicationException
public java.lang.Long createSchedulerJob(java.lang.Object noun, java.lang.String scheduledActionName, java.util.Date actionDate, java.lang.Integer jobStatus, TypedProperty parameters) throws AbstractApplicationException
SUBSCRSCHJOBS
table using the parameters specified. The subscription ID of the
subscription for which the job is created is expected to be set in the
subscription noun. If the job status is null, the job is marked active by
default.noun
- The subscription type noun.scheduledActionName
- The name of the scheduled action.actionDate
- The action date on which the scheduled action is to be run.jobStatus
- The status of the job.parameters
- The request parameters for the scheduled job.AbstractApplicationException
public java.util.List validateCreate(java.lang.Object aNoun) throws AbstractApplicationException
aNoun
- The logical SubscriptionType
SDO business object
to validate.ApplicationError
if
there are any errors, otherwise the list will be empty.AbstractApplicationException
public void change(java.lang.Object aNoun) throws AbstractApplicationException
Active
and the activate
method is called.Canceled
and the cancel
method is called.change
in interface ChangeBusinessObjectMediator
change
in class AbstractChangeBusinessObjectMediatorImpl
aNoun
- The logical SubscriptionType
SDO business object.AbstractApplicationException
public java.util.List validateChange(java.lang.Object aNoun) throws AbstractApplicationException
aNoun
- The logical SubscriptionType
SDO business object to validate.ApplicationError
if there are any
errors, otherwise the list will be empty.AbstractApplicationException
SubscriptionDetailsValidator#validateChange()}
public void delete(java.lang.Object aNoun) throws AbstractApplicationException
aNoun
- The logical SubscriptionType
SDO business object to delete.AbstractApplicationException
public java.util.List validateDelete(java.lang.Object aNoun) throws AbstractApplicationException
aNoun
- The logical SubscriptionType
SDO business object to validate.ApplicationError
if there are any
errors, otherwise the list will be empty.AbstractApplicationException
SubscriptionDetailsValidator#validateDelete()}
public java.lang.Object findPhysicalEntity(java.lang.Object aNoun) throws AbstractApplicationException
PhysicalDataContainer
that was created in the
initializePhysicalDataContainer
method that matches the
provided noun.aNoun
- The logical SubscriptionType
SDO.AbstractApplicationException