public final class CCUtils extends Object
Modifier and Type | Field and Description |
---|---|
static HashMap<String,String> |
engLangToLocale |
static HashMap<StringBuffer,LocalizedStringTable.Entry> |
idToLocaleString |
static HashMap<String,String> |
localeLangToEng |
static HashMap |
mServiceLifeCycleStateMap |
static String |
NONE |
static String |
READ |
static String |
READ_WRITE |
Constructor and Description |
---|
CCUtils() |
Modifier and Type | Method and Description |
---|---|
static String |
buildPlanName(String name,
int count)
Appends the instance count and prefixes the string to the plan
|
static void |
centerTheScreen(Window parent,
Window child)
Method to display window on center of the screen
|
static void |
enableActions(boolean enableActions)
This method is used to enable/disable certain A/R actions which
shouldn't be allowed when there are further corrective bills available
for the selected bill.
|
static SparseArray |
getArrayFromFlist(FList src,
ArrayField field)
If the flist contains a value for the specified field, return the value
from the flist.
|
static SparseArray |
getArrayFromFlist(FList src,
ArrayField field,
SparseArray defaultValue)
If the flist contains a value for the specified field, return the value
from the flist.
|
static boolean |
getCofigSubsPrefsExists()
Getter method to get isCofigSubsPrefsExists
|
static String |
getEnglishEquiv(String localeStr)
Returns the english equivalent of the locale string, needed for Set subscriber preferences opcode
|
static Poid |
getPoidFromFlist(FList src,
PoidField field)
If the flist contains a value for the specified field, return the value
from the flist.
|
static String |
getServiceAliasValue(SparseArray spAlias,
String serviceType,
String UNKNOWN)
This method reads the index property from customized.properties to get the number for the service alias index
and returns the Service Alias value at that index
Ex: service.telco.gsm.sms.alias = 1
0 PIN_FLD_ALIAS_LIST ARRAY [0] allocated 20, used 1
1 PIN_FLD_NAME STR [0] "11000965571"
0 PIN_FLD_ALIAS_LIST ARRAY [1] allocated 20, used 1
1 PIN_FLD_NAME STR [0] "4033901245"
0 PIN_FLD_ALIAS_LIST ARRAY [2] allocated 20, used 1
1 PIN_FLD_NAME STR [0] "403390124500000"
for the above index property alias name should be '4033901245'
If the alias property is not found or if the alias index value is not a numeric value
or the index value exceeds the actual indexes found,it returns the last alias value
|
static LifeCycleStates |
getServiceLifeCycleTypeMap(String serviceType)
get the life cycle object for the given service type.
|
static LocalizedStringTable.Entry[] |
getStringTableEntriesFor(PortalContext ctx,
String domain,
Integer version,
Integer id)
Returns the locale entries for the domain version string_id
|
static LocalizedStringTable.Entry |
getStringTableEntryFor(PortalContext ctx,
String domain,
Integer version,
Integer id,
String engEquiv)
Returns the first entry associated string version
|
static String |
getSubsPrefsPermission()
Returns the permission associated with PERM_SUBS_PREFERENCE.
|
static boolean |
isCorrectiveInvoicingEnabled()
Utility method to look at /config/business_params and find out whether
Corrective Invoicing feature is enabled or not.
|
static boolean |
isEnableActions()
This method returns true if there are no further corrective bills for
the selected bill.
|
static void |
setBusyCursor(boolean isBusy,
Component comp)
Sets the cursor.
|
static void |
setCofigSubsPrefsExists(boolean isSubsPrefsExists)
Setter method to set isCofigSubsPrefsExists
|
static void |
setServiceLifeCycleTypeMap(String serviceType,
LifeCycleStates lc)
set the life cycle state object for the given service type so that all the services
of the same type will use this life cycle object to get all the string state names
to display on the GUI
|
public static String READ_WRITE
public static String READ
public static String NONE
public static HashMap<StringBuffer,LocalizedStringTable.Entry> idToLocaleString
public static HashMap mServiceLifeCycleStateMap
public static SparseArray getArrayFromFlist(FList src, ArrayField field)
src
- the flist that is checked for existence of fieldfield
- the field of interestpublic static SparseArray getArrayFromFlist(FList src, ArrayField field, SparseArray defaultValue)
src
- the flist that is checked for existence of fieldfield
- the field of interestdefaultValue
- the value to return if src does not contain fieldpublic static Poid getPoidFromFlist(FList src, PoidField field)
src
- the flist that is checked for existence of fieldfield
- the field of interestpublic static final void centerTheScreen(Window parent, Window child)
Window
- parentWindow
- childpublic static String buildPlanName(String name, int count)
name
- count
- public static boolean isCorrectiveInvoicingEnabled()
public static void enableActions(boolean enableActions)
enableActions
- public static boolean isEnableActions()
public static final String getServiceAliasValue(SparseArray spAlias, String serviceType, String UNKNOWN) throws EBufException
spAlias
- Service Alias ArrayserviceType
- Service TypeUNKNOWN
- Constant to be appended for the service alias valueEBufException
public static void setBusyCursor(boolean isBusy, Component comp)
isBusy,
- booleanpublic static String getSubsPrefsPermission()
public static void setCofigSubsPrefsExists(boolean isSubsPrefsExists)
isSubsPrefsExists
- public static boolean getCofigSubsPrefsExists()
public static void setServiceLifeCycleTypeMap(String serviceType, LifeCycleStates lc)
serviceType
- lc
- public static LifeCycleStates getServiceLifeCycleTypeMap(String serviceType)
serviceType
- public static String getEnglishEquiv(String localeStr)
localeStr
- public static LocalizedStringTable.Entry getStringTableEntryFor(PortalContext ctx, String domain, Integer version, Integer id, String engEquiv)
ctx
- domain
- version
- id
- public static LocalizedStringTable.Entry[] getStringTableEntriesFor(PortalContext ctx, String domain, Integer version, Integer id)
ctx
- domain
- version
- id
- Copyright © 2003, 2023, Oracle and/or its affiliates.