Package com.easydesk.web.support
Class AttributeGroupAttributeSupport
java.lang.Object
com.easydesk.web.support.AttributeGroupAttributeSupport
어떤 AttributeGroup 에 등록 가능한 Attribute 목록(RequestAttribute, "이미 등록된 건 체크"
형태)을 만드는 공용 로직.
ModuleAdminController(Module ItemType 쪽 - ModuleAttribute)와 ItemTypeAdminController
(Global ItemType 쪽 - ItemTypeAttribute) 둘 다 group 을 어디서 얻어오는지만 다를 뿐, "이 group
에 이미 등록된 Attribute는 체크 표시, 아니면 미체크"인 화면 데이터를 만드는 방식은 완전히
같아서 여기로 뽑았다. (전에 RequestAttributeMapper 를 손보다가 겪었던 것처럼, 같은 로직을
컨트롤러마다 복붙해두면 한쪽만 고치고 다른 쪽을 빼먹는 사고가 나기 쉬워서 미리 공용화함.)
-
Method Summary
Modifier and TypeMethodDescriptionstatic List<RequestAttribute> getRequestAttribute(AttributeGroup group, boolean userAttributeOrNot)
-
Method Details
-
getRequestAttribute
public static List<RequestAttribute> getRequestAttribute(AttributeGroup group, boolean userAttributeOrNot) throws Exception - Throws:
Exception
-