Package com.highdeal.pnr.hci
Class SubscriptionModificationModel
java.lang.Object
com.highdeal.filter.hci.ModificationModel
com.highdeal.pnr.hci.SubscriptionModificationModel
- All Implemented Interfaces:
XMLMarshallable
This class represents a subscription modification model
by using
If no
Available main modifiable attribute names are :
attributeModificationModel to describe each modification.
If no
attributeModificationModel is given, no modification is done.
Available main modifiable attribute names are :
EXPIRATIONPRICE_FREEZE_EFFECTIVEPRICE_FREEZE_EXPIRATIONCOMMITMENT_EXPIRATIONSUSPENSION_DATERESUMPTION_DATECANCELLATION_DATE
ModificationModel for
more information. The element name for this subscription modification is set to "subscriptionModification".
No specific modification exists for subscriptions.XML API for HCI
The XML APIs specify the following XSD fragment:
XSD Fragment
<xs:element name="subscriptionModification" substitutionGroup="ModificationModel" type="ModificationModel"/>
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringName of the attributeDescription that representscancellationDate.static final StringName of the attributeDescription that representscommitmentEffective.static final StringName of the attributeDescription that representsexpiration.static final StringName of the attributeDescription that representspriceFreezeEffective.static final StringName of the attributeDescription that representspriceFreezeExpiration.static final StringName of the attributeDescription that representsresumptionDate.static final StringName of the attributeDescription that representssuspensionDate. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidThis method throws an exception if the required modifications are not well formed.Returns the list of pre-formed modification model of all modifiable main attributes.Gets a pre-formed attribute modification model for a specified main attribute.This method allows the user to retrieve the catalog of available specific modifications.This method allows the user to retrieve from the catalog of available specific modifications a specified one.Methods inherited from class com.highdeal.filter.hci.ModificationModel
addAttributeModification, addCharacterData, addChild, addSpecificModification, checkAttributeUnicity, getAttributeModificationList, getAttributeModificationListFromGroup, getEndPeriod, getModificationName, getSpecificModificationList, getStartPeriod, isPeriodRequired, marshal, setAttributeModificationList, setAttributes, setEndPeriod, setPeriodRequired, setSpecificModificationList, setStartPeriod
-
Field Details
-
EXPIRATION
Name of the attributeDescription that representsexpiration. The type of the correspondingattributeDescriptionisdate- See Also:
-
PRICE_FREEZE_EFFECTIVE
Name of the attributeDescription that representspriceFreezeEffective. The type of the correspondingattributeDescriptionisdate- See Also:
-
PRICE_FREEZE_EXPIRATION
Name of the attributeDescription that representspriceFreezeExpiration. The type of the correspondingattributeDescriptionisdate- See Also:
-
COMMITMENT_EXPIRATION
Name of the attributeDescription that representscommitmentEffective. The type of the correspondingattributeDescriptionisdate- See Also:
-
SUSPENSION_DATE
Name of the attributeDescription that representssuspensionDate. The type of the correspondingattributeDescriptionisdate- See Also:
-
RESUMPTION_DATE
Name of the attributeDescription that representsresumptionDate. The type of the correspondingattributeDescriptionisdate- See Also:
-
CANCELLATION_DATE
Name of the attributeDescription that representscancellationDate. The type of the correspondingattributeDescriptionisdate- See Also:
-
-
Constructor Details
-
SubscriptionModificationModel
public SubscriptionModificationModel()
-
-
Method Details
-
getSpecificModificationFromCatalog
Description copied from class:ModificationModelThis method allows the user to retrieve from the catalog of available specific modifications a specified one.- Specified by:
getSpecificModificationFromCatalogin classModificationModel- Parameters:
code- The code of the requested specific modification
-
getSpecificModificationCatalog
Description copied from class:ModificationModelThis method allows the user to retrieve the catalog of available specific modifications.- Specified by:
getSpecificModificationCatalogin classModificationModel- Returns:
- A list of
SpecificModificationModel
-
getMainModifiableAttributeFromCatalog
Description copied from class:ModificationModelGets a pre-formed attribute modification model for a specified main attribute.- Specified by:
getMainModifiableAttributeFromCatalogin classModificationModel- Returns:
- The attribute related modification model or null if no modification is allowed on the specified attribute
-
getMainModifiableAttributeCatalog
Description copied from class:ModificationModelReturns the list of pre-formed modification model of all modifiable main attributes.- Specified by:
getMainModifiableAttributeCatalogin classModificationModel- Returns:
- A list of
AttributeDescriptionModel
-
checkModifications
Description copied from class:ModificationModelThis method throws an exception if the required modifications are not well formed.- Specified by:
checkModificationsin classModificationModel- Throws:
InvalidBulkModificationException- with MALFORMED_MODEL as reason
-