Package com.easydesk.om.manager
Class ItemManager
java.lang.Object
org.apache.torque.manager.AbstractBaseManager<Item>
com.easydesk.om.manager.base.BaseItemManager
com.easydesk.om.manager.ItemManager
- All Implemented Interfaces:
Serializable,CacheListener<Persistent>
ItemManager
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final StringDOCUMENT ME!protected static final StringDOCUMENT ME!protected static final StringDOCUMENT ME!protected static final StringDOCUMENT ME!protected static final StringDOCUMENT ME!Fields inherited from class com.easydesk.om.manager.base.BaseItemManager
DEFAULT_MANAGER_CLASS, MANAGED_CLASSFields inherited from class org.apache.torque.manager.AbstractBaseManager
cache, groupCache, log, mrCache -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidRefresh and Update Local CachegetAllInstance(Module module, ItemType itemType) DOCUMENT ME!static ItemgetInstance(Artifactizable artifactizable) Artifactizable 을 표현하고 있는 Item Object 을 구한다.static ItemgetInstance(Artifactizable artifactizable, Module module) Artifactizable 을 표현하고 있는 Item Object 을 구한다.fields which interest us with respect to cache eventsstatic ItemFederatedId 에 해당하는 item 을 구한다.static ItemgetItemById(String uniqueId) If the id is not specified, return null otherwise return the item object. id 는 unique id (형식은Item.ID_PATTERN참고)static ItemgetItemById(String id, String defaultCode) If the id is not specified, return null otherwise return the item object. if the id does not have a character prefix the default code is prependedFederatedId 의 prefix, count, domain 으로 item 을 조회한다.static ArtifactizablegetOMInstance(Item item) item 이 표현하고 있는 Artifactizable Object 을 구한다.voidNotify to All and update local cacheprotected voidNotify other managers with relevant CacheEvents.voidDOCUMENT ME!Methods inherited from class com.easydesk.om.manager.base.BaseItemManager
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, setRegion
-
Field Details
-
ARTIFACTIZABLE_MANAGER_NAME
DOCUMENT ME!- See Also:
-
ITEM_MANAGER_NAME
DOCUMENT ME!- See Also:
-
GET_INSTANCE_IMPL
DOCUMENT ME!- See Also:
-
GET_ITEM_BY_ID_IMPL
DOCUMENT ME!- See Also:
-
GET_ALL_INSTANCE
DOCUMENT ME!- See Also:
-
-
Constructor Details
-
ItemManager
Creates a newItemManagerinstance.- Throws:
TorqueException- if an error occurs
-
-
Method Details
-
getAllInstance
DOCUMENT ME!- Parameters:
module- DOCUMENT ME!itemType- DOCUMENT ME!- Returns:
- DOCUMENT ME!
- Throws:
TorqueException- DOCUMENT ME!
-
getInstance
Artifactizable 을 표현하고 있는 Item Object 을 구한다.- Parameters:
artifactizable- 대상 Artifactizable- Returns:
- Item
- Throws:
TorqueException- 조회 중 오류가 발생한 경우
-
getInstance
Artifactizable 을 표현하고 있는 Item Object 을 구한다. TODO @ManagerCache 적용.- Parameters:
artifactizable- 대상 Artifactizablemodule- Artifact item 이 속한 Module- Returns:
- Item
- Throws:
TorqueException- 조회 중 오류가 발생한 경우
-
getOMInstance
public static Artifactizable getOMInstance(Item item) throws TorqueException, ArtifactUndefinedException, IllegalArgumentException item 이 표현하고 있는 Artifactizable Object 을 구한다.- Parameters:
item- Artifact item- Returns:
- Artifactizable
- Throws:
TorqueException- 조회 중 오류가 발생한 경우ArtifactUndefinedException- item 에 대응하는 Artifactizable 이 정의되어 있지 않은 경우IllegalArgumentException- item 이null이거나 새 item 인 경우
-
getItemById
If the id is not specified, return null otherwise return the item object. if the id does not have a character prefix the default code is prepended- Parameters:
id- item iddefaultCode- id 에 prefix 가 없을 때 붙일 module code- Returns:
- Item, id 가
null이면null - Throws:
Exception- 조회 중 오류가 발생한 경우
-
getItemById
If the id is not specified, return null otherwise return the item object. id 는 unique id (형식은Item.ID_PATTERN참고)- Parameters:
uniqueId- id- Returns:
- Item
- Throws:
Exception- 조회 중 오류가 발생한 경우
-
getItemById
FederatedId 에 해당하는 item 을 구한다.- Parameters:
fid- item 의 FederatedId- Returns:
- Item
- Throws:
Exception- 조회 중 오류가 발생한 경우
-
getItemByIdImpl
FederatedId 의 prefix, count, domain 으로 item 을 조회한다. 결과는 method result cache 에 보관한다.- Parameters:
fid- item 의 FederatedId- Returns:
- Item
- Throws:
TorqueException- 조회 중 오류가 발생한 경우
-
registerAsListener
protected void registerAsListener()Notify other managers with relevant CacheEvents.- Overrides:
registerAsListenerin classAbstractBaseManager<Item>
-
addedObject
Refresh and Update Local Cache- Specified by:
addedObjectin interfaceCacheListener<Persistent>- Parameters:
om- Description of the Parameter
-
refreshedObject
Notify to All and update local cache- Specified by:
refreshedObjectin interfaceCacheListener<Persistent>- Parameters:
om- Description of the Parameter
-
removedObject
DOCUMENT ME!- Specified by:
removedObjectin interfaceCacheListener<Persistent>- Parameters:
om- DOCUMENT ME!
-
getInterestedFields
fields which interest us with respect to cache events- Specified by:
getInterestedFieldsin interfaceCacheListener<Persistent>- Returns:
- The interestedFields value
-