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 Class<?>getHalResourceClass()protected StringgetResourceId(HalResource<?> resource)protected voidputIntoCache(List<HalResource<?>> notCachedResources)Put a resource into the cache.List<HalResource<?>>resolveLinks(String[] linkedIds, ProcessEngine processEngine)Resolve resources for linked ids, if configured uses a cache.protected List<HalResource<?>>resolveNotCachedLinks(String[] linkedIds, ProcessEngine processEngine)-
Methods inherited from class org.camunda.bpm.engine.rest.hal.cache.HalCachingLinkResolver
getCache, getResourceComparator, resolveCachedLinks, sortResolvedResources
-
-
-
-
Method Detail
-
getHalResourceClass
protected Class<?> getHalResourceClass()
- Specified by:
getHalResourceClassin classHalCachingLinkResolver- Returns:
- the class of the entity which is resolved
-
resolveLinks
public List<HalResource<?>> resolveLinks(String[] linkedIds, ProcessEngine processEngine)
Description copied from class:HalCachingLinkResolverResolve resources for linked ids, if configured uses a cache.- Specified by:
resolveLinksin interfaceHalLinkResolver- Overrides:
resolveLinksin classHalCachingLinkResolver
-
resolveNotCachedLinks
protected List<HalResource<?>> resolveNotCachedLinks(String[] linkedIds, ProcessEngine processEngine)
- Specified by:
resolveNotCachedLinksin classHalCachingLinkResolver- Returns:
- the resolved resources which are currently not cached
-
putIntoCache
protected void putIntoCache(List<HalResource<?>> notCachedResources)
Description copied from class:HalCachingLinkResolverPut a resource into the cache.- Overrides:
putIntoCachein classHalCachingLinkResolver
-
getResourceId
protected String getResourceId(HalResource<?> resource)
- Specified by:
getResourceIdin classHalCachingLinkResolver- Returns:
- the id which identifies a resource in the cache
-
-