Package com.easydesk.om.manager
Interface OptionableManager<T extends Persistent>
- Type Parameters:
T- AttributeOption 에 mapping 되는 OM type
- All Known Implementing Classes:
ActivitySetTypeManager,AttachmentTypeManager,AttributeGroupTypeManager,AttributeManager,AttributeTypeManager,DependTypeManager,EasyDeskPermissionManager,EasyDeskRoleManager,ItemTypeManager,OptionRelationshipManager,ScopeManager,TimeScopeManager
public interface OptionableManager<T extends Persistent>
이 interface 는 AttributeOption 에 Mapping 되는 OM 을 기술한다. OMManager 에
getInstanceImpl(String name) 이 존재하여야 한다. method name 에 Impl 을 붙히는 이유는 static
method 로 대응 getInstance(String name) 을 만들기 때문 static method 로 getByName 이
존재하여야 한다.
- Author:
- Youngho Cho
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptiongetChildrenImpl(AttributeOption option) AttributeOption 의 자식 option 들에 해당하는 optionable 목록을 구한다.getInstanceImpl(AttributeOption option) AttributeOption 에 해당하는 optionable 을 구한다.getInstanceImpl(String name) 이름에 해당하는 optionable 을 구한다.
-
Field Details
-
GET_BY_NAME
static method 로 getByName 이 존재하여야 한다. 주의하여야 할 것은 optionable 은 parent-child relationship 에 의하여 '이름/이름' 과 같이 동일한 이름을 지원하지만 일부 optionable 은 이름이 unique 하다. ( '소유자/소유자' 는 존재하지 않는다. )- See Also:
-
-
Method Details
-
getInstanceImpl
이름에 해당하는 optionable 을 구한다.- Parameters:
name- optionable 이름- Returns:
- optionable
- Throws:
UnknownEntityException- 이름에 해당하는 optionable 이 없는 경우
-
getInstanceImpl
AttributeOption 에 해당하는 optionable 을 구한다.- Parameters:
option- 대상 AttributeOption- Returns:
- optionable
- Throws:
UnknownEntityException- option 에 해당하는 optionable 이 없는 경우
-
getChildrenImpl
AttributeOption 의 자식 option 들에 해당하는 optionable 목록을 구한다.- Parameters:
option- 부모 AttributeOption- Returns:
- child optionable list
- Throws:
TorqueException- 조회 중 오류가 발생한 경우
-