Package org.camunda.bpm.engine.rest.hal
Class HalResource<T extends HalResource<?>>
java.lang.Object
org.camunda.bpm.engine.rest.hal.HalResource<T>
- Direct Known Subclasses:
EmptyHalResource
,HalCaseDefinition
,HalCollectionResource
,HalGroup
,HalIdentityLink
,HalProcessDefinition
,HalTask
,HalTenant
,HalUser
,HalUserList
,HalVariableValue
Base class for implementing a HAL resource as defined in
json-hal-06#section-4
- Author:
- Daniel Meyer
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addEmbedded
(String name, List<HalResource<?>> embeddedCollection) void
addEmbedded
(String name, HalResource<?> embedded) void
void
embed
(HalRelation relation, ProcessEngine processEngine) Can be used to embed a relation.getEmbedded
(String name)
-
Field Details
-
_links
This resource links -
_embedded
Embedded resources -
linker
-
-
Constructor Details
-
HalResource
public HalResource()
-
-
Method Details
-
get_links
-
get_embedded
-
addLink
-
addLink
-
addEmbedded
-
addEmbedded
-
getEmbedded
-
embed
Can be used to embed a relation. Embedded all linked resources in the given relation.- Parameters:
relation
- the relation to embeddedprocessEngine
- used to resolve the resources- Returns:
- the resource itself.
-