IoT CAS Frameworks/IOT_Server/Report_Generator_Framework/source/DashBoard-JSONgenerator-ArbitraryDate/src/com/merit/dashboard/controller/DashBoardController.java
public void generateDefaultServiceAndResourceType(String resourceType, String cCustomer, String service, String startDate, String endDate,
            String timestampselection, String customer) {
        try {
            System.out.println("startDate:====" + startDate + "\nendDate:====" + endDate);
            dashBoardService = new DashBoardService();
            log.debug("******************Generate Default Service and ResourceType Json***************");
            dashBoardService.generateDefaultServiceAndResourceTypeJson(resourceType, cCustomer, service, startDate, endDate,
                    timestampselection, customer);
            log.debug("******************End Of DashBoard  Controller********************");

        } catch (Exception e) {
            e.printStackTrace();
            log.error("DashBoard Calling Default Service and ResourceType DashBoardController.generateDefaultServiceAndResourceType() :" + e.getMessage());

        }

    }
/**
     * This method is used to call
     * dashBoardService.generateDefaultServiceAndResourceTypeJson() for
     * generating Default Service And ResourceType JSON for Chart
     *
     * @param resourceType Different category as
     * Desktop,Server,DataBase,Network,JVM
     * @param startDate subtract(endDate-timestampselection) in Date Format
     * @param endDate Current date in Date Format
     * @param timestampselection Selected Time Period means (hour, days, week,
     * month, year)
     * @param customer Selected customerID
     *
     */
This method is used to call
dashBoardService.generateDefaultServiceAndResourceTypeJson() for
generating Default Service And ResourceType JSON for Chart


This method is used to call dashBoardService . generateDefaultServiceAndResourceTypeJson () for generating Default Service And ResourceType JSON for Chart
public void generateDefaultServiceAndResourceType(String resourceType, String cCustomer, String service, String startDate, String endDate,
            String timestampselection, String customer) {
        try {
            System.out.println("startDate:====" + startDate + "\nendDate:====" + endDate);
            dashBoardService = new DashBoardService();
            log.debug("******************Generate Default Service and ResourceType Json***************");
            dashBoardService.generateDefaultServiceAndResourceTypeJson(resourceType, cCustomer, service, startDate, endDate,
                    timestampselection, customer);
            log.debug("******************End Of DashBoard  Controller********************");
        } catch (Exception e) {
            e.printStackTrace();
            log.error("DashBoard Calling Default Service and ResourceType DashBoardController.generateDefaultServiceAndResourceType() :" + e.getMessage());
        }
    }
public void generateDefaultServiceAndResourceType ( String resourceType , String cCustomer , String service , String startDate , String endDate , String timestampselection , String customer ) { try { System . out . println ( "startDate:====" + startDate + "\nendDate:====" + endDate ) ; dashBoardService = new DashBoardService ( ) ; log . debug ( "******************Generate Default Service and ResourceType Json***************" ) ; dashBoardService . generateDefaultServiceAndResourceTypeJson ( resourceType , cCustomer , service , startDate , endDate , timestampselection , customer ) ; log . debug ( "******************End Of DashBoard  Controller********************" ) ; } catch ( Exception e ) { e . printStackTrace ( ) ; log . error ( "DashBoard Calling Default Service and ResourceType DashBoardController.generateDefaultServiceAndResourceType() :" + e . getMessage ( ) ) ; } }
This method is used to call
 dashBoardService.generateDefaultServiceAndResourceTypeJson() for
 generating Default Service And ResourceType JSON for Chart
This method is used to call dashBoardService . generateDefaultServiceAndResourceTypeJson () for generating Default Service And ResourceType JSON for Chart