no message

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

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

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

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

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

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

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

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

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

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

@ -211,7 +211,7 @@ public class XitFrameCrudServiceBean extends AbstractServiceBean implements XitF
*
*/
String emsg = null;
if(XitCmmnUtil.isEmpty(vo.getAuthorId()))
if(XitCmmnUtil.isEmpty(vo.getAuthId()))
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.getAuthorId()))
if(XitCmmnUtil.isEmpty(vo.getAuthId()))
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.getAuthorId()))
if(XitCmmnUtil.isEmpty(vo.getAuthId()))
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.getAuthorId()))
if(XitCmmnUtil.isEmpty(vo.getAuthId()))
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.getAuthorId()))
if(XitCmmnUtil.isEmpty(vo.getAuthId()))
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.getAuthorId()))
if(XitCmmnUtil.isEmpty(vo.getAuthId()))
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.getAuthorId()))
if(XitCmmnUtil.isEmpty(vo.getAuthId()))
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.getAuthorId()))
if(XitCmmnUtil.isEmpty(vo.getAuthId()))
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.getAuthorId()))
if(XitCmmnUtil.isEmpty(vo.getAuthId()))
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.getAuthorId()))
if(XitCmmnUtil.isEmpty(vo.getAuthId()))
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.getAuthorId()))
if(XitCmmnUtil.isEmpty(vo.getAuthId()))
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.getAuthorId()))
if(XitCmmnUtil.isEmpty(vo.getAuthId()))
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>> findMenuListByAuthorId(String authorId){
return CacheServiceUtils.findMenuListByAuthorId(authorId);
public List<Map<String, String>> findMenuListByAuthId(String authId){
return CacheServiceUtils.findMenuListByAuthId(authId);
}
@Override
@ -248,12 +248,12 @@ public class XitFrameUnitServiceBean extends AbstractServiceBean implements XitF
}
@Override
public void addAuthRoleRelation(String authorId, String roleCode, boolean isAdd) {
public void addAuthRoleRelation(String authId, String roleCode, boolean isAdd) {
/**
*
*/
XitAuthorRoleRelateVO vo = new XitAuthorRoleRelateVO();
vo.setAuthorId(authorId);
vo.setAuthId(authId);
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 getDefaultAuthorId(String grpId) {
public String getDefaultAuthId(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.getAuthorId()))
if (XitCmmnUtil.isEmpty(groupInfo.getAuthId()))
return "ROLE_USER";
else
return groupInfo.getAuthorId();
return groupInfo.getAuthId();
}
}
@Override
public boolean isCheckUserForCanChange(String uniqId, String trgetAuthorId) {
public boolean isCheckUserForCanChange(String uniqId, String trgetAuthId) {
/**
*
*/
@ -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 userAuthorId = XitCmmnUtil.isEmpty(listUserScrtySetupVO)?null:listUserScrtySetupVO.get(0).getAuthorId();
String userAuthId = XitCmmnUtil.isEmpty(listUserScrtySetupVO)?null:listUserScrtySetupVO.get(0).getAuthId();
return this.isCheckUserAuthorIdForCanChange(userAuthorId, trgetAuthorId);
return this.isCheckUserAuthIdForCanChange(userAuthId, trgetAuthId);
}
@Override
public boolean isCheckUserAuthorIdForCanChange(String userAuthorId, String trgetAuthorId) {
public boolean isCheckUserAuthIdForCanChange(String userAuthId, String trgetAuthId) {
/**
*
*/
@ -471,7 +471,7 @@ public class XitFrameUnitServiceBean extends AbstractServiceBean implements XitF
return true;
}else {
//사용자의 권한 정보가 없을 때(비정상적인 루트로 등록한 사용자 계정으로 판단)
if(XitCmmnUtil.isEmpty(userAuthorId)) {
if(XitCmmnUtil.isEmpty(userAuthId)) {
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(userAuthorId)) {
if(item.getParntsRole().equals(userAuthId)) {
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(userAuthorId)) {
if(item.getChldrnRole().equals(userAuthId)) {
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, userAuthorId, trgetAuthorId)?false:true;
return this.isHighAuthor(listRoleSclsrtRescueVO, userAuthId, trgetAuthId)?false:true;
}
@ -515,13 +515,13 @@ public class XitFrameUnitServiceBean extends AbstractServiceBean implements XitF
* </pre>
*
* @param list
* @param authorId
* @param highAuthorId
* @param authId
* @param highAuthId
* @return boolean
* @author:
* @date: 2020. 11. 1.
*/
private boolean isHighAuthor(List<XitRoleSclsrtRescueVO> list, String authorId, String highAuthorId) {
private boolean isHighAuthor(List<XitRoleSclsrtRescueVO> list, String authId, String highAuthId) {
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(authorId))
if (!item.getParntsRole().equals(authId))
continue;
if (item.getChldrnRole().equals(highAuthorId)) { // 상위 권한과 일치하면
if (item.getChldrnRole().equals(highAuthId)) { // 상위 권한과 일치하면
result = true;
} else { // 상위 권한과 일치하지 않으면 재호출
result = this.isHighAuthor(list, item.getChldrnRole(), highAuthorId);
result = this.isHighAuthor(list, item.getChldrnRole(), highAuthId);
}
}

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

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

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

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

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

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

@ -25,7 +25,7 @@ public class XitAuthorInfoVO {
*/
private static final long serialVersionUID = 4982342550430087973L;
protected String authorId; //권한 코드
protected String authId; //권한 코드
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 authorId);
int deleteAuthorInfo(final String authId);
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 authorId);
void removeAuthAuthor(final String authId);
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 authorId);
void removeAuthGrp(final String authId);
void isCheckUserForCanChange(final String uniqId, final String trgetAuthorId);
void isCheckUserForCanChange(final String uniqId, final String trgetAuthId);
}

@ -71,10 +71,10 @@ public class AuthAuthorMgtServiceBean extends AbstractServiceBean implements Aut
XitRoleSclsrtRescueVO roleSclsrtRescueVO = new XitRoleSclsrtRescueVO();
//부모관계 생성
roleSclsrtRescueVO.setParntsRole(PARNTS_AUTHOR);
roleSclsrtRescueVO.setChldrnRole(vo.getAuthorId());
roleSclsrtRescueVO.setChldrnRole(vo.getAuthId());
mapper.insertRoleSclsrtRescue(roleSclsrtRescueVO);
//자녀관계 생성
roleSclsrtRescueVO.setParntsRole(vo.getAuthorId());
roleSclsrtRescueVO.setParntsRole(vo.getAuthId());
roleSclsrtRescueVO.setChldrnRole(CHLDRN_AUTHOR);
mapper.insertRoleSclsrtRescue(roleSclsrtRescueVO);
}
@ -86,18 +86,18 @@ public class AuthAuthorMgtServiceBean extends AbstractServiceBean implements Aut
}
@Transactional
public void removeAuthAuthor(final String authorId){
public void removeAuthAuthor(final String authId){
//계층구조 삭제
XitRoleSclsrtRescueVO roleSclsrtRescueVO = new XitRoleSclsrtRescueVO();
roleSclsrtRescueVO.setParntsRole(PARNTS_AUTHOR);
roleSclsrtRescueVO.setChldrnRole(authorId);
roleSclsrtRescueVO.setChldrnRole(authId);
mapper.deleteRoleSclsrtRescue(roleSclsrtRescueVO);
//자녀관계 제거
roleSclsrtRescueVO.setParntsRole(authorId);
roleSclsrtRescueVO.setParntsRole(authId);
roleSclsrtRescueVO.setChldrnRole(CHLDRN_AUTHOR);
mapper.deleteRoleSclsrtRescue(roleSclsrtRescueVO);
mapper.deleteAuthorInfo(authorId);
mapper.deleteAuthorInfo(authId);
}
@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("authorId", paraMap.get("authorId"));
map.put("authId", paraMap.get("authId"));
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("authorId")));
authGrpMgtService.isCheckUserForCanChange(sessionUniqId, String.valueOf(map.get("authId")));
XitUserScrtySetupVO vo = new XitUserScrtySetupVO();
vo.setScrtySetupTrgetId(String.valueOf(map.get("uniqId")));
vo.setAuthorId(String.valueOf(map.get("authorId")));
vo.setAuthId(String.valueOf(map.get("authId")));
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.setAuthorId(userMgtService.getDefaultAuthorId(String.valueOf(map.get("grpId"))));
vo.setAuthId(userMgtService.getDefaultAuthId(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.getAuthorId());
this.isCheckUserForCanChange(XitCmmnUtil.getUserInfo().getUniqId(), vo.getAuthId());
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.getAuthorId());
this.isCheckUserForCanChange(XitCmmnUtil.getUserInfo().getUniqId(), vo.getAuthId());
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 trgetAuthorId) {
public void isCheckUserForCanChange(final String uniqId, final String trgetAuthId) {
//사용자보안설정 조회
XitUserScrtySetupVO userScrtySetupVO = new XitUserScrtySetupVO();
userScrtySetupVO.setScrtySetupTrgetId(uniqId);
List<XitUserScrtySetupVO> listUserScrtySetupVO = userMgtMapper.selectUserScrtySetups(userScrtySetupVO);
String userAuthorId = XitCmmnUtil.isEmpty(listUserScrtySetupVO)?null:listUserScrtySetupVO.get(0).getAuthorId();
String userAuthId = XitCmmnUtil.isEmpty(listUserScrtySetupVO)?null:listUserScrtySetupVO.get(0).getAuthId();
if(!this.isCheckUserAuthorIdForCanChange(userAuthorId, trgetAuthorId))
if(!this.isCheckUserAuthIdForCanChange(userAuthId, trgetAuthId))
throw BizRuntimeException.create(MessageKey.CUSTOM_MSG, "자신의 권한보다 상위 권한을 설정 할 수 없습니다.");;
}
private boolean isCheckUserAuthorIdForCanChange(final String userAuthorId, final String trgetAuthorId) {
private boolean isCheckUserAuthIdForCanChange(final String userAuthId, final String trgetAuthId) {
//역할(권한)계층구조 데이터 목록 조회
List<XitRoleSclsrtRescueVO> listRoleSclsrtRescueVO = authAuthorMgtMapper.selectRoleSclsrtRescues(null);
//역할(권한)계층구조를 사용하지 않고 있는 경우 true 반환
@ -100,7 +100,7 @@ public class AuthGrpMgtServiceBean extends AbstractServiceBean implements AuthGr
return true;
}else {
//사용자의 권한 정보가 없을 때(비정상적인 루트로 등록한 사용자 계정으로 판단)
if(XitCmmnUtil.isEmpty(userAuthorId)) {
if(XitCmmnUtil.isEmpty(userAuthId)) {
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(userAuthorId)) {
if(item.getParntsRole().equals(userAuthId)) {
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(userAuthorId)) {
if(item.getChldrnRole().equals(userAuthId)) {
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, userAuthorId, trgetAuthorId);
return !this.isHighAuthor(listRoleSclsrtRescueVO, userAuthId, trgetAuthId);
}
private boolean isHighAuthor(final List<XitRoleSclsrtRescueVO> list, final String authorId, final String highAuthorId) {
private boolean isHighAuthor(final List<XitRoleSclsrtRescueVO> list, final String authId, final String highAuthId) {
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(authorId))
if (!item.getParntsRole().equals(authId))
continue;
if (item.getChldrnRole().equals(highAuthorId)) { // 상위 권한과 일치하면
if (item.getChldrnRole().equals(highAuthId)) { // 상위 권한과 일치하면
result = true;
} else { // 상위 권한과 일치하지 않으면 재호출
result = this.isHighAuthor(list, item.getChldrnRole(), highAuthorId);
result = this.isHighAuthor(list, item.getChldrnRole(), highAuthId);
}
}

@ -33,7 +33,7 @@ public class AuthHierarchyMgtServiceBean extends AbstractServiceBean implements
if(XitCmmnUtil.notEmpty(voList)) {
for(XitAuthHierarchyMngVO vo : voList) {
String strAuthorRescueCode = this.getStrAuthHierarchy(vo.getAuthorId());
String strAuthorRescueCode = this.getStrAuthHierarchy(vo.getAuthId());
vo.setAuthorRescueCode(strAuthorRescueCode);
vo.setAuthorRescueCodeNm(this.convertKorNm(strAuthorRescueCode));
}
@ -51,9 +51,9 @@ public class AuthHierarchyMgtServiceBean extends AbstractServiceBean implements
return result;
String topButtonAuthorId = this.getStrAuthHierarchy(listRoleSclsrtRescueVO.get(0).getChldrnRole());
topButtonAuthorId = topButtonAuthorId.split(">")[0].trim();
String strAuthorRescueCode = this.getStrAuthHierarchy(topButtonAuthorId);
String topButtonAuthId = this.getStrAuthHierarchy(listRoleSclsrtRescueVO.get(0).getChldrnRole());
topButtonAuthId = topButtonAuthId.split(">")[0].trim();
String strAuthorRescueCode = this.getStrAuthHierarchy(topButtonAuthId);
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.getAuthorId()))
if(XitCmmnUtil.isEmpty(vo.getAuthId()))
throw BizRuntimeException.create(MessageKey.CUSTOM_MSG, "권한코드는 필수조건 입니다.");
String[] arrAuthorIdGrp = vo.getAuthorId().split(","); //권한코드 묶음 목록
String[] arrAuthIdGrp = vo.getAuthId().split(","); //권한코드 묶음 목록
/**
*
* - .
* - () .
*/
if(arrAuthorIdGrp[0].split(";").length>1)
if(arrAuthIdGrp[0].split(";").length>1)
throw BizRuntimeException.create(MessageKey.CUSTOM_MSG,"최상위 부모는 한개만 설정 가능 합니다.");
// 최하위 자녀 갯수 확인
if(arrAuthorIdGrp[arrAuthorIdGrp.length-1].split(";").length>1)
if(arrAuthIdGrp[arrAuthIdGrp.length-1].split(";").length>1)
throw BizRuntimeException.create(MessageKey.CUSTOM_MSG,"최하위 자녀는 한개만 설정 가능 합니다.");
// 다중상속 구간 갯수 확인
int cnt = 0;
for(String authorIdGrp : arrAuthorIdGrp) {
if(authorIdGrp.split(";").length > 1)
for(String authIdGrp : arrAuthIdGrp) {
if(authIdGrp.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<arrAuthorIdGrp.length; i++) {
for(int i=0; i<arrAuthIdGrp.length; i++) {
//마지막 권한이면 stop
if(i==arrAuthorIdGrp.length-1)
if(i==arrAuthIdGrp.length-1)
break;
String[] arrParntsRole = arrAuthorIdGrp[i].split(";");
String[] arrChldrnRole = arrAuthorIdGrp[i+1].split(";");
String[] arrParntsRole = arrAuthIdGrp[i].split(";");
String[] arrChldrnRole = arrAuthIdGrp[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 authorId
* @param authId
* @return String
* @author:
* @date: 2020. 11. 2.
*/
private String getStrAuthHierarchy(final String authorId) {
private String getStrAuthHierarchy(final String authId) {
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, authorId, false, mParnts);
this.getAuthHierarchy(list, authorId, true, mChldrn);
this.getAuthHierarchy(list, authId, false, mParnts);
this.getAuthHierarchy(list, authId, true, mChldrn);
StringBuffer sb = new StringBuffer();
Iterator<String> it = mParnts.keySet().iterator();
while(it.hasNext()) {
sb.append(mParnts.get(it.next())).append(" > ");
}
sb.append(authorId).append(" > ");
sb.append(authId).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 authorId
* @param authId
* @param isChldrnSearch (true: , false: )
* @param resultMap
* @return void
* @author:
* @date: 2020. 11. 2.
*/
private void getAuthHierarchy(final List<XitRoleSclsrtRescueVO> list, final String authorId, final boolean isChldrnSearch, final LinkedHashMap<String, String> resultMap) {
private void getAuthHierarchy(final List<XitRoleSclsrtRescueVO> list, final String authId, final boolean isChldrnSearch, final LinkedHashMap<String, String> resultMap) {
for (XitRoleSclsrtRescueVO item : list) {
if(isChldrnSearch) {
// 권한코드가 일치하지 않으면 skip
if (!item.getParntsRole().equals(authorId))
if (!item.getParntsRole().equals(authId))
continue;
//권한코드 Set
if(resultMap.containsKey(authorId)) {
if(resultMap.containsKey(authId)) {
//동일한 값이면 담지 않음
if(resultMap.get(authorId).equals(item.getChldrnRole()))
if(resultMap.get(authId).equals(item.getChldrnRole()))
continue;
resultMap.put(authorId, resultMap.get(authorId)+", "+item.getChldrnRole());
resultMap.put(authId, resultMap.get(authId)+", "+item.getChldrnRole());
}else {
//동일한 값이 있으면 담지 않음
Iterator<String> it = resultMap.values().iterator();
@ -183,7 +183,7 @@ public class AuthHierarchyMgtServiceBean extends AbstractServiceBean implements
}
}
if(!isExists)
resultMap.put(authorId, item.getChldrnRole());
resultMap.put(authId, item.getChldrnRole());
}
@ -192,23 +192,23 @@ public class AuthHierarchyMgtServiceBean extends AbstractServiceBean implements
}else {
// 권한코드가 일치하지 않으면 skip
if (!item.getChldrnRole().equals(authorId))
if (!item.getChldrnRole().equals(authId))
continue;
//재탐색
this.getAuthHierarchy(list, item.getParntsRole(), isChldrnSearch, resultMap);
//권한코드 Set
if(resultMap.containsKey(authorId)) {
if(resultMap.containsKey(authId)) {
//동일한 값이면 담지 않음
if(resultMap.get(authorId).equals(item.getParntsRole()))
if(resultMap.get(authId).equals(item.getParntsRole()))
continue;
resultMap.put(authorId, resultMap.get(authorId)+", "+item.getParntsRole());
resultMap.put(authId, resultMap.get(authId)+", "+item.getParntsRole());
}else {
//동일한 값이 있으면 담지 않음
if(!resultMap.containsValue(item.getParntsRole())) {
resultMap.put(authorId, item.getParntsRole());
resultMap.put(authId, 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.getAuthorId(), item.getAuthorNm());
mAuthorInfo.put(item.getAuthId(), item.getAuthorNm());
}
StringBuffer sb = new StringBuffer();
@ -234,15 +234,15 @@ public class AuthHierarchyMgtServiceBean extends AbstractServiceBean implements
if(i>0)
sb.append(" > ");
String[] arrAuthorId = item.split(",");
for(int j=0; j<arrAuthorId.length; j++) {
String authorId = arrAuthorId[j].trim();
String[] arrAuthId = item.split(",");
for(int j=0; j<arrAuthId.length; j++) {
String authId = arrAuthId[j].trim();
if(j==0)
sb.append(mAuthorInfo.get(authorId));
sb.append(mAuthorInfo.get(authId));
else
sb.append(", ").append(mAuthorInfo.get(authorId));
sb.append(", ").append(mAuthorInfo.get(authId));
}
}

@ -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.getAuthorId())){
if(Checks.isEmpty(vo) || Checks.isEmpty(vo.getAuthId())){
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 authorId){
public ModelAndView removeAuthAuthor(final String authId){
ModelAndView mav = new ModelAndView(FrameworkConstants.JSON_VIEW);
service.removeAuthAuthor(authorId);
service.removeAuthAuthor(authId);
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.getAuthorId(), infoVO.getAuthorNm()));
authorInfoVOList.forEach(infoVO -> mAuthorInfo.put(infoVO.getAuthId(), 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[] arrAuthorId = arrAuthorRescue[i].split(",");
for(int j=0; j<arrAuthorId.length; j++) {
String authorId = arrAuthorId[j].trim();
if(mNoDuplAuthorInfo.containsKey(authorId)) {
mNoDuplAuthorInfo.remove(authorId);
String[] arrAuthId = arrAuthorRescue[i].split(",");
for(int j=0; j<arrAuthId.length; j++) {
String authId = arrAuthId[j].trim();
if(mNoDuplAuthorInfo.containsKey(authId)) {
mNoDuplAuthorInfo.remove(authId);
}
}
}
//권한계층 미설정 권한 목록 설정
List<XitAuthorInfoVO> listAuthorInfo = new ArrayList<>();
for (String authorId : mNoDuplAuthorInfo.keySet()) {
for (String authId : mNoDuplAuthorInfo.keySet()) {
XitAuthorInfoVO authorInfo = new XitAuthorInfoVO();
authorInfo.setAuthorId(authorId);
authorInfo.setAuthorNm(mNoDuplAuthorInfo.get(authorId));
authorInfo.setAuthId(authId);
authorInfo.setAuthorNm(mNoDuplAuthorInfo.get(authId));
listAuthorInfo.add(authorInfo);
}

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

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

@ -12,6 +12,6 @@ public interface MenuByRoleMgtMapper {
<T> List<MenuCreateMngVO> selectRoleInfos(T t);
<T> List<MenuCreateMngVO> selectMenuInfoByRoleList(T t);
int deleteMenuCreatDtls(final String authorId);
int deleteMenuCreatDtls(final String authId);
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 authorId = String.valueOf(paraMap.get("authorId"));
String authId = String.valueOf(paraMap.get("authId"));
@SuppressWarnings("unchecked")
List<String> menuNoList = (List<String>)paraMap.get("menuNoList");
// 해당 권한의 메뉴 삭제
mapper.deleteMenuCreatDtls(authorId);
mapper.deleteMenuCreatDtls(authId);
// 메뉴 등록
menuNoList.forEach((menuNo) -> {
mapper.insertMenuCreatDtls(
XitMenuCreatDtlsVO
.builder()
.authorId(authorId)
.authId(authId)
.menuNo(menuNo)
.build()
);

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

@ -34,7 +34,7 @@ public interface UserMgtService {
void modifyUser(final XitUserInfoVO userInfoVO);
void removeUser(final String uniqId);
String getDefaultAuthorId(final String grpId);
String getDefaultAuthId(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.setAuthorId(this.getDefaultAuthorId(vo.getGrpId()));
userScrtySetupVO.setAuthId(this.getDefaultAuthId(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.setAuthorId(this.getDefaultAuthorId(vo.getGrpId()));
userScrtySetupVO.setAuthId(this.getDefaultAuthId(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 getDefaultAuthorId(final String grpId) {
public String getDefaultAuthId(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.getAuthorId()))
if (Checks.isEmpty(vo.getAuthId()))
return "ROLE_USER";
else
return vo.getAuthorId();
return vo.getAuthId();
}
}
@ -212,18 +212,18 @@ public class UserMgtServiceBean extends AbstractServiceBean implements UserMgtSe
}else {
//사용자(수정대상) 권한 조회
XitUserScrtySetupVO scrtyVO = mapper.selectUserScrtySetup(uniqId);
String tgtAuthorId = scrtyVO.getAuthorId();
String tgtAuthId = scrtyVO.getAuthId();
//사용자(수정자) 권한 조회
scrtyVO = mapper.selectUserScrtySetup(loginSessionVO.getUniqId());;
String userAuthorId = scrtyVO.getAuthorId();
String userAuthId = scrtyVO.getAuthId();
//사용자(수정자)가 ROLE_ADMIN 권한의 사용자인 경우
if("ROLE_ADMIN".equals(userAuthorId)) {
if("ROLE_ADMIN".equals(userAuthId)) {
return true;
}else {
//사용자(수정대상)가 ROLE_ADMIN 권한의 사용자인 경우
if("ROLE_ADMIN".equals(tgtAuthorId)) {
if("ROLE_ADMIN".equals(tgtAuthId)) {
return false;
}

@ -60,7 +60,7 @@ public class XitUserEtcOptMngController extends AbstractController {
/*================
*
================*/
model.addAttribute("dataAuthorId_result" , xitFrameCodeService.findCmmnDetailCodes("XIT401")); //자료조회및관리범위코드 목록
model.addAttribute("dataAuthId_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 authorId;
private String authId;
/** 기타VO변수 */
private String tempValue;

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

@ -39,7 +39,7 @@
<when test='type != null and type == "AUTHOR"'>
/* 권한 코드 */
SELECT author_id AS code
SELECT auth_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_id, FA.scrty_setup_trget_id
SELECT FA.auth_Id, FA.scrty_setup_trget_id
FROM xit_user_scrty_setup FA
WHERE FA.scrty_setup_trget_id = #{uniqId}
) C
ON A.author_id = C.author_id
ON A.auth_Id = C.auth_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="selectMenuListByAuthorId" parameterType="string" resultType="java.util.Map">
/* cachemenu-mysql-mapper|selectMenuListByAuthorId-권한별 메뉴 조회|julim */
<select id="selectMenuListByAuthId" parameterType="string" resultType="java.util.Map">
/* cachemenu-mysql-mapper|selectMenuListByAuthId-권한별 메뉴 조회|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_ID = #{authorId}
WHERE A.auth_Id = #{authId}
ORDER BY D.parnt_menu_id, B.srt_ord
</select>

@ -9,14 +9,14 @@
,GROUP_NM
,GROUP_CREAT_DE
,DSCRP
,AUTHOR_ID
,auth_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(authorId)">AND AUTHOR_ID = #{authorId}</if>
<if test="@cokr.xit.fims.framework.core.utils.XitCmmnUtil@notEmpty(authId)">AND auth_Id = #{authId}</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_ID
,auth_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(authorId)">,AUTHOR_ID</if>
<if test="@cokr.xit.fims.framework.core.utils.XitCmmnUtil@notEmpty(authId)">,auth_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(authorId)">,#{authorId}</if>
<if test="@cokr.xit.fims.framework.core.utils.XitCmmnUtil@notEmpty(authId)">,#{authId}</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(authorId)">,AUTHOR_ID = #{authorId}</if>
<if test="@cokr.xit.fims.framework.core.utils.XitCmmnUtil@notBlank(authId)">,auth_Id = #{authId}</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_ID
SELECT auth_Id
,AUTHOR_NM
,DSCRP
,AUTHOR_CREAT_DE
FROM XIT_AUTHOR_INFO
WHERE 1=1
<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(authId)">AND auth_Id = #{authId}</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_ID
SELECT auth_Id
,AUTHOR_NM
,DSCRP
,AUTHOR_CREAT_DE
FROM XIT_AUTHOR_INFO
WHERE 1=1
AND AUTHOR_ID = #{authorId}
AND auth_Id = #{authId}
</select>
<insert id="addXitAuthorInfo">
/** addXitAuthorInfo */
/** 권한정보 등록 */
INSERT INTO XIT_AUTHOR_INFO(
AUTHOR_ID
auth_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(
#{authorId}
#{authId}
<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_ID = #{authorId}
AND auth_Id = #{authId}
</update>
<delete id="removeXitAuthorInfo">
/** removeXitAuthorInfo */
/** 권한정보 삭제 */
DELETE FROM XIT_AUTHOR_INFO
WHERE 1=1
AND AUTHOR_ID = #{authorId}
AND auth_Id = #{authId}
</delete>
@ -137,35 +137,35 @@
<select id="findXitAuthorRoleRelates" resultType="cokr.xit.fims.framework.biz.cmm.XitAuthorRoleRelateVO">
/** findXitAuthorRoleRelates */
/** 권한역할관계 다건 조회 */
SELECT AUTHOR_ID
SELECT auth_Id
,ROLE_CODE
,CREAT_DT
FROM XIT_AUTHOR_ROLE_RELATE
WHERE 1=1
<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(authId)">AND auth_Id = #{authId}</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_ID
SELECT auth_Id
,ROLE_CODE
,CREAT_DT
FROM XIT_AUTHOR_ROLE_RELATE
WHERE 1=1
AND AUTHOR_ID = #{authorId}
AND auth_Id = #{authId}
AND ROLE_CODE = #{roleCode}
</select>
<insert id="addXitAuthorRoleRelate">
/** addXitAuthorRoleRelate */
/** 권한역할관계 등록 */
INSERT INTO XIT_AUTHOR_ROLE_RELATE(
AUTHOR_ID
auth_Id
,ROLE_CODE
,CREAT_DT
)VALUES(
#{authorId}
#{authId}
,#{roleCode}
,NOW()
)
@ -176,7 +176,7 @@
<!-- UPDATE XIT_AUTHOR_ROLE_RELATE -->
<!-- SET -->
<!-- WHERE 1=1 -->
<!-- AND AUTHOR_ID = #{authorId} -->
<!-- AND auth_Id = #{authId} -->
<!-- AND ROLE_CODE = #{roleCode} -->
</update>
<delete id="removeXitAuthorRoleRelate">
@ -184,7 +184,7 @@
/** 권한역할관계 삭제 */
DELETE FROM XIT_AUTHOR_ROLE_RELATE
WHERE 1=1
AND AUTHOR_ID = #{authorId}
AND auth_Id = #{authId}
AND ROLE_CODE = #{roleCode}
</delete>
@ -1317,35 +1317,35 @@
/** findXitMenuCreatDtlss */
/** 메뉴생성내역 다건 조회 */
SELECT MENU_NO
,AUTHOR_ID
,auth_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(authorId)">AND AUTHOR_ID = #{authorId}</if>
<if test="@cokr.xit.fims.framework.core.utils.XitCmmnUtil@notEmpty(authId)">AND auth_Id = #{authId}</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_ID
,auth_Id
,MAPNG_CREAT_ID
FROM XIT_MENU_CREAT_DTLS
WHERE 1=1
AND MENU_NO = #{menuNo}
AND AUTHOR_ID = #{authorId}
AND auth_Id = #{authId}
</select>
<insert id="addXitMenuCreatDtls">
/** addXitMenuCreatDtls */
/** 메뉴생성내역 등록 */
INSERT INTO XIT_MENU_CREAT_DTLS(
MENU_NO
,AUTHOR_ID
,auth_Id
<if test="@cokr.xit.fims.framework.core.utils.XitCmmnUtil@notEmpty(mapngCreatId)">,MAPNG_CREAT_ID</if>
)VALUES(
#{menuNo}
,#{authorId}
,#{authId}
<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_ID = #{authorId}
AND auth_Id = #{authId}
</update>
<delete id="removeXitMenuCreatDtls">
/** removeXitMenuCreatDtls */
@ -1365,7 +1365,7 @@
DELETE FROM XIT_MENU_CREAT_DTLS
WHERE 1=1
AND MENU_NO = #{menuNo}
AND AUTHOR_ID = #{authorId}
AND auth_Id = #{authId}
</delete>
@ -2507,17 +2507,17 @@
/** findXitUserScrtySetups */
/** 사용자보안설정 다건 조회 */
SELECT SCRTY_SETUP_TRGET_ID
,AUTHOR_ID
,auth_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(authorId)">AND AUTHOR_ID = #{authorId}</if>
<if test="@cokr.xit.fims.framework.core.utils.XitCmmnUtil@notEmpty(authId)">AND auth_Id = #{authId}</if>
</select>
<select id="findXitUserScrtySetup" resultType="cokr.xit.fims.framework.biz.mng.user.XitUserScrtySetupVO">
/** findXitUserScrtySetup */
/** 사용자보안설정 조회 */
SELECT SCRTY_SETUP_TRGET_ID
,AUTHOR_ID
,auth_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_id
, auth_Id
) VALUES (
#{scrtySetupTrgetId}
, #{authorId}
, #{authId}
)
</insert>
<update id="modifyXitUserScrtySetup">
@ -2539,7 +2539,7 @@
/** 사용자보안설정 수정 */
UPDATE XIT_USER_SCRTY_SETUP
SET
AUTHOR_ID = #{authorId}
auth_Id = #{authId}
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_ID, FA.SCRTY_SETUP_TRGET_ID
INNER JOIN (SELECT FA.auth_Id, FA.SCRTY_SETUP_TRGET_ID
FROM XIT_USER_SCRTY_SETUP FA
WHERE FA.SCRTY_SETUP_TRGET_ID = #{uniqId}
) C ON A.AUTHOR_ID = C.AUTHOR_ID
) C ON A.auth_Id = C.auth_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="findMenuListByAuthorId" resultType="java.util.Map">
/** XitFrameUnitMapper.findMenuListByAuthorId */
<select id="findMenuListByAuthId" resultType="java.util.Map">
/** XitFrameUnitMapper.findMenuListByAuthId */
/** 권한코드별 메뉴 목록 조회 */
<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_ID=#{authorId}
AND A.auth_Id=#{authId}
<!-- 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_ID, FA.SCRTY_SETUP_TRGET_ID
INNER JOIN (SELECT FA.auth_Id, FA.SCRTY_SETUP_TRGET_ID
FROM XIT_USER_SCRTY_SETUP FA
WHERE FA.SCRTY_SETUP_TRGET_ID = #{tmpUniqId}
) C ON A.AUTHOR_ID = C.AUTHOR_ID
) C ON A.auth_Id = C.auth_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_ID, FA.SCRTY_SETUP_TRGET_ID
INNER JOIN (SELECT FA.auth_Id, FA.SCRTY_SETUP_TRGET_ID
FROM XIT_USER_SCRTY_SETUP FA
WHERE FA.SCRTY_SETUP_TRGET_ID = #{tmpUniqId}
) C ON A.AUTHOR_ID = C.AUTHOR_ID
) C ON A.auth_Id = C.auth_Id
WHERE 1=1
ORDER BY B.srt_ord
</select>

@ -6,14 +6,14 @@
* xit_author_info : 권한 정보
************************************************************************************************************** -->
<sql id="sqlAuthorInfo">
SELECT author_id
SELECT auth_Id
, author_nm
, dscrp
, author_creat_de
FROM xit_author_info
<where>
<if test="@cokr.xit.fims.framework.core.utils.XitCmmnUtil@notEmpty(authorId)">
AND author_id = #{authorId}
<if test="@cokr.xit.fims.framework.core.utils.XitCmmnUtil@notEmpty(authId)">
AND auth_Id = #{authId}
</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_id
auth_Id
, author_nm
, dscrp
, author_creat_de
) VALUES (
#{authorId}
#{authId}
,#{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_id = #{authorId}
WHERE auth_Id = #{authId}
</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_id = #{authorId}
WHERE auth_Id = #{authId}
</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_id
LEFT OUTER JOIN ( SELECT auth_Id
, role_code
, creat_dt
FROM xit_author_role_relate
WHERE author_id = #{authorId}
WHERE auth_Id = #{authId}
) 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_id = #{authorId}
WHERE auth_Id = #{authId}
AND role_code = #{roleCode}
</delete>
<insert id="saveRoleGrant" parameterType="map">
/* auth-author-mysql-mapper|saveRoleGrant-권한 롤 등록|julim */
INSERT INTO xit_author_role_relate (
author_id
auth_Id
, role_code
, creat_dt
) VALUES (
#{authorId}
#{authId}
, #{roleCode}
, NOW()
)

@ -11,7 +11,7 @@
, xui.user_nm
, xui.grp_id
, cdc.code_val AS mberTyNm
, uss.author_id
, uss.auth_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_id
, agi.auth_Id
, xai.author_nm
, agi.group_creat_de
FROM xit_author_group_info agi
LEFT OUTER JOIN xit_author_info xai
ON agi.author_id = xai.author_id
ON agi.auth_Id = xai.auth_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_id
, auth_Id
, group_creat_de
FROM xit_author_group_info
WHERE grp_id = #{grpId}
@ -40,13 +40,13 @@
grp_id
, group_nm
, dscrp
, author_id
, auth_Id
, group_creat_de
)VALUES(
#{grpId}
, #{groupNm}
, #{dscrp}
, #{authorId}
, #{authId}
, 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_id = IF(author_id = #{authorId}, author_id, #{authorId})
, auth_Id = IF(auth_Id = #{authId}, auth_Id, #{authId})
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_id
SELECT auth_Id
, author_nm
, dscrp
, author_creat_de

@ -7,17 +7,17 @@
* xit_author_info : 권한 정보
************************************************************************************************************** -->
<sql id="sqlAuthorInfo">
SELECT xai.author_id
SELECT xai.auth_Id
, xai.author_nm
, xai.dscrp
, xai.author_creat_de
, (SELECT COUNT(author_id)
, (SELECT COUNT(auth_Id)
FROM xit_menu_creat_dtls
WHERE xai.author_id = author_id ) AS chkYeoBu
WHERE xai.auth_Id = auth_Id ) AS chkYeoBu
FROM xit_author_info xai
<where>
<if test="@cokr.xit.fims.framework.core.utils.XitCmmnUtil@notEmpty(authorId)">
AND INSTR(xai.author_id, #{authorId})
<if test="@cokr.xit.fims.framework.core.utils.XitCmmnUtil@notEmpty(authId)">
AND INSTR(xai.auth_Id, #{authId})
</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_id = #{authorId}) AS chkYeoBu
AND B.auth_Id = #{authId}) 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_id = #{authorId}
WHERE auth_Id = #{authId}
</delete>
<insert id="insertMenuCreatDtls">
@ -68,11 +68,11 @@
INSERT
INTO xit_menu_creat_dtls (
menu_no
, author_id
, auth_Id
, mapng_creat_id
) VALUES (
#{menuNo}
, #{authorId}
, #{authId}
, #{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_ID = #{authorId}) AS "chkYeoBu"
AND B.auth_Id = #{authId}) 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_ID AS "authorId"
SELECT auth_Id AS "authId"
FROM XIT_USER_SCRTY_SETUP
WHERE SCRTY_SETUP_TRGET_ID = (
SELECT USER_ID

@ -188,7 +188,7 @@
, group_nm
, group_creat_de
, dscrp
, author_id
, auth_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(authorId)">
AND author_id = #{authorId}
<if test="@cokr.xit.fims.framework.core.utils.XitCmmnUtil@notEmpty(authId)">
AND auth_Id = #{authId}
</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_id
, auth_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(authorId)">
AND author_id = #{authorId}
<if test="@cokr.xit.fims.framework.core.utils.XitCmmnUtil@notEmpty(authId)">
AND auth_Id = #{authId}
</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_id
, auth_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_id
, auth_Id
) VALUES (
#{scrtySetupTrgetId}
, #{authorId}
, #{authId}
)
</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_id = IF(author_id = #{authorId}, author_id, #{authorId})
SET auth_Id = IF(auth_Id = #{authId}, auth_Id, #{authId})
WHERE scrty_setup_trget_id = #{scrtySetupTrgetId}
</update>

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

@ -44,10 +44,10 @@
<label class="required">권한</label>
</th>
<td nowrap="nowrap">
<select id="authorId" name="authorId">
<select id="authId" name="authId">
<option value="">== 선택하세요 ==</option>
<c:forEach var="row" items="${listAuthorInfoVO }">
<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>
<option value="<c:out value="${row.auth_Id }"/>" <c:if test="${row.auth_Id eq groupManage.authId}">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="authorId" name="authorId">
<select id="authId" name="authId">
<option value="">== 선택하세요 ==</option>
<c:forEach var="row" items="${listAuthorInfoVO }">
<option value="<c:out value="${row.author_id }"/>"><c:out value="${row.author_nm }"/></option>
<option value="<c:out value="${row.auth_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', 'authorId'],
listColumns: ['authorNm', 'authId'],
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="arrAuthorId" value="${fn:split(strAuthorRescueCode, '>') }" />
<c:forEach var="row" items="${arrAuthorId }" varStatus="status">
<c:set var="arrAuthId" value="${fn:split(strAuthorRescueCode, '>') }" />
<c:forEach var="row" items="${arrAuthId }" varStatus="status">
<c:set var="arrSilbingAutorCode" value="${fn:split(row, ',') }" />
<c:forEach var="authorId" items="${arrSilbingAutorCode }">
<c:forEach var="authId" items="${arrSilbingAutorCode }">
<li>
<span><c:out value="${mAuthorInfo[fn:trim(authorId)] }"/></span>
<input type="hidden" id="authorId" value="<c:out value="${fn:trim(authorId) }"/>" />
<span><c:out value="${mAuthorInfo[fn:trim(authId)] }"/></span>
<input type="hidden" id="authId" value="<c:out value="${fn:trim(authId) }"/>" />
</li>
</c:forEach>
@ -83,7 +83,7 @@
<li>
<span>
<c:out value="${row.author_nm }"/>
<input type="hidden" id="authorId" value="<c:out value="${row.author_id }"/>" />
<input type="hidden" id="authId" value="<c:out value="${row.auth_Id }"/>" />
</span>
</li>
</c:forEach>
@ -263,26 +263,26 @@ $(document).ready(function(){
var i = 0;
var totCnt = $('#authorRescue li').length;
var sb = [];
var arrAuthorId = [];
var arrAuthId = [];
$('#authorRescue li').each(function(){
if($(this).hasClass('separator')){ //구분자 일때
//배열에 담기
if(sb.length>0)
arrAuthorId.push(sb.join(';'));
arrAuthId.push(sb.join(';'));
//StringBuffer 초기화
sb = [];
}else{ //구분자가 아닐때
//StringBuffer에 담기
sb.push($(this).find('#authorId').val());
sb.push($(this).find('#authId').val());
}
//마지막 요소
if(i == totCnt-1){
//배열에 담기
if(sb.length>0)
arrAuthorId.push(sb.join(';'));
arrAuthId.push(sb.join(';'));
}
@ -292,13 +292,13 @@ $(document).ready(function(){
var frm = document.authHierarchyManage;
//Elements 삭제
$(frm).find('input[name="authorId"]').remove();
$(frm).find('input[name="authId"]').remove();
//Elements 생성
for(var i=0; i<arrAuthorId.length; i++){
for(var i=0; i<arrAuthId.length; i++){
var param = document.createElement('input');
param.setAttribute('type', 'hidden');
param.setAttribute('name', 'authorId');
param.setAttribute('value', arrAuthorId[i]);
param.setAttribute('name', 'authId');
param.setAttribute('value', arrAuthId[i]);
frm.appendChild(param);
}
}

@ -7,8 +7,8 @@
<form:form id="listForm" name="listForm" action="" method="post">
<input type="hidden" name="authorId"/>
<input type="hidden" name="authorIds"/>
<input type="hidden" name="authId"/>
<input type="hidden" name="authIds"/>
<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: 'authorId',
name: 'authId',
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.authorId ? 'INSERT' : 'UPDATE'}"/>
<c:set var="registerFlagName" value="${empty authorManageVO.authorId ? '권한 등록' : '권한 수정'}"/>
<c:set var="registerFlag" value="${empty authorManageVO.authId ? 'INSERT' : 'UPDATE'}"/>
<c:set var="registerFlagName" value="${empty authorManageVO.authId ? '권한 등록' : '권한 수정'}"/>
<!-- 검색 필드 박스 시작 -->
<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="authorId" id="authorId" type="text" value="<c:out value='${authorManage.authorId}'/>" size="40" title="권한코드" />&nbsp;<form:errors path="authorId" /></td>
<td nowrap="nowrap"><input name="authId" id="authId" type="text" value="<c:out value='${authorManage.authId}'/>" size="40" title="권한코드" />&nbsp;<form:errors path="authId" /></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.authorId ? 'INSERT' : 'UPDATE'}"/>
<c:set var="registerFlagName" value="${empty authorManageVO.authorId ? '권한 등록' : '권한 수정'}"/>
<c:set var="registerFlag" value="${empty authorManageVO.authId ? 'INSERT' : 'UPDATE'}"/>
<c:set var="registerFlagName" value="${empty authorManageVO.authId ? '권한 등록' : '권한 수정'}"/>
<!-- 검색 필드 박스 시작 -->
<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="authorId" id="authorId" type="text" value="<c:out value='${authorManage.authorId}'/>" size="40" title="권한코드" />&nbsp;<form:errors path="authorId" /></td>
<td nowrap="nowrap"><input name="authId" id="authId" type="text" value="<c:out value='${authorManage.authId}'/>" size="40" title="권한코드" />&nbsp;<form:errors path="authId" /></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="authorId"/>
<input type="hidden" name="authorIds"/>
<input type="hidden" name="authId"/>
<input type="hidden" name="authIds"/>
<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.authorId;
returnValue += item.authId;
if(checkArr.length -1 > index){
returnValue += ";";
}
})
document.listForm.authorIds.value = returnValue;
document.listForm.authIds.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 += "authorId=" + rowData.authorId;
params += "authId=" + rowData.authId;
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.authorId;
params += "searchKeyword=" + rowData.authId;
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: 'authorId',
name: 'authId',
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.authorId
formatter : rowData.authId
,element : "text"
}
return obj;

@ -75,7 +75,7 @@ function fncManageChecked() {
alert("조회된 결과가 없습니다.");
}
document.listForm.authorIds.value = returnValue;
document.listForm.authIds.value = returnValue;
return returnBoolean;
}
@ -88,7 +88,7 @@ function fncSelectAuthorList(pageNo){
}
function fncSelectAuthor(author) {
document.listForm.authorId.value = author;
document.listForm.authId.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.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"><input type="checkbox" name="delYn" class="check2" title="선택"><input type="hidden" name="checkId" value="<c:out value="${author.authId}"/>" /></td>
<td nowrap="nowrap"><a href="#LINK" onclick="javascript:fncSelectAuthor('<c:out value="${author.authId}"/>')"><c:out value="${author.authId}"/></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.authorId}"/>')"><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.authId}"/>')"><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="authorId"/>
<input type="hidden" name="authorIds"/>
<input type="hidden" name="authId"/>
<input type="hidden" name="authIds"/>
<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="authorId" value="<c:out value="${authorRoleManageVO.searchKeyword}"/>"/>
<input type="hidden" name="authId" 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="authorId" value="<c:out value="${authorRoleManageVO.searchKeyword}"/>"/>
<input type="hidden" name="authId" 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="authorIds" id="authorIds"/>
<input type="hidden" name="authIds" id="authIds"/>
<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.authorId;
returnAuthor += item.authId;
returnRegYn += item.regYn;
returnGrpId += item.grpId;
@ -236,7 +236,7 @@ var XitAuthUsrMng_list = {
})
document.listForm.userIds.value = returnId;
document.listForm.authorIds.value = returnAuthor;
document.listForm.authIds.value = returnAuthor;
document.listForm.regYns.value = returnRegYn;
document.listForm.grpIds.value = returnGrpId;
}
@ -329,7 +329,7 @@ GridConfig.setOptColumns([ //Grid 컬럼 정보(명칭,매핑 field, 기타옵
},
{
header: '권한',
name: 'authorId',
name: 'authId',
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_id}'
,value: '${row.auth_Id}'
}
</c:forEach>
]

@ -98,7 +98,7 @@ function fncManageChecked() {
}
document.listForm.userIds.value = returnId;
document.listForm.authorIds.value = returnAuthor;
document.listForm.authIds.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_id}"/>" <c:if test="${authorManage.author_id == authorGroup.authorId}">selected</c:if> ><c:out value="${authorManage.author_nm}"/></option>
<option value="<c:out value="${authorManage.auth_Id}"/>" <c:if test="${authorManage.auth_Id == authorGroup.authId}">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="authorIds"/>
<input type="hidden" name="authIds"/>
<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.authorId}
const params = {roleCode: rowData.authId}
fnBiz.pagePopup('rolePopup', "<c:url value='/framework/biz/mng/auth/mngAuthRoleGrantMgtPopup.do'/>", params);
}
}
@ -178,7 +178,7 @@
const gridColumns = [ //Grid 컬럼 정보(명칭,매핑 field, 기타옵션 등)
{
header: '권한코드',
name: 'authorId',
name: 'authId',
minWidth: 200,
sortable: true,
sortingType: 'desc',
@ -189,7 +189,7 @@
formatter : function(props){
var rowData = props.grid.getRow(props.rowKey);
var obj = {
formatter : rowData.authorId
formatter : rowData.authId
,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.authorId}"/>
<c:set var="isUpdate" value="${!empty authorInfoVO.authId}"/>
<c:set var="bizName" value="권한"/>
@ -24,10 +24,10 @@
<td nowrap="nowrap">
<c:choose>
<c:when test="${isUpdate}">
<input name="authorId" id="authorId" type="text" value="<c:out value='${authorInfoVO.authorId}'/>" readonly size="40" title="권한코드"/>&nbsp;
<input name="authId" id="authId" type="text" value="<c:out value='${authorInfoVO.authId}'/>" readonly size="40" title="권한코드"/>&nbsp;
</c:when>
<c:otherwise>
<input name="authorId" id="authorId" type="text" size="40" title="권한코드"/>&nbsp;
<input name="authId" id="authId" 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: {authorId: $('#authorId').val()}
, data: {authId: $('#authId').val()}
});
}
, validate: () => {
@ -104,9 +104,9 @@
alert('변경된 내용이 없습니다.');
return false;
}
if ($('#authorId').val() === '') {
if ($('#authId').val() === '') {
alert('[권한코드]는 필수 입니다.');
$('#authorId').focus();
$('#authId').focus();
return false;
}
if ($('#authorNm').val() === '') {

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

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

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

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

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

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

@ -43,8 +43,8 @@ function selectMenuCreatManageList() {
/* ********************************************************
* 메뉴생성 화면 호출
******************************************************** */
function selectMenuCreat(vAuthorId) {
document.menuCreatManageForm.authorId.value = vAuthorId;
function selectMenuCreat(vAuthId) {
document.menuCreatManageForm.authId.value = vAuthId;
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(vAuthorId) {
<div id="search_field_loc"><h2><strong>메뉴생성관리</strong></h2></div>
<input name="checkedMenuNoForDel" type="hidden" />
<input name="authorId" type="hidden" />
<input name="authId" type="hidden" />
<input name="pageIndex" type="hidden" value="<c:out value='${searchVO.pageIndex}'/>"/>
<fieldset><legend>조건정보 영역</legend>
@ -123,7 +123,7 @@ function selectMenuCreat(vAuthorId) {
<c:forEach var="result" items="${list_menumanage}" varStatus="status">
<!-- loop 시작 -->
<tr>
<td nowrap="nowrap" ><c:out value="${result.authorId}"/></td>
<td nowrap="nowrap" ><c:out value="${result.authId}"/></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(vAuthorId) {
<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'/>?authorId='<c:out value="${result.authorId}"/>'" onclick="selectMenuCreat('<c:out value="${result.authorId}"/>'); return false;">메뉴생성</a>
<a href="<c:url value='/framework/biz/mng/menu/MenuCreateMng_input.do'/>?authId='<c:out value="${result.authId}"/>'" onclick="selectMenuCreat('<c:out value="${result.authId}"/>'); return false;">메뉴생성</a>
</td>
</tr>
</c:forEach>

@ -19,8 +19,8 @@
<tbody>
<tr>
<td>
<label for="authorId">권한코드</label>
<input id="authorId" name="authorId" type="text" size="80" value="" maxlength="60" title="권한코드"/>
<label for="authId">권한코드</label>
<input id="authId" name="authId" 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', {authorId: rowData.authorId});
fnBiz.pagePopup('add', {authId: rowData.authId});
}
}
@ -152,7 +152,7 @@
const gridColumns = [
{
header: '권한코드',
name: 'authorId',
name: 'authId',
minWidth: 250,
sortable: true,
sortingType: 'desc',

@ -24,8 +24,8 @@
<tbody>
<tr>
<td colspan="7">
<label for="authorId">권한코드</label>
<input id="authorId" name="authorId" type="text" size="30" value="${resultVO.authorId}" title="검색" readonly/>
<label for="authId">권한코드</label>
<input id="authId" name="authId" type="text" size="30" value="${resultVO.authId}" title="검색" readonly/>
</td>
</tr>
</tbody>
@ -50,9 +50,9 @@
<script type="text/javaScript">
let chk_Object = true;
let chk_browse = "";
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";
if (eval(document.frmMenuTree.authId)=="[object]") chk_browse = "IE";
if (eval(document.frmMenuTree.authId)=="[object NodeList]") chk_browse = "Fox";
if (eval(document.frmMenuTree.authId)=="[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({
authorId: document.frmSearch.authorId.value
authId: document.frmSearch.authId.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="${dataAuthorId_result}" varStatus="status">
<c:forEach var="row" items="${dataAuthId_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="${dataAuthorId_result}" varStatus="status">
<c:forEach var="row" items="${dataAuthId_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="${dataAuthorId_result}" itemValue="code" itemLabel="codeVal"/>
<form:options items="${dataAuthId_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="${dataAuthorId_result}" itemValue="code" itemLabel="codeVal"/>
<form:options items="${dataAuthId_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.authorId}"/>
<c:set var="isUpdate" value="${!empty authorInfoVO.authId}"/>
--%>
<!-- 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.authorId}"/>
<c:set var="isUpdate" value="${!empty authorInfoVO.authId}"/>
--%>
<!-- 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.authorId}"/>
<c:set var="isUpdate" value="${!empty authorInfoVO.authId}"/>
--%>
<!-- popup button -->
<div class="container-window-btn2">

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

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long
Loading…
Cancel
Save