public class EBUtilities extends Object implements Serializable
Constructor and Description |
---|
EBUtilities() |
Modifier and Type | Method and Description |
---|---|
static Object |
getDataDoRead(PCachedContext conn,
DataTemplate dt)
If the data contained in the DataTemplate is of type poid, then a
readObject is performed; otherwise, the data is returned.
|
static String |
getMaskedCardNumber(String permission,
String valToMask)
method to mask the credit/debit card number depending on the permission string passed
|
static String |
getMaskValue()
Returns the mask value that can be used to hide sensitive information.
|
static String[] |
getOrderedFields(PCachedContext conn,
DataTemplate dt)
Returns an array of the ordered fields.
|
static DataTemplate |
getSubTemplate(String field,
Object data,
DataTemplate dt,
PCachedContext conn)
Returns a data template that is contained in the list of ordered
fields.
|
static void |
setCredentials(PCachedContext conn,
String acl,
String group)
Sets the credentials on the given connection.
|
public static final String MASK
public static void setCredentials(PCachedContext conn, String acl, String group) throws EBufException, RemoteException
conn
- the infranet connectionacl
- the aclgroup
- the billing groupEBufException
RemoteException
public static Object getDataDoRead(PCachedContext conn, DataTemplate dt) throws EBufException, RemoteException
conn
- the infranet connectiondt
- contains the dataEBufException
RemoteException
public static String[] getOrderedFields(PCachedContext conn, DataTemplate dt) throws EBufException, RemoteException
conn
- the portal contextEBufException
RemoteException
public static DataTemplate getSubTemplate(String field, Object data, DataTemplate dt, PCachedContext conn) throws EBufException, RemoteException
field
- the name of the fielddata
- the object to be encapsulatedoFields
- an arrary of ordered fieldsEBufException
RemoteException
public static String getMaskedCardNumber(String permission, String valToMask)
permission
- to verify. this is a permission string from PRestriction classvalToMask
- -This is the value which we have to maskpublic static String getMaskValue()
Copyright © 2003, 2023, Oracle and/or its affiliates.