Class MDashboardContent

All Implemented Interfaces:
Serializable, Cloneable, Comparator<Object>, I_PA_DashboardContent, I_Persistent, Evaluatee

public class MDashboardContent extends X_PA_DashboardContent
Author:
teo_sarca
See Also:
  • Constructor Details

    • MDashboardContent

      public MDashboardContent(Properties ctx, String PA_DashboardContent_UU, String trxName)
      UUID based Constructor
      Parameters:
      ctx - Context
      PA_DashboardContent_UU - UUID key
      trxName - Transaction
    • MDashboardContent

      public MDashboardContent(Properties ctx, int PA_DashboardContent_ID, String trxName)
      Parameters:
      ctx -
      PA_DashboardContent_ID -
      trxName -
    • MDashboardContent

      public MDashboardContent(Properties ctx, ResultSet rs, String trxName)
      Parameters:
      ctx -
      rs -
      trxName -
  • Method Details

    • getForSessionColumnCount

      public static int getForSessionColumnCount(boolean isShowInDashboard, int AD_User_ID, int AD_Role_ID)
      Parameters:
      isShowInDashboard - true for main dashboard, false for side panel
      AD_User_ID -
      AD_Role_ID -
      Returns:
      number of columns
    • getForSession

      public static MDashboardContent[] getForSession(boolean isShowInDashboard, int AD_User_ID, int AD_Role_ID)
      Parameters:
      isShowInDashboard - true for main dashboard, false for side panel
      AD_User_ID -
      AD_Role_ID -
      Returns:
      array of MDashboardContent
    • getForSessionQuery

      public static Query getForSessionQuery(boolean isShowInDashboard, int AD_User_ID, int AD_Role_ID)
      Parameters:
      isShowInDashboard -
      AD_User_ID -
      AD_Role_ID -
      Returns:
      Query
    • getForUserList

      public static MDashboardContent[] getForUserList(int AD_User_ID, int AD_Role_ID)
      Parameters:
      AD_User_ID -
      AD_Role_ID -
      Returns:
      array of MDashboardContent
    • getForUser

      public static Query getForUser(int AD_User_ID, int AD_Role_ID)
      Parameters:
      AD_User_ID -
      AD_Role_ID -
      Returns:
      Query
    • getForSession

      public static MDashboardContent[] getForSession(int AD_User_ID, int AD_Role_ID)
      Parameters:
      AD_User_ID -
      AD_Role_ID -
      Returns:
      array of MDashboardContent
    • getForSessionQuery

      public static Query getForSessionQuery(int AD_User_ID, int AD_Role_ID)
      Parameters:
      AD_User_ID -
      AD_Role_ID -
      Returns:
      Query
    • getAD_Menu_ID

      public int getAD_Menu_ID()
      Returns:
      AD_Menu_ID or -1
    • getAD_Menu

      public I_AD_Menu getAD_Menu()
      Returns:
      I_AD_Menu
    • parseProcessParameters

      public static Map<String,String> parseProcessParameters(String parameters)
      Parse Process Parameters
      Parameters:
      parameters -
      Returns:
      HashMap<String parameterName, String value>
    • getEmptyMandatoryProcessPara

      public String getEmptyMandatoryProcessPara()
      Parse all Process Parameters that are mandatory and not set
      Returns:
      String of comma separated parameter names
    • beforeSave

      protected boolean beforeSave(boolean newRecord)
      Description copied from class: PO
      Called before Save for Pre-Save Operation.
      Default implementation is nop, to be implemented in sub-classes that needed it.
      Overrides:
      beforeSave in class PO
      Parameters:
      newRecord - true if it is a new record
      Returns:
      true if record can be saved