Class SingleEntityViewLinkBuilder
java.lang.Object
com.foreach.across.modules.entity.web.links.EntityViewLinkBuilderSupport<SingleEntityViewLinkBuilder>
com.foreach.across.modules.entity.web.links.SingleEntityViewLinkBuilder
- Direct Known Subclasses:
SingleEntityViewLinkBuilder.ForEntityAssociation
,SingleEntityViewLinkBuilder.ForEntityConfiguration
public abstract class SingleEntityViewLinkBuilder
extends EntityViewLinkBuilderSupport<SingleEntityViewLinkBuilder>
- 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
-
Method Summary
Modifier and TypeMethodDescriptionabstract EntityViewLinkBuilder
association
(@NonNull EntityConfiguration targetConfiguration) Create a link builder for an association.final EntityViewLinkBuilder
association
(@NonNull Class<?> targetType) Create a link builder for an association.abstract SingleEntityViewLinkBuilder
association
(Object target) Create a link builder for an associated entity.abstract EntityViewLinkBuilder
association
(String associationName) Create a link builder for an association.Methods inherited from class com.foreach.across.modules.entity.web.links.EntityViewLinkBuilderSupport
cloneLinkBuilder, root, slash, toString, toUri, toUriComponents, toUriComponentsBuilder, toUriString, withFromUrl, withPartial, withQueryParam, withViewName
-
Method Details
-
updateView
- Returns:
- update view for the current instance
-
deleteView
- Returns:
- delete view for the current instance
-
association
Create a link builder for an association. If there is no actualEntityAssociation
available, the name will be interpreted as a regularEntityConfiguration
instead and a link builder with afrom
parameter will be returned to the target entity configuration.- Parameters:
associationName
- name of the association- Returns:
- new link builder
-
association
Create a link builder for an association. Will use the first non-hidden association for the target type. If there is more than one, you should useassociation(String)
instead. If there is no actualEntityAssociation
available, the name will be interpreted as a regularEntityConfiguration
instead and a link builder with afrom
parameter will be returned to the target entity configuration.- Parameters:
targetType
- of the association- Returns:
- new link builder
-
association
public abstract EntityViewLinkBuilder association(@NonNull @NonNull EntityConfiguration targetConfiguration) Create a link builder for an association. Will use the first non-hidden association for the target configuration. If there is more than one, you should useassociation(String)
instead. If there is no actualEntityAssociation
available, the name will be interpreted as a regularEntityConfiguration
instead and a link builder with afrom
parameter will be returned to the target entity configuration.- Parameters:
targetConfiguration
- of the association- Returns:
- new link builder
-
association
Create a link builder for an associated entity. Will use the first non-hidden association for the target type. If there is more than one, you should useassociation(String).forInstance(Object)
instead. If there is no actualEntityAssociation
available, the name will be interpreted as a regularEntityConfiguration
instead and a link builder with afrom
parameter will be returned to the target entity configuration.- Parameters:
target
- associated entity- Returns:
- new link builder
-