Class EBUtilities

java.lang.Object
com.portal.browse.EBUtilities
All Implemented Interfaces:
Serializable

public class EBUtilities extends Object implements 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 Details

  • 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 connection
      acl - the acl
      group - 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 connection
      dt - 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 field
      data - the object to be encapsulated
      oFields - 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

      public static String getMaskedCardNumber(String permission, String valToMask)
      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 class
      valToMask - -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

      public static String getMaskValue()
      Returns the mask value that can be used to hide sensitive information.
      Returns:
      MASK string