Class PSharingUtility

java.lang.Object
com.portal.app.cc.sharing.PSharingUtility

public class PSharingUtility extends Object
  • Field Details

    • DISCOUNT_SHARING_GROUPTYPE

      public static final String DISCOUNT_SHARING_GROUPTYPE
    • CHARGE_SHARING_GROUPTYPE

      public static final String CHARGE_SHARING_GROUPTYPE
    • PROFILE_SHARING_GROUPTYPE

      public static final String PROFILE_SHARING_GROUPTYPE
    • COLLECTION_SHARING_GROUPTYPE

      public static final String COLLECTION_SHARING_GROUPTYPE
    • COLLECTION_SHARING

      public static final String COLLECTION_SHARING
    • PROFILE_SHARING

      public static final String PROFILE_SHARING
    • AL_SERVICES

      public static final String AL_SERVICES
      See Also:
    • genPurposePoidtoIDMap

      public static HashMap<Poid,String> genPurposePoidtoIDMap
  • Constructor Details

    • PSharingUtility

      public PSharingUtility()
  • Method Details

    • refresh

      public static void refresh()
      This will refresh the state of this class. Called when the page should be immediately refreshed - typically as a result of the Reset/Refresh action being invoked by the user. This will be called from the PSharingPage's refresh.
    • getEventDiscription

      public static Object getEventDiscription(String type)
      Returns the event description for a passed event. This will store event descriptions if it is not yet stored/refreshed. If the event description is not available and the length of the event type string is less than 6, this method will return the event type itself otherwise this will return the result of type.substring(6).
      Parameters:
      type - String the event type
      Returns:
      Object the event description
    • setBusyCursor

      public static void setBusyCursor(boolean b)
    • openAccount

      public static void openAccount(Poid acctPoid)
      This method is provided to open an account which is passed.
      Parameters:
      acctPoid - Poid the account poid
    • getControllerInstance

      public static Object getControllerInstance(String option) throws Exception
      Used to dynamically create instances of Customer Center beans and drilldowns and provide the ability for customers to override them. Specify the fully qualified class name for the Class you wish to create. This method will look through global properties to determine if that class has been overridden. If overridden, you'll get back an instance of the customized Class. If not, you'll get back an instance of the Class you have requested.

      The property lookup will use the name of the class passed in with ".subclass" tacked on. So to override the class com.portal.Foo a customer would create a property entry as follows
      com.portal.Foo.subclass=com.mypkg.Bar
      This method will have data structure to store the controller objects. So, controller will be created only once. Next time onwards cached controller will be return.
      Parameters:
      option - String the sharing option key to bring the controller name specific for the sharing type
      Returns:
      Object the sharing controller
      Throws:
      Exception
    • getPropertyValue

      public static String getPropertyValue(String name)
      Returns the label from the CustomerCenterResources.properties file for a specified key.
      Parameters:
      name - String the key
      Returns:
      String the label for the specified key
    • getPropertyValueBySharing

      public static String getPropertyValueBySharing(String controllerkey, String name)
      Returns the label from the CustomerCenterResources.properties file for a specified key with respect to the sharing type.
      Parameters:
      controllerkey - String the controller key format the sharing specific key to get the label
      name - String the generic key to get the label
      Returns:
      String the label for the specified key with respect to the sharing type
    • formatHelpId

      public static String formatHelpId(String controllerkey, String s)
      Returns the Help Id with respect to the sharing type.
      Parameters:
      controllerkey - String the sharing type key
      s - String the Help Id to be formatted
      Returns:
      String the formatted Help Id
    • getDisplayNameForService

      public static String getDisplayNameForService(Poid serpoid, String loginName)
      Returns the formatted string for a specified service with respect to the service's login.
      Parameters:
      serpoid - Poid the service poid
      loginName - String the login name for service
      Returns:
      String the formatted service string
    • getCurrentAccountPoid

      public static Poid getCurrentAccountPoid()
      Returns the currect account poid of Customer Center.
      Returns:
      Poid the current account poid
    • isDiscountSharing

      public static boolean isDiscountSharing(String controllerkey)
      Returns the passed controller key is of type Discount sharing or not.
      Parameters:
      controllerkey - String the sharing key
      Returns:
      boolean returns true if it is discount sharing otherwise false
    • isChargeSharing

      public static boolean isChargeSharing(String controllerkey)
      Returns the passed controller key is of type Charge sharing or not.
      Parameters:
      controllerkey - String the sharing key
      Returns:
      boolean returns true if it is charge sharing otherwise false
    • isProfileSharing

      public static boolean isProfileSharing(String controllerkey)
      Returns the passed controller key is of type Profile sharing or not.
      Parameters:
      controllerkey - String the sharing key
      Returns:
      boolean returns true if it is Profile sharing otherwise false
    • isCollectionSharing

      public static boolean isCollectionSharing(String controllerkey)
      Returns the passed controller key is of type Controller sharing or not.
      Parameters:
      controllerkey - String the sharing key
      Returns:
      boolean returns true if it is Controller sharing otherwise false
    • getServiceList

      public static ArrayList<String> getServiceList()
      Returns the list of services available in the system except pcm_client and admin_client services.
      Returns:
      ArrayList list of services exist in the system.
    • getBillInfoId

      public static String getBillInfoId(Poid billInfo)
      Returns the billinfoId of the corresponding billinfo poid.
      Parameters:
      billInfo -
      Returns:
      billInfoID
    • getAccountNumber

      public static String getAccountNumber(Poid acctPoid)
      Returns the account number from the corresponding account poid.
      Parameters:
      acctPoid -
      Returns: