Class PSharingPage

All Implemented Interfaces:
PAccountViewPage, PCCPage, PAppComponent, PClientComponent, PCollectDataListener, PComponent, PComponentAttribute, PViewDataChangeListener, ActionListener, ContainerListener, ImageObserver, MenuContainer, Serializable, EventListener, Accessible

public class PSharingPage extends PMaintenancePage implements ActionListener
A top-level panel for displaying all types of sharing information for an account. It contains two sections. The top section having drop down of available sharing types and bottom section displays groups as well members of the current account.
See Also:
  • Constructor Details

    • PSharingPage

      public PSharingPage() throws Exception
      Creates a new sharing page.
      Throws:
      Exception
  • Method Details

    • actionPerformed

      public void actionPerformed(ActionEvent ae)
      Invoked when an action occurs.
      Specified by:
      actionPerformed in interface ActionListener
    • recycle

      public void recycle()
      Used to make this page available for reuse.

      Subclasses should override this, but also call super.recycle()
      Specified by:
      recycle in interface PCCPage
      Overrides:
      recycle in class PMaintenancePage
    • refresh

      public void refresh()
      Called when the page should be immediately refreshed - typically as a result of the Reset/Refresh action being invoked by the user.
      Specified by:
      refresh in interface PAccountViewPage
      Overrides:
      refresh in class PMaintenancePage
    • enteringPage

      public void enteringPage()
      This method will be called right after a page is made visible. This implementation also looks wheather the sharing type drop down is under selection or not ? If it is not then it will select first sharing type as default. As well it looks the internal hasData flag and refresh the page if necessary. Subclasses that override this method should call super.enteringPage()
      Specified by:
      enteringPage in interface PCCPage
      Overrides:
      enteringPage in class PMaintenancePage
    • isValidContext

      public boolean isValidContext(PAccountViewContext ctx)
      Returns true if the sharing types are configured and at least it should have tabe level read or write permission otherwise false.
      Specified by:
      isValidContext in interface PAccountViewPage
      Overrides:
      isValidContext in class PMaintenancePage
      Parameters:
      ctx - PAccountViewContext
      Returns:
      boolean
    • isChargeSharingChangeable

      public static final boolean isChargeSharingChangeable()
      Returns true if the charge sharing has changeable permission otherwise false.
      Returns:
      boolean
    • isDiscountSharingChangeable

      public static final boolean isDiscountSharingChangeable()
      Returns true if the discount sharing has changeable permission otherwise false.
      Returns:
      boolean
    • isProfileSharingChangeable

      public static final boolean isProfileSharingChangeable()
      Returns true if the profile sharing has changeable permission otherwise false.
      Returns:
      boolean
    • isGlobalChargeSharingChangeable

      public static final boolean isGlobalChargeSharingChangeable()
      Returns true if the global charge sharing has changeable permission otherwise false.
      Returns:
      boolean
    • isChargeSharingViewable

      public static final boolean isChargeSharingViewable()
      Returns true if the charge sharing has viewable permission otherwise false.
      Returns:
      boolean
    • isDiscountSharingViewable

      public static final boolean isDiscountSharingViewable()
      Returns true if the discount sharing has viewable permission otherwise false.
      Returns:
      boolean
    • isProfileSharingViewable

      public static final boolean isProfileSharingViewable()
      Returns true if the discount sharing has viewable permission otherwise false.
      Returns:
      boolean
    • isGlobalChargeSharingViewable

      public static final boolean isGlobalChargeSharingViewable()
      Returns true if the global charge sharing has viewable permission otherwise false.
      Returns:
      boolean