sdash.txt

  • Upload
    hamdi

  • View
    214

  • Download
    1

Embed Size (px)

Citation preview

dashboard.xhtml

New Dashboard

Add NotePad

Title:

Title:

welcom.xhtml

New Dashboard

Save Dashboard

Remove Dashboard

Add ETF Chart

add Etf Data

Add Feed Reader

Add NotePad

Etf:

Data: Highest PriceLowest PriceNet Asset ValueActifs ValorisationGlobal Value Fonds Global Value VolumeNumber Of Parts FondsNumber Of Parts VolumeOpening Price

Title:

Etf:

Title:

Title:

Title:

Indicators NewsFinance and EconomicsBusinessScience and TechnologyInternationalBankingEconomics

dashboardBean/* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */package com.ads.lyxoretf.beans;import com.ads.lyxoretf.entities.Dashboard;import com.ads.lyxoretf.entities.crm.Client;import com.ads.lyxoretf.metier.service.ClientService;import com.ads.lyxoretf.metier.service.DashboardService;import com.ads.lyxoretf.utils.ApplicationContextSingleton;import java.util.ArrayList;import java.util.HashMap;import java.util.List;import java.util.Map;import javax.annotation.PostConstruct;import javax.faces.bean.ManagedBean;import javax.faces.bean.ViewScoped;import org.springframework.security.core.context.SecurityContextHolder;import org.springframework.security.core.userdetails.User;/** * * @author hamdi.masmoudi */@ManagedBean@ViewScopedpublic class DashboardBean { private Long id; private String name; private String content; private Client client; private List dashboards; private List dashClient; private Dashboard currentDash; private boolean dashboardElementShow; private Map< String, String> dashMap = new HashMap getDashMap() { return dashMap; } public void setDashMap(Map dashMap) { this.dashMap = dashMap; } public boolean isDashboardElementShow() { return dashboardElementShow; } public void setDashboardElementShow(boolean dashboardElementShow) { this.dashboardElementShow = dashboardElementShow; } public Dashboard getCurrentDash() { return currentDash; } public void setCurrentDash(Dashboard currentDash) { this.currentDash = currentDash; } public List getDashClient() { return dashClient; } public void setDashClient(List dashClient) { this.dashClient = dashClient; } public List getDashboards() { return dashboards; } public void setDashboards(List dashboards) { this.dashboards = dashboards; } public Long getId() { return id; } public void setId(Long id) { this.id = id; } public String getName() { return name; } public void setName(String name) { this.name = name; } public String getContent() { return content; } public void setContent(String content) { this.content = content; } public Client getClient() { return client; } public void setClient(Client client) { this.client = client; } public DashboardService getDashboardService() { return (DashboardService) ApplicationContextSingleton.getApplicationContext().getBean("dashboardService"); } public ClientService getClientService() { return (ClientService) ApplicationContextSingleton.getApplicationContext().getBean("clientService"); } public DashboardBean() { } @PostConstruct public void init() { dashboardElementShow = false; dashboards = getDashboardService().getDashboardList(); User user = (User)SecurityContextHolder.getContext().getAuthentication().getPrincipal(); String username = user.getUsername(); client = getClientService().findClientByLogin(username); dashClient = new ArrayList