|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.camunda.bpm.engine.rest.hal.HalLinker
public class HalLinker
A stateful linker which collects information about the links it creates.
| Field Summary | |
|---|---|
protected Hal |
hal
|
protected HalResource<?> |
resource
The HalResource on which the links are constructed |
| Constructor Summary | |
|---|---|
HalLinker(Hal hal,
HalResource<?> resource)
|
|
| Method Summary | |
|---|---|
void |
createLink(HalRelation rel,
String... pathParams)
Creates a link in a given relation. |
Set<HalRelation> |
getLinkedRelations()
|
Set<String> |
getLinkedResourceIdsByRelation(HalRelation relation)
|
void |
mergeLinks(HalResource<?> embedded)
merge the links of an embedded resource into this linker. |
List<HalResource<?>> |
resolve(HalRelation relation,
ProcessEngine processEngine)
Resolves a relation. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected final Hal hal
protected final HalResource<?> resource
| Constructor Detail |
|---|
public HalLinker(Hal hal,
HalResource<?> resource)
| Method Detail |
|---|
public void createLink(HalRelation rel,
String... pathParams)
rel - the HalRelation for which a link should be constructedpathParams - the path params to populate the url template with.public Set<HalRelation> getLinkedRelations()
public Set<String> getLinkedResourceIdsByRelation(HalRelation relation)
public List<HalResource<?>> resolve(HalRelation relation,
ProcessEngine processEngine)
relation - the relation to resolveprocessEngine - the process engine to use
RuntimeException - if no HalLinkResolver can be found for the linked resource type.public void mergeLinks(HalResource<?> embedded)
embedded - the embedded resource for which the links should be merged into this linker.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||