Package com.portal.browse
Class EBUtilities
java.lang.Object
com.portal.browse.EBUtilities
- All Implemented Interfaces:
Serializable
A collection of utility methods used by event browser controllers.
- Version:
- %version: 11 % %date_modified: Thu Nov 08 12:09:17 2001 %
- Author:
- Monica Gaines
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic 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 passedstatic String
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.
-
Field Details
-
MASK
- See Also:
-
-
Constructor Details
-
EBUtilities
public EBUtilities()
-
-
Method Details
-
setCredentials
public static void setCredentials(PCachedContext conn, String acl, String group) throws EBufException, RemoteException Sets the credentials on the given connection.- Parameters:
conn
- the infranet connectionacl
- the aclgroup
- the billing group- Throws:
EBufException
RemoteException
-
getDataDoRead
public static Object getDataDoRead(PCachedContext conn, DataTemplate dt) throws EBufException, RemoteException If the data contained in the DataTemplate is of type poid, then a readObject is performed; otherwise, the data is returned.- Parameters:
conn
- the infranet connectiondt
- contains the data- Returns:
- the results from reading the object
- Throws:
EBufException
RemoteException
-
getOrderedFields
public static String[] getOrderedFields(PCachedContext conn, DataTemplate dt) throws EBufException, RemoteException Returns an array of the ordered fields.- Parameters:
conn
- the portal context- Returns:
- an array containing the ordered fields
- Throws:
EBufException
RemoteException
-
getSubTemplate
public static DataTemplate getSubTemplate(String field, Object data, DataTemplate dt, PCachedContext conn) throws EBufException, RemoteException Returns a data template that is contained in the list of ordered fields.- Parameters:
field
- the name of the fielddata
- the object to be encapsulatedoFields
- an arrary of ordered fields- Returns:
- a new data template or null if the object is not a a member of this data template
- Throws:
EBufException
RemoteException
-
getMaskedCardNumber
method to mask the credit/debit card number depending on the permission string passed- Parameters:
permission
- to verify. this is a permission string from PRestriction classvalToMask
- -This is the value which we have to mask- Returns:
- String - The return value will be either the same as valToMask or it is masked one depending on the permission string
-
getMaskValue
Returns the mask value that can be used to hide sensitive information.- Returns:
- MASK string
-