Package com.easydesk.om.manager
Class AttributeManager
java.lang.Object
org.apache.torque.manager.AbstractBaseManager<Attribute>
com.easydesk.om.manager.base.BaseAttributeManager
com.easydesk.om.manager.AttributeManager
- All Implemented Interfaces:
ArtifactizableManager<Attribute>,OptionableManager<Attribute>,Serializable,CacheListener<Persistent>
public class AttributeManager
extends BaseAttributeManager
implements ArtifactizableManager<Attribute>, CacheListener<Persistent>, OptionableManager<Attribute>
AttributeManager
- See Also:
-
Field Summary
Fields inherited from class com.easydesk.om.manager.base.BaseAttributeManager
DEFAULT_MANAGER_CLASS, MANAGED_CLASSFields inherited from class org.apache.torque.manager.AbstractBaseManager
cache, groupCache, log, mrCacheFields inherited from interface com.easydesk.om.manager.ArtifactizableManager
GET_ALL_INSTANCE, GET_ALL_METHOD_NAMEFields inherited from interface com.easydesk.om.manager.OptionableManager
GET_BY_NAME -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidRefresh and Update Local CachegetAttributes(boolean includeSystemDefined) ItemTypeManager.getItemTypes(boolean) 와 동일한 패턴이다. includeSystemDefined=false 로 호출하면 core 의 AttributeEnum 에 정의되지 않은(즉 화면에서 이후 새로 추가한 "실험실" 성격의) Attribute 만 걸러서 반환한다.getAttributes(String attributeType) TODO : @ManagerCachedstatic Attribute[]이름에 해당하는 instance 를 구한다.getChildren(AttributeOption option) DOCUMENT ME!getChildrenImpl(AttributeOption option) AttributeOption 의 자식 option 들에 해당하는 optionable 목록을 구한다.모든 ItemType 에 공통으로 사용하는 Attribute 목록을 구한다.getInstanceImpl(AttributeOption option) AttributeOption 에 해당하는 optionable 을 구한다.getInstanceImpl(String name) 이름에 해당하는 optionable 을 구한다.DOCUMENT ME!static AttributegetNewInstance(Item item) DOCUMENT ME!voidDOCUMENT ME!voidDOCUMENT ME!protected voidNotify other managers with relevant CacheEvents.voidDOCUMENT ME!Methods inherited from class com.easydesk.om.manager.base.BaseAttributeManager
addCacheListener, clear, exists, existsImpl, getCachedInstance, getInstance, getInstance, getInstance, getInstance, getInstance, getInstances, getInstances, getManager, getMethodResult, putInstance, retrieveStoredOM, retrieveStoredOMsMethods inherited from class org.apache.torque.manager.AbstractBaseManager
addCacheListenerImpl, addValidField, cacheGet, clearImpl, dispose, getClassName, getMethodResultCache, getOMClass, getOMInstance, getOMInstance, getOMInstance, getOMs, getOMs, getOMs, getRegion, notifyListeners, putInstanceImpl, putInstanceImpl, removeInstanceImpl, setClassName, setOMClass, setRegionMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.easydesk.om.manager.ArtifactizableManager
getAllInstance, getMethodResultCache
-
Constructor Details
-
AttributeManager
Creates a newAttributeManagerinstance.- Throws:
TorqueException- if an error occurs
-
-
Method Details
-
registerAsListener
protected void registerAsListener()Notify other managers with relevant CacheEvents.- Overrides:
registerAsListenerin classAbstractBaseManager<Attribute>
-
notifyListeners
DOCUMENT ME!- Parameters:
om- DOCUMENT ME!
-
addedObject
Refresh and Update Local Cache- Specified by:
addedObjectin interfaceCacheListener<Persistent>- Parameters:
om- Description of the Parameter
-
refreshedObject
DOCUMENT ME!- Specified by:
refreshedObjectin interfaceCacheListener<Persistent>- Parameters:
om- DOCUMENT ME!
-
removedObject
DOCUMENT ME!- Specified by:
removedObjectin interfaceCacheListener<Persistent>- Parameters:
om- DOCUMENT ME!
-
getInterestedFields
DOCUMENT ME!- Specified by:
getInterestedFieldsin interfaceCacheListener<Persistent>- Returns:
- DOCUMENT ME!
-
getInstanceImpl
이름에 해당하는 optionable 을 구한다.- Specified by:
getInstanceImplin interfaceOptionableManager<Attribute>- Parameters:
name- optionable 이름- Returns:
- optionable
- Throws:
UnknownEntityException- 이름에 해당하는 optionable 이 없는 경우
-
getInstanceImpl
AttributeOption 에 해당하는 optionable 을 구한다.- Specified by:
getInstanceImplin interfaceOptionableManager<Attribute>- Parameters:
option- 대상 AttributeOption- Returns:
- optionable
- Throws:
UnknownEntityException- option 에 해당하는 optionable 이 없는 경우
-
getChildrenImpl
AttributeOption 의 자식 option 들에 해당하는 optionable 목록을 구한다.- Specified by:
getChildrenImplin interfaceOptionableManager<Attribute>- Parameters:
option- 부모 AttributeOption- Returns:
- child optionable list
- Throws:
TorqueException- 조회 중 오류가 발생한 경우
-
getChildren
DOCUMENT ME!- Parameters:
option- DOCUMENT ME!- Returns:
- DOCUMENT ME!
- Throws:
TorqueException- DOCUMENT ME!
-
getByName
이름에 해당하는 instance 를 구한다. 같은 이름이 여러 개이면 첫 번째를 반환한다.- Parameters:
name- 찾을 이름- Returns:
- 이름에 해당하는 Attribute
-
getCommonAttributes
모든 ItemType 에 공통으로 사용하는 Attribute 목록을 구한다. TODO : @ManagerCached- Returns:
- 공통 Attribute 목록
- Throws:
TorqueException- 조회 중 오류가 발생한 경우
-
getAttributes
TODO : @ManagerCached- Parameters:
attributeType- DOCUMENT ME!- Returns:
- DOCUMENT ME!
- Throws:
TorqueException- DOCUMENT ME!
-
getAttributes
ItemTypeManager.getItemTypes(boolean) 와 동일한 패턴이다. includeSystemDefined=false 로 호출하면 core 의 AttributeEnum 에 정의되지 않은(즉 화면에서 이후 새로 추가한 "실험실" 성격의) Attribute 만 걸러서 반환한다.- Parameters:
includeSystemDefined- false 이면 AttributeEnum 에 없는 Attribute 만 반환- Returns:
- DOCUMENT ME!
- Throws:
TorqueException- DOCUMENT ME!
-
getNewInstance
- Parameters:
item-- Throws:
Exception
-
getOMInstanceForArtifactizable
DOCUMENT ME!- Specified by:
getOMInstanceForArtifactizablein interfaceArtifactizableManager<Attribute>- Returns:
- DOCUMENT ME!
- Throws:
TorqueException- instance 생성 중 오류가 발생한 경우
-