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 StringformatHelpId(String controllerkey, String s) Returns the Help Id with respect to the sharing type.static StringgetAccountNumber(Poid acctPoid) Returns the account number from the corresponding account poid.static StringgetBillInfoId(Poid billInfo) Returns the billinfoId of the corresponding billinfo poid.static ObjectgetControllerInstance(String option) Used to dynamically create instances of Customer Center beans and drilldowns and provide the ability for customers to override them.static PoidReturns the currect account poid of Customer Center.static StringgetDisplayNameForService(Poid serpoid, String loginName) Returns the formatted string for a specified service with respect to the service's login.static ObjectgetEventDiscription(String type) Returns the event description for a passed event.static StringgetPropertyValue(String name) Returns the label from the CustomerCenterResources.properties file for a specified key.static StringgetPropertyValueBySharing(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 booleanisChargeSharing(String controllerkey) Returns the passed controller key is of type Charge sharing or not.static booleanisCollectionSharing(String controllerkey) Returns the passed controller key is of type Controller sharing or not.static booleanisDiscountSharing(String controllerkey) Returns the passed controller key is of type Discount sharing or not.static booleanisProfileSharing(String controllerkey) Returns the passed controller key is of type Profile sharing or not.static voidopenAccount(Poid acctPoid) This method is provided to open an account which is passed.static voidrefresh()This will refresh the state of this class.static voidsetBusyCursor(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
trueif 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
trueif 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
trueif 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
trueif 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:
-