public abstract class MenuUtils extends Object
Constructor and Description |
---|
MenuUtils() |
Modifier and Type | Method and Description |
---|---|
static net.ibizsoftware.jwork.component.jtree.model.Node<? extends net.ibizsoftware.jwork.component.jtree.model.JTreeModel> |
findMenuByMenuId(net.ibizsoftware.jwork.component.jtree.model.Node<? extends net.ibizsoftware.jwork.component.jtree.model.JTreeModel> rootNode,
String rootMenuId,
int depth)
메뉴Id로 메뉴 검색
|
static net.ibizsoftware.jwork.component.jtree.model.Node<? extends net.ibizsoftware.jwork.component.jtree.model.JTreeModel> |
getAdminNode(List<net.ibizsoftware.jwork.component.jtree.model.Node<? extends net.ibizsoftware.jwork.component.jtree.model.JTreeModel>> list)
관리자 노드 조회
|
static int |
getButtonEventCount(List<net.ibizsoftware.jwork.component.jtree.model.Node<? extends net.ibizsoftware.jwork.component.jtree.model.JTreeModel>> list)
버튼 이벤트 개수 반환
|
static List<List<net.ibizsoftware.jwork.component.grid.model.JGrid<ProgrmButtonVO>>> |
getButtonGroupTypeProgramList(String upperMenuId,
String jsonData)
버튼 그룹 유형 프로그램 리스트 조회
|
static List<ProgrmVO> |
getButtonTypeProgramList(String jsonData)
버튼 타입 프로그램 리스트 조회
|
static List<net.ibizsoftware.jwork.component.jtree.model.Node<? extends net.ibizsoftware.jwork.component.jtree.model.JTreeModel>> |
getDefaultProgrmList(List<net.ibizsoftware.jwork.component.jtree.model.Node<? extends net.ibizsoftware.jwork.component.jtree.model.JTreeModel>> oneLevelMenu)
기본 프로그램 리스트 조회
|
static net.ibizsoftware.jwork.component.jtree.model.Node<? extends net.ibizsoftware.jwork.component.jtree.model.JTreeModel> |
getDefaultProgrmNode(List<net.ibizsoftware.jwork.component.jtree.model.Node<? extends net.ibizsoftware.jwork.component.jtree.model.JTreeModel>> oneLevelMenu)
기본 프로그램 노드 조회
|
static List<net.ibizsoftware.jwork.component.jtree.model.Node<? extends net.ibizsoftware.jwork.component.jtree.model.JTreeModel>> |
getEnabledAdminMenuList(net.ibizsoftware.jwork.component.jtree.model.Node<? extends net.ibizsoftware.jwork.component.jtree.model.JTreeModel> menuNode)
활성화된 관리자 메뉴 리스트 조회
|
static List<net.ibizsoftware.jwork.component.jtree.model.Node<? extends net.ibizsoftware.jwork.component.jtree.model.JTreeModel>> |
getEnabledBizMenuList(List<net.ibizsoftware.jwork.component.jtree.model.Node<? extends net.ibizsoftware.jwork.component.jtree.model.JTreeModel>> oneLevelMenu)
활성화된 비즈니스 메뉴 리스트 조회
|
static String |
getFirstProgrmGrpId(List<net.ibizsoftware.jwork.component.jtree.model.Node<? extends net.ibizsoftware.jwork.component.jtree.model.JTreeModel>> menuList)
첫번째 프로그램 그룹 ID 조회
|
static List<String> |
getFunctionalBtnGrpIdSet(List<ProgrmButtonVO> list)
기능 버튼 그룹 ID 세트 조회
|
static List<org.apache.commons.collections.OrderedMap> |
getFunctionProgramListByUpperProgramId(ProgrmVO rootProgrmVO,
List<ProgrmVO> allProgramList,
String upperMenuId,
boolean isDefaultData)
선택된 메뉴에 매핑되어 있는 기능 리스트 추출
|
static List<org.apache.commons.collections.OrderedMap> |
getHiddenProgramListByProgramId(ProgrmVO rootProgrmVO,
List<ProgrmVO> allProgramList,
String menuId,
boolean isDefaultData)
프로그램 ID별 숨겨진 프로그램 리스트 조회
|
static List<org.apache.commons.collections.OrderedMap> |
getHiddenProgramListByUpperProgramId(ProgrmVO rootProgrmVO,
List<ProgrmVO> allProgramList,
String upperMenuId,
boolean isDefaultData)
선택된 메뉴에 매핑되어 있는 숨김메뉴 리스트 추출
|
static <K,V> Object |
getKey(Map<K,V> in,
V value)
키 조회
|
static int |
getMaxLevel(List<net.ibizsoftware.jwork.component.jtree.model.Node<? extends net.ibizsoftware.jwork.component.jtree.model.JTreeModel>> list,
net.ibizsoftware.jwork.component.jtree.model.JTreeModel treeModel,
String maxBtnGrpCount)
최대 트리 depth 반환
|
static List<ProgrmVO> |
getMenuByProgrmGrpId(List<net.ibizsoftware.jwork.component.jtree.model.Node<? extends net.ibizsoftware.jwork.component.jtree.model.JTreeModel>> oneLevelMenu)
프로그램 그룹 ID별 메뉴 리스트 조회
|
static List<ProgrmVO> |
getMenuEventMappingList(String jsonData)
메뉴-이벤트 매핑 리스트 조회
|
static int |
getMenuLevelCount(List<net.ibizsoftware.jwork.component.jtree.model.Node<? extends net.ibizsoftware.jwork.component.jtree.model.JTreeModel>> list)
최대 메뉴 레벨 개수 반환
|
static List<org.apache.commons.collections.OrderedMap> |
getMenuListByLevel(List<net.ibizsoftware.jwork.component.jtree.model.Node<? extends net.ibizsoftware.jwork.component.jtree.model.JTreeModel>> list,
int level)
특정 레벨의 메뉴 리스트 반환
|
static List<List<org.apache.commons.collections.OrderedMap>> |
getMenuListIn3thLevel(List<net.ibizsoftware.jwork.component.jtree.model.Node<? extends net.ibizsoftware.jwork.component.jtree.model.JTreeModel>> list)
메뉴 리스트 반환 (3depth 까지)
|
static Map<String,ProgrmVO> |
getProgrmGrpMap(List<net.ibizsoftware.jwork.component.jtree.model.Node<? extends net.ibizsoftware.jwork.component.jtree.model.JTreeModel>> menuList)
프로그램 그룹 맵 조회
|
static String |
getRev(String menuPathData)
메뉴 경로 문자열 변환
|
static String |
getTreePathNameExceptString(String menuPathData,
String delimiter,
int depth,
int currentDepth,
boolean isRevert)
문자열 제외 노드 패스 네임 반환
|
static void |
main(String[] args) |
static List<net.ibizsoftware.jwork.component.jtree.model.Node<? extends net.ibizsoftware.jwork.component.jtree.model.JTreeModel>> |
populateButtonList(List<net.ibizsoftware.jwork.component.jtree.model.Node<? extends net.ibizsoftware.jwork.component.jtree.model.JTreeModel>> list)
버튼 리스트 구성
|
static Map<String,List<net.ibizsoftware.jwork.component.jtree.model.Node<? extends net.ibizsoftware.jwork.component.jtree.model.JTreeModel>>> |
rebuildBtnGrpMap(List<net.ibizsoftware.jwork.component.jtree.model.Node<? extends net.ibizsoftware.jwork.component.jtree.model.JTreeModel>> list,
int btnGrpMaxCount)
버튼 그룹 맵 재구성
|
static void |
removeButtonType(List<net.ibizsoftware.jwork.component.jtree.model.Node<? extends net.ibizsoftware.jwork.component.jtree.model.JTreeModel>> result)
버튼 타입 노드 제거
|
static void |
removeButtonTypeFlatList(List<? extends net.ibizsoftware.jwork.component.jtree.model.JTreeModel> result)
flatList에서 버튼 타입 제거
|
static List<ProgrmVO> |
removeFlatNotMenuNode(List<? extends net.ibizsoftware.jwork.component.jtree.model.JTreeModel> list)
메뉴가 아닌 노드 제거 후 리스트 반환
|
static void |
removeRecursiveNotMenuNode(List<net.ibizsoftware.jwork.component.jtree.model.Node<? extends net.ibizsoftware.jwork.component.jtree.model.JTreeModel>> list)
메뉴가 아닌 노드를 제거
|
static <K,V> Map<K,V> |
sort(Map<K,V> in,
Comparator<? super V> compare)
맵 정렬
|
static List<net.ibizsoftware.jwork.component.jtree.model.Node<? extends net.ibizsoftware.jwork.component.jtree.model.JTreeModel>> |
toTreePathFormattedFlatList(List<net.ibizsoftware.jwork.component.jtree.model.Node<? extends net.ibizsoftware.jwork.component.jtree.model.JTreeModel>> list,
net.ibizsoftware.jwork.component.jtree.model.JTreeModel treeModel,
boolean isIncludeHiddenMenu)
트리 경로 형식으로 변환된 flatList 반환
|
static List<net.ibizsoftware.jwork.component.jtree.model.Node<? extends net.ibizsoftware.jwork.component.jtree.model.JTreeModel>> |
toTreePathFormattedFlatListIfOnlyExistingMenuUrl(List<net.ibizsoftware.jwork.component.jtree.model.Node<? extends net.ibizsoftware.jwork.component.jtree.model.JTreeModel>> list,
net.ibizsoftware.jwork.component.jtree.model.JTreeModel treeModel,
boolean isIncludeHiddenMenu)
URL이 존재하는 메뉴만 포함한 트리 경로 형식 flatList 반환
|
static List<net.ibizsoftware.jwork.component.jtree.model.Node<? extends net.ibizsoftware.jwork.component.jtree.model.JTreeModel>> |
toTreePathFormattedFlatListIfOnlyExistingMenuUrlExceptButtonType(List<net.ibizsoftware.jwork.component.jtree.model.Node<? extends net.ibizsoftware.jwork.component.jtree.model.JTreeModel>> list,
net.ibizsoftware.jwork.component.jtree.model.JTreeModel treeModel,
boolean isIncludeHiddenMenu)
버튼 타입을 제외한 URL이 존재하는 메뉴만 포함한 트리 경로 형식 flatList 반환
|
public static net.ibizsoftware.jwork.component.jtree.model.Node<? extends net.ibizsoftware.jwork.component.jtree.model.JTreeModel> findMenuByMenuId(net.ibizsoftware.jwork.component.jtree.model.Node<? extends net.ibizsoftware.jwork.component.jtree.model.JTreeModel> rootNode, String rootMenuId, int depth)
rootNode
- 루트 노드rootMenuId
- 검색할 메뉴 IDdepth
- 검색 깊이public static net.ibizsoftware.jwork.component.jtree.model.Node<? extends net.ibizsoftware.jwork.component.jtree.model.JTreeModel> getAdminNode(List<net.ibizsoftware.jwork.component.jtree.model.Node<? extends net.ibizsoftware.jwork.component.jtree.model.JTreeModel>> list)
list
- 노드 리스트public static int getButtonEventCount(List<net.ibizsoftware.jwork.component.jtree.model.Node<? extends net.ibizsoftware.jwork.component.jtree.model.JTreeModel>> list)
list
- 트리 노드 리스트public static List<List<net.ibizsoftware.jwork.component.grid.model.JGrid<ProgrmButtonVO>>> getButtonGroupTypeProgramList(String upperMenuId, String jsonData)
upperMenuId
- 상위 메뉴 IDjsonData
- JSON 데이터public static List<ProgrmVO> getButtonTypeProgramList(String jsonData)
jsonData
- JSON 문자열public static List<net.ibizsoftware.jwork.component.jtree.model.Node<? extends net.ibizsoftware.jwork.component.jtree.model.JTreeModel>> getDefaultProgrmList(List<net.ibizsoftware.jwork.component.jtree.model.Node<? extends net.ibizsoftware.jwork.component.jtree.model.JTreeModel>> oneLevelMenu)
oneLevelMenu
- 메뉴 리스트public static net.ibizsoftware.jwork.component.jtree.model.Node<? extends net.ibizsoftware.jwork.component.jtree.model.JTreeModel> getDefaultProgrmNode(List<net.ibizsoftware.jwork.component.jtree.model.Node<? extends net.ibizsoftware.jwork.component.jtree.model.JTreeModel>> oneLevelMenu)
oneLevelMenu
- 메뉴 리스트public static List<net.ibizsoftware.jwork.component.jtree.model.Node<? extends net.ibizsoftware.jwork.component.jtree.model.JTreeModel>> getEnabledAdminMenuList(net.ibizsoftware.jwork.component.jtree.model.Node<? extends net.ibizsoftware.jwork.component.jtree.model.JTreeModel> menuNode)
menuNode
- 메뉴 노드public static List<net.ibizsoftware.jwork.component.jtree.model.Node<? extends net.ibizsoftware.jwork.component.jtree.model.JTreeModel>> getEnabledBizMenuList(List<net.ibizsoftware.jwork.component.jtree.model.Node<? extends net.ibizsoftware.jwork.component.jtree.model.JTreeModel>> oneLevelMenu)
oneLevelMenu
- 노드 리스트public static String getFirstProgrmGrpId(List<net.ibizsoftware.jwork.component.jtree.model.Node<? extends net.ibizsoftware.jwork.component.jtree.model.JTreeModel>> menuList)
menuList
- 메뉴 리스트public static List<String> getFunctionalBtnGrpIdSet(List<ProgrmButtonVO> list)
list
- 프로그램 버튼 리스트public static List<org.apache.commons.collections.OrderedMap> getFunctionProgramListByUpperProgramId(ProgrmVO rootProgrmVO, List<ProgrmVO> allProgramList, String upperMenuId, boolean isDefaultData)
allProgramList
- upperMenuId
- isDefaultData
- public static List<org.apache.commons.collections.OrderedMap> getHiddenProgramListByProgramId(ProgrmVO rootProgrmVO, List<ProgrmVO> allProgramList, String menuId, boolean isDefaultData)
rootProgrmVO
- 루트 프로그램 VOallProgramList
- 전체 프로그램 리스트menuId
- 메뉴 IDisDefaultData
- 기본 데이터 여부public static List<org.apache.commons.collections.OrderedMap> getHiddenProgramListByUpperProgramId(ProgrmVO rootProgrmVO, List<ProgrmVO> allProgramList, String upperMenuId, boolean isDefaultData)
allProgramList
- upperMenuId
- isDefaultData
- public static <K,V> Object getKey(Map<K,V> in, V value)
in
- 입력 맵value
- 찾을 값public static int getMaxLevel(List<net.ibizsoftware.jwork.component.jtree.model.Node<? extends net.ibizsoftware.jwork.component.jtree.model.JTreeModel>> list, net.ibizsoftware.jwork.component.jtree.model.JTreeModel treeModel, String maxBtnGrpCount)
list
- 트리 노드 리스트treeModel
- 트리 모델maxBtnGrpCount
- 최대 버튼 그룹 개수public static List<ProgrmVO> getMenuByProgrmGrpId(List<net.ibizsoftware.jwork.component.jtree.model.Node<? extends net.ibizsoftware.jwork.component.jtree.model.JTreeModel>> oneLevelMenu)
oneLevelMenu
- 1레벨 메뉴 리스트public static List<ProgrmVO> getMenuEventMappingList(String jsonData)
jsonData
- JSON 문자열public static int getMenuLevelCount(List<net.ibizsoftware.jwork.component.jtree.model.Node<? extends net.ibizsoftware.jwork.component.jtree.model.JTreeModel>> list)
list
- 트리 노드 리스트public static List<org.apache.commons.collections.OrderedMap> getMenuListByLevel(List<net.ibizsoftware.jwork.component.jtree.model.Node<? extends net.ibizsoftware.jwork.component.jtree.model.JTreeModel>> list, int level)
list
- 트리 노드 리스트level
- 조회할 레벨public static List<List<org.apache.commons.collections.OrderedMap>> getMenuListIn3thLevel(List<net.ibizsoftware.jwork.component.jtree.model.Node<? extends net.ibizsoftware.jwork.component.jtree.model.JTreeModel>> list)
list
- 트리 노드 리스트public static Map<String,ProgrmVO> getProgrmGrpMap(List<net.ibizsoftware.jwork.component.jtree.model.Node<? extends net.ibizsoftware.jwork.component.jtree.model.JTreeModel>> menuList)
menuList
- 메뉴 리스트public static String getRev(String menuPathData)
menuPathData
- 메뉴 경로 데이터public static String getTreePathNameExceptString(String menuPathData, String delimiter, int depth, int currentDepth, boolean isRevert)
menuPathData
- 메뉴 패스 데이터delimiter
- 구분자depth
- currentDepth
- 현재 depthisRevert
- 순서 반전 여부public static void main(String[] args)
public static List<net.ibizsoftware.jwork.component.jtree.model.Node<? extends net.ibizsoftware.jwork.component.jtree.model.JTreeModel>> populateButtonList(List<net.ibizsoftware.jwork.component.jtree.model.Node<? extends net.ibizsoftware.jwork.component.jtree.model.JTreeModel>> list)
list
- 노드 리스트public static Map<String,List<net.ibizsoftware.jwork.component.jtree.model.Node<? extends net.ibizsoftware.jwork.component.jtree.model.JTreeModel>>> rebuildBtnGrpMap(List<net.ibizsoftware.jwork.component.jtree.model.Node<? extends net.ibizsoftware.jwork.component.jtree.model.JTreeModel>> list, int btnGrpMaxCount)
list
- 버튼 노드 리스트btnGrpMaxCount
- 최대 버튼 그룹 개수public static void removeButtonType(List<net.ibizsoftware.jwork.component.jtree.model.Node<? extends net.ibizsoftware.jwork.component.jtree.model.JTreeModel>> result)
result
- 노드 리스트public static void removeButtonTypeFlatList(List<? extends net.ibizsoftware.jwork.component.jtree.model.JTreeModel> result)
result
- 평면화된 리스트public static List<ProgrmVO> removeFlatNotMenuNode(List<? extends net.ibizsoftware.jwork.component.jtree.model.JTreeModel> list)
list
- 트리 모델 리스트public static void removeRecursiveNotMenuNode(List<net.ibizsoftware.jwork.component.jtree.model.Node<? extends net.ibizsoftware.jwork.component.jtree.model.JTreeModel>> list)
list
- 노드 리스트public static <K,V> Map<K,V> sort(Map<K,V> in, Comparator<? super V> compare)
in
- 입력 맵compare
- 비교자public static List<net.ibizsoftware.jwork.component.jtree.model.Node<? extends net.ibizsoftware.jwork.component.jtree.model.JTreeModel>> toTreePathFormattedFlatList(List<net.ibizsoftware.jwork.component.jtree.model.Node<? extends net.ibizsoftware.jwork.component.jtree.model.JTreeModel>> list, net.ibizsoftware.jwork.component.jtree.model.JTreeModel treeModel, boolean isIncludeHiddenMenu)
list
- 트리 노드 리스트treeModel
- 트리 모델isIncludeHiddenMenu
- 숨김 메뉴 포함 여부public static List<net.ibizsoftware.jwork.component.jtree.model.Node<? extends net.ibizsoftware.jwork.component.jtree.model.JTreeModel>> toTreePathFormattedFlatListIfOnlyExistingMenuUrl(List<net.ibizsoftware.jwork.component.jtree.model.Node<? extends net.ibizsoftware.jwork.component.jtree.model.JTreeModel>> list, net.ibizsoftware.jwork.component.jtree.model.JTreeModel treeModel, boolean isIncludeHiddenMenu)
list
- 트리 노드 리스트treeModel
- 트리 모델isIncludeHiddenMenu
- 숨김 메뉴 포함 여부public static List<net.ibizsoftware.jwork.component.jtree.model.Node<? extends net.ibizsoftware.jwork.component.jtree.model.JTreeModel>> toTreePathFormattedFlatListIfOnlyExistingMenuUrlExceptButtonType(List<net.ibizsoftware.jwork.component.jtree.model.Node<? extends net.ibizsoftware.jwork.component.jtree.model.JTreeModel>> list, net.ibizsoftware.jwork.component.jtree.model.JTreeModel treeModel, boolean isIncludeHiddenMenu)
list
- 트리 노드 리스트treeModel
- 트리 모델isIncludeHiddenMenu
- 숨김 메뉴 포함 여부Copyright © 2025. All rights reserved.