no message

main
이범준 1 year ago
parent b790033378
commit 2798d68117

@ -11,5 +11,5 @@ public interface CacheMenuMapper {
List<Map<String, String>> selectMenuListByUser(final String uniqId);
List<Map<String, String>> selectMenuListByAuthorCode(final String authorCode);
List<Map<String, String>> selectMenuListByAuthorId(final String authorId);
}

@ -41,10 +41,10 @@ public interface CacheService {
List<Map<String, String>> findMenuListByUser(final String uniqId);
/**
*
* @param authorCode
* @param authorId
* @return List<T>
*/
List<Map<String, String>> findMenuListByAuthorCode(final String authorCode);
List<Map<String, String>> findMenuListByAuthorId(final String authorId);
/**
* Evict
*/

@ -79,11 +79,11 @@ public class CacheServiceBean extends AbstractServiceBean implements CacheServic
return menuMapper.selectMenuListByUser(uniqId);
}
@Cacheable(cacheNames="menuCache", key = "#authorCode")
@Cacheable(cacheNames="menuCache", key = "#authorId")
@Override
@Transactional(readOnly = true)
public List<Map<String, String>> findMenuListByAuthorCode(final String authorCode) {
return menuMapper.selectMenuListByAuthorCode(authorCode);
public List<Map<String, String>> findMenuListByAuthorId(final String authorId) {
return menuMapper.selectMenuListByAuthorId(authorId);
}
@Override

@ -58,11 +58,11 @@ public class CacheServiceUtils {
/**
*
* @param authorCode String
* @param authorId String
* @return List<Map<String,Object>>
*/
public static List<Map<String,String>> findMenuListByAuthorCode(final String authorCode) {
return JBeanRegistry.getCacheService().findMenuListByAuthorCode(authorCode);
public static List<Map<String,String>> findMenuListByAuthorId(final String authorId) {
return JBeanRegistry.getCacheService().findMenuListByAuthorId(authorId);
}

@ -70,10 +70,10 @@ public class CacheController extends AbstractController {
return mav;
}
@GetMapping(name = "", value="/getMenuListByAuthorCode")
public ModelAndView getMenuListByAuthorCode(final String authorCode) {
@GetMapping(name = "", value="/getMenuListByAuthorId")
public ModelAndView getMenuListByAuthorId(final String authorId) {
ModelAndView mav = new ModelAndView(FrameworkConstants.JSON_VIEW);
mav.addObject("allMenuList", CacheServiceUtils.findMenuListByAuthorCode(authorCode));
mav.addObject("allMenuList", CacheServiceUtils.findMenuListByAuthorId(authorId));
return mav;
}

@ -19,16 +19,16 @@ public class XitAuthorRoleRelateVO extends BaseVO {
*/
private static final long serialVersionUID = 3707886158690476749L;
protected String authorCode; //권한 코드
protected String authorId; //권한 코드
protected String roleCode; //역할 코드
protected String creatDt; //생성 일시
public String getAuthorCode() {
return authorCode;
public String getAuthorId() {
return authorId;
}
public void setAuthorCode(String authorCode) {
this.authorCode = authorCode;
public void setAuthorId(String authorId) {
this.authorId = authorId;
}
public String getRoleCode() {
return roleCode;

@ -27,7 +27,7 @@ public class XitMenuCreatDtlsVO {
private static final long serialVersionUID = 568460849738293096L;
private String menuNo; //메뉴 번호
private String authorCode; //권한 코드
private String authorId; //권한 코드
private String mapngCreatId; //매핑 생성 id

@ -37,12 +37,12 @@ public interface XitFrameUnitMapper {
* <pre> :
* - .
* </pre>
* @param authorCode
* @param authorId
* @return List<Map>
* @author:
* @date: 2020. 11. 20.
*/
public List<Map<String, String>> findMenuListByAuthorCode(String authorCode) throws SQLException;
public List<Map<String, String>> findMenuListByAuthorId(String authorId) throws SQLException;
/**

@ -141,12 +141,12 @@ public interface XitFrameUnitService {
* <pre> :
* - .
* </pre>
* @param authorCode
* @param authorId
* @return List<Map<String,String>>
* @author:
* @date: 2020. 11. 20.
*/
public List<Map<String, String>> findMenuListByAuthorCode(String authorCode);
public List<Map<String, String>> findMenuListByAuthorId(String authorId);
@ -167,14 +167,14 @@ public interface XitFrameUnitService {
* <pre> : /
* - (Role) .
* </pre>
* @param authorCode
* @param authorId
* @param roleCode
* @param isAdd
* @return void
* @author:
* @date: 2020. 4. 17.
*/
public void addAuthRoleRelation(String authorCode, String roleCode, boolean isAdd);
public void addAuthRoleRelation(String authorId, String roleCode, boolean isAdd);
@ -274,7 +274,7 @@ public interface XitFrameUnitService {
* @author:
* @date: 2020. 10. 30.
*/
public String getDefaultAuthorCode(String grpId);
public String getDefaultAuthorId(String grpId);
@ -292,12 +292,12 @@ public interface XitFrameUnitService {
* case2. or or .
* </pre>
* @param uniqId ID
* @param trgetAuthorCode ( )
* @param trgetAuthorId ( )
* @return boolean
* @author:
* @date: 2020. 11. 1.
*/
public boolean isCheckUserForCanChange(String uniqId, String trgetAuthorCode);
public boolean isCheckUserForCanChange(String uniqId, String trgetAuthorId);
/**
* <pre> : true/false .
* - .
@ -307,11 +307,11 @@ public interface XitFrameUnitService {
* case1. or .
* case2. or or .
* </pre>
* @param userAuthorCode
* @param trgetAuthorCode ( )
* @param userAuthorId
* @param trgetAuthorId ( )
* @return boolean
* @author:
* @date: 2020. 11. 1.
*/
public boolean isCheckUserAuthorCodeForCanChange(String userAuthorCode, String trgetAuthorCode);
public boolean isCheckUserAuthorIdForCanChange(String userAuthorId, String trgetAuthorId);
}

@ -211,7 +211,7 @@ public class XitFrameCrudServiceBean extends AbstractServiceBean implements XitF
*
*/
String emsg = null;
if(XitCmmnUtil.isEmpty(vo.getAuthorCode()))
if(XitCmmnUtil.isEmpty(vo.getAuthorId()))
emsg = String.format("(%s)권한코드(은)는 필수조건 입니다.", table);
if(emsg!=null){
logger.error(emsg);
@ -242,7 +242,7 @@ public class XitFrameCrudServiceBean extends AbstractServiceBean implements XitF
*
*/
String emsg = null;
if(XitCmmnUtil.isEmpty(vo.getAuthorCode()))
if(XitCmmnUtil.isEmpty(vo.getAuthorId()))
emsg = String.format("(%s)권한코드(은)는 필수조건 입니다.", table);
if(emsg!=null){
logger.error(emsg);
@ -275,7 +275,7 @@ public class XitFrameCrudServiceBean extends AbstractServiceBean implements XitF
*
*/
String emsg = null;
if(XitCmmnUtil.isEmpty(vo.getAuthorCode()))
if(XitCmmnUtil.isEmpty(vo.getAuthorId()))
emsg = String.format("(%s)권한코드(은)는 필수조건 입니다.", table);
if(emsg!=null){
logger.error(emsg);
@ -308,7 +308,7 @@ public class XitFrameCrudServiceBean extends AbstractServiceBean implements XitF
*
*/
String emsg = null;
if(XitCmmnUtil.isEmpty(vo.getAuthorCode()))
if(XitCmmnUtil.isEmpty(vo.getAuthorId()))
emsg = String.format("(%s)권한코드(은)는 필수조건 입니다.", table);
if(emsg!=null){
logger.error(emsg);
@ -363,7 +363,7 @@ public class XitFrameCrudServiceBean extends AbstractServiceBean implements XitF
*
*/
String emsg = null;
if(XitCmmnUtil.isEmpty(vo.getAuthorCode()))
if(XitCmmnUtil.isEmpty(vo.getAuthorId()))
emsg = String.format("(%s)권한코드(은)는 필수조건 입니다.", table);
if(XitCmmnUtil.isEmpty(vo.getRoleCode()))
emsg = String.format("(%s)역할코드(은)는 필수조건 입니다.", table);
@ -396,7 +396,7 @@ public class XitFrameCrudServiceBean extends AbstractServiceBean implements XitF
*
*/
String emsg = null;
if(XitCmmnUtil.isEmpty(vo.getAuthorCode()))
if(XitCmmnUtil.isEmpty(vo.getAuthorId()))
emsg = String.format("(%s)권한코드(은)는 필수조건 입니다.", table);
if(XitCmmnUtil.isEmpty(vo.getRoleCode()))
emsg = String.format("(%s)역할코드(은)는 필수조건 입니다.", table);
@ -431,7 +431,7 @@ public class XitFrameCrudServiceBean extends AbstractServiceBean implements XitF
*
*/
String emsg = null;
if(XitCmmnUtil.isEmpty(vo.getAuthorCode()))
if(XitCmmnUtil.isEmpty(vo.getAuthorId()))
emsg = String.format("(%s)권한코드(은)는 필수조건 입니다.", table);
if(XitCmmnUtil.isEmpty(vo.getRoleCode()))
emsg = String.format("(%s)역할코드(은)는 필수조건 입니다.", table);
@ -466,7 +466,7 @@ public class XitFrameCrudServiceBean extends AbstractServiceBean implements XitF
*
*/
String emsg = null;
if(XitCmmnUtil.isEmpty(vo.getAuthorCode()))
if(XitCmmnUtil.isEmpty(vo.getAuthorId()))
emsg = String.format("(%s)권한코드(은)는 필수조건 입니다.", table);
if(XitCmmnUtil.isEmpty(vo.getRoleCode()))
emsg = String.format("(%s)역할코드(은)는 필수조건 입니다.", table);
@ -2418,7 +2418,7 @@ public class XitFrameCrudServiceBean extends AbstractServiceBean implements XitF
String emsg = null;
if(XitCmmnUtil.isEmpty(vo.getMenuNo()))
emsg = String.format("(%s)메뉴번호(은)는 필수조건 입니다.", table);
if(XitCmmnUtil.isEmpty(vo.getAuthorCode()))
if(XitCmmnUtil.isEmpty(vo.getAuthorId()))
emsg = String.format("(%s)권한코드(은)는 필수조건 입니다.", table);
if(emsg!=null){
logger.error(emsg);
@ -2451,7 +2451,7 @@ public class XitFrameCrudServiceBean extends AbstractServiceBean implements XitF
String emsg = null;
if(XitCmmnUtil.isEmpty(vo.getMenuNo()))
emsg = String.format("(%s)메뉴번호(은)는 필수조건 입니다.", table);
if(XitCmmnUtil.isEmpty(vo.getAuthorCode()))
if(XitCmmnUtil.isEmpty(vo.getAuthorId()))
emsg = String.format("(%s)권한코드(은)는 필수조건 입니다.", table);
if(emsg!=null){
logger.error(emsg);
@ -2486,7 +2486,7 @@ public class XitFrameCrudServiceBean extends AbstractServiceBean implements XitF
String emsg = null;
if(XitCmmnUtil.isEmpty(vo.getMenuNo()))
emsg = String.format("(%s)메뉴번호(은)는 필수조건 입니다.", table);
if(XitCmmnUtil.isEmpty(vo.getAuthorCode()))
if(XitCmmnUtil.isEmpty(vo.getAuthorId()))
emsg = String.format("(%s)권한코드(은)는 필수조건 입니다.", table);
if(emsg!=null){
logger.error(emsg);
@ -2521,7 +2521,7 @@ public class XitFrameCrudServiceBean extends AbstractServiceBean implements XitF
String emsg = null;
if(XitCmmnUtil.isEmpty(vo.getMenuNo()))
emsg = String.format("(%s)메뉴번호(은)는 필수조건 입니다.", table);
if(XitCmmnUtil.isEmpty(vo.getAuthorCode()))
if(XitCmmnUtil.isEmpty(vo.getAuthorId()))
emsg = String.format("(%s)권한코드(은)는 필수조건 입니다.", table);
if(emsg!=null){
logger.error(emsg);

@ -227,8 +227,8 @@ public class XitFrameUnitServiceBean extends AbstractServiceBean implements XitF
}
@Override
public List<Map<String, String>> findMenuListByAuthorCode(String authorCode){
return CacheServiceUtils.findMenuListByAuthorCode(authorCode);
public List<Map<String, String>> findMenuListByAuthorId(String authorId){
return CacheServiceUtils.findMenuListByAuthorId(authorId);
}
@Override
@ -248,12 +248,12 @@ public class XitFrameUnitServiceBean extends AbstractServiceBean implements XitF
}
@Override
public void addAuthRoleRelation(String authorCode, String roleCode, boolean isAdd) {
public void addAuthRoleRelation(String authorId, String roleCode, boolean isAdd) {
/**
*
*/
XitAuthorRoleRelateVO vo = new XitAuthorRoleRelateVO();
vo.setAuthorCode(authorCode);
vo.setAuthorId(authorId);
vo.setRoleCode(roleCode);
boolean isExists = XitCmmnUtil.notEmpty(xitFrameCrudService.findXitAuthorRoleRelate(vo));
@ -424,7 +424,7 @@ public class XitFrameUnitServiceBean extends AbstractServiceBean implements XitF
* @date: 2020. 10. 30.
*/
@Override
public String getDefaultAuthorCode(String grpId) {
public String getDefaultAuthorId(String grpId) {
if (XitCmmnUtil.isEmpty(grpId))
return "ROLE_USER";
@ -436,16 +436,16 @@ public class XitFrameUnitServiceBean extends AbstractServiceBean implements XitF
if (XitCmmnUtil.isEmpty(groupInfo))
return "ROLE_USER";
else {
if (XitCmmnUtil.isEmpty(groupInfo.getAuthorCode()))
if (XitCmmnUtil.isEmpty(groupInfo.getAuthorId()))
return "ROLE_USER";
else
return groupInfo.getAuthorCode();
return groupInfo.getAuthorId();
}
}
@Override
public boolean isCheckUserForCanChange(String uniqId, String trgetAuthorCode) {
public boolean isCheckUserForCanChange(String uniqId, String trgetAuthorId) {
/**
*
*/
@ -453,13 +453,13 @@ public class XitFrameUnitServiceBean extends AbstractServiceBean implements XitF
XitUserScrtySetupVO userScrtySetupVO = new XitUserScrtySetupVO();
userScrtySetupVO.setScrtySetupTrgetId(uniqId);
List<XitUserScrtySetupVO> listUserScrtySetupVO = xitFrameCrudService.findXitUserScrtySetups(userScrtySetupVO);
String userAuthorCode = XitCmmnUtil.isEmpty(listUserScrtySetupVO)?null:listUserScrtySetupVO.get(0).getAuthorCode();
String userAuthorId = XitCmmnUtil.isEmpty(listUserScrtySetupVO)?null:listUserScrtySetupVO.get(0).getAuthorId();
return this.isCheckUserAuthorCodeForCanChange(userAuthorCode, trgetAuthorCode);
return this.isCheckUserAuthorIdForCanChange(userAuthorId, trgetAuthorId);
}
@Override
public boolean isCheckUserAuthorCodeForCanChange(String userAuthorCode, String trgetAuthorCode) {
public boolean isCheckUserAuthorIdForCanChange(String userAuthorId, String trgetAuthorId) {
/**
*
*/
@ -471,7 +471,7 @@ public class XitFrameUnitServiceBean extends AbstractServiceBean implements XitF
return true;
}else {
//사용자의 권한 정보가 없을 때(비정상적인 루트로 등록한 사용자 계정으로 판단)
if(XitCmmnUtil.isEmpty(userAuthorCode)) {
if(XitCmmnUtil.isEmpty(userAuthorId)) {
log.debug("This user is have not UserScrtySetup Data !!");
return false;
}
@ -479,7 +479,7 @@ public class XitFrameUnitServiceBean extends AbstractServiceBean implements XitF
boolean isExists = false;
//사용자 권한과 매칭되는 역할(권한)계층정보 유무 확인
for(XitRoleSclsrtRescueVO item : listRoleSclsrtRescueVO) {
if(item.getParntsRole().equals(userAuthorCode)) {
if(item.getParntsRole().equals(userAuthorId)) {
isExists = true;
break;
}
@ -487,7 +487,7 @@ public class XitFrameUnitServiceBean extends AbstractServiceBean implements XitF
//사용자 권한이 최상위 권한이면 true 반환
if(!isExists)
for(XitRoleSclsrtRescueVO item : listRoleSclsrtRescueVO) {
if(item.getChldrnRole().equals(userAuthorCode)) {
if(item.getChldrnRole().equals(userAuthorId)) {
log.debug("This user is Top-Level Author !!");
return true;
}
@ -503,7 +503,7 @@ public class XitFrameUnitServiceBean extends AbstractServiceBean implements XitF
*
*
*/
return this.isHighAuthor(listRoleSclsrtRescueVO, userAuthorCode, trgetAuthorCode)?false:true;
return this.isHighAuthor(listRoleSclsrtRescueVO, userAuthorId, trgetAuthorId)?false:true;
}
@ -515,13 +515,13 @@ public class XitFrameUnitServiceBean extends AbstractServiceBean implements XitF
* </pre>
*
* @param list
* @param authorCode
* @param highAuthorCode
* @param authorId
* @param highAuthorId
* @return boolean
* @author:
* @date: 2020. 11. 1.
*/
private boolean isHighAuthor(List<XitRoleSclsrtRescueVO> list, String authorCode, String highAuthorCode) {
private boolean isHighAuthor(List<XitRoleSclsrtRescueVO> list, String authorId, String highAuthorId) {
boolean result = false;
for (XitRoleSclsrtRescueVO item : list) {
@ -529,13 +529,13 @@ public class XitFrameUnitServiceBean extends AbstractServiceBean implements XitF
if (result)
break;
// 권한코드가 일치하지 않으면 skip
if (!item.getParntsRole().equals(authorCode))
if (!item.getParntsRole().equals(authorId))
continue;
if (item.getChldrnRole().equals(highAuthorCode)) { // 상위 권한과 일치하면
if (item.getChldrnRole().equals(highAuthorId)) { // 상위 권한과 일치하면
result = true;
} else { // 상위 권한과 일치하지 않으면 재호출
result = this.isHighAuthor(list, item.getChldrnRole(), highAuthorCode);
result = this.isHighAuthor(list, item.getChldrnRole(), highAuthorId);
}
}

@ -41,7 +41,7 @@ public class XitAuthGrpMngVO extends BaseVO {
/**
*
*/
private String authorCode;
private String authorId;
/**
*
*/
@ -117,11 +117,11 @@ public class XitAuthGrpMngVO extends BaseVO {
public void setDscrp(String dscrp) {
this.dscrp = dscrp;
}
public String getAuthorCode() {
return authorCode;
public String getAuthorId() {
return authorId;
}
public void setAuthorCode(String authorCode) {
this.authorCode = authorCode;
public void setAuthorId(String authorId) {
this.authorId = authorId;
}
public String getAuthorNm() {
return authorNm;

@ -27,7 +27,7 @@ public class XitAuthHierarchyMngVO {
/**
*
*/
private String authorCode;
private String authorId;
/**
*
*/

@ -26,7 +26,7 @@ public class XitAuthRegMngVO extends BaseVO {
/**
*
*/
private String authorCode;
private String authorId;
/**
*
*/
@ -55,18 +55,18 @@ public class XitAuthRegMngVO extends BaseVO {
this.authorManage = authorManage;
}
/**
* authorCode attribute .
* authorId attribute .
* @return String
*/
public String getAuthorCode() {
return authorCode;
public String getAuthorId() {
return authorId;
}
/**
* authorCode attribute .
* @param authorCode String
* authorId attribute .
* @param authorId String
*/
public void setAuthorCode(String authorCode) {
this.authorCode = authorCode;
public void setAuthorId(String authorId) {
this.authorId = authorId;
}
/**
* authorCreatDe attribute .

@ -59,5 +59,5 @@ public class XitAuthRuleMngVO extends BaseVO {
/**
*
*/
private String authorCode;
private String authorId;
}

@ -48,7 +48,7 @@ public class XitAuthUsrMngVO {
/**
*
*/
private String authorCode;
private String authorId;
/**
*
*/

@ -24,7 +24,7 @@ public class XitAuthorGroupInfoVO {
private String grpId; //그룹 id
private String groupNm; //그룹 명
private String dscrp; //그룹 설명
private String authorCode; //권한 코드
private String authorId; //권한 코드
private String authorNm;
private String groupCreatDe; //그룹 생성 일
}

@ -25,7 +25,7 @@ public class XitAuthorInfoVO {
*/
private static final long serialVersionUID = 4982342550430087973L;
protected String authorCode; //권한 코드
protected String authorId; //권한 코드
protected String authorNm; //권한 명
protected String dscrp; //권한 설명
protected String authorCreatDe; //권한 생성 일

@ -52,7 +52,7 @@ public interface AuthAuthorMgtMapper {
<T> XitAuthorInfoVO selectAuthorInfo(final T t);
int insertAuthorInfo(final XitAuthorInfoVO vo);
int updateAuthorInfo(final XitAuthorInfoVO vo);
int deleteAuthorInfo(final String authorCode);
int deleteAuthorInfo(final String authorId);
List<XitRoleSclsrtRescueVO> selectRoleSclsrtRescues(final XitRoleSclsrtRescueVO vo);

@ -33,7 +33,7 @@ public interface AuthAuthorMgtService {
<T> XitAuthorInfoVO findAuthAuthor(final T t);
void addAuthAuthor(final XitAuthorInfoVO vo);
void modifyAuthAuthor(final XitAuthorInfoVO vo);
void removeAuthAuthor(final String authorCode);
void removeAuthAuthor(final String authorId);
List<XitRoleInfoVO> findAuthRoleGrantList(final Map<String, Object> paraMap);

@ -22,7 +22,7 @@ public interface AuthGrpMgtService {
<T> XitAuthorGroupInfoVO findAuthGrp(final T t);
void addAuthGrp(final XitAuthorGroupInfoVO vo);
void modifyAuthGrp(final XitAuthorGroupInfoVO vo);
void removeAuthGrp(final String authorCode);
void removeAuthGrp(final String authorId);
void isCheckUserForCanChange(final String uniqId, final String trgetAuthorCode);
void isCheckUserForCanChange(final String uniqId, final String trgetAuthorId);
}

@ -71,10 +71,10 @@ public class AuthAuthorMgtServiceBean extends AbstractServiceBean implements Aut
XitRoleSclsrtRescueVO roleSclsrtRescueVO = new XitRoleSclsrtRescueVO();
//부모관계 생성
roleSclsrtRescueVO.setParntsRole(PARNTS_AUTHOR);
roleSclsrtRescueVO.setChldrnRole(vo.getAuthorCode());
roleSclsrtRescueVO.setChldrnRole(vo.getAuthorId());
mapper.insertRoleSclsrtRescue(roleSclsrtRescueVO);
//자녀관계 생성
roleSclsrtRescueVO.setParntsRole(vo.getAuthorCode());
roleSclsrtRescueVO.setParntsRole(vo.getAuthorId());
roleSclsrtRescueVO.setChldrnRole(CHLDRN_AUTHOR);
mapper.insertRoleSclsrtRescue(roleSclsrtRescueVO);
}
@ -86,18 +86,18 @@ public class AuthAuthorMgtServiceBean extends AbstractServiceBean implements Aut
}
@Transactional
public void removeAuthAuthor(final String authorCode){
public void removeAuthAuthor(final String authorId){
//계층구조 삭제
XitRoleSclsrtRescueVO roleSclsrtRescueVO = new XitRoleSclsrtRescueVO();
roleSclsrtRescueVO.setParntsRole(PARNTS_AUTHOR);
roleSclsrtRescueVO.setChldrnRole(authorCode);
roleSclsrtRescueVO.setChldrnRole(authorId);
mapper.deleteRoleSclsrtRescue(roleSclsrtRescueVO);
//자녀관계 제거
roleSclsrtRescueVO.setParntsRole(authorCode);
roleSclsrtRescueVO.setParntsRole(authorId);
roleSclsrtRescueVO.setChldrnRole(CHLDRN_AUTHOR);
mapper.deleteRoleSclsrtRescue(roleSclsrtRescueVO);
mapper.deleteAuthorInfo(authorCode);
mapper.deleteAuthorInfo(authorId);
}
@Override
@ -113,7 +113,7 @@ public class AuthAuthorMgtServiceBean extends AbstractServiceBean implements Aut
List<Map<String,Object>> mapList = (List<Map<String, Object>>)paraMap.get("grantData");
mapList.forEach(map -> {
map.put("authorCode", paraMap.get("authorCode"));
map.put("authorId", paraMap.get("authorId"));
if(Objects.equals(map.get("regYn"), "N"))
mapper.deleteRoleGrant(map);
else

@ -41,11 +41,11 @@ public class AuthByUserMgtServiceBean extends AbstractServiceBean implements Aut
String sessionUniqId = XitCmmnUtil.getUserInfo().getUniqId();
paraList.forEach(map -> {
//유효성확인
authGrpMgtService.isCheckUserForCanChange(sessionUniqId, String.valueOf(map.get("authorCode")));
authGrpMgtService.isCheckUserForCanChange(sessionUniqId, String.valueOf(map.get("authorId")));
XitUserScrtySetupVO vo = new XitUserScrtySetupVO();
vo.setScrtySetupTrgetId(String.valueOf(map.get("uniqId")));
vo.setAuthorCode(String.valueOf(map.get("authorCode")));
vo.setAuthorId(String.valueOf(map.get("authorId")));
if(Objects.equals("N", map.get("regYn"))){
userMapper.insertUserScrtySetup(vo);
@ -63,7 +63,7 @@ public class AuthByUserMgtServiceBean extends AbstractServiceBean implements Aut
paraList.forEach(map -> {
XitUserScrtySetupVO vo = new XitUserScrtySetupVO();
vo.setScrtySetupTrgetId(String.valueOf(map.get("uniqId")));
vo.setAuthorCode(userMgtService.getDefaultAuthorCode(String.valueOf(map.get("grpId"))));
vo.setAuthorId(userMgtService.getDefaultAuthorId(String.valueOf(map.get("grpId"))));
userMapper.updateUserScrtySetup(vo);
});
}

@ -53,7 +53,7 @@ public class AuthGrpMgtServiceBean extends AbstractServiceBean implements AuthGr
@Transactional
public void addAuthGrp(final XitAuthorGroupInfoVO vo) {
// 유효성 확인
this.isCheckUserForCanChange(XitCmmnUtil.getUserInfo().getUniqId(), vo.getAuthorCode());
this.isCheckUserForCanChange(XitCmmnUtil.getUserInfo().getUniqId(), vo.getAuthorId());
try {
vo.setGrpId(groupIdGnrService.getNextStringId());
@ -67,7 +67,7 @@ public class AuthGrpMgtServiceBean extends AbstractServiceBean implements AuthGr
@Transactional
public void modifyAuthGrp(final XitAuthorGroupInfoVO vo) {
// 유효성 확인
this.isCheckUserForCanChange(XitCmmnUtil.getUserInfo().getUniqId(), vo.getAuthorCode());
this.isCheckUserForCanChange(XitCmmnUtil.getUserInfo().getUniqId(), vo.getAuthorId());
mapper.updateAuthorGroupInfo(vo);
}
@ -79,19 +79,19 @@ public class AuthGrpMgtServiceBean extends AbstractServiceBean implements AuthGr
}
@Transactional(readOnly = true)
public void isCheckUserForCanChange(final String uniqId, final String trgetAuthorCode) {
public void isCheckUserForCanChange(final String uniqId, final String trgetAuthorId) {
//사용자보안설정 조회
XitUserScrtySetupVO userScrtySetupVO = new XitUserScrtySetupVO();
userScrtySetupVO.setScrtySetupTrgetId(uniqId);
List<XitUserScrtySetupVO> listUserScrtySetupVO = userMgtMapper.selectUserScrtySetups(userScrtySetupVO);
String userAuthorCode = XitCmmnUtil.isEmpty(listUserScrtySetupVO)?null:listUserScrtySetupVO.get(0).getAuthorCode();
String userAuthorId = XitCmmnUtil.isEmpty(listUserScrtySetupVO)?null:listUserScrtySetupVO.get(0).getAuthorId();
if(!this.isCheckUserAuthorCodeForCanChange(userAuthorCode, trgetAuthorCode))
if(!this.isCheckUserAuthorIdForCanChange(userAuthorId, trgetAuthorId))
throw BizRuntimeException.create(MessageKey.CUSTOM_MSG, "자신의 권한보다 상위 권한을 설정 할 수 없습니다.");;
}
private boolean isCheckUserAuthorCodeForCanChange(final String userAuthorCode, final String trgetAuthorCode) {
private boolean isCheckUserAuthorIdForCanChange(final String userAuthorId, final String trgetAuthorId) {
//역할(권한)계층구조 데이터 목록 조회
List<XitRoleSclsrtRescueVO> listRoleSclsrtRescueVO = authAuthorMgtMapper.selectRoleSclsrtRescues(null);
//역할(권한)계층구조를 사용하지 않고 있는 경우 true 반환
@ -100,7 +100,7 @@ public class AuthGrpMgtServiceBean extends AbstractServiceBean implements AuthGr
return true;
}else {
//사용자의 권한 정보가 없을 때(비정상적인 루트로 등록한 사용자 계정으로 판단)
if(XitCmmnUtil.isEmpty(userAuthorCode)) {
if(XitCmmnUtil.isEmpty(userAuthorId)) {
log.debug("This user is have not UserScrtySetup Data !!");
return false;
}
@ -108,7 +108,7 @@ public class AuthGrpMgtServiceBean extends AbstractServiceBean implements AuthGr
boolean isExists = false;
//사용자 권한과 매칭되는 역할(권한)계층정보 유무 확인
for(XitRoleSclsrtRescueVO item : listRoleSclsrtRescueVO) {
if(item.getParntsRole().equals(userAuthorCode)) {
if(item.getParntsRole().equals(userAuthorId)) {
isExists = true;
break;
}
@ -116,7 +116,7 @@ public class AuthGrpMgtServiceBean extends AbstractServiceBean implements AuthGr
//사용자 권한이 최상위 권한이면 true 반환
if(!isExists)
for(XitRoleSclsrtRescueVO item : listRoleSclsrtRescueVO) {
if(item.getChldrnRole().equals(userAuthorCode)) {
if(item.getChldrnRole().equals(userAuthorId)) {
log.debug("This user is Top-Level Author !!");
return true;
}
@ -132,10 +132,10 @@ public class AuthGrpMgtServiceBean extends AbstractServiceBean implements AuthGr
*
*
*/
return !this.isHighAuthor(listRoleSclsrtRescueVO, userAuthorCode, trgetAuthorCode);
return !this.isHighAuthor(listRoleSclsrtRescueVO, userAuthorId, trgetAuthorId);
}
private boolean isHighAuthor(final List<XitRoleSclsrtRescueVO> list, final String authorCode, final String highAuthorCode) {
private boolean isHighAuthor(final List<XitRoleSclsrtRescueVO> list, final String authorId, final String highAuthorId) {
boolean result = false;
for (XitRoleSclsrtRescueVO item : list) {
@ -143,13 +143,13 @@ public class AuthGrpMgtServiceBean extends AbstractServiceBean implements AuthGr
if (result)
break;
// 권한코드가 일치하지 않으면 skip
if (!item.getParntsRole().equals(authorCode))
if (!item.getParntsRole().equals(authorId))
continue;
if (item.getChldrnRole().equals(highAuthorCode)) { // 상위 권한과 일치하면
if (item.getChldrnRole().equals(highAuthorId)) { // 상위 권한과 일치하면
result = true;
} else { // 상위 권한과 일치하지 않으면 재호출
result = this.isHighAuthor(list, item.getChldrnRole(), highAuthorCode);
result = this.isHighAuthor(list, item.getChldrnRole(), highAuthorId);
}
}

@ -33,7 +33,7 @@ public class AuthHierarchyMgtServiceBean extends AbstractServiceBean implements
if(XitCmmnUtil.notEmpty(voList)) {
for(XitAuthHierarchyMngVO vo : voList) {
String strAuthorRescueCode = this.getStrAuthHierarchy(vo.getAuthorCode());
String strAuthorRescueCode = this.getStrAuthHierarchy(vo.getAuthorId());
vo.setAuthorRescueCode(strAuthorRescueCode);
vo.setAuthorRescueCodeNm(this.convertKorNm(strAuthorRescueCode));
}
@ -51,9 +51,9 @@ public class AuthHierarchyMgtServiceBean extends AbstractServiceBean implements
return result;
String topButtonAuthorCode = this.getStrAuthHierarchy(listRoleSclsrtRescueVO.get(0).getChldrnRole());
topButtonAuthorCode = topButtonAuthorCode.split(">")[0].trim();
String strAuthorRescueCode = this.getStrAuthHierarchy(topButtonAuthorCode);
String topButtonAuthorId = this.getStrAuthHierarchy(listRoleSclsrtRescueVO.get(0).getChldrnRole());
topButtonAuthorId = topButtonAuthorId.split(">")[0].trim();
String strAuthorRescueCode = this.getStrAuthHierarchy(topButtonAuthorId);
result.setAuthorRescueCode(strAuthorRescueCode);
return result;
@ -61,25 +61,25 @@ public class AuthHierarchyMgtServiceBean extends AbstractServiceBean implements
@Transactional
public void saveAuthHierarchy(final XitAuthHierarchyMngVO vo) {
if(XitCmmnUtil.isEmpty(vo.getAuthorCode()))
if(XitCmmnUtil.isEmpty(vo.getAuthorId()))
throw BizRuntimeException.create(MessageKey.CUSTOM_MSG, "권한코드는 필수조건 입니다.");
String[] arrAuthorCodeGrp = vo.getAuthorCode().split(","); //권한코드 묶음 목록
String[] arrAuthorIdGrp = vo.getAuthorId().split(","); //권한코드 묶음 목록
/**
*
* - .
* - () .
*/
if(arrAuthorCodeGrp[0].split(";").length>1)
if(arrAuthorIdGrp[0].split(";").length>1)
throw BizRuntimeException.create(MessageKey.CUSTOM_MSG,"최상위 부모는 한개만 설정 가능 합니다.");
// 최하위 자녀 갯수 확인
if(arrAuthorCodeGrp[arrAuthorCodeGrp.length-1].split(";").length>1)
if(arrAuthorIdGrp[arrAuthorIdGrp.length-1].split(";").length>1)
throw BizRuntimeException.create(MessageKey.CUSTOM_MSG,"최하위 자녀는 한개만 설정 가능 합니다.");
// 다중상속 구간 갯수 확인
int cnt = 0;
for(String authorCodeGrp : arrAuthorCodeGrp) {
if(authorCodeGrp.split(";").length > 1)
for(String authorIdGrp : arrAuthorIdGrp) {
if(authorIdGrp.split(";").length > 1)
cnt++;
}
if(cnt > 1)
@ -88,14 +88,14 @@ public class AuthHierarchyMgtServiceBean extends AbstractServiceBean implements
//권한계층구조 일괄 제거
authAuthorMgtMapper.deleteRoleSclsrtRescue(new XitRoleSclsrtRescueVO());
//권한계층 데이터 등록
for(int i=0; i<arrAuthorCodeGrp.length; i++) {
for(int i=0; i<arrAuthorIdGrp.length; i++) {
//마지막 권한이면 stop
if(i==arrAuthorCodeGrp.length-1)
if(i==arrAuthorIdGrp.length-1)
break;
String[] arrParntsRole = arrAuthorCodeGrp[i].split(";");
String[] arrChldrnRole = arrAuthorCodeGrp[i+1].split(";");
String[] arrParntsRole = arrAuthorIdGrp[i].split(";");
String[] arrChldrnRole = arrAuthorIdGrp[i+1].split(";");
for(int j=0; j<arrParntsRole.length; j++) {
String parntsRole = arrParntsRole[j];
for(int k=0; k<arrChldrnRole.length; k++) {
@ -112,26 +112,26 @@ public class AuthHierarchyMgtServiceBean extends AbstractServiceBean implements
/**
* <pre> : .</pre>
* @param authorCode
* @param authorId
* @return String
* @author:
* @date: 2020. 11. 2.
*/
private String getStrAuthHierarchy(final String authorCode) {
private String getStrAuthHierarchy(final String authorId) {
LinkedHashMap<String, String> mParnts = new LinkedHashMap<String, String>();
LinkedHashMap<String, String> mChldrn = new LinkedHashMap<String, String>();
List<XitRoleSclsrtRescueVO> list = authAuthorMgtMapper.selectRoleSclsrtRescues(new XitRoleSclsrtRescueVO());
this.getAuthHierarchy(list, authorCode, false, mParnts);
this.getAuthHierarchy(list, authorCode, true, mChldrn);
this.getAuthHierarchy(list, authorId, false, mParnts);
this.getAuthHierarchy(list, authorId, true, mChldrn);
StringBuffer sb = new StringBuffer();
Iterator<String> it = mParnts.keySet().iterator();
while(it.hasNext()) {
sb.append(mParnts.get(it.next())).append(" > ");
}
sb.append(authorCode).append(" > ");
sb.append(authorId).append(" > ");
it = mChldrn.keySet().iterator();
while(it.hasNext()) {
sb.append(mChldrn.get(it.next())).append(" > ");
@ -144,29 +144,29 @@ public class AuthHierarchyMgtServiceBean extends AbstractServiceBean implements
/**
* <pre> : / resultMap(LinkedHashMap) .</pre>
* @param list
* @param authorCode
* @param authorId
* @param isChldrnSearch (true: , false: )
* @param resultMap
* @return void
* @author:
* @date: 2020. 11. 2.
*/
private void getAuthHierarchy(final List<XitRoleSclsrtRescueVO> list, final String authorCode, final boolean isChldrnSearch, final LinkedHashMap<String, String> resultMap) {
private void getAuthHierarchy(final List<XitRoleSclsrtRescueVO> list, final String authorId, final boolean isChldrnSearch, final LinkedHashMap<String, String> resultMap) {
for (XitRoleSclsrtRescueVO item : list) {
if(isChldrnSearch) {
// 권한코드가 일치하지 않으면 skip
if (!item.getParntsRole().equals(authorCode))
if (!item.getParntsRole().equals(authorId))
continue;
//권한코드 Set
if(resultMap.containsKey(authorCode)) {
if(resultMap.containsKey(authorId)) {
//동일한 값이면 담지 않음
if(resultMap.get(authorCode).equals(item.getChldrnRole()))
if(resultMap.get(authorId).equals(item.getChldrnRole()))
continue;
resultMap.put(authorCode, resultMap.get(authorCode)+", "+item.getChldrnRole());
resultMap.put(authorId, resultMap.get(authorId)+", "+item.getChldrnRole());
}else {
//동일한 값이 있으면 담지 않음
Iterator<String> it = resultMap.values().iterator();
@ -183,7 +183,7 @@ public class AuthHierarchyMgtServiceBean extends AbstractServiceBean implements
}
}
if(!isExists)
resultMap.put(authorCode, item.getChldrnRole());
resultMap.put(authorId, item.getChldrnRole());
}
@ -192,23 +192,23 @@ public class AuthHierarchyMgtServiceBean extends AbstractServiceBean implements
}else {
// 권한코드가 일치하지 않으면 skip
if (!item.getChldrnRole().equals(authorCode))
if (!item.getChldrnRole().equals(authorId))
continue;
//재탐색
this.getAuthHierarchy(list, item.getParntsRole(), isChldrnSearch, resultMap);
//권한코드 Set
if(resultMap.containsKey(authorCode)) {
if(resultMap.containsKey(authorId)) {
//동일한 값이면 담지 않음
if(resultMap.get(authorCode).equals(item.getParntsRole()))
if(resultMap.get(authorId).equals(item.getParntsRole()))
continue;
resultMap.put(authorCode, resultMap.get(authorCode)+", "+item.getParntsRole());
resultMap.put(authorId, resultMap.get(authorId)+", "+item.getParntsRole());
}else {
//동일한 값이 있으면 담지 않음
if(!resultMap.containsValue(item.getParntsRole())) {
resultMap.put(authorCode, item.getParntsRole());
resultMap.put(authorId, item.getParntsRole());
}
}
}
@ -223,7 +223,7 @@ public class AuthHierarchyMgtServiceBean extends AbstractServiceBean implements
List<XitAuthorInfoVO> listAuthorInfoVO = authAuthorMgtMapper.selectAuthorInfos(null);
Map<String, String> mAuthorInfo = new HashMap<String, String>();
for(XitAuthorInfoVO item : listAuthorInfoVO) {
mAuthorInfo.put(item.getAuthorCode(), item.getAuthorNm());
mAuthorInfo.put(item.getAuthorId(), item.getAuthorNm());
}
StringBuffer sb = new StringBuffer();
@ -234,15 +234,15 @@ public class AuthHierarchyMgtServiceBean extends AbstractServiceBean implements
if(i>0)
sb.append(" > ");
String[] arrAuthorCode = item.split(",");
for(int j=0; j<arrAuthorCode.length; j++) {
String authorCode = arrAuthorCode[j].trim();
String[] arrAuthorId = item.split(",");
for(int j=0; j<arrAuthorId.length; j++) {
String authorId = arrAuthorId[j].trim();
if(j==0)
sb.append(mAuthorInfo.get(authorCode));
sb.append(mAuthorInfo.get(authorId));
else
sb.append(", ").append(mAuthorInfo.get(authorCode));
sb.append(", ").append(mAuthorInfo.get(authorId));
}
}

@ -42,7 +42,7 @@ public class AuthAuthorMgtController extends AbstractController {
public ModelAndView mngAuthAuthorMgtPopup(final XitAuthorInfoVO vo){
ModelAndView mav = new ModelAndView();
if(Checks.isEmpty(vo) || Checks.isEmpty(vo.getAuthorCode())){
if(Checks.isEmpty(vo) || Checks.isEmpty(vo.getAuthorId())){
mav.addObject("authorInfoVO", new XitAuthorInfoVO());
mav.addObject("pageTitle", "권한 등록");
} else {
@ -86,10 +86,10 @@ public class AuthAuthorMgtController extends AbstractController {
}
@PostMapping(name = "", value = "/removeAuthAuthor")
public ModelAndView removeAuthAuthor(final String authorCode){
public ModelAndView removeAuthAuthor(final String authorId){
ModelAndView mav = new ModelAndView(FrameworkConstants.JSON_VIEW);
service.removeAuthAuthor(authorCode);
service.removeAuthAuthor(authorId);
AjaxMessageMapRenderer.success(mav, MessageKey.CMM_DELETE_SUCCESS);
return mav;
}

@ -58,27 +58,27 @@ public class AuthHierarchyMgtController extends AbstractController {
//권한코드 Map 생성
List<XitAuthorInfoVO> authorInfoVOList = authAuthorMgtService.findAuthAuthors(null);
Map<String, String> mAuthorInfo = new HashMap<String, String>();
authorInfoVOList.forEach(infoVO -> mAuthorInfo.put(infoVO.getAuthorCode(), infoVO.getAuthorNm()));
authorInfoVOList.forEach(infoVO -> mAuthorInfo.put(infoVO.getAuthorId(), infoVO.getAuthorNm()));
//권한코드 목록에서 비중복 권한만 추출
Map<String, String> mNoDuplAuthorInfo = new HashMap<String, String>();
mNoDuplAuthorInfo.putAll(mAuthorInfo);
String[] arrAuthorRescue = authHierarchyMngVO.getAuthorRescueCode().split(">");
for(int i=0; i<arrAuthorRescue.length; i++) {
String[] arrAuthorCode = arrAuthorRescue[i].split(",");
for(int j=0; j<arrAuthorCode.length; j++) {
String authorCode = arrAuthorCode[j].trim();
if(mNoDuplAuthorInfo.containsKey(authorCode)) {
mNoDuplAuthorInfo.remove(authorCode);
String[] arrAuthorId = arrAuthorRescue[i].split(",");
for(int j=0; j<arrAuthorId.length; j++) {
String authorId = arrAuthorId[j].trim();
if(mNoDuplAuthorInfo.containsKey(authorId)) {
mNoDuplAuthorInfo.remove(authorId);
}
}
}
//권한계층 미설정 권한 목록 설정
List<XitAuthorInfoVO> listAuthorInfo = new ArrayList<>();
for (String authorCode : mNoDuplAuthorInfo.keySet()) {
for (String authorId : mNoDuplAuthorInfo.keySet()) {
XitAuthorInfoVO authorInfo = new XitAuthorInfoVO();
authorInfo.setAuthorCode(authorCode);
authorInfo.setAuthorNm(mNoDuplAuthorInfo.get(authorCode));
authorInfo.setAuthorId(authorId);
authorInfo.setAuthorNm(mNoDuplAuthorInfo.get(authorId));
listAuthorInfo.add(authorInfo);
}

@ -24,7 +24,7 @@ public class MenuCreateMngVO extends BaseVO {
/** 맵생성ID */
private String mapCreatId;
/** 권한코드 */
private String authorCode;
private String authorId;
/** 권한정보설정 */
/** 권한명 */
@ -78,18 +78,18 @@ public class MenuCreateMngVO extends BaseVO {
this.mapCreatId = mapCreatId;
}
/**
* authorCode attribute .
* authorId attribute .
* @return String
*/
public String getAuthorCode() {
return authorCode;
public String getAuthorId() {
return authorId;
}
/**
* authorCode attribute .
* @param authorCode String
* authorId attribute .
* @param authorId String
*/
public void setAuthorCode(String authorCode) {
this.authorCode = authorCode;
public void setAuthorId(String authorId) {
this.authorId = authorId;
}
/**
* authorNm attribute .

@ -41,7 +41,7 @@ public class MenuListMngVO {
/** 권한정보설정 */
/** 권한코드 */
private String authorCode;
private String authorId;
/** 기타VO변수 */
private String tempValue;
@ -192,18 +192,18 @@ public class MenuListMngVO {
this.creatPersonId = creatPersonId;
}
/**
* authorCode attribute .
* authorId attribute .
* @return String
*/
public String getAuthorCode() {
return authorCode;
public String getAuthorId() {
return authorId;
}
/**
* authorCode attribute .
* @param authorCode String
* authorId attribute .
* @param authorId String
*/
public void setAuthorCode(String authorCode) {
this.authorCode = authorCode;
public void setAuthorId(String authorId) {
this.authorId = authorId;
}
/**

@ -12,6 +12,6 @@ public interface MenuByRoleMgtMapper {
<T> List<MenuCreateMngVO> selectRoleInfos(T t);
<T> List<MenuCreateMngVO> selectMenuInfoByRoleList(T t);
int deleteMenuCreatDtls(final String authorCode);
int deleteMenuCreatDtls(final String authorId);
int insertMenuCreatDtls(final XitMenuCreatDtlsVO vo);
}

@ -36,19 +36,19 @@ public class MenuByRoleMgtServiceBean extends AbstractServiceBean implements Men
@Override
@Transactional
public void saveMenuByRoleList(Map<String, Object> paraMap) {
String authorCode = String.valueOf(paraMap.get("authorCode"));
String authorId = String.valueOf(paraMap.get("authorId"));
@SuppressWarnings("unchecked")
List<String> menuNoList = (List<String>)paraMap.get("menuNoList");
// 해당 권한의 메뉴 삭제
mapper.deleteMenuCreatDtls(authorCode);
mapper.deleteMenuCreatDtls(authorId);
// 메뉴 등록
menuNoList.forEach((menuNo) -> {
mapper.insertMenuCreatDtls(
XitMenuCreatDtlsVO
.builder()
.authorCode(authorCode)
.authorId(authorId)
.menuNo(menuNo)
.build()
);

@ -25,5 +25,5 @@ public class XitUserScrtySetupVO {
private static final long serialVersionUID = -4431553754531650113L;
protected String scrtySetupTrgetId; //보안 설정 대상 id
protected String authorCode; //권한 코드
protected String authorId; //권한 코드
}

@ -34,7 +34,7 @@ public interface UserMgtService {
void modifyUser(final XitUserInfoVO userInfoVO);
void removeUser(final String uniqId);
String getDefaultAuthorCode(final String grpId);
String getDefaultAuthorId(final String grpId);
int addUserScrtySetup(final XitUserScrtySetupVO vo);

@ -80,7 +80,7 @@ public class UserMgtServiceBean extends AbstractServiceBean implements UserMgtSe
// 사용자 권한
XitUserScrtySetupVO userScrtySetupVO = new XitUserScrtySetupVO();
userScrtySetupVO.setScrtySetupTrgetId(vo.getUserId());
userScrtySetupVO.setAuthorCode(this.getDefaultAuthorCode(vo.getGrpId()));
userScrtySetupVO.setAuthorId(this.getDefaultAuthorId(vo.getGrpId()));
mapper.insertUserScrtySetup(userScrtySetupVO);
// 기타 option
@ -117,7 +117,7 @@ public class UserMgtServiceBean extends AbstractServiceBean implements UserMgtSe
if(!Objects.equals(vo.getGrpId(), userInfoCheckMap.get("grp_id"))) {
XitUserScrtySetupVO userScrtySetupVO = new XitUserScrtySetupVO();
userScrtySetupVO.setScrtySetupTrgetId(vo.getUniqId());
userScrtySetupVO.setAuthorCode(this.getDefaultAuthorCode(vo.getGrpId()));
userScrtySetupVO.setAuthorId(this.getDefaultAuthorId(vo.getGrpId()));
if(Checks.isEmpty(mapper.selectUserScrtySetup(userScrtySetupVO.getScrtySetupTrgetId()))) {
mapper.insertUserScrtySetup(userScrtySetupVO);
@ -161,7 +161,7 @@ public class UserMgtServiceBean extends AbstractServiceBean implements UserMgtSe
*/
@Override
@Transactional(readOnly = true)
public String getDefaultAuthorCode(final String grpId) {
public String getDefaultAuthorId(final String grpId) {
if(Checks.isEmpty(grpId)) return "ROLE_USER";
XitAuthorGroupInfoVO vo = authGrpMgtMapper.selectAuthorGroupInfo(grpId);
@ -169,10 +169,10 @@ public class UserMgtServiceBean extends AbstractServiceBean implements UserMgtSe
if (Checks.isEmpty(vo))
return "ROLE_USER";
else {
if (Checks.isEmpty(vo.getAuthorCode()))
if (Checks.isEmpty(vo.getAuthorId()))
return "ROLE_USER";
else
return vo.getAuthorCode();
return vo.getAuthorId();
}
}
@ -212,18 +212,18 @@ public class UserMgtServiceBean extends AbstractServiceBean implements UserMgtSe
}else {
//사용자(수정대상) 권한 조회
XitUserScrtySetupVO scrtyVO = mapper.selectUserScrtySetup(uniqId);
String tgtAuthorCode = scrtyVO.getAuthorCode();
String tgtAuthorId = scrtyVO.getAuthorId();
//사용자(수정자) 권한 조회
scrtyVO = mapper.selectUserScrtySetup(loginSessionVO.getUniqId());;
String userAuthorCode = scrtyVO.getAuthorCode();
String userAuthorId = scrtyVO.getAuthorId();
//사용자(수정자)가 ROLE_ADMIN 권한의 사용자인 경우
if("ROLE_ADMIN".equals(userAuthorCode)) {
if("ROLE_ADMIN".equals(userAuthorId)) {
return true;
}else {
//사용자(수정대상)가 ROLE_ADMIN 권한의 사용자인 경우
if("ROLE_ADMIN".equals(tgtAuthorCode)) {
if("ROLE_ADMIN".equals(tgtAuthorId)) {
return false;
}

@ -60,7 +60,7 @@ public class XitUserEtcOptMngController extends AbstractController {
/*================
*
================*/
model.addAttribute("dataAuthorCode_result" , xitFrameCodeService.findCmmnDetailCodes("XIT401")); //자료조회및관리범위코드 목록
model.addAttribute("dataAuthorId_result" , xitFrameCodeService.findCmmnDetailCodes("XIT401")); //자료조회및관리범위코드 목록
model.addAttribute("elctrnsanctnUseYnCode_result" , xitFrameCodeService.findCmmnDetailCodes("XIT402")); //전자결재사용여부코드 목록
model.addAttribute("jobConfmAuthorYnCode_result" , xitFrameCodeService.findCmmnDetailCodes("XIT403")); //업무승인권한코드 목록

@ -47,7 +47,7 @@ public class XitMenuManageVO {
/** 권한정보설정 */
/** 권한코드 */
private String authorCode;
private String authorId;
/** 기타VO변수 */
private String tempValue;

@ -72,7 +72,7 @@ public class MenuIntercepter extends HandlerInterceptorAdapter {
}
else {
//익명사용자 메뉴 목록 조회
allMenuList = CacheServiceUtils.findMenuListByAuthorCode("ROLE_ANONYMOUS");
allMenuList = CacheServiceUtils.findMenuListByAuthorId("ROLE_ANONYMOUS");
}
// main page만 메뉴목록 / 공지사항 조회

@ -39,7 +39,7 @@
<when test='type != null and type == "AUTHOR"'>
/* 권한 코드 */
SELECT author_code AS code
SELECT author_id AS code
, author_nm AS code_val
FROM xit_author_info
</when>

@ -42,18 +42,18 @@
INNER JOIN tb_menu B
ON A.menu_no = B.menu_no
INNER JOIN (
SELECT FA.author_code, FA.scrty_setup_trget_id
SELECT FA.author_id, FA.scrty_setup_trget_id
FROM xit_user_scrty_setup FA
WHERE FA.scrty_setup_trget_id = #{uniqId}
) C
ON A.author_code = C.author_code
ON A.author_id = C.author_id
INNER JOIN tree_query D
ON B.menu_no = D.menu_id
ORDER BY D.parnt_menu_id, B.srt_ord
</select>
<select id="selectMenuListByAuthorCode" parameterType="string" resultType="java.util.Map">
/* cachemenu-mysql-mapper|selectMenuListByAuthorCode-권한별 메뉴 조회|julim */
<select id="selectMenuListByAuthorId" parameterType="string" resultType="java.util.Map">
/* cachemenu-mysql-mapper|selectMenuListByAuthorId-권한별 메뉴 조회|julim */
<include refid="sqlTree"/>
SELECT D.menu_id AS "menuSid"
, D.menu_name AS "menuName"
@ -72,7 +72,7 @@
ON A.menu_no = B.menu_no
JOIN tree_query D
ON B.menu_no = D.menu_id
WHERE A.AUTHOR_CODE = #{authorCode}
WHERE A.AUTHOR_ID = #{authorId}
ORDER BY D.parnt_menu_id, B.srt_ord
</select>

@ -9,14 +9,14 @@
,GROUP_NM
,GROUP_CREAT_DE
,DSCRP
,AUTHOR_CODE
,AUTHOR_ID
FROM XIT_AUTHOR_GROUP_INFO
WHERE 1=1
<if test="@cokr.xit.fims.framework.core.utils.XitCmmnUtil@notempty(grpId)">AND GRP_ID = #{grpId}</if>
<if test="@cokr.xit.fims.framework.core.utils.XitCmmnUtil@notEmpty(groupNm)">AND GROUP_NM = #{groupNm}</if>
<if test="@cokr.xit.fims.framework.core.utils.XitCmmnUtil@notEmpty(groupCreatDe)">AND GROUP_CREAT_DE = #{groupCreatDe}</if>
<if test="@cokr.xit.fims.framework.core.utils.XitCmmnUtil@notEmpty(dscrp)">AND DSCRP = #{dscrp}</if>
<if test="@cokr.xit.fims.framework.core.utils.XitCmmnUtil@notEmpty(authorCode)">AND AUTHOR_CODE = #{authorCode}</if>
<if test="@cokr.xit.fims.framework.core.utils.XitCmmnUtil@notEmpty(authorId)">AND AUTHOR_ID = #{authorId}</if>
</select>
<select id="findXitAuthorGroupInfo" resultType="cokr.xit.fims.framework.biz.mng.auth.XitAuthorGroupInfoVO">
/** findXitAuthorGroupInfo */
@ -25,7 +25,7 @@
,GROUP_NM
,GROUP_CREAT_DE
,DSCRP
,AUTHOR_CODE
,AUTHOR_ID
FROM XIT_AUTHOR_GROUP_INFO
WHERE 1=1
AND GRP_ID = #{grpId}
@ -38,13 +38,13 @@
<if test="@cokr.xit.fims.framework.core.utils.XitCmmnUtil@notEmpty(groupNm)">,GROUP_NM</if>
,GROUP_CREAT_DE
<if test="@cokr.xit.fims.framework.core.utils.XitCmmnUtil@notEmpty(dscrp)">,DSCRP</if>
<if test="@cokr.xit.fims.framework.core.utils.XitCmmnUtil@notEmpty(authorCode)">,AUTHOR_CODE</if>
<if test="@cokr.xit.fims.framework.core.utils.XitCmmnUtil@notEmpty(authorId)">,AUTHOR_ID</if>
)VALUES(
#{grpId}
<if test="@cokr.xit.fims.framework.core.utils.XitCmmnUtil@notEmpty(groupNm)">,#{groupNm}</if>
,DATE_FORMAT(NOW(), '%Y%m%d%H%i%s')
<if test="@cokr.xit.fims.framework.core.utils.XitCmmnUtil@notEmpty(dscrp)">,#{dscrp}</if>
<if test="@cokr.xit.fims.framework.core.utils.XitCmmnUtil@notEmpty(authorCode)">,#{authorCode}</if>
<if test="@cokr.xit.fims.framework.core.utils.XitCmmnUtil@notEmpty(authorId)">,#{authorId}</if>
)
</insert>
<update id="modifyXitAuthorGroupInfo">
@ -55,7 +55,7 @@
GROUP_CREAT_DE = GROUP_CREAT_DE
<if test="@cokr.xit.fims.framework.core.utils.XitCmmnUtil@notBlank(groupNm)">,GROUP_NM = #{groupNm}</if>
<if test="@cokr.xit.fims.framework.core.utils.XitCmmnUtil@notBlank(dscrp)">,DSCRP = #{dscrp}</if>
<if test="@cokr.xit.fims.framework.core.utils.XitCmmnUtil@notBlank(authorCode)">,AUTHOR_CODE = #{authorCode}</if>
<if test="@cokr.xit.fims.framework.core.utils.XitCmmnUtil@notBlank(authorId)">,AUTHOR_ID = #{authorId}</if>
WHERE 1=1
AND GRP_ID = #{grpId}
</update>
@ -73,13 +73,13 @@
<select id="findXitAuthorInfos" resultType="cokr.xit.fims.framework.biz.mng.auth.XitAuthorInfoVO">
/** findXitAuthorInfos */
/** 권한정보 다건 조회 */
SELECT AUTHOR_CODE
SELECT AUTHOR_ID
,AUTHOR_NM
,DSCRP
,AUTHOR_CREAT_DE
FROM XIT_AUTHOR_INFO
WHERE 1=1
<if test="@cokr.xit.fims.framework.core.utils.XitCmmnUtil@notEmpty(authorCode)">AND AUTHOR_CODE = #{authorCode}</if>
<if test="@cokr.xit.fims.framework.core.utils.XitCmmnUtil@notEmpty(authorId)">AND AUTHOR_ID = #{authorId}</if>
<if test="@cokr.xit.fims.framework.core.utils.XitCmmnUtil@notEmpty(authorNm)">AND AUTHOR_NM = #{authorNm}</if>
<if test="@cokr.xit.fims.framework.core.utils.XitCmmnUtil@notEmpty(dscrp)">AND DSCRP = #{dscrp}</if>
<if test="@cokr.xit.fims.framework.core.utils.XitCmmnUtil@notEmpty(authorCreatDe)">AND AUTHOR_CREAT_DE =
@ -89,24 +89,24 @@
<select id="findXitAuthorInfo" resultType="cokr.xit.fims.framework.biz.mng.auth.XitAuthorInfoVO">
/** findXitAuthorInfo */
/** 권한정보 조회 */
SELECT AUTHOR_CODE
SELECT AUTHOR_ID
,AUTHOR_NM
,DSCRP
,AUTHOR_CREAT_DE
FROM XIT_AUTHOR_INFO
WHERE 1=1
AND AUTHOR_CODE = #{authorCode}
AND AUTHOR_ID = #{authorId}
</select>
<insert id="addXitAuthorInfo">
/** addXitAuthorInfo */
/** 권한정보 등록 */
INSERT INTO XIT_AUTHOR_INFO(
AUTHOR_CODE
AUTHOR_ID
<if test="@cokr.xit.fims.framework.core.utils.XitCmmnUtil@notEmpty(authorNm)">,AUTHOR_NM</if>
<if test="@cokr.xit.fims.framework.core.utils.XitCmmnUtil@notEmpty(dscrp)">,DSCRP</if>
,AUTHOR_CREAT_DE
)VALUES(
#{authorCode}
#{authorId}
<if test="@cokr.xit.fims.framework.core.utils.XitCmmnUtil@notEmpty(authorNm)">,#{authorNm}</if>
<if test="@cokr.xit.fims.framework.core.utils.XitCmmnUtil@notEmpty(dscrp)">,#{dscrp}</if>
,DATE_FORMAT(NOW(), '%Y%m%d%H%i%s')
@ -121,14 +121,14 @@
<if test="@cokr.xit.fims.framework.core.utils.XitCmmnUtil@notBlank(authorNm)">,AUTHOR_NM = #{authorNm}</if>
<if test="@cokr.xit.fims.framework.core.utils.XitCmmnUtil@notBlank(dscrp)">,DSCRP = #{dscrp}</if>
WHERE 1=1
AND AUTHOR_CODE = #{authorCode}
AND AUTHOR_ID = #{authorId}
</update>
<delete id="removeXitAuthorInfo">
/** removeXitAuthorInfo */
/** 권한정보 삭제 */
DELETE FROM XIT_AUTHOR_INFO
WHERE 1=1
AND AUTHOR_CODE = #{authorCode}
AND AUTHOR_ID = #{authorId}
</delete>
@ -137,35 +137,35 @@
<select id="findXitAuthorRoleRelates" resultType="cokr.xit.fims.framework.biz.cmm.XitAuthorRoleRelateVO">
/** findXitAuthorRoleRelates */
/** 권한역할관계 다건 조회 */
SELECT AUTHOR_CODE
SELECT AUTHOR_ID
,ROLE_CODE
,CREAT_DT
FROM XIT_AUTHOR_ROLE_RELATE
WHERE 1=1
<if test="@cokr.xit.fims.framework.core.utils.XitCmmnUtil@notEmpty(authorCode)">AND AUTHOR_CODE = #{authorCode}</if>
<if test="@cokr.xit.fims.framework.core.utils.XitCmmnUtil@notEmpty(authorId)">AND AUTHOR_ID = #{authorId}</if>
<if test="@cokr.xit.fims.framework.core.utils.XitCmmnUtil@notEmpty(roleCode)">AND ROLE_CODE = #{roleCode}</if>
<if test="@cokr.xit.fims.framework.core.utils.XitCmmnUtil@notEmpty(creatDt)">AND CREAT_DT = #{creatDt}</if>
</select>
<select id="findXitAuthorRoleRelate" resultType="cokr.xit.fims.framework.biz.cmm.XitAuthorRoleRelateVO">
/** findXitAuthorRoleRelate */
/** 권한역할관계 조회 */
SELECT AUTHOR_CODE
SELECT AUTHOR_ID
,ROLE_CODE
,CREAT_DT
FROM XIT_AUTHOR_ROLE_RELATE
WHERE 1=1
AND AUTHOR_CODE = #{authorCode}
AND AUTHOR_ID = #{authorId}
AND ROLE_CODE = #{roleCode}
</select>
<insert id="addXitAuthorRoleRelate">
/** addXitAuthorRoleRelate */
/** 권한역할관계 등록 */
INSERT INTO XIT_AUTHOR_ROLE_RELATE(
AUTHOR_CODE
AUTHOR_ID
,ROLE_CODE
,CREAT_DT
)VALUES(
#{authorCode}
#{authorId}
,#{roleCode}
,NOW()
)
@ -176,7 +176,7 @@
<!-- UPDATE XIT_AUTHOR_ROLE_RELATE -->
<!-- SET -->
<!-- WHERE 1=1 -->
<!-- AND AUTHOR_CODE = #{authorCode} -->
<!-- AND AUTHOR_ID = #{authorId} -->
<!-- AND ROLE_CODE = #{roleCode} -->
</update>
<delete id="removeXitAuthorRoleRelate">
@ -184,7 +184,7 @@
/** 권한역할관계 삭제 */
DELETE FROM XIT_AUTHOR_ROLE_RELATE
WHERE 1=1
AND AUTHOR_CODE = #{authorCode}
AND AUTHOR_ID = #{authorId}
AND ROLE_CODE = #{roleCode}
</delete>
@ -1317,35 +1317,35 @@
/** findXitMenuCreatDtlss */
/** 메뉴생성내역 다건 조회 */
SELECT MENU_NO
,AUTHOR_CODE
,AUTHOR_ID
,MAPNG_CREAT_ID
FROM XIT_MENU_CREAT_DTLS
WHERE 1=1
<if test="@cokr.xit.fims.framework.core.utils.XitCmmnUtil@notEmpty(menuNo)">AND MENU_NO = #{menuNo}</if>
<if test="@cokr.xit.fims.framework.core.utils.XitCmmnUtil@notEmpty(authorCode)">AND AUTHOR_CODE = #{authorCode}</if>
<if test="@cokr.xit.fims.framework.core.utils.XitCmmnUtil@notEmpty(authorId)">AND AUTHOR_ID = #{authorId}</if>
<if test="@cokr.xit.fims.framework.core.utils.XitCmmnUtil@notEmpty(mapngCreatId)">AND MAPNG_CREAT_ID = #{mapngCreatId}</if>
</select>
<select id="findXitMenuCreatDtls" resultType="cokr.xit.fims.framework.biz.cmm.XitMenuCreatDtlsVO">
/** findXitMenuCreatDtls */
/** 메뉴생성내역 조회 */
SELECT MENU_NO
,AUTHOR_CODE
,AUTHOR_ID
,MAPNG_CREAT_ID
FROM XIT_MENU_CREAT_DTLS
WHERE 1=1
AND MENU_NO = #{menuNo}
AND AUTHOR_CODE = #{authorCode}
AND AUTHOR_ID = #{authorId}
</select>
<insert id="addXitMenuCreatDtls">
/** addXitMenuCreatDtls */
/** 메뉴생성내역 등록 */
INSERT INTO XIT_MENU_CREAT_DTLS(
MENU_NO
,AUTHOR_CODE
,AUTHOR_ID
<if test="@cokr.xit.fims.framework.core.utils.XitCmmnUtil@notEmpty(mapngCreatId)">,MAPNG_CREAT_ID</if>
)VALUES(
#{menuNo}
,#{authorCode}
,#{authorId}
<if test="@cokr.xit.fims.framework.core.utils.XitCmmnUtil@notEmpty(mapngCreatId)">,#{mapngCreatId}</if>
)
</insert>
@ -1357,7 +1357,7 @@
MAPNG_CREAT_ID = IFNULL(#{mapngCreatId}, MAPNG_CREAT_ID)
WHERE 1=1
AND MENU_NO = #{menuNo}
AND AUTHOR_CODE = #{authorCode}
AND AUTHOR_ID = #{authorId}
</update>
<delete id="removeXitMenuCreatDtls">
/** removeXitMenuCreatDtls */
@ -1365,7 +1365,7 @@
DELETE FROM XIT_MENU_CREAT_DTLS
WHERE 1=1
AND MENU_NO = #{menuNo}
AND AUTHOR_CODE = #{authorCode}
AND AUTHOR_ID = #{authorId}
</delete>
@ -2507,17 +2507,17 @@
/** findXitUserScrtySetups */
/** 사용자보안설정 다건 조회 */
SELECT SCRTY_SETUP_TRGET_ID
,AUTHOR_CODE
,AUTHOR_ID
FROM XIT_USER_SCRTY_SETUP
WHERE 1=1
<if test="@cokr.xit.fims.framework.core.utils.XitCmmnUtil@notEmpty(scrtySetupTrgetId)">AND SCRTY_SETUP_TRGET_ID = #{scrtySetupTrgetId}</if>
<if test="@cokr.xit.fims.framework.core.utils.XitCmmnUtil@notEmpty(authorCode)">AND AUTHOR_CODE = #{authorCode}</if>
<if test="@cokr.xit.fims.framework.core.utils.XitCmmnUtil@notEmpty(authorId)">AND AUTHOR_ID = #{authorId}</if>
</select>
<select id="findXitUserScrtySetup" resultType="cokr.xit.fims.framework.biz.mng.user.XitUserScrtySetupVO">
/** findXitUserScrtySetup */
/** 사용자보안설정 조회 */
SELECT SCRTY_SETUP_TRGET_ID
,AUTHOR_CODE
,AUTHOR_ID
FROM XIT_USER_SCRTY_SETUP
WHERE 1=1
AND SCRTY_SETUP_TRGET_ID = #{scrtySetupTrgetId}
@ -2528,10 +2528,10 @@
INSERT
INTO xit_user_scrty_setup (
scrty_setup_trget_id
, authoR_CODE
, author_id
) VALUES (
#{scrtySetupTrgetId}
, #{authorCode}
, #{authorId}
)
</insert>
<update id="modifyXitUserScrtySetup">
@ -2539,7 +2539,7 @@
/** 사용자보안설정 수정 */
UPDATE XIT_USER_SCRTY_SETUP
SET
AUTHOR_CODE = #{authorCode}
AUTHOR_ID = #{authorId}
WHERE 1=1
AND SCRTY_SETUP_TRGET_ID = #{scrtySetupTrgetId}
</update>

@ -46,10 +46,10 @@
,(SELECT COUNT(1) FROM TREE_QUERY SA WHERE SA.PARNT_MENU_ID=D.MENU_ID) AS "childCnt"
FROM XIT_MENU_CREAT_DTLS A
INNER JOIN tb_menu B ON A.MENU_NO = B.MENU_NO
INNER JOIN (SELECT FA.AUTHOR_CODE, FA.SCRTY_SETUP_TRGET_ID
INNER JOIN (SELECT FA.AUTHOR_ID, FA.SCRTY_SETUP_TRGET_ID
FROM XIT_USER_SCRTY_SETUP FA
WHERE FA.SCRTY_SETUP_TRGET_ID = #{uniqId}
) C ON A.AUTHOR_CODE = C.AUTHOR_CODE
) C ON A.AUTHOR_ID = C.AUTHOR_ID
INNER JOIN TREE_QUERY D ON B.MENU_NO=D.MENU_ID
WHERE 1=1
@ -57,8 +57,8 @@
<!-- ORDER BY B.MENU_NO, B.srt_ord -->
ORDER BY D.PARNT_MENU_ID, B.srt_ord
</select>
<select id="findMenuListByAuthorCode" resultType="java.util.Map">
/** XitFrameUnitMapper.findMenuListByAuthorCode */
<select id="findMenuListByAuthorId" resultType="java.util.Map">
/** XitFrameUnitMapper.findMenuListByAuthorId */
/** 권한코드별 메뉴 목록 조회 */
<include refid="menuTree"/>
@ -76,7 +76,7 @@
INNER JOIN tb_menu B ON A.MENU_NO = B.MENU_NO
INNER JOIN TREE_QUERY D ON B.MENU_NO=D.MENU_ID
WHERE 1=1
AND A.AUTHOR_CODE=#{authorCode}
AND A.AUTHOR_ID=#{authorId}
<!-- 2020.11.05. 박민규 - tb_menu.srt_ord의 설정값대로 정렬이 되지 않아 수정 함 (MENU_NO를 PARNT_MENU_ID로 변경) -->
<!-- ORDER BY B.MENU_NO, B.srt_ord -->
ORDER BY D.PARNT_MENU_ID, B.srt_ord

@ -18,10 +18,10 @@
,C.SCRTY_SETUP_TRGET_ID
FROM XIT_MENU_CREAT_DTLS A
INNER JOIN tb_menu B ON A.MENU_NO = B.MENU_NO
INNER JOIN (SELECT FA.AUTHOR_CODE, FA.SCRTY_SETUP_TRGET_ID
INNER JOIN (SELECT FA.AUTHOR_ID, FA.SCRTY_SETUP_TRGET_ID
FROM XIT_USER_SCRTY_SETUP FA
WHERE FA.SCRTY_SETUP_TRGET_ID = #{tmpUniqId}
) C ON A.AUTHOR_CODE = C.AUTHOR_CODE
) C ON A.AUTHOR_ID = C.AUTHOR_ID
WHERE 1=1
AND B.MENU_NO &gt; 0
AND B.prnt_no = 0
@ -42,10 +42,10 @@
,(SELECT SA.URL FROM XIT_PROGRM_LIST SA WHERE B.pgrm_file_nm = SA.pgrm_file_nm) AS "chkURL"
FROM XIT_MENU_CREAT_DTLS A
INNER JOIN tb_menu B ON A.MENU_NO = B.MENU_NO
INNER JOIN (SELECT FA.AUTHOR_CODE, FA.SCRTY_SETUP_TRGET_ID
INNER JOIN (SELECT FA.AUTHOR_ID, FA.SCRTY_SETUP_TRGET_ID
FROM XIT_USER_SCRTY_SETUP FA
WHERE FA.SCRTY_SETUP_TRGET_ID = #{tmpUniqId}
) C ON A.AUTHOR_CODE = C.AUTHOR_CODE
) C ON A.AUTHOR_ID = C.AUTHOR_ID
WHERE 1=1
ORDER BY B.srt_ord
</select>

@ -6,14 +6,14 @@
* xit_author_info : 권한 정보
************************************************************************************************************** -->
<sql id="sqlAuthorInfo">
SELECT author_code
SELECT author_id
, author_nm
, dscrp
, author_creat_de
FROM xit_author_info
<where>
<if test="@cokr.xit.fims.framework.core.utils.XitCmmnUtil@notEmpty(authorCode)">
AND author_code = #{authorCode}
<if test="@cokr.xit.fims.framework.core.utils.XitCmmnUtil@notEmpty(authorId)">
AND author_id = #{authorId}
</if>
<if test="@cokr.xit.fims.framework.core.utils.XitCmmnUtil@notEmpty(authorNm)">
AND INSTR(author_nm, #{authorNm}) > 0
@ -39,12 +39,12 @@
<insert id="insertAuthorInfo" parameterType="cokr.xit.fims.framework.biz.mng.auth.XitAuthorInfoVO">
/* auth-author-mysql-mapper|insertAuthorInfo-권한 정보 등록|julim */
INSERT INTO xit_author_info (
author_code
author_id
, author_nm
, dscrp
, author_creat_de
) VALUES (
#{authorCode}
#{authorId}
,#{authorNm}
,#{dscrp}
,DATE_FORMAT(NOW(), '%Y%m%d%H%i%s')
@ -56,14 +56,14 @@
UPDATE xit_author_info
SET author_nm = IF(author_nm = #{authorNm}, author_nm, #{authorNm})
, dscrp = IF(dscrp = #{dscrp}, dscrp, #{dscrp})
WHERE author_code = #{authorCode}
WHERE author_id = #{authorId}
</update>
<delete id="deleteAuthorInfo" parameterType="cokr.xit.fims.framework.biz.mng.auth.XitAuthorInfoVO">
/* auth-author-mysql-mapper|deleteAuthorInfos-권한 정보 삭제|julim */
DELETE
FROM xit_author_info
WHERE author_code = #{authorCode}
WHERE author_id = #{authorId}
</delete>
@ -78,11 +78,11 @@
, DATE_FORMAT(arr.creat_dt, '%Y%m%d%H%i%s') AS creatDt
, IF(arr.role_code IS NULL, 'N', 'Y') AS "regYn"
FROM xit_role_info xri
LEFT OUTER JOIN ( SELECT author_code
LEFT OUTER JOIN ( SELECT author_id
, role_code
, creat_dt
FROM xit_author_role_relate
WHERE author_code = #{authorCode}
WHERE author_id = #{authorId}
) arr
ON xri.role_code = arr.role_code
ORDER BY arr.role_code DESC, xri.role_sort
@ -92,18 +92,18 @@
/* auth-author-mysql-mapper|deleteRoleGrant-권한 롤 삭제|julim */
DELETE
FROM xit_author_role_relate
WHERE author_code = #{authorCode}
WHERE author_id = #{authorId}
AND role_code = #{roleCode}
</delete>
<insert id="saveRoleGrant" parameterType="map">
/* auth-author-mysql-mapper|saveRoleGrant-권한 롤 등록|julim */
INSERT INTO xit_author_role_relate (
author_code
author_id
, role_code
, creat_dt
) VALUES (
#{authorCode}
#{authorId}
, #{roleCode}
, NOW()
)

@ -11,7 +11,7 @@
, xui.user_nm
, xui.grp_id
, cdc.code_val AS mberTyNm
, uss.author_code
, uss.author_id
, IF(uss.scrty_setup_trget_id IS NULL, 'N', 'Y') AS regYn
FROM (
SELECT USER_ID

@ -10,12 +10,12 @@
SELECT agi.grp_id
, agi.group_nm
, agi.dscrp
, agi.author_code
, agi.author_id
, xai.author_nm
, agi.group_creat_de
FROM xit_author_group_info agi
LEFT OUTER JOIN xit_author_info xai
ON agi.author_code = xai.author_code
ON agi.author_id = xai.author_id
<where>
<if test="@cokr.xit.fims.framework.core.utils.XitCmmnUtil@notEmpty(groupNm)">
AND agi.group_nm = #{groupNm}
@ -28,7 +28,7 @@
SELECT grp_id
, group_nm
, dscrp
, author_code
, author_id
, group_creat_de
FROM xit_author_group_info
WHERE grp_id = #{grpId}
@ -40,13 +40,13 @@
grp_id
, group_nm
, dscrp
, author_code
, author_id
, group_creat_de
)VALUES(
#{grpId}
, #{groupNm}
, #{dscrp}
, #{authorCode}
, #{authorId}
, DATE_FORMAT(NOW(), '%Y%m%d%H%i%s')
)
</insert>
@ -56,7 +56,7 @@
UPDATE xit_author_group_info
SET group_nm = IF(group_nm = #{groupNm}, group_nm, #{groupNm})
, dscrp = IF(dscrp = #{dscrp}, dscrp, #{dscrp})
, author_code = IF(author_code = #{authorCode}, author_code, #{authorCode})
, author_id = IF(author_id = #{authorId}, author_id, #{authorId})
WHERE grp_id = #{grpId}
</update>

@ -6,7 +6,7 @@
* xit_author_info : 권한 정보
************************************************************************************************************** -->
<select id="selectAuthHierarchies" resultType="cokr.xit.fims.framework.biz.mng.auth.XitAuthHierarchyMngVO">
SELECT author_code
SELECT author_id
, author_nm
, dscrp
, author_creat_de

@ -7,17 +7,17 @@
* xit_author_info : 권한 정보
************************************************************************************************************** -->
<sql id="sqlAuthorInfo">
SELECT xai.author_code
SELECT xai.author_id
, xai.author_nm
, xai.dscrp
, xai.author_creat_de
, (SELECT COUNT(author_code)
, (SELECT COUNT(author_id)
FROM xit_menu_creat_dtls
WHERE xai.author_code = author_code ) AS chkYeoBu
WHERE xai.author_id = author_id ) AS chkYeoBu
FROM xit_author_info xai
<where>
<if test="@cokr.xit.fims.framework.core.utils.XitCmmnUtil@notEmpty(authorCode)">
AND INSTR(xai.author_code, #{authorCode})
<if test="@cokr.xit.fims.framework.core.utils.XitCmmnUtil@notEmpty(authorId)">
AND INSTR(xai.author_id, #{authorId})
</if>
</where>
</sql>
@ -46,7 +46,7 @@
, (SELECT count(B.menu_no)
FROM xit_menu_creat_dtls B
WHERE B.menu_no = A.menu_no
AND B.author_code = #{authorCode}) AS chkYeoBu
AND B.author_id = #{authorId}) AS chkYeoBu
FROM tb_menu A
WHERE A.menu_no &gt; 0
ORDER BY A.srt_ord
@ -60,7 +60,7 @@
/* menu-by-role-mysql-mapper|deleteMenuCreatDtls-권한별 메뉴 삭제|julim */
DELETE
FROM xit_menu_creat_dtls
WHERE author_code = #{authorCode}
WHERE author_id = #{authorId}
</delete>
<insert id="insertMenuCreatDtls">
@ -68,11 +68,11 @@
INSERT
INTO xit_menu_creat_dtls (
menu_no
, author_code
, author_id
, mapng_creat_id
) VALUES (
#{menuNo}
, #{authorCode}
, #{authorId}
, #{mapngCreatId}
)
</insert>

@ -147,7 +147,7 @@
, (SELECT count(B.MENU_NO)
FROM XIT_MENU_CREAT_DTLS B
WHERE B.MENU_NO = A.MENU_NO
AND B.AUTHOR_CODE = #{authorCode}) AS "chkYeoBu"
AND B.AUTHOR_ID = #{authorId}) AS "chkYeoBu"
FROM tb_menu A
WHERE A.MENU_NO &gt; 0
ORDER BY A.srt_ord
@ -156,7 +156,7 @@
<select id="findUserScrtySetupByUsr" resultType="cokr.xit.fims.framework.biz.mng.menu.MenuCreateMngVO">
/** XitMenuCreateMngMapper.findUserScrtySetupByUsr */
/** 사용자별 사용자보안설정 데이터 조회 */
SELECT AUTHOR_CODE AS "authorCode"
SELECT AUTHOR_ID AS "authorId"
FROM XIT_USER_SCRTY_SETUP
WHERE SCRTY_SETUP_TRGET_ID = (
SELECT USER_ID

@ -188,7 +188,7 @@
, group_nm
, group_creat_de
, dscrp
, author_code
, author_id
FROM xit_author_group_info
<where>
<if test="@cokr.xit.fims.framework.core.utils.XitCmmnUtil@notEmpty(grpId)">
@ -203,8 +203,8 @@
<if test="@cokr.xit.fims.framework.core.utils.XitCmmnUtil@notEmpty(dscrp)">
AND dscrp = #{dscrp}
</if>
<if test="@cokr.xit.fims.framework.core.utils.XitCmmnUtil@notEmpty(authorCode)">
AND author_code = #{authorCode}
<if test="@cokr.xit.fims.framework.core.utils.XitCmmnUtil@notEmpty(authorId)">
AND author_id = #{authorId}
</if>
</where>
</select>
@ -217,14 +217,14 @@
<select id="selectUserScrtySetups" parameterType="cokr.xit.fims.framework.biz.mng.user.XitUserScrtySetupVO" resultType="cokr.xit.fims.framework.biz.mng.user.XitUserScrtySetupVO">
/* user-mysql-mapper|selectUserScrtySetups-사용자보안설정 목록 조회|julim */
SELECT scrty_setup_trget_id
, author_code
, author_id
FROM xit_user_scrty_setup
<where>
<if test="@cokr.xit.fims.framework.core.utils.XitCmmnUtil@notEmpty(scrtySetupTrgetId)">
AND scrty_setup_trget_id = #{scrtySetupTrgetId}
</if>
<if test="@cokr.xit.fims.framework.core.utils.XitCmmnUtil@notEmpty(authorCode)">
AND author_code = #{authorCode}
<if test="@cokr.xit.fims.framework.core.utils.XitCmmnUtil@notEmpty(authorId)">
AND author_id = #{authorId}
</if>
</where>
</select>
@ -232,7 +232,7 @@
<select id="selectUserScrtySetup" parameterType="string" resultType="cokr.xit.fims.framework.biz.mng.user.XitUserScrtySetupVO">
/* user-mysql-mapper|selectUserScrtySetup-사용자보안설정 조회|julim */
SELECT scrty_setup_trget_id
, author_code
, author_id
FROM xit_user_scrty_setup
WHERE scrty_setup_trget_id = #{scrtySetupTrgetId}
</select>
@ -242,17 +242,17 @@
INSERT
INTO xit_user_scrty_setup (
scrty_setup_trget_id
, author_code
, author_id
) VALUES (
#{scrtySetupTrgetId}
, #{authorCode}
, #{authorId}
)
</insert>
<update id="updateUserScrtySetup" parameterType="cokr.xit.fims.framework.biz.mng.user.XitUserScrtySetupVO">
/* user-mysql-mapper|updateUserScrtySetup-사용자보안설정 변경|julim */
UPDATE xit_user_scrty_setup
SET author_code = IF(author_code = #{authorCode}, author_code, #{authorCode})
SET author_id = IF(author_id = #{authorId}, author_id, #{authorId})
WHERE scrty_setup_trget_id = #{scrtySetupTrgetId}
</update>

@ -147,7 +147,7 @@
return arrChecks.map((row) => {
return {
uniqId: row.uniqId
, authorCode: row.authorCode
, authorId: row.authorId
, grpId: row.grpId
, regYn: row.regYn
}

@ -44,10 +44,10 @@
<label class="required">권한</label>
</th>
<td nowrap="nowrap">
<select id="authorCode" name="authorCode">
<select id="authorId" name="authorId">
<option value="">== 선택하세요 ==</option>
<c:forEach var="row" items="${listAuthorInfoVO }">
<option value="<c:out value="${row.author_code }"/>" <c:if test="${row.author_code eq groupManage.authorCode}">selected="selected"</c:if> ><c:out value="${row.author_nm }"/></option>
<option value="<c:out value="${row.author_id }"/>" <c:if test="${row.author_id eq groupManage.authorId}">selected="selected"</c:if> ><c:out value="${row.author_nm }"/></option>
</c:forEach>
</select>
</td>

@ -44,10 +44,10 @@
<label class="required">권한</label>
</th>
<td nowrap="nowrap">
<select id="authorCode" name="authorCode">
<select id="authorId" name="authorId">
<option value="">== 선택하세요 ==</option>
<c:forEach var="row" items="${listAuthorInfoVO }">
<option value="<c:out value="${row.author_code }"/>"><c:out value="${row.author_nm }"/></option>
<option value="<c:out value="${row.author_id }"/>"><c:out value="${row.author_nm }"/></option>
</c:forEach>
</select>
</td>

@ -316,7 +316,7 @@ GridConfig.setOptColumns([ //Grid 컬럼 정보(명칭,매핑 field, 기타옵
renderer: {
type: XitColumnMergeRenderer,
options: {
listColumns: ['authorNm', 'authorCode'],
listColumns: ['authorNm', 'authorId'],
format: '{0}({1})'
}
}

@ -43,13 +43,13 @@
<tr>
<td id="authorRescue" class="connectWith">
<c:set var="strAuthorRescueCode" value="${fn:trim(vo.authorRescueCode) }" />
<c:set var="arrAuthorCode" value="${fn:split(strAuthorRescueCode, '>') }" />
<c:forEach var="row" items="${arrAuthorCode }" varStatus="status">
<c:set var="arrAuthorId" value="${fn:split(strAuthorRescueCode, '>') }" />
<c:forEach var="row" items="${arrAuthorId }" varStatus="status">
<c:set var="arrSilbingAutorCode" value="${fn:split(row, ',') }" />
<c:forEach var="authorCode" items="${arrSilbingAutorCode }">
<c:forEach var="authorId" items="${arrSilbingAutorCode }">
<li>
<span><c:out value="${mAuthorInfo[fn:trim(authorCode)] }"/></span>
<input type="hidden" id="authorCode" value="<c:out value="${fn:trim(authorCode) }"/>" />
<span><c:out value="${mAuthorInfo[fn:trim(authorId)] }"/></span>
<input type="hidden" id="authorId" value="<c:out value="${fn:trim(authorId) }"/>" />
</li>
</c:forEach>
@ -83,7 +83,7 @@
<li>
<span>
<c:out value="${row.author_nm }"/>
<input type="hidden" id="authorCode" value="<c:out value="${row.author_code }"/>" />
<input type="hidden" id="authorId" value="<c:out value="${row.author_id }"/>" />
</span>
</li>
</c:forEach>
@ -263,26 +263,26 @@ $(document).ready(function(){
var i = 0;
var totCnt = $('#authorRescue li').length;
var sb = [];
var arrAuthorCode = [];
var arrAuthorId = [];
$('#authorRescue li').each(function(){
if($(this).hasClass('separator')){ //구분자 일때
//배열에 담기
if(sb.length>0)
arrAuthorCode.push(sb.join(';'));
arrAuthorId.push(sb.join(';'));
//StringBuffer 초기화
sb = [];
}else{ //구분자가 아닐때
//StringBuffer에 담기
sb.push($(this).find('#authorCode').val());
sb.push($(this).find('#authorId').val());
}
//마지막 요소
if(i == totCnt-1){
//배열에 담기
if(sb.length>0)
arrAuthorCode.push(sb.join(';'));
arrAuthorId.push(sb.join(';'));
}
@ -292,13 +292,13 @@ $(document).ready(function(){
var frm = document.authHierarchyManage;
//Elements 삭제
$(frm).find('input[name="authorCode"]').remove();
$(frm).find('input[name="authorId"]').remove();
//Elements 생성
for(var i=0; i<arrAuthorCode.length; i++){
for(var i=0; i<arrAuthorId.length; i++){
var param = document.createElement('input');
param.setAttribute('type', 'hidden');
param.setAttribute('name', 'authorCode');
param.setAttribute('value', arrAuthorCode[i]);
param.setAttribute('name', 'authorId');
param.setAttribute('value', arrAuthorId[i]);
frm.appendChild(param);
}
}

@ -7,8 +7,8 @@
<form:form id="listForm" name="listForm" action="" method="post">
<input type="hidden" name="authorCode"/>
<input type="hidden" name="authorCodes"/>
<input type="hidden" name="authorId"/>
<input type="hidden" name="authorIds"/>
<input type="hidden" name="pageIndex" value="<c:out value='${searchVO.pageIndex}'/>"/>
<input type="hidden" id="searchGubun" name="searchGubun" value="excel">
<input type="hidden" name="searchCondition"/>
@ -228,7 +228,7 @@ GridConfig.setOptHeader({
GridConfig.setOptColumns([ //Grid 컬럼 정보(명칭,매핑 field, 기타옵션 등)
{
header: '권한코드',
name: 'authorCode',
name: 'authorId',
width: 200,
sortable: true,
sortingType: 'desc',

@ -8,8 +8,8 @@
<%@ taglib prefix="validator" uri="http://www.springmodules.org/tags/commons-validator" %>
<c:set var="registerFlag" value="${empty authorManageVO.authorCode ? 'INSERT' : 'UPDATE'}"/>
<c:set var="registerFlagName" value="${empty authorManageVO.authorCode ? '권한 등록' : '권한 수정'}"/>
<c:set var="registerFlag" value="${empty authorManageVO.authorId ? 'INSERT' : 'UPDATE'}"/>
<c:set var="registerFlagName" value="${empty authorManageVO.authorId ? '권한 등록' : '권한 수정'}"/>
<!-- 검색 필드 박스 시작 -->
<script type="text/javascript" src="<c:url value="/framework/util/validator.do"/>"></script>
@ -25,7 +25,7 @@
<th width="20%" scope="row" nowrap="nowrap">
<label class="required">권한 코드</label>
</th>
<td nowrap="nowrap"><input name="authorCode" id="authorCode" type="text" value="<c:out value='${authorManage.authorCode}'/>" size="40" title="권한코드" />&nbsp;<form:errors path="authorCode" /></td>
<td nowrap="nowrap"><input name="authorId" id="authorId" type="text" value="<c:out value='${authorManage.authorId}'/>" size="40" title="권한코드" />&nbsp;<form:errors path="authorId" /></td>
</tr>
<tr>
<th width="20%" scope="row" nowrap="nowrap">

@ -8,8 +8,8 @@
<%@ taglib prefix="validator" uri="http://www.springmodules.org/tags/commons-validator" %>
<c:set var="registerFlag" value="${empty authorManageVO.authorCode ? 'INSERT' : 'UPDATE'}"/>
<c:set var="registerFlagName" value="${empty authorManageVO.authorCode ? '권한 등록' : '권한 수정'}"/>
<c:set var="registerFlag" value="${empty authorManageVO.authorId ? 'INSERT' : 'UPDATE'}"/>
<c:set var="registerFlagName" value="${empty authorManageVO.authorId ? '권한 등록' : '권한 수정'}"/>
<!-- 검색 필드 박스 시작 -->
<script type="text/javascript" src="<c:url value="/framework/util/validator.do"/>"></script>
@ -25,7 +25,7 @@
<th width="20%" scope="row" nowrap="nowrap">
<label class="required">권한 코드</label>
</th>
<td nowrap="nowrap"><input name="authorCode" id="authorCode" type="text" value="<c:out value='${authorManage.authorCode}'/>" size="40" title="권한코드" />&nbsp;<form:errors path="authorCode" /></td>
<td nowrap="nowrap"><input name="authorId" id="authorId" type="text" value="<c:out value='${authorManage.authorId}'/>" size="40" title="권한코드" />&nbsp;<form:errors path="authorId" /></td>
</tr>
<tr>
<th width="20%" scope="row" nowrap="nowrap">

@ -7,8 +7,8 @@
<form:form id="listForm" name="listForm" action="" method="post">
<input type="hidden" name="authorCode"/>
<input type="hidden" name="authorCodes"/>
<input type="hidden" name="authorId"/>
<input type="hidden" name="authorIds"/>
<input type="hidden" name="pageIndex" value="<c:out value='${authorManageVO.pageIndex}'/>"/>
<input type="hidden" id="searchGubun" name="searchGubun" value="excel">
<input type="hidden" name="searchCondition"/>
@ -107,13 +107,13 @@ var XitAuthRegMng_list = {
alert("선택된 권한이 없습니다.");
}else{
checkArr.forEach(function(item, index){
returnValue += item.authorCode;
returnValue += item.authorId;
if(checkArr.length -1 > index){
returnValue += ";";
}
})
document.listForm.authorCodes.value = returnValue;
document.listForm.authorIds.value = returnValue;
XitAuthRegMng_list.removeData();
}
}
@ -216,7 +216,7 @@ var XitAuthRegMng_list = {
fnClickAuthRegBtn : function(props){
var rowData = props.grid.getRow(props.rowKey);
var params = "";
params += "authorCode=" + rowData.authorCode;
params += "authorId=" + rowData.authorId;
XitAuthRegMng_list.pagePopup('edit', "<c:url value='/framework/biz/mng/auth/AuthRegMng_edit.do'/>", params);
},
/* ========================
@ -226,7 +226,7 @@ var XitAuthRegMng_list = {
fnClickRoleListBtn : function(props){
var rowData = props.grid.getRow(props.rowKey);
var params = "";
params += "searchKeyword=" + rowData.authorCode;
params += "searchKeyword=" + rowData.authorId;
XitAuthRegMng_list.pagePopup('roleList', "<c:url value='/framework/biz/mng/auth/AuthRegMng_rolegrant_popup.do'/>", params);
}
}
@ -295,7 +295,7 @@ GridConfig.setOptHeader({
GridConfig.setOptColumns([ //Grid 컬럼 정보(명칭,매핑 field, 기타옵션 등)
{
header: '권한코드',
name: 'authorCode',
name: 'authorId',
minWidth: 200,
sortable: true,
sortingType: 'desc',
@ -306,7 +306,7 @@ GridConfig.setOptColumns([ //Grid 컬럼 정보(명칭,매핑 field, 기타옵
formatter : function(props){
var rowData = props.grid.getRow(props.rowKey);
var obj = {
formatter : rowData.authorCode
formatter : rowData.authorId
,element : "text"
}
return obj;

@ -75,7 +75,7 @@ function fncManageChecked() {
alert("조회된 결과가 없습니다.");
}
document.listForm.authorCodes.value = returnValue;
document.listForm.authorIds.value = returnValue;
return returnBoolean;
}
@ -88,7 +88,7 @@ function fncSelectAuthorList(pageNo){
}
function fncSelectAuthor(author) {
document.listForm.authorCode.value = author;
document.listForm.authorId.value = author;
document.listForm.action = "<c:url value='/framework/biz/mng/auth/AuthRegMng_edit.do'/>";
document.listForm.submit();
}
@ -213,12 +213,12 @@ function press() {
<c:forEach var="author" items="${authorList}" varStatus="status">
<!-- loop 시작 -->
<tr>
<td nowrap="nowrap"><input type="checkbox" name="delYn" class="check2" title="선택"><input type="hidden" name="checkId" value="<c:out value="${author.authorCode}"/>" /></td>
<td nowrap="nowrap"><a href="#LINK" onclick="javascript:fncSelectAuthor('<c:out value="${author.authorCode}"/>')"><c:out value="${author.authorCode}"/></a></td>
<td nowrap="nowrap"><input type="checkbox" name="delYn" class="check2" title="선택"><input type="hidden" name="checkId" value="<c:out value="${author.authorId}"/>" /></td>
<td nowrap="nowrap"><a href="#LINK" onclick="javascript:fncSelectAuthor('<c:out value="${author.authorId}"/>')"><c:out value="${author.authorId}"/></a></td>
<td nowrap="nowrap"><c:out value="${author.authorNm}"/></td>
<td nowrap="nowrap"><c:out value="${author.dscrp}"/></td>
<td nowrap="nowrap"><c:out value="${author.authorCreatDe}"/></td>
<td nowrap="nowrap"><a href="#LINK" onclick="javascript:fncSelectAuthorRole('<c:out value="${author.authorCode}"/>')"><img src="<c:url value='/resources/image/fims/framework/etc/img_search.gif'/>" width="15" height="15" align="middle" alt="롤 정보"></a></td>
<td nowrap="nowrap"><a href="#LINK" onclick="javascript:fncSelectAuthorRole('<c:out value="${author.authorId}"/>')"><img src="<c:url value='/resources/image/fims/framework/etc/img_search.gif'/>" width="15" height="15" align="middle" alt="롤 정보"></a></td>
</tr>
</c:forEach>
</tbody>
@ -237,8 +237,8 @@ function press() {
<input type="text" name="message" value="<c:out value='${message}'/>" size="30" readonly="readonly" title="메시지"/>
</div>
</c:if>
<input type="hidden" name="authorCode"/>
<input type="hidden" name="authorCodes"/>
<input type="hidden" name="authorId"/>
<input type="hidden" name="authorIds"/>
<input type="hidden" name="pageIndex" value="<c:out value='${authorManageVO.pageIndex}'/>"/>
<input type="hidden" name="searchCondition"/>
</form:form>

@ -63,7 +63,7 @@
<input type="hidden" name="roleCodes"/>
<input type="hidden" name="regYns"/>
<input type="hidden" name="pageIndex" value="<c:out value='${authorRoleManageVO.pageIndex}'/>"/>
<input type="hidden" name="authorCode" value="<c:out value="${authorRoleManageVO.searchKeyword}"/>"/>
<input type="hidden" name="authorId" value="<c:out value="${authorRoleManageVO.searchKeyword}"/>"/>
<input type="hidden" name="searchCondition"/>
</form:form>

@ -235,6 +235,6 @@ function press() {
<input type="hidden" name="roleCodes"/>
<input type="hidden" name="regYns"/>
<input type="hidden" name="pageIndex" value="<c:out value='${authorRoleManageVO.pageIndex}'/>"/>
<input type="hidden" name="authorCode" value="<c:out value="${authorRoleManageVO.searchKeyword}"/>"/>
<input type="hidden" name="authorId" value="<c:out value="${authorRoleManageVO.searchKeyword}"/>"/>
<input type="hidden" name="searchCondition"/>
</form:form>

@ -9,7 +9,7 @@
<input type="hidden" id="searchGubun" name="searchGubun" value="excel">
<input type="hidden" name="userId" id="userId"/>
<input type="hidden" name="userIds" id="userIds"/>
<input type="hidden" name="authorCodes" id="authorCodes"/>
<input type="hidden" name="authorIds" id="authorIds"/>
<input type="hidden" name="regYns" id="regYns"/>
<input type="hidden" name="grpIds" id="grpIds"/>
<input type="hidden" name="pageIndex" value="<c:out value='${authorGroupVO.pageIndex}'/>"/>
@ -223,7 +223,7 @@ var XitAuthUsrMng_list = {
checkArr.forEach(function(item, index){
returnId += item.uniqId;
returnAuthor += item.authorCode;
returnAuthor += item.authorId;
returnRegYn += item.regYn;
returnGrpId += item.grpId;
@ -236,7 +236,7 @@ var XitAuthUsrMng_list = {
})
document.listForm.userIds.value = returnId;
document.listForm.authorCodes.value = returnAuthor;
document.listForm.authorIds.value = returnAuthor;
document.listForm.regYns.value = returnRegYn;
document.listForm.grpIds.value = returnGrpId;
}
@ -329,7 +329,7 @@ GridConfig.setOptColumns([ //Grid 컬럼 정보(명칭,매핑 field, 기타옵
},
{
header: '권한',
name: 'authorCode',
name: 'authorId',
width: 120,
sortable: true,
filter: 'select',
@ -342,7 +342,7 @@ GridConfig.setOptColumns([ //Grid 컬럼 정보(명칭,매핑 field, 기타옵
<c:if test="${not status.first}">,</c:if>
{
text: '${row.author_nm}'
,value: '${row.author_code}'
,value: '${row.author_id}'
}
</c:forEach>
]

@ -98,7 +98,7 @@ function fncManageChecked() {
}
document.listForm.userIds.value = returnId;
document.listForm.authorCodes.value = returnAuthor;
document.listForm.authorIds.value = returnAuthor;
document.listForm.regYns.value = returnRegYn;
@ -248,7 +248,7 @@ function press() {
<td nowrap="nowrap">
<select name="authorManageCombo" title="권한">
<c:forEach var="authorManage" items="${authorManageList}" varStatus="status">
<option value="<c:out value="${authorManage.author_code}"/>" <c:if test="${authorManage.author_code == authorGroup.authorCode}">selected</c:if> ><c:out value="${authorManage.author_nm}"/></option>
<option value="<c:out value="${authorManage.author_id}"/>" <c:if test="${authorManage.author_id == authorGroup.authorId}">selected</c:if> ><c:out value="${authorManage.author_nm}"/></option>
</c:forEach>
</select>
</td>
@ -281,7 +281,7 @@ function press() {
</c:if>
<input type="hidden" name="userId"/>
<input type="hidden" name="userIds"/>
<input type="hidden" name="authorCodes"/>
<input type="hidden" name="authorIds"/>
<input type="hidden" name="regYns"/>
<input type="hidden" name="pageIndex" value="<c:out value='${authorGroupVO.pageIndex}'/>"/>
</form:form>

@ -149,7 +149,7 @@
}
,fnClickRoleListBtn : function(props){
const rowData = props.grid.getRow(props.rowKey);
const params = {roleCode: rowData.authorCode}
const params = {roleCode: rowData.authorId}
fnBiz.pagePopup('rolePopup', "<c:url value='/framework/biz/mng/auth/mngAuthRoleGrantMgtPopup.do'/>", params);
}
}
@ -178,7 +178,7 @@
const gridColumns = [ //Grid 컬럼 정보(명칭,매핑 field, 기타옵션 등)
{
header: '권한코드',
name: 'authorCode',
name: 'authorId',
minWidth: 200,
sortable: true,
sortingType: 'desc',
@ -189,7 +189,7 @@
formatter : function(props){
var rowData = props.grid.getRow(props.rowKey);
var obj = {
formatter : rowData.authorCode
formatter : rowData.authorId
,element : "text"
}
return obj;

@ -2,7 +2,7 @@
<%@ include file="/WEB-INF/jsp/include/taglib.jsp" %>
<%@ include file="/WEB-INF/jsp/include/fims/taglib.jsp" %>
<c:set var="isUpdate" value="${!empty authorInfoVO.authorCode}"/>
<c:set var="isUpdate" value="${!empty authorInfoVO.authorId}"/>
<c:set var="bizName" value="권한"/>
@ -24,10 +24,10 @@
<td nowrap="nowrap">
<c:choose>
<c:when test="${isUpdate}">
<input name="authorCode" id="authorCode" type="text" value="<c:out value='${authorInfoVO.authorCode}'/>" readonly size="40" title="권한코드"/>&nbsp;
<input name="authorId" id="authorId" type="text" value="<c:out value='${authorInfoVO.authorId}'/>" readonly size="40" title="권한코드"/>&nbsp;
</c:when>
<c:otherwise>
<input name="authorCode" id="authorCode" type="text" size="40" title="권한코드"/>&nbsp;
<input name="authorId" id="authorId" type="text" size="40" title="권한코드"/>&nbsp;
</c:otherwise>
</c:choose>
</td>
@ -96,7 +96,7 @@
, remove: () => {
cmmBizAjax('remove', {
url: '<c:url value="/framework/biz/mng/auth/removeAuthAuthor.do"/>'
, data: {authorCode: $('#authorCode').val()}
, data: {authorId: $('#authorId').val()}
});
}
, validate: () => {
@ -104,9 +104,9 @@
alert('변경된 내용이 없습니다.');
return false;
}
if ($('#authorCode').val() === '') {
if ($('#authorId').val() === '') {
alert('[권한코드]는 필수 입니다.');
$('#authorCode').focus();
$('#authorId').focus();
return false;
}
if ($('#authorNm').val() === '') {

@ -174,7 +174,7 @@
return arrChecks.map((row) => {
return {
uniqId: row.uniqId
, authorCode: row.authorCode
, authorId: row.authorId
, grpId: row.grpId
, regYn: row.regYn
}
@ -247,7 +247,7 @@
},
{
header: '권한',
name: 'authorCode',
name: 'authorId',
width: 120,
sortable: true,
formatter: 'listItemText',

@ -206,7 +206,7 @@
renderer: {
type: XitColumnMergeRenderer,
options: {
listColumns: ['authorNm', 'authorCode'],
listColumns: ['authorNm', 'authorId'],
format: '{0}({1})'
}
}

@ -39,7 +39,7 @@
<label>권한</label>
</th>
<td nowrap="nowrap">
<code:select type="AUTHOR" id="authorCode" name="authorCode" defaultSelect="${groupManage.authorCode}" title="권한" cls="form-select" alt="selectBox tag"/>
<code:select type="AUTHOR" id="authorId" name="authorId" defaultSelect="${groupManage.authorId}" title="권한" cls="form-select" alt="selectBox tag"/>
</td>
</tr>
<tr>

@ -126,7 +126,7 @@
}
const data = {
authorCode: $('#authorCode').val()
authorId: $('#authorId').val()
,grantData: arrChecks.map((row) => {
return {roleCode: row.roleCode, regYn: row.regYn}
})
@ -187,7 +187,7 @@
const gridColumns = [
{
header: '권한코드',
name: 'authorCode',
name: 'authorId',
width: 200,
sortable: true,
sortingType: 'desc',
@ -199,7 +199,7 @@
formatter : function(props){
const rowData = props.grid.getRow(props.rowKey);
return {
formatter: rowData.authorCode
formatter: rowData.authorId
,element: "text"
}
}

@ -84,14 +84,14 @@
<tr>
<td id="authorRescue" class="connectWith">
<c:set var="strAuthorRescueCode" value="${fn:trim(authHierarchyManage.authorRescueCode) }"/>
<c:set var="arrAuthorCode" value="${fn:split(strAuthorRescueCode, '>') }"/>
<c:forEach var="row" items="${arrAuthorCode }" varStatus="status">
<c:set var="arrAuthorId" value="${fn:split(strAuthorRescueCode, '>') }"/>
<c:forEach var="row" items="${arrAuthorId }" varStatus="status">
<c:set var="arrSilbingAutorCode" value="${fn:split(row, ',') }"/>
<c:forEach var="authorCode" items="${arrSilbingAutorCode }">
<c:forEach var="authorId" items="${arrSilbingAutorCode }">
<li>
<span><c:out value="${mAuthorInfo[fn:trim(authorCode)] }"/></span>
<input type="hidden" id="authorCode"
value="<c:out value="${fn:trim(authorCode) }"/>"/>
<span><c:out value="${mAuthorInfo[fn:trim(authorId)] }"/></span>
<input type="hidden" id="authorId"
value="<c:out value="${fn:trim(authorId) }"/>"/>
</li>
</c:forEach>
@ -125,8 +125,8 @@
<li>
<span>
<c:out value="${row.author_nm }"/>
<input type="hidden" id="authorCode"
value="<c:out value="${row.author_code }"/>"/>
<input type="hidden" id="authorId"
value="<c:out value="${row.author_id }"/>"/>
</span>
</li>
</c:forEach>
@ -153,7 +153,7 @@
/**************************************************************************
* Global Variable
**************************************************************************/
let initArrAuthorCode;
let initArrAuthorId;
let orgData;
/* *******************************
@ -162,7 +162,7 @@
const fnBiz = {
save: () => {
let data = $(document.authHierarchyManage).serialize();
if (initArrAuthorCode === data) {
if (initArrAuthorId === data) {
alert('변경된 내역이 없습니다.');
return false;
}
@ -195,40 +195,40 @@
let i = 0;
const totCnt = $('#authorRescue li').length;
let sb = [];
const arrAuthorCode = [];
const arrAuthorId = [];
$('#authorRescue li').each(function () {
if ($(this).hasClass('separator')) { //구분자 일때
//배열에 담기
if (sb.length > 0)
// arrAuthorCode.push(sb);
arrAuthorCode.push(sb.join(';'));
// arrAuthorId.push(sb);
arrAuthorId.push(sb.join(';'));
//StringBuffer 초기화
sb = [];
} else { //구분자가 아닐때
sb.push($(this).find('#authorCode').val());
sb.push($(this).find('#authorId').val());
}
//마지막 요소
if (i == totCnt - 1) {
//배열에 담기
if (sb.length > 0)
arrAuthorCode.push(sb);
arrAuthorId.push(sb);
}
i++;
});
//if(arrAuthorCode.)
//if(arrAuthorId.)
const frm = document.authHierarchyManage;
//Elements 삭제
$(frm).find('input[name="authorCode"]').remove();
$(frm).find('input[name="authorId"]').remove();
//Elements 생성
for (let i = 0; i < arrAuthorCode.length; i++) {
for (let i = 0; i < arrAuthorId.length; i++) {
const param = document.createElement('input');
param.setAttribute('type', 'hidden');
param.setAttribute('name', 'authorCode');
param.setAttribute('value', arrAuthorCode[i]);
param.setAttribute('name', 'authorId');
param.setAttribute('value', arrAuthorId[i]);
frm.appendChild(param);
}
}
@ -239,7 +239,7 @@
}
if ($('#grpId').val() === '') {
alert('[권한그룹 ID]는 필수 입니다.');
$('#authorCode').focus();
$('#authorId').focus();
return false;
}
if ($('#groupNm').val() === '') {
@ -290,7 +290,7 @@
**************************************************************************/
$(document).ready(function () {
fnBiz.setParam();
initArrAuthorCode = $(document.authHierarchyManage).serialize();
initArrAuthorId = $(document.authHierarchyManage).serialize();
orgData = $('form').serialize();
});

@ -22,8 +22,8 @@
<tbody>
<tr>
<td colspan="6">
<label for="authorCode">권한코드</label>
<input id="authorCode" name="authorCode" type="text" size="30" value="<c:out value='${authorRoleManageVO.roleCode}'/>" title="검색" readonly="readonly" />
<label for="authorId">권한코드</label>
<input id="authorId" name="authorId" type="text" size="30" value="<c:out value='${authorRoleManageVO.roleCode}'/>" title="검색" readonly="readonly" />
</td>
<td>
<button type="button" id="btnSearch" class="btn btn-search" title="검색">검색</button>
@ -131,7 +131,7 @@
}
const data = {
authorCode: $('#authorCode').val()
authorId: $('#authorId').val()
,grantData: arrChecks.map((row) => {
return {roleCode: row.roleCode, regYn: row.regYn}
})

@ -43,8 +43,8 @@ function selectMenuCreatManageList() {
/* ********************************************************
* 메뉴생성 화면 호출
******************************************************** */
function selectMenuCreat(vAuthorCode) {
document.menuCreatManageForm.authorCode.value = vAuthorCode;
function selectMenuCreat(vAuthorId) {
document.menuCreatManageForm.authorId.value = vAuthorId;
document.menuCreatManageForm.action = "<c:url value='/framework/biz/mng/menu/MenuCreateMng_input.do'/>";
window.open("#", "_menuCreat", "scrollbars = yes, top=100px, left=100px, height=700px, width=850px");
document.menuCreatManageForm.target = "_menuCreat";
@ -75,7 +75,7 @@ function selectMenuCreat(vAuthorCode) {
<div id="search_field_loc"><h2><strong>메뉴생성관리</strong></h2></div>
<input name="checkedMenuNoForDel" type="hidden" />
<input name="authorCode" type="hidden" />
<input name="authorId" type="hidden" />
<input name="pageIndex" type="hidden" value="<c:out value='${searchVO.pageIndex}'/>"/>
<fieldset><legend>조건정보 영역</legend>
@ -123,7 +123,7 @@ function selectMenuCreat(vAuthorCode) {
<c:forEach var="result" items="${list_menumanage}" varStatus="status">
<!-- loop 시작 -->
<tr>
<td nowrap="nowrap" ><c:out value="${result.authorCode}"/></td>
<td nowrap="nowrap" ><c:out value="${result.authorId}"/></td>
<td nowrap="nowrap" ><c:out value="${result.authorNm}"/></td>
<td nowrap="nowrap" ><c:out value="${result.dscrp}"/></td>
<td nowrap="nowrap" >
@ -131,7 +131,7 @@ function selectMenuCreat(vAuthorCode) {
<c:if test="${result.chkYeoBu == 0}">N</c:if>
</td>
<td nowrap="nowrap" >
<a href="<c:url value='/framework/biz/mng/menu/MenuCreateMng_input.do'/>?authorCode='<c:out value="${result.authorCode}"/>'" onclick="selectMenuCreat('<c:out value="${result.authorCode}"/>'); return false;">메뉴생성</a>
<a href="<c:url value='/framework/biz/mng/menu/MenuCreateMng_input.do'/>?authorId='<c:out value="${result.authorId}"/>'" onclick="selectMenuCreat('<c:out value="${result.authorId}"/>'); return false;">메뉴생성</a>
</td>
</tr>
</c:forEach>

@ -19,8 +19,8 @@
<tbody>
<tr>
<td>
<label for="authorCode">권한코드</label>
<input id="authorCode" name="authorCode" type="text" size="80" value="" maxlength="60" title="권한코드"/>
<label for="authorId">권한코드</label>
<input id="authorId" name="authorId" type="text" size="80" value="" maxlength="60" title="권한코드"/>
</td>
<td colspan="6">
<button type="button" id="btnSearch" class="btn btn-search" title="검색">검색</button>
@ -130,7 +130,7 @@
}
,onClickGrid: function(props){
const rowData = props.grid.getRow(props.rowKey);
fnBiz.pagePopup('add', {authorCode: rowData.authorCode});
fnBiz.pagePopup('add', {authorId: rowData.authorId});
}
}
@ -152,7 +152,7 @@
const gridColumns = [
{
header: '권한코드',
name: 'authorCode',
name: 'authorId',
minWidth: 250,
sortable: true,
sortingType: 'desc',

@ -24,8 +24,8 @@
<tbody>
<tr>
<td colspan="7">
<label for="authorCode">권한코드</label>
<input id="authorCode" name="authorCode" type="text" size="30" value="${resultVO.authorCode}" title="검색" readonly/>
<label for="authorId">권한코드</label>
<input id="authorId" name="authorId" type="text" size="30" value="${resultVO.authorId}" title="검색" readonly/>
</td>
</tr>
</tbody>
@ -50,9 +50,9 @@
<script type="text/javaScript">
let chk_Object = true;
let chk_browse = "";
if (eval(document.frmMenuTree.authorCode)=="[object]") chk_browse = "IE";
if (eval(document.frmMenuTree.authorCode)=="[object NodeList]") chk_browse = "Fox";
if (eval(document.frmMenuTree.authorCode)=="[object Collection]") chk_browse = "safai";
if (eval(document.frmMenuTree.authorId)=="[object]") chk_browse = "IE";
if (eval(document.frmMenuTree.authorId)=="[object NodeList]") chk_browse = "Fox";
if (eval(document.frmMenuTree.authorId)=="[object Collection]") chk_browse = "safai";
let Tree = new Array;
if(chk_browse=="IE"&&eval(document.frmMenuTree.tmp_menuNmVal)!="[object]"){
@ -164,7 +164,7 @@
cmmAjax({
url: '<c:url value="/framework/biz/mng/menu/saveMenuByRoleList.do"/>'
, data: JSON.stringify({
authorCode: document.frmSearch.authorCode.value
authorId: document.frmSearch.authorId.value
, menuNoList: arrCheckedMenu
})
, contentType: 'application/json; charset=utf-8'

@ -325,7 +325,7 @@ GridConfig.setOptColumns([ //Grid 컬럼 정보(명칭,매핑 field, 기타옵
options: {
listItems: [
{value: '', text: '== 미설정 ==' }
<c:forEach var="row" items="${dataAuthorCode_result}" varStatus="status">
<c:forEach var="row" items="${dataAuthorId_result}" varStatus="status">
,{value: '${row.code}', text: '${row.codeVal}' }
</c:forEach>
]
@ -345,7 +345,7 @@ GridConfig.setOptColumns([ //Grid 컬럼 정보(명칭,매핑 field, 기타옵
options: {
listItems: [
{value: '', text: '== 미설정 ==' }
<c:forEach var="row" items="${dataAuthorCode_result}" varStatus="status">
<c:forEach var="row" items="${dataAuthorId_result}" varStatus="status">
,{value: '${row.code}', text: '${row.codeVal}' }
</c:forEach>
]

@ -257,7 +257,7 @@ table {
<td width="30%" >
<form:select path="jobDataAuthor" id="jobDataAuthor">
<form:option value="" label="--선택하세요--"/>
<form:options items="${dataAuthorCode_result}" itemValue="code" itemLabel="codeVal"/>
<form:options items="${dataAuthorId_result}" itemValue="code" itemLabel="codeVal"/>
</form:select>
<form:errors path="jobDataAuthor" cssClass="error"/>
</td>
@ -266,7 +266,7 @@ table {
<td width="30%" >
<form:select path="userManageAuthor" id="userManageAuthor">
<form:option value="" label="--선택하세요--"/>
<form:options items="${dataAuthorCode_result}" itemValue="code" itemLabel="codeVal"/>
<form:options items="${dataAuthorId_result}" itemValue="code" itemLabel="codeVal"/>
</form:select>
<form:errors path="userManageAuthor" cssClass="error"/>
</td>

@ -2,7 +2,7 @@
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%-- TODO: 완료후 comment 삭제
아래와 같이 isUpdate 정의 필요
<c:set var="isUpdate" value="${!empty authorInfoVO.authorCode}"/>
<c:set var="isUpdate" value="${!empty authorInfoVO.authorId}"/>
--%>
<!-- popup button -->
<div class="container-window-btn1">

@ -2,7 +2,7 @@
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%-- TODO: 완료후 comment 삭제
아래와 같이 isUpdate 정의 필요
<c:set var="isUpdate" value="${!empty authorInfoVO.authorCode}"/>
<c:set var="isUpdate" value="${!empty authorInfoVO.authorId}"/>
--%>
<!-- popup button -->
<div class="container-window-btn2">

@ -2,7 +2,7 @@
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%-- TODO: 완료후 comment 삭제
아래와 같이 isUpdate 정의 필요
<c:set var="isUpdate" value="${!empty authorInfoVO.authorCode}"/>
<c:set var="isUpdate" value="${!empty authorInfoVO.authorId}"/>
--%>
<!-- popup button -->
<div class="container-window-btn2">

@ -3,7 +3,7 @@
<%-- TODO: 완료후 comment 삭제
아래와 같이 isUpdate 정의 필요
<c:set var="isUpdate" value="${!empty authorInfoVO.authorCode}"/>
<c:set var="isUpdate" value="${!empty authorInfoVO.authorId}"/>
<c:set var="bizName" value="권한그룹"/>
--%>
<!-- popup title -->

Loading…
Cancel
Save