Class HalIdentityLinkResolver
- java.lang.Object
-
- org.camunda.bpm.engine.rest.hal.cache.HalCachingLinkResolver
-
- org.camunda.bpm.engine.rest.hal.identitylink.HalIdentityLinkResolver
-
- All Implemented Interfaces:
HalLinkResolver
public class HalIdentityLinkResolver extends HalCachingLinkResolver
-
-
Constructor Summary
Constructors Constructor Description HalIdentityLinkResolver()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.lang.Class<?>
getHalResourceClass()
protected java.lang.String
getResourceId(HalResource<?> resource)
protected void
putIntoCache(java.util.List<HalResource<?>> notCachedResources)
Put a resource into the cache.java.util.List<HalResource<?>>
resolveLinks(java.lang.String[] linkedIds, ProcessEngine processEngine)
Resolve resources for linked ids, if configured uses a cache.protected java.util.List<HalResource<?>>
resolveNotCachedLinks(java.lang.String[] linkedIds, ProcessEngine processEngine)
-
Methods inherited from class org.camunda.bpm.engine.rest.hal.cache.HalCachingLinkResolver
getCache, getResourceComparator, resolveCachedLinks, sortResolvedResources
-
-
-
-
Method Detail
-
getHalResourceClass
protected java.lang.Class<?> getHalResourceClass()
- Specified by:
getHalResourceClass
in classHalCachingLinkResolver
- Returns:
- the class of the entity which is resolved
-
resolveLinks
public java.util.List<HalResource<?>> resolveLinks(java.lang.String[] linkedIds, ProcessEngine processEngine)
Description copied from class:HalCachingLinkResolver
Resolve resources for linked ids, if configured uses a cache.- Specified by:
resolveLinks
in interfaceHalLinkResolver
- Overrides:
resolveLinks
in classHalCachingLinkResolver
-
resolveNotCachedLinks
protected java.util.List<HalResource<?>> resolveNotCachedLinks(java.lang.String[] linkedIds, ProcessEngine processEngine)
- Specified by:
resolveNotCachedLinks
in classHalCachingLinkResolver
- Returns:
- the resolved resources which are currently not cached
-
putIntoCache
protected void putIntoCache(java.util.List<HalResource<?>> notCachedResources)
Description copied from class:HalCachingLinkResolver
Put a resource into the cache.- Overrides:
putIntoCache
in classHalCachingLinkResolver
-
getResourceId
protected java.lang.String getResourceId(HalResource<?> resource)
- Specified by:
getResourceId
in classHalCachingLinkResolver
- Returns:
- the id which identifies a resource in the cache
-
-