Class EntityViewLinkBuilder
java.lang.Object
com.foreach.across.modules.entity.web.links.EntityViewLinkBuilderSupport<EntityViewLinkBuilder>
com.foreach.across.modules.entity.web.links.EntityViewLinkBuilder
- All Implemented Interfaces:
EntityLinkBuilder
- Direct Known Subclasses:
EntityViewLinkBuilder.ForEntityAssociation
,EntityViewLinkBuilder.ForEntityConfiguration
public abstract class EntityViewLinkBuilder
extends EntityViewLinkBuilderSupport<EntityViewLinkBuilder>
implements EntityLinkBuilder
Core link building entry point for an entity type.
Implements the deprecated
EntityLinkBuilder
to ensure backwards compatibility.- Since:
- 3.0.0
- Author:
- Arne Vandamme
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
static class
-
Field Summary
Fields inherited from class com.foreach.across.modules.entity.web.links.EntityViewLinkBuilderSupport
links
-
Constructor Summary
ModifierConstructorDescriptionprotected
EntityViewLinkBuilder
(org.springframework.web.util.UriComponentsBuilder uriComponents, EntityViewLinks links) -
Method Summary
Modifier and TypeMethodDescriptionabstract EntityLinkBuilder
asAssociationFor
(EntityLinkBuilder sourceLinkBuilder, Object sourceEntity) Deprecated.associations
(Object entity) Deprecated.create()
Deprecated.Deprecated.abstract SingleEntityViewLinkBuilder
forInstance
(@NonNull Object entity) listView()
overview()
Deprecated.Deprecated.Deprecated.abstract SingleEntityViewLinkBuilder
Methods inherited from class com.foreach.across.modules.entity.web.links.EntityViewLinkBuilderSupport
cloneLinkBuilder, root, slash, toString, toUri, toUriComponents, toUriComponentsBuilder, toUriString, withFromUrl, withPartial, withQueryParam, withViewName
-
Constructor Details
-
EntityViewLinkBuilder
protected EntityViewLinkBuilder(org.springframework.web.util.UriComponentsBuilder uriComponents, EntityViewLinks links)
-
-
Method Details
-
listView
- Returns:
- default list view for the instance
-
createView
- Returns:
- create new instance view
-
overview
Deprecated.- Specified by:
overview
in interfaceEntityLinkBuilder
- Returns:
- link to the overview/list page
-
create
Deprecated.- Specified by:
create
in interfaceEntityLinkBuilder
- Returns:
- link to create-new page
-
update
Deprecated.- Specified by:
update
in interfaceEntityLinkBuilder
- Parameters:
entity
- being updated- Returns:
- link to update page for entity
-
delete
Deprecated.- Specified by:
delete
in interfaceEntityLinkBuilder
- Parameters:
entity
- being deleted- Returns:
- link to delete page for entity
-
view
Deprecated.- Specified by:
view
in interfaceEntityLinkBuilder
- Parameters:
entity
- being viewed- Returns:
- link to view page for entity
-
associations
Deprecated.- Specified by:
associations
in interfaceEntityLinkBuilder
- Parameters:
entity
- being viewed- Returns:
- base link for associations
-
asAssociationFor
@Deprecated public abstract EntityLinkBuilder asAssociationFor(EntityLinkBuilder sourceLinkBuilder, Object sourceEntity) Deprecated.Description copied from interface:EntityLinkBuilder
Creates a new link builder that represents the current linkbuilder as an association from a source entity, this will useEntityLinkBuilder.associations(Object)
on the source link builder for prefixing the current link builder.- Specified by:
asAssociationFor
in interfaceEntityLinkBuilder
-
forInstance
- Parameters:
entity
- of the entity that is the base of the uri path- Returns:
- existing entity view
-
withId
- Parameters:
id
- of the entity that is the base of the uri path- Returns:
- existing entity view
-