Package com.portal.app.cc.comp
Class PurchaseOfferingSharedData
java.lang.Object
com.portal.app.comp.SharedData
com.portal.app.cc.comp.PurchaseOfferingSharedData
Data sharing support for purchasing an offering.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringProperty to be used for shared data plan list access string change notification.static final StringProperty to be used for shared data backdate change notificationstatic final intstatic final intchange options offering typestatic final Stringproperty to be used for notifying customize services page if it should be enabled or not during change options and transition operation depending on the deal selectionstatic final intDeal offering offering type.static final Stringstatic final intNo offering offering type.static final intstatic final StringProperty to be used for shared data change offering notification.static final StringProperty to be used for shared data offering type change notification.static final Stringstatic final Stringstatic final intPlan offering offering type.static final int -
Constructor Summary
ConstructorsConstructorDescriptionCreates purchase offering shared data. -
Method Summary
Modifier and TypeMethodDescriptionvoiddealStatesChanged(boolean changed) Returns the selected backdateReturns the model handle of the selected plan or deal during purchase offering.intReturns the offering typeintReturns the shared plan list access string.booleanRetrieve the selected services/deals in plan options page for enabling/disabling of other pagesgets the selected service poid for dealbooleanbooleancalled by wizard pages to know if backdating option is selected in Purchase panelbooleanbooleanbooleanbooleanvoidrecycle()Clears shared data variables.voidsetBackdateData(boolean flag, Date date) sets the backdating option to share with other wizard pages and holds the chosen backdatevoidvoidsetOffering(PModelHandle inOffering) Sets the model handle of the selected plan/deal during purchase offering.voidsetOfferingType(int offeringType) During purchase offering, if the offering type has changed, holds onto the passed-in offering type and callsfireSharedDataChangedNotificationto notify any interested listeners.voidsetOperationType(int operationType) voidsetPaymentOptionEnabled(boolean flag) This will pass the information to the Payment Option panel to enable or disable depending inflagvoidsetPlanListAccessString(String accessString) Holds onto the plan list access string and callsfireSharedDataChangedNotificationto notify any interested listeners.voidsetPlanOfferingHasRequiredServicesFlag(boolean flag) voidsetReqDealSelectedFlag(boolean flag) voidStore the selected services/deals in plan options page for enabling/disabling of other pagesvoidsetSelectedServiceObjForDeal(Poid servPoid) set the selected service object for DealvoidsetServiceAvailableToCustomize(boolean flag) voidsetServiceMappingRequired(boolean isReq) voidsetSubscrptionGroupAvailable(boolean mIsSubscriptionGroupAvailable) set whether plan is having subcription group or notMethods inherited from class com.portal.app.comp.SharedData
fireSharedDataChangedNotification, fireSharedDataVetoableNotification
-
Field Details
-
OPERATIONTYPE
- See Also:
-
CUST_SERVICE
property to be used for notifying customize services page if it should be enabled or not during change options and transition operation depending on the deal selection- See Also:
-
PAYMENT_OPTION_ENABLED
- See Also:
-
CHANGE_OPTIONS_OFFERING
public static final int CHANGE_OPTIONS_OFFERINGchange options offering type- See Also:
-
CHANGE_OPTIONS
public static final int CHANGE_OPTIONS- See Also:
-
TRANSITION
public static final int TRANSITION- See Also:
-
NO_OPERATION
public static final int NO_OPERATION- See Also:
-
OFFERINGTYPE
Property to be used for shared data offering type change notification.- See Also:
-
BACKDATE
Property to be used for shared data backdate change notification- See Also:
-
NO_OFFERING
public static final int NO_OFFERINGNo offering offering type.- See Also:
-
DEAL_OFFERING
public static final int DEAL_OFFERINGDeal offering offering type.- See Also:
-
PLAN_OFFERING
public static final int PLAN_OFFERINGPlan offering offering type.- See Also:
-
MAP_SERVICE
- See Also:
-
OFFERING
Property to be used for shared data change offering notification.- See Also:
-
ACCESSSTRING
Property to be used for shared data plan list access string change notification.- See Also:
-
-
Constructor Details
-
Method Details
-
getOfferingType
public int getOfferingType()Returns the offering type- Returns:
- offering type. See
setOfferingTypefor the possible values.
-
setOfferingType
public void setOfferingType(int offeringType) During purchase offering, if the offering type has changed, holds onto the passed-in offering type and callsfireSharedDataChangedNotificationto notify any interested listeners. The property sent isOFFERINGTYPE.- Parameters:
offeringType- One of the following:
NO_OFFERING-- offering type not selected
DEAL_OFFERING-- selected offering is a deal
PLAN_OFFERING-- selected offering is a plan
-
setOffering
Sets the model handle of the selected plan/deal during purchase offering. The property sent isOFFERING. If the offering type isDEAL_OFFERINGthe model handle is that of a deal. If the offering type isPLAN_OFFERINGthe model handle is that of a plan.- Parameters:
inOffering- Model handle for the selected plan
-
getOffering
Returns the model handle of the selected plan or deal during purchase offering.- Returns:
- model handle.
-
getPlanListAccessString
Returns the shared plan list access string.- Returns:
- The string that will be used to retrieve the plan list from Portal.
-
setPlanListAccessString
Holds onto the plan list access string and callsfireSharedDataChangedNotificationto notify any interested listeners. The property sent isACCESSSTRING.- Parameters:
accessString- The shared plan list access string
-
recycle
public void recycle()Clears shared data variables.- Specified by:
recyclein classSharedData
-
setOperationType
public void setOperationType(int operationType) -
getOperationType
public int getOperationType() -
setServiceMappingRequired
public void setServiceMappingRequired(boolean isReq) -
getServiceMappingRequired
public boolean getServiceMappingRequired() -
setPlanOfferingHasRequiredServicesFlag
public void setPlanOfferingHasRequiredServicesFlag(boolean flag) -
isPlanOfferingHasRequiredServices
public boolean isPlanOfferingHasRequiredServices() -
setBackdateData
sets the backdating option to share with other wizard pages and holds the chosen backdate- Parameters:
flag- true if backdating option is selected in Purchase panel, false otherwisedate- chosen backdate
-
isBackdatingSelected
public boolean isBackdatingSelected()called by wizard pages to know if backdating option is selected in Purchase panel- Returns:
- true if backdating option is selected in Purchase panel, false otherwise
-
getBackdate
Returns the selected backdate- Returns:
- backdate
-
dealStatesChanged
public void dealStatesChanged(boolean changed) -
isDealStatesChanged
public boolean isDealStatesChanged() -
setModelHandleOfFromPlan
-
getModelHandleOfFromPlan
-
getReqDealSelectedFlag
public boolean getReqDealSelectedFlag() -
setReqDealSelectedFlag
public void setReqDealSelectedFlag(boolean flag) -
isServiceAvailableToCustomize
public boolean isServiceAvailableToCustomize() -
setServiceAvailableToCustomize
public void setServiceAvailableToCustomize(boolean flag) -
setPaymentOptionEnabled
public void setPaymentOptionEnabled(boolean flag) This will pass the information to the Payment Option panel to enable or disable depending inflag- Parameters:
flag-
-
isSubscrptionGroupAvailable
public boolean isSubscrptionGroupAvailable()- Returns:
- boolean true for plan with subscription group
-
setSubscrptionGroupAvailable
public void setSubscrptionGroupAvailable(boolean mIsSubscriptionGroupAvailable) set whether plan is having subcription group or not- Parameters:
mIsSubscriptionGroupAvailable- boolean
-
setSelectedServiceObjForDeal
set the selected service object for Deal -
getSelectedServicePoidForDeal
gets the selected service poid for deal -
setSelectedDealsOrServices
Store the selected services/deals in plan options page for enabling/disabling of other pages- Parameters:
sparsearray- of selected services
-
getSelectedDealsOrServices
Retrieve the selected services/deals in plan options page for enabling/disabling of other pages- Returns:
- sparsearray of selected services
-