Subversion Repositories SmartDukaan

Rev

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

Rev 22150 Rev 22217
Line 36... Line 36...
36
			if(cookie.getName().equals(ProfitMandiConstants.EMAIL_ID) && cookie.getValue() != null && !cookie.getValue().isEmpty()){
36
			if(cookie.getName().equals(ProfitMandiConstants.EMAIL_ID) && cookie.getValue() != null && !cookie.getValue().isEmpty()){
37
				emailIdFound = cookie.getValue();
37
				emailIdFound = cookie.getValue();
38
			}
38
			}
39
			if(cookie.getName().equals(ProfitMandiConstants.ROLE_NAMES) && cookie.getValue() != null){
39
			if(cookie.getName().equals(ProfitMandiConstants.ROLE_NAMES) && cookie.getValue() != null){
40
				roleNamesString = cookie.getValue();
40
				roleNamesString = cookie.getValue();
41
				LOGGER.info("roleNameString is {}", roleNamesString);
41
				//LOGGER.info("roleNameString is {}", roleNamesString);
42
			}
42
			}
43
			if(cookie.getName().equals(ProfitMandiConstants.FOFO_FLAG) && cookie.getValue() != null && !cookie.getValue().isEmpty()){
43
			if(cookie.getName().equals(ProfitMandiConstants.FOFO_FLAG) && cookie.getValue() != null && !cookie.getValue().isEmpty()){
44
				fofoFlagFound = cookie.getValue();
44
				fofoFlagFound = cookie.getValue();
45
			}
45
			}
46
			if(fofoIdFound != null && emailIdFound != null && roleNamesString != null && fofoFlagFound != null){
46
			if(fofoIdFound != null && emailIdFound != null && roleNamesString != null && fofoFlagFound != null){
Line 48... Line 48...
48
			}
48
			}
49
		}
49
		}
50
		
50
		
51
		if(fofoIdFound == null || emailIdFound == null || roleNamesString == null || fofoFlagFound == null){
51
		if(fofoIdFound == null || emailIdFound == null || roleNamesString == null || fofoFlagFound == null){
52
			LOGGER.info("roleNameString is {}", roleNamesString);
52
			LOGGER.info("roleNameString is {}", roleNamesString);
53
			LOGGER.info("fofoIdFound is {}", roleNamesString);
53
			LOGGER.info("fofoIdFound is {}", fofoIdFound);
54
			LOGGER.info("emailIdFound is {}", roleNamesString);
54
			LOGGER.info("emailIdFound is {}", emailIdFound);
55
			LOGGER.info("fofoFlagFound is {}", roleNamesString);
55
			LOGGER.info("fofoFlagFound is {}", fofoFlagFound);
56
			LOGGER.error("Requested session is not valid");
56
			LOGGER.error("Requested session is not valid");
57
			throw new ProfitMandiBusinessException("", "", "");
57
			throw new ProfitMandiBusinessException("", "", "");
58
		}else{
58
		}else{
59
			LoginDetails fofoDetails = new LoginDetails();
59
			LoginDetails fofoDetails = new LoginDetails();
60
			fofoDetails.setFofoId(Integer.parseInt(fofoIdFound));
60
			fofoDetails.setFofoId(Integer.parseInt(fofoIdFound));