327 lines
7.3 KiB
Java
327 lines
7.3 KiB
Java
package nlib.user.service;
|
|
|
|
import java.io.Serializable;
|
|
import java.util.Base64;
|
|
|
|
import nlib.cmm.NlibCommonController;
|
|
import nlib.util.StringUtil;
|
|
|
|
/**
|
|
* <pre>
|
|
* @Class Name : NlibLoginVO.java
|
|
*
|
|
* @Description : 로그인VO
|
|
*
|
|
*
|
|
* @프로젝트명: 지방문화원 통합자료관리시스템 구축사업 (2021)
|
|
*
|
|
* </pre>
|
|
*
|
|
* @ ------------ -------- ---------------------------
|
|
* @ 수정일 수정자 수정내용
|
|
* @ ------------ -------- ---------------------------
|
|
* @ 2021. 7. 12. JSYOO 최초 생성
|
|
* @ 2021. 8. 17. KNKIM DB컬럼명으로 변경 처리
|
|
* @ 2021. 8. 24. KNKIM 테이블 변경에 따른 컬럼명 전체 변경
|
|
*
|
|
* @author 이씨플라자 * DIGITALSHIP JSYOO
|
|
* @since 2021. 7. 12.
|
|
* @version 1.0
|
|
*
|
|
*/
|
|
public class NlibLoginVO implements Serializable {
|
|
|
|
private static final long serialVersionUID = -8274004534207618049L;
|
|
|
|
/* MB_INFO : 소장자료관 회원 관련 */
|
|
private String mbInfoId; /* 회원아이디 (ex: M1000000001) */
|
|
private String loginUserId; /* 로그인사용자ID (이메일주소) */
|
|
private String name; /* 사용자명 */
|
|
private String mobileNo; /* 휴대전화번호 */
|
|
private String password; /* 비밀번호 */
|
|
private String email; /* 이메일 */
|
|
private String gender; /* 성별(M:남자,F:여자) */
|
|
private String zipCode; /* 우편번호 */
|
|
private String address; /* 주소 */
|
|
private String addressDetail; /* 상세주소 */
|
|
private String birthday; /* 생년월일 */
|
|
private String status; /* 상태 : S정상, D탈퇴, P휴면 */
|
|
private String joinDate; /* 가입일자 (YYYYMMDD) */
|
|
private String verificationDd; /* 본인확인일시 (YYYYMMDDHHMISS) */
|
|
private String lastAccessDd; /* 마지막접근일시 (YYYYMMDDHHMISS) */
|
|
private String leaveSiteDate; /* 탈퇴일자 (YYYYMMDD) */
|
|
private String regId; /* 등록자 */
|
|
private String regDd; /* 등록일자 */
|
|
private String modId; /* 수정자 */
|
|
private String modDd; /* 수정일자 */
|
|
|
|
/* MB_SITE : 로그인된 문화원정보 관련 */
|
|
private String joinType; /* 가입유형 : SNS 및 로그인을 연계하는 포털시스템 아이디(naver, daum 등) */
|
|
private String joinCouncilCd; /* 가입문화원코드 */
|
|
private String joinCouncilNm; /* 가입문화원명 */
|
|
|
|
/* MB_SNS : 회원SNS 관련 */
|
|
private String snsType; /* SNS유형 */
|
|
private String snsId; /* SNS식별코드 */
|
|
|
|
/* 보완 및 기타 사항 */
|
|
private String ip; /* 접속IP */
|
|
private String authorityList; /* 권한ROLE 리스트 */
|
|
private String authKey; /* RESTful API : 접속인증코드 */
|
|
|
|
/**
|
|
* 로그인인증키값을 리턴한다. 만일 존재하지 않을 경우, userId를 기반으로 인증키를 생성하여 리턴한다.
|
|
* 로그인되지 않은 자(userId값이 존재하지 않는경우)에 대해서는 null을 리턴한다.
|
|
*
|
|
* @return
|
|
*/
|
|
public String getAndCreateAuthKey() {
|
|
return getOrCreateAuthKey(null);
|
|
}
|
|
|
|
/**
|
|
* 로그인인증키값을 리턴한다. 만일 존재하지 않을 경우, userId를 기반으로 인증키를 생성하여 리턴한다.
|
|
* 로그인되지 않은 자(userId값이 존재하지 않는경우)에 대해서는 세션ID를 기반으로한 손님용 인증키를 생성하여 리턴한다.
|
|
*
|
|
* @return
|
|
*/
|
|
public String getOrCreateAuthKey(String sessionId) {
|
|
|
|
if(StringUtil.isNotEmpty(this.authKey)) return this.authKey;
|
|
|
|
// AuthKey 생성하여 리턴
|
|
this.authKey = NlibCommonController.makeAuthKey(this.mbInfoId, sessionId);
|
|
return this.authKey;
|
|
}
|
|
|
|
|
|
//----------------------------------------------------------------
|
|
// SETTER.GETTER
|
|
//----------------------------------------------------------------
|
|
|
|
public String getMbInfoId() {
|
|
return mbInfoId;
|
|
}
|
|
|
|
public void setMbInfoId(String mbInfoId) {
|
|
this.mbInfoId = mbInfoId;
|
|
}
|
|
|
|
public String getLoginUserId() {
|
|
return loginUserId;
|
|
}
|
|
|
|
public void setLoginUserId(String loginUserId) {
|
|
this.loginUserId = loginUserId;
|
|
}
|
|
|
|
public String getName() {
|
|
return name;
|
|
}
|
|
|
|
public void setName(String name) {
|
|
this.name = name;
|
|
}
|
|
|
|
public String getMobileNo() {
|
|
return mobileNo;
|
|
}
|
|
|
|
public void setMobileNo(String mobileNo) {
|
|
this.mobileNo = mobileNo;
|
|
}
|
|
|
|
public String getPassword() {
|
|
return password;
|
|
}
|
|
|
|
public void setPassword(String password) {
|
|
this.password = password;
|
|
}
|
|
|
|
public String getEmail() {
|
|
return email;
|
|
}
|
|
|
|
public void setEmail(String email) {
|
|
this.email = email;
|
|
}
|
|
|
|
public String getGender() {
|
|
return gender;
|
|
}
|
|
|
|
public void setGender(String gender) {
|
|
this.gender = gender;
|
|
}
|
|
|
|
public String getZipCode() {
|
|
return zipCode;
|
|
}
|
|
|
|
public void setZipCode(String zipCode) {
|
|
this.zipCode = zipCode;
|
|
}
|
|
|
|
public String getAddress() {
|
|
return address;
|
|
}
|
|
|
|
public void setAddress(String address) {
|
|
this.address = address;
|
|
}
|
|
|
|
public String getAddressDetail() {
|
|
return addressDetail;
|
|
}
|
|
|
|
public void setAddressDetail(String addressDetail) {
|
|
this.addressDetail = addressDetail;
|
|
}
|
|
|
|
public String getBirthday() {
|
|
return birthday;
|
|
}
|
|
|
|
public void setBirthday(String birthday) {
|
|
this.birthday = birthday;
|
|
}
|
|
|
|
public String getStatus() {
|
|
return status;
|
|
}
|
|
|
|
public void setStatus(String status) {
|
|
this.status = status;
|
|
}
|
|
|
|
public String getJoinDate() {
|
|
return joinDate;
|
|
}
|
|
|
|
public void setJoinDate(String joinDate) {
|
|
this.joinDate = joinDate;
|
|
}
|
|
|
|
public String getVerificationDd() {
|
|
return verificationDd;
|
|
}
|
|
|
|
public void setVerificationDd(String verificationDd) {
|
|
this.verificationDd = verificationDd;
|
|
}
|
|
|
|
public String getLastAccessDd() {
|
|
return lastAccessDd;
|
|
}
|
|
|
|
public void setLastAccessDd(String lastAccessDd) {
|
|
this.lastAccessDd = lastAccessDd;
|
|
}
|
|
|
|
public String getLeaveSiteDate() {
|
|
return leaveSiteDate;
|
|
}
|
|
|
|
public void setLeaveSiteDate(String leaveSiteDate) {
|
|
this.leaveSiteDate = leaveSiteDate;
|
|
}
|
|
|
|
public String getRegId() {
|
|
return regId;
|
|
}
|
|
|
|
public void setRegId(String regId) {
|
|
this.regId = regId;
|
|
}
|
|
|
|
public String getRegDd() {
|
|
return regDd;
|
|
}
|
|
|
|
public void setRegDd(String regDd) {
|
|
this.regDd = regDd;
|
|
}
|
|
|
|
public String getModId() {
|
|
return modId;
|
|
}
|
|
|
|
public void setModId(String modId) {
|
|
this.modId = modId;
|
|
}
|
|
|
|
public String getModDd() {
|
|
return modDd;
|
|
}
|
|
|
|
public void setModDd(String modDd) {
|
|
this.modDd = modDd;
|
|
}
|
|
|
|
public String getJoinType() {
|
|
return joinType;
|
|
}
|
|
|
|
public void setJoinType(String joinType) {
|
|
this.joinType = joinType;
|
|
}
|
|
|
|
public String getJoinCouncilCd() {
|
|
return joinCouncilCd;
|
|
}
|
|
|
|
public void setJoinCouncilCd(String joinCouncilCd) {
|
|
this.joinCouncilCd = joinCouncilCd;
|
|
}
|
|
|
|
public String getJoinCouncilNm() {
|
|
return joinCouncilNm;
|
|
}
|
|
|
|
public void setJoinCouncilNm(String joinCouncilNm) {
|
|
this.joinCouncilNm = joinCouncilNm;
|
|
}
|
|
|
|
public String getSnsType() {
|
|
return snsType;
|
|
}
|
|
|
|
public void setSnsType(String snsType) {
|
|
this.snsType = snsType;
|
|
}
|
|
|
|
public String getSnsId() {
|
|
return snsId;
|
|
}
|
|
|
|
public void setSnsId(String snsId) {
|
|
this.snsId = snsId;
|
|
}
|
|
|
|
public String getIp() {
|
|
return ip;
|
|
}
|
|
|
|
public void setIp(String ip) {
|
|
this.ip = ip;
|
|
}
|
|
|
|
public String getAuthorityList() {
|
|
return authorityList;
|
|
}
|
|
|
|
public void setAuthorityList(String authorityList) {
|
|
this.authorityList = authorityList;
|
|
}
|
|
|
|
public String getAuthKey() {
|
|
return authKey;
|
|
}
|
|
|
|
public void setAuthKey(String authKey) {
|
|
this.authKey = authKey;
|
|
}
|
|
|
|
}
|