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 String
Property to be used for shared data plan list access string change notification.static final String
Property to be used for shared data backdate change notificationstatic final int
static final int
change options offering typestatic final String
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 selectionstatic final int
Deal offering offering type.static final String
static final int
No offering offering type.static final int
static final String
Property to be used for shared data change offering notification.static final String
Property to be used for shared data offering type change notification.static final String
static final String
static final int
Plan offering offering type.static final int
-
Constructor Summary
ConstructorsConstructorDescriptionCreates purchase offering shared data. -
Method Summary
Modifier and TypeMethodDescriptionvoid
dealStatesChanged
(boolean changed) Returns the selected backdateReturns the model handle of the selected plan or deal during purchase offering.int
Returns the offering typeint
Returns the shared plan list access string.boolean
Retrieve the selected services/deals in plan options page for enabling/disabling of other pagesgets the selected service poid for dealboolean
boolean
called by wizard pages to know if backdating option is selected in Purchase panelboolean
boolean
boolean
boolean
void
recycle()
Clears shared data variables.void
setBackdateData
(boolean flag, Date date) sets the backdating option to share with other wizard pages and holds the chosen backdatevoid
void
setOffering
(PModelHandle inOffering) Sets the model handle of the selected plan/deal during purchase offering.void
setOfferingType
(int offeringType) During purchase offering, if the offering type has changed, holds onto the passed-in offering type and callsfireSharedDataChangedNotification
to notify any interested listeners.void
setOperationType
(int operationType) void
setPaymentOptionEnabled
(boolean flag) This will pass the information to the Payment Option panel to enable or disable depending inflag
void
setPlanListAccessString
(String accessString) Holds onto the plan list access string and callsfireSharedDataChangedNotification
to notify any interested listeners.void
setPlanOfferingHasRequiredServicesFlag
(boolean flag) void
setReqDealSelectedFlag
(boolean flag) void
Store the selected services/deals in plan options page for enabling/disabling of other pagesvoid
setSelectedServiceObjForDeal
(Poid servPoid) set the selected service object for Dealvoid
setServiceAvailableToCustomize
(boolean flag) void
setServiceMappingRequired
(boolean isReq) void
setSubscrptionGroupAvailable
(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
setOfferingType
for 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 callsfireSharedDataChangedNotification
to 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_OFFERING
the model handle is that of a deal. If the offering type isPLAN_OFFERING
the 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 callsfireSharedDataChangedNotification
to 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:
recycle
in 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
-