Package com.easydesk.modules.mapper
Interface RequestAttributeMapper
- All Known Implementing Classes:
RequestAttributeMapperImpl
public interface RequestAttributeMapper
// [사용 예시]
RequestAttribute record = new RequestAttribute("홍길동", 25, "hong@example.com");
// 1. 새로운 Bean 생성 및 전달
EasyDeskUserImplBean bean = RequestAttributeMapper.INSTANCE.toBean(record);
// 2. 기존 Bean에 덮어쓰기
EasyDeskUserImpl existingBean = new EasyDeskUserImpl();
RequestAttributeMapper.INSTANCE.updateBeanFromRecord(record, existingBean);
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptioncopyWithBean(RequestAttribute record, AttributeGroup bean) record 의 attributeId/name/typeId 는 그대로 유지하면서, 이 attribute 가 실제로 bean(AttributeGroup) 에 등록되어 있는 경우에만 groupId 를 채워 넣는다 (등록되어 있지 않으면 null).toBean(RequestAttribute record) default RequestAttributerecord 로 표현된 attribute 가 bean(AttributeGroup) 에 실제로 등록되어 있는지 join table(EASYDESK_ATTRIBUTE_ATTRGROUP) 을 직접 조회해서 확인한다.default List<RequestAttribute> toRecordAndCopyWithAttrGroup(List<Attribute> beans, AttributeGroup ag) toRecordList(List<Attribute> attributes) voidupdateBeanFromRecord(RequestAttribute record, Attribute bean)
-
Field Details
-
INSTANCE
-
-
Method Details
-
toBean
-
toRecord
-
toRecordList
-
updateBeanFromRecord
-
copyWithBean
record 의 attributeId/name/typeId 는 그대로 유지하면서, 이 attribute 가 실제로 bean(AttributeGroup) 에 등록되어 있는 경우에만 groupId 를 채워 넣는다 (등록되어 있지 않으면 null). -
toRecordAndCopyWithAttrGroup
record 로 표현된 attribute 가 bean(AttributeGroup) 에 실제로 등록되어 있는지 join table(EASYDESK_ATTRIBUTE_ATTRGROUP) 을 직접 조회해서 확인한다. (AttributeGroup.getAttributeAttributeGroup() 은 User type attribute 를 일부러 제외하도록 되어 있어서 여기서는 사용하지 않고, 직접 조회한다.) expression 예제 ) -
toRecordAndCopyWithAttrGroup
default List<RequestAttribute> toRecordAndCopyWithAttrGroup(List<Attribute> beans, AttributeGroup ag)
-