|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.camunda.bpm.engine.rest.hal.cache.HalCachingLinkResolver
public abstract class HalCachingLinkResolver
| Constructor Summary | |
|---|---|
HalCachingLinkResolver()
|
|
| Method Summary | |
|---|---|
protected Cache |
getCache()
|
protected abstract Class<?> |
getHalResourceClass()
|
protected Comparator<HalResource<?>> |
getResourceComparator()
|
protected abstract String |
getResourceId(HalResource<?> resource)
|
protected void |
putIntoCache(List<HalResource<?>> notCachedResources)
Put a resource into the cache. |
protected List<HalResource<?>> |
resolveCachedLinks(String[] linkedIds,
Cache cache,
List<String> notCachedLinkedIds)
Returns a list with all resources which are cached. |
List<HalResource<?>> |
resolveLinks(String[] linkedIds,
ProcessEngine processEngine)
Resolve resources for linked ids, if configured uses a cache. |
protected abstract List<HalResource<?>> |
resolveNotCachedLinks(String[] linkedIds,
ProcessEngine processEngine)
|
protected void |
sortResolvedResources(List<HalResource<?>> resolvedResources)
Sort the resolved resources to ensure consistent order of resolved resources. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public HalCachingLinkResolver()
| Method Detail |
|---|
public List<HalResource<?>> resolveLinks(String[] linkedIds,
ProcessEngine processEngine)
resolveLinks in interface HalLinkResolverprotected void sortResolvedResources(List<HalResource<?>> resolvedResources)
protected Cache getCache()
protected List<HalResource<?>> resolveCachedLinks(String[] linkedIds,
Cache cache,
List<String> notCachedLinkedIds)
linkedIds - the ids to resolvecache - the cache to usenotCachedLinkedIds - a list with ids which are not found in the cache
protected void putIntoCache(List<HalResource<?>> notCachedResources)
protected abstract Class<?> getHalResourceClass()
protected Comparator<HalResource<?>> getResourceComparator()
protected abstract List<HalResource<?>> resolveNotCachedLinks(String[] linkedIds,
ProcessEngine processEngine)
protected abstract String getResourceId(HalResource<?> resource)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||