Class PSubscriberPrefsPage

All Implemented Interfaces:
PAccountViewPage, PCCPage, PWizardPage, PAppComponent, PClientComponent, PCollectDataListener, PComponent, PComponentAttribute, PViewDataChangeListener, ContainerListener, ImageObserver, MenuContainer, PropertyChangeListener, Serializable, EventListener, Accessible, ListSelectionListener, TreeSelectionListener

PPreferencesPage is used to set and delete the account level and service level preferences both during account creation and maintenance mode.
See Also:
  • Field Details

    • gridBagLayoutServicePrefs

      public GridBagLayout gridBagLayoutServicePrefs
    • gridBagLayoutPreference

      public GridBagLayout gridBagLayoutPreference
    • preferencesPanel

      public PIACustomizablePanel preferencesPanel
    • bundle

      protected static ResourceBundle bundle
    • serviceTreeTable

      public JTreeTable serviceTreeTable
    • poidColumn

      public static int poidColumn
    • TYPE_STR

      public static int TYPE_STR
    • TYPE_INT

      public static int TYPE_INT
    • TYPE_ENUM

      public static int TYPE_ENUM
    • TYPE_DECIMAL

      public static int TYPE_DECIMAL
    • TYPE_TIMESTAMP

      public static int TYPE_TIMESTAMP
    • COL_ENABLED

      public static int COL_ENABLED
    • domain

      public static String domain
      Domain name for active mediation referrein strings_t table
    • ccService

      public PClientServices ccService
    • conn

      public PCachedContext conn
  • Constructor Details

    • PSubscriberPrefsPage

      public PSubscriberPrefsPage()
      Initializes the page and finds if the page is account creation or maintenance mode
  • Method Details

    • addNotify

      public void addNotify()
      When the account creation wizard is opened by default preferences page should be disabled
      Overrides:
      addNotify in class JComponent
    • setEnabled

      public void setEnabled(boolean b)
      Enables or disables the preferences tab in account creation wizard
      Overrides:
      setEnabled in class JComponent
    • refresh

      public void refresh()
      Clearing all the required hashmaps.
      Specified by:
      refresh in interface PAccountViewPage
      Overrides:
      refresh in class PMaintenancePage
    • isAccountCreation

      protected boolean isAccountCreation()
      Returns true if it is account creation mode else sets it to false.
      Returns:
    • clearMaps

      public void clearMaps()
    • getControllerClassName

      public String getControllerClassName() throws RemoteException
      Description copied from class: PIACustomizablePanel
      Retrieves the class name of this component's controller, in this case, null.
      Specified by:
      getControllerClassName in interface PComponent
      Overrides:
      getControllerClassName in class PIACustomizablePanel
      Returns:
      A null String.
      Throws:
      RemoteException - thrown for errors
    • enteringPage

      public void enteringPage()
      Builds the JTreeTable and assigns appropriate action listeners also builds the preferences structure when the page is visited for the first time.
      Specified by:
      enteringPage in interface PCCPage
      Overrides:
      enteringPage in class PMaintenancePage
    • getWizardHelpID

      public String getWizardHelpID()
      Description copied from interface: PWizardPage
      Returns the Help ID for this wizard page.
      Specified by:
      getWizardHelpID in interface PWizardPage
    • leavingPage

      public void leavingPage() throws PropertyVetoException
      Will be called when the controls goes away from Preferences page in account creation mode
      Specified by:
      leavingPage in interface PWizardPage
      Throws:
      PropertyVetoException
    • save

      public void save() throws PSaveException
      Save method will be invoked when save button is clicked or when the preferences are saved from a confirmatory dialog box.
      Specified by:
      save in interface PAccountViewPage
      Overrides:
      save in class PMaintenancePage
      Throws:
      PSaveException
    • validateWizardPage

      public void validateWizardPage() throws PValidationException
      Description copied from interface: PWizardPage
      Validates this page. If an error is found and the user wishes to fix it right away, a PValidationException will be thrown. (The page could validate the data itself, use wizard framework convenience methods to do validation, or do some validation itself and defer some validation work to the framework.)
      Specified by:
      validateWizardPage in interface PWizardPage
      Throws:
      PValidationException
      See Also:
    • handleWizardCommitError

      public boolean handleWizardCommitError(com.portal.app.util.CustomerError error)
      Description copied from interface: PWizardPage
      Called on each wizard page successively if an attempt to commit the wizard data failed. If a page returns true from this method, the method will not be called on the remaining pages. If the error "belongs" to a page (that is, the page determines that the user should be able to fix the error on this page) true will be returned. Otherwise it will return false. (The page could itself check for ownership of the error, use a wizard framework convenience method to do this on its behalf, or do some checking itself for error ownership and and defer some of the work to the framework.)
      Specified by:
      handleWizardCommitError in interface PWizardPage
      Parameters:
      error - The commit-time error.
      Returns:
      true if the page will handle the error; otherwise false.
      See Also:
    • valueChanged

      public void valueChanged(ListSelectionEvent e)
      valueChanged method is invoked when selection is changed in jTreeTable.
      Specified by:
      valueChanged in interface ListSelectionListener
    • collectData

      public void collectData(PCollectDataEvent event)
      Merges the model handle of the Preferences page with Model of the account.
      Specified by:
      collectData in interface PCollectDataListener
      Specified by:
      collectData in interface PWizardPage
      Overrides:
      collectData in class PIACustomizablePanel
      Parameters:
      event - the PCollectDataEvent event
      See Also:
    • localCollect

      public void localCollect(int row)
      Collects the preferences data locally and stores them in hPrefs
      Parameters:
      row -
    • hasUnsavedChanges

      public boolean hasUnsavedChanges()
      hasUnsavedChanges will be invoked when Preferences page looses focus in account maintenance mode.
      Specified by:
      hasUnsavedChanges in interface PAccountViewPage
      Overrides:
      hasUnsavedChanges in class PMaintenancePage
      Returns:
      true if this page contains unsaved changes; false otherwise
    • valueChanged

      public void valueChanged(TreeSelectionEvent arg0)
      Specified by:
      valueChanged in interface TreeSelectionListener
    • getPreferencesCount

      public int getPreferencesCount(FList prefs)
      Gets the count number of preferences in /config_subscriberpreferences_map.
      Parameters:
      prefs -
      Returns:
    • findValue

      public String findValue(FList prefs)
      Returns the value associated with the preference, if prefs is from /config_subscriberpreferences_map then default is returned, else real value is returned.
      Parameters:
      prefs -
      Returns:
    • propertyChange

      public void propertyChange(PropertyChangeEvent event)
      Will be invoked when new plan is choosed from plans section during Account Creation Mode.
      Specified by:
      propertyChange in interface PropertyChangeListener