public class EnumToString extends Object
com.portal.pcm.PortalEnums
values to the equivalent String
keys defined in the WebKitResources.properties file. You can use the
ResourceBundle.getString()
method to retrieve the values associated with the
the defined keys.
See the API Reference for "PCM Java" in the online documentation for
information about the PortalEnums
interfaces.
Constructor and Description |
---|
EnumToString() |
Modifier and Type | Method and Description |
---|---|
String |
getAccountStatusAsString(int status)
Converts the account status value from
com.portal.pcm.PortalEnums.PinStatus
to the proper key to be read from the WebKitResources.properties file. |
String |
getBillTypeAsString(int bill_type)
Converts the bill type value from
com.portal.pcm.PortalEnums.PinBillType
to the proper key to be read from the WebKitResources.properties file. |
String |
getSmsDirectionAsString(int dir)
Converts an SMS mobile event direction value from
com.portal.pcm.PortalEnums.PinSmsDirection
to the proper key to be read from the WebKitResources.properties file. |
public String getAccountStatusAsString(int status)
com.portal.pcm.PortalEnums.PinStatus
to the proper key to be read from the WebKitResources.properties file.
You can use the ResourceBundle.getString()
method to retrieve the value
associated with the key in the properties file.
For example, if the account status value is
com.portal.pcm.PortalEnums.PinStatus.ACTIVE
,
this method returns "account.status.active"
. In
the WebKitResources.properties file, the defined value for this key is
account.status.active = ACTIVE
.
See the Database Reference for "Storable Class Definitions" for information about the /account storable class.
status
- an integer that represents this account's status (PIN_FLD_STATUS
)String
that represents the associated key in the properties
file, one of:public String getBillTypeAsString(int bill_type)
com.portal.pcm.PortalEnums.PinBillType
to the proper key to be read from the WebKitResources.properties file.
You can use the ResourceBundle.getString()
method to retrieve the value
associated with the key in the properties file.See the Database Reference for "Storable Class Definitions" for information about the /account storable class.
bill_type
- an integer that represents this account's bill type
(PIN_FLD_BILL_TYPE
)String
that represents the associated key in the properties
file, one of:Note: Because not all bill types are defined in this method, you may get a return value of "undefined". If you have a bill type not included here, update the list.
public String getSmsDirectionAsString(int dir)
com.portal.pcm.PortalEnums.PinSmsDirection
to the proper key to be read from the WebKitResources.properties file.
You can use the ResourceBundle.getString()
method to retrieve the value
associated with the key in the properties file.The direction of the SMS mobile event indicates whether the customer originated or received the call. See the Database Reference for "Storable Class Definitions" for information about the /event/activity/sms storable class.
dir
- an integer that represents this SMS mobile event's direction
(PIN_FLD_SMS_DIRECTION
)String
containing the equivalent direction
value for this SMS event:Copyright © 2003, 2023, Oracle and/or its affiliates.