Subversion Repositories SmartDukaan

Rev

Rev 23366 | Rev 23568 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 23366 Rev 23379
Line 3... Line 3...
3
import javax.servlet.http.HttpServletRequest;
3
import javax.servlet.http.HttpServletRequest;
4
 
4
 
5
import org.slf4j.Logger;
5
import org.slf4j.Logger;
6
import org.slf4j.LoggerFactory;
6
import org.slf4j.LoggerFactory;
7
import org.springframework.beans.factory.annotation.Autowired;
7
import org.springframework.beans.factory.annotation.Autowired;
-
 
8
import org.springframework.beans.factory.annotation.Value;
8
import org.springframework.stereotype.Controller;
9
import org.springframework.stereotype.Controller;
9
import org.springframework.transaction.annotation.Transactional;
10
import org.springframework.transaction.annotation.Transactional;
10
import org.springframework.ui.Model;
11
import org.springframework.ui.Model;
11
import org.springframework.web.bind.annotation.RequestMapping;
12
import org.springframework.web.bind.annotation.RequestMapping;
12
import org.springframework.web.bind.annotation.RequestMethod;
13
import org.springframework.web.bind.annotation.RequestMethod;
Line 18... Line 19...
18
import com.spice.profitmandi.web.util.CookiesProcessor;
19
import com.spice.profitmandi.web.util.CookiesProcessor;
19
 
20
 
20
@Controller
21
@Controller
21
@Transactional(rollbackFor = Throwable.class)
22
@Transactional(rollbackFor = Throwable.class)
22
public class DashboardController {
23
public class DashboardController {
-
 
24
	
-
 
25
	@Value("${web.api.host}")
-
 
26
	private String webApiHost;
-
 
27
	
-
 
28
	@Value("${web.api.port}")
-
 
29
	private int webApiPort;
23
 
30
 
24
	@Autowired
31
	@Autowired
25
	private CookiesProcessor cookiesProcessor;
32
	private CookiesProcessor cookiesProcessor;
26
	
33
	
27
	@Autowired
34
	@Autowired
Line 40... Line 47...
40
			LOGGER.error("FofoStore Code not found of fofoId {}", loginDetails.getFofoId());
47
			LOGGER.error("FofoStore Code not found of fofoId {}", loginDetails.getFofoId());
41
		}
48
		}
42
		model.addAttribute("fofoStoreCode", fofoStore != null ? fofoStore.getCode() : null);
49
		model.addAttribute("fofoStoreCode", fofoStore != null ? fofoStore.getCode() : null);
43
		model.addAttribute("appContextPath", request.getContextPath());
50
		model.addAttribute("appContextPath", request.getContextPath());
44
		model.addAttribute("roleTypes", loginDetails.getRoleTypes());
51
		model.addAttribute("roleTypes", loginDetails.getRoleTypes());
-
 
52
		model.addAttribute("webApiHost", webApiHost);
-
 
53
		model.addAttribute("webApiPort", webApiPort);
45
		return "dashboard";
54
		return "dashboard";
46
	}
55
	}
47
	
56
	
48
	
57
	
49
	@RequestMapping(value = "/contactUs", method = RequestMethod.GET)
58
	@RequestMapping(value = "/contactUs", method = RequestMethod.GET)