Subversion Repositories SmartDukaan

Rev

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

Rev 22111 Rev 22139
Line 2... Line 2...
2
 
2
 
3
import java.util.Set;
3
import java.util.Set;
4
 
4
 
5
import com.spice.profitmandi.dao.enumuration.dtr.RoleType;
5
import com.spice.profitmandi.dao.enumuration.dtr.RoleType;
6
 
6
 
7
public class FofoDetails {
7
public class LoginDetails {
8
	private int fofoId;
8
	private int fofoId;
-
 
9
	private boolean fofo;
9
	private String emailId;
10
	private String emailId;
10
	private Set<RoleType> roleTypes;
11
	private Set<RoleType> roleTypes;
11
	public int getFofoId() {
12
	public int getFofoId() {
12
		return fofoId;
13
		return fofoId;
13
	}
14
	}
Line 29... Line 30...
29
	@Override
30
	@Override
30
	public int hashCode() {
31
	public int hashCode() {
31
		final int prime = 31;
32
		final int prime = 31;
32
		int result = 1;
33
		int result = 1;
33
		result = prime * result + ((emailId == null) ? 0 : emailId.hashCode());
34
		result = prime * result + ((emailId == null) ? 0 : emailId.hashCode());
-
 
35
		result = prime * result + (fofo ? 1231 : 1237);
34
		result = prime * result + fofoId;
36
		result = prime * result + fofoId;
35
		result = prime * result + ((roleTypes == null) ? 0 : roleTypes.hashCode());
37
		result = prime * result + ((roleTypes == null) ? 0 : roleTypes.hashCode());
36
		return result;
38
		return result;
37
	}
39
	}
38
	@Override
40
	@Override
Line 41... Line 43...
41
			return true;
43
			return true;
42
		if (obj == null)
44
		if (obj == null)
43
			return false;
45
			return false;
44
		if (getClass() != obj.getClass())
46
		if (getClass() != obj.getClass())
45
			return false;
47
			return false;
46
		FofoDetails other = (FofoDetails) obj;
48
		LoginDetails other = (LoginDetails) obj;
47
		if (emailId == null) {
49
		if (emailId == null) {
48
			if (other.emailId != null)
50
			if (other.emailId != null)
49
				return false;
51
				return false;
50
		} else if (!emailId.equals(other.emailId))
52
		} else if (!emailId.equals(other.emailId))
51
			return false;
53
			return false;
-
 
54
		if (fofo != other.fofo)
-
 
55
			return false;
52
		if (fofoId != other.fofoId)
56
		if (fofoId != other.fofoId)
53
			return false;
57
			return false;
54
		if (roleTypes == null) {
58
		if (roleTypes == null) {
55
			if (other.roleTypes != null)
59
			if (other.roleTypes != null)
56
				return false;
60
				return false;
Line 58... Line 62...
58
			return false;
62
			return false;
59
		return true;
63
		return true;
60
	}
64
	}
61
	@Override
65
	@Override
62
	public String toString() {
66
	public String toString() {
63
		return "FofoDetails [fofoId=" + fofoId + ", emailId=" + emailId + ", roleTypes=" + roleTypes + "]";
67
		return "FofoDetails [fofoId=" + fofoId + ", fofo=" + fofo + ", emailId=" + emailId + ", roleTypes=" + roleTypes
-
 
68
				+ "]";
-
 
69
	}
-
 
70
	public boolean isFofo() {
-
 
71
		return fofo;
-
 
72
	}
-
 
73
	public void setFofo(boolean fofo) {
-
 
74
		this.fofo = fofo;
64
	}
75
	}
65
	
76
	
66
}
77
}