Package com.portal.app.cc.sharing
Class PSharingUtility
java.lang.Object
com.portal.app.cc.sharing.PSharingUtility
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic String
formatHelpId
(String controllerkey, String s) Returns the Help Id with respect to the sharing type.static String
getAccountNumber
(Poid acctPoid) Returns the account number from the corresponding account poid.static String
getBillInfoId
(Poid billInfo) Returns the billinfoId of the corresponding billinfo poid.static Object
getControllerInstance
(String option) Used to dynamically create instances of Customer Center beans and drilldowns and provide the ability for customers to override them.static Poid
Returns the currect account poid of Customer Center.static String
getDisplayNameForService
(Poid serpoid, String loginName) Returns the formatted string for a specified service with respect to the service's login.static Object
getEventDiscription
(String type) Returns the event description for a passed event.static String
getPropertyValue
(String name) Returns the label from the CustomerCenterResources.properties file for a specified key.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.Returns the list of services available in the system except pcm_client and admin_client services.static boolean
isChargeSharing
(String controllerkey) Returns the passed controller key is of type Charge sharing or not.static boolean
isCollectionSharing
(String controllerkey) Returns the passed controller key is of type Controller sharing or not.static boolean
isDiscountSharing
(String controllerkey) Returns the passed controller key is of type Discount sharing or not.static boolean
isProfileSharing
(String controllerkey) Returns the passed controller key is of type Profile sharing or not.static void
openAccount
(Poid acctPoid) This method is provided to open an account which is passed.static void
refresh()
This will refresh the state of this class.static void
setBusyCursor
(boolean b)
-
Field Details
-
DISCOUNT_SHARING_GROUPTYPE
-
CHARGE_SHARING_GROUPTYPE
-
PROFILE_SHARING_GROUPTYPE
-
COLLECTION_SHARING_GROUPTYPE
-
COLLECTION_SHARING
-
PROFILE_SHARING
-
AL_SERVICES
- See Also:
-
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 thePSharingPage
's refresh. -
getEventDiscription
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
This method is provided to open an account which is passed.- Parameters:
acctPoid
- Poid the account poid
-
getControllerInstance
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
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
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 labelname
- String the generic key to get the label- Returns:
- String the label for the specified key with respect to the sharing type
-
formatHelpId
Returns the Help Id with respect to the sharing type.- Parameters:
controllerkey
- String the sharing type keys
- String the Help Id to be formatted- Returns:
- String the formatted Help Id
-
getDisplayNameForService
Returns the formatted string for a specified service with respect to the service's login.- Parameters:
serpoid
- Poid the service poidloginName
- String the login name for service- Returns:
- String the formatted service string
-
getCurrentAccountPoid
Returns the currect account poid of Customer Center.- Returns:
- Poid the current account poid
-
isDiscountSharing
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 otherwisefalse
-
isChargeSharing
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 otherwisefalse
-
isProfileSharing
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 otherwisefalse
-
isCollectionSharing
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 otherwisefalse
-
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
Returns the billinfoId of the corresponding billinfo poid.- Parameters:
billInfo
-- Returns:
- billInfoID
-
getAccountNumber
Returns the account number from the corresponding account poid.- Parameters:
acctPoid
-- Returns:
-