Package com.portal.app.cc.tcf
Class CCTelcoUtility
java.lang.Object
com.portal.app.cc.tcf.CCTelcoUtility
Utility class for Telco clients
- Version:
- %date_modified: Thr Feb 26 18:53:38 2003 %
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetChoiceFormatFromStrings
(String stringDomain) Given a string domain, returns the choice format string.getDeviceStatusFormat
(String deviceStatusClass, String deviceStatusStringDomain) wrapper for device status retrievalRetrieves network elements for devicesgetPromotionTypeDescription
(PModelHandle model, PModelHandle[] mProfileHandles) Retrieves all account or service level promotion type descriptions, that matches with ERAs in given profilesgetPromotionTypeString
(PModelHandle model, PModelHandle[] mProfileHandles) Retrieves all account or service level promotion types,that matches with ERAs in given profilesRetrieves the display field format string for supplementary services status and service level ERAs status.getStatusFormat
(String devType) Retrieves the display field format string for a device status.Given a PModelHandle mod, returns the telephone number if asigned else return the login IDboolean
isPrimaryNumber
(PModelHandle serviceModel)
-
Field Details
-
TELCO_SERVICE_PREFIX
- See Also:
-
TELCO_SERVICES_STORABLE_CLASS_NAME
- See Also:
-
-
Constructor Details
-
CCTelcoUtility
Creates a new Telco utilities bean.- Throws:
RemoteException
-
-
Method Details
-
getSSAndServiceERAStatusFormat
Retrieves the display field format string for supplementary services status and service level ERAs status.- Returns:
- the display field format string.
- Throws:
RemoteException
-
getNetworkElementChoices
Retrieves network elements for devices- Returns:
- all network elements.
- Throws:
RemoteException
-
getStatusFormat
Retrieves the display field format string for a device status.- Parameters:
devType
- The device type to lookup (i.e. sim, num, cdma, etc)- Returns:
- the display field format string for device status.
- Throws:
RemoteException
-
getPromotionTypeDescription
public Map<String,String> getPromotionTypeDescription(PModelHandle model, PModelHandle[] mProfileHandles) throws RemoteException Retrieves all account or service level promotion type descriptions, that matches with ERAs in given profiles- Parameters:
model
- model handle for account/service flist or poidmProfileHandles
- profiles of account/service (/profile/acct_extrating or /profile/serv_extrating)- Returns:
- key-value pair where key is promotion type and value is localized description of the promotion type
- Throws:
RemoteException
-
getPromotionTypeString
public Map<String,String> getPromotionTypeString(PModelHandle model, PModelHandle[] mProfileHandles) throws RemoteException Retrieves all account or service level promotion types,that matches with ERAs in given profiles- Parameters:
model
- model handle for account/service flist or poidmProfileHandles
- profiles of account/service (/profile/acct_extrating or /profile/serv_extrating)- Returns:
- key-value pair where key is the promotion type and the value is the localized string for the type.
- Throws:
RemoteException
-
getDeviceStatusFormat
public String getDeviceStatusFormat(String deviceStatusClass, String deviceStatusStringDomain) throws RemoteException wrapper for device status retrieval- Parameters:
deviceStatusClass
-deviceStatusStringDomain
-- Returns:
- - the string containing all the statuses of the device type
- Throws:
RemoteException
-
getChoiceFormatFromStrings
Given a string domain, returns the choice format string.- Parameters:
stringDomain
-- Returns:
- a string containing the formatted choices
- Throws:
RemoteException
-
getTeleNumber
Given a PModelHandle mod, returns the telephone number if asigned else return the login ID- Parameters:
mod
-- Returns:
- a string containing the telephone number if asigned else return the login ID
- Throws:
RemoteException
-
isPrimaryNumber
-