Class HalIdResourceCacheLinkResolver
- java.lang.Object
-
- org.camunda.bpm.engine.rest.hal.cache.HalCachingLinkResolver
-
- org.camunda.bpm.engine.rest.hal.cache.HalIdResourceCacheLinkResolver
-
- All Implemented Interfaces:
HalLinkResolver
- Direct Known Subclasses:
HalCaseDefinitionResolver
,HalGroupResolver
,HalProcessDefinitionResolver
,HalUserResolver
public abstract class HalIdResourceCacheLinkResolver extends HalCachingLinkResolver
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
HalIdResourceCacheLinkResolver.HalIdResourceComparator
-
Field Summary
Fields Modifier and Type Field Description static java.util.Comparator<HalResource<?>>
ID_COMPARATOR
-
Constructor Summary
Constructors Constructor Description HalIdResourceCacheLinkResolver()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.util.Comparator<HalResource<?>>
getResourceComparator()
protected java.lang.String
getResourceId(HalResource<?> resource)
-
Methods inherited from class org.camunda.bpm.engine.rest.hal.cache.HalCachingLinkResolver
getCache, getHalResourceClass, putIntoCache, resolveCachedLinks, resolveLinks, resolveNotCachedLinks, sortResolvedResources
-
-
-
-
Field Detail
-
ID_COMPARATOR
public static final java.util.Comparator<HalResource<?>> ID_COMPARATOR
-
-
Method Detail
-
getResourceId
protected java.lang.String getResourceId(HalResource<?> resource)
- Specified by:
getResourceId
in classHalCachingLinkResolver
- Returns:
- the id which identifies a resource in the cache
-
getResourceComparator
protected java.util.Comparator<HalResource<?>> getResourceComparator()
- Overrides:
getResourceComparator
in classHalCachingLinkResolver
- Returns:
- a comparator for this HAL resource if not overridden sorting is skipped
-
-