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
Nested ClassesModifier and TypeClassDescriptionstatic classstatic class -
Field Summary
Fields inherited from class com.foreach.across.modules.entity.web.links.EntityViewLinkBuilderSupport
links -
Method Summary
Modifier and TypeMethodDescriptionabstract EntityViewLinkBuilderassociation(@NonNull EntityConfiguration targetConfiguration) Create a link builder for an association.final EntityViewLinkBuilderassociation(@NonNull Class<?> targetType) Create a link builder for an association.abstract SingleEntityViewLinkBuilderassociation(Object target) Create a link builder for an associated entity.abstract EntityViewLinkBuilderassociation(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 actualEntityAssociationavailable, the name will be interpreted as a regularEntityConfigurationinstead and a link builder with afromparameter 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 actualEntityAssociationavailable, the name will be interpreted as a regularEntityConfigurationinstead and a link builder with afromparameter 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 actualEntityAssociationavailable, the name will be interpreted as a regularEntityConfigurationinstead and a link builder with afromparameter 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 actualEntityAssociationavailable, the name will be interpreted as a regularEntityConfigurationinstead and a link builder with afromparameter will be returned to the target entity configuration.- Parameters:
target- associated entity- Returns:
- new link builder
-