Class EntityConfigurationLinkBuilder

java.lang.Object
com.foreach.across.modules.entity.web.EntityConfigurationLinkBuilder
All Implemented Interfaces:
EntityLinkBuilder
Direct Known Subclasses:
EntityAssociationLinkBuilder

@Deprecated public class EntityConfigurationLinkBuilder extends Object implements EntityLinkBuilder
Deprecated.
since 3.0.0 - use EntityViewLinks instead
Creates links to entity views and standard controllers. By default crud and list views are included.
  • Constructor Details

    • EntityConfigurationLinkBuilder

      public EntityConfigurationLinkBuilder(String rootPath, EntityConfiguration entityConfiguration, org.springframework.core.convert.ConversionService conversionService)
      Deprecated.
    • EntityConfigurationLinkBuilder

      public EntityConfigurationLinkBuilder(String rootPath, EntityConfiguration entityConfiguration, org.springframework.core.convert.ConversionService conversionService, com.foreach.across.modules.web.context.WebAppPathResolver webAppPathResolver)
      Deprecated.
  • Method Details

    • setWebAppPathResolver

      public void setWebAppPathResolver(com.foreach.across.modules.web.context.WebAppPathResolver webAppPathResolver)
      Deprecated.
      Set the WebAppPathResolver to be used for this builder. All generated links will be passed through this resolver.
      Parameters:
      webAppPathResolver - to use, can be null
    • setOverviewPath

      public void setOverviewPath(String overviewPath)
      Deprecated.
    • setCreatePath

      public void setCreatePath(String createPath)
      Deprecated.
    • setViewPath

      public void setViewPath(String viewPath)
      Deprecated.
    • setUpdatePath

      public void setUpdatePath(String updatePath)
      Deprecated.
    • setDeletePath

      public void setDeletePath(String deletePath)
      Deprecated.
    • setAssociationsPath

      public void setAssociationsPath(String associationsPath)
      Deprecated.
    • overview

      public String overview()
      Deprecated.
      Specified by:
      overview in interface EntityLinkBuilder
      Returns:
      link to the overview/list page
    • create

      public String create()
      Deprecated.
      Specified by:
      create in interface EntityLinkBuilder
      Returns:
      link to create-new page
    • update

      public String update(Object entity)
      Deprecated.
      Specified by:
      update in interface EntityLinkBuilder
      Parameters:
      entity - being updated
      Returns:
      link to update page for entity
    • delete

      public String delete(Object entity)
      Deprecated.
      Specified by:
      delete in interface EntityLinkBuilder
      Parameters:
      entity - being deleted
      Returns:
      link to delete page for entity
    • view

      public String view(Object entity)
      Deprecated.
      Specified by:
      view in interface EntityLinkBuilder
      Parameters:
      entity - being viewed
      Returns:
      link to view page for entity
    • associations

      public String associations(Object entity)
      Deprecated.
      Specified by:
      associations in interface EntityLinkBuilder
      Parameters:
      entity - being viewed
      Returns:
      base link for associations
    • getIdAsString

      protected String getIdAsString(EntityConfiguration cfg, Object entity)
      Deprecated.
    • getEntityConfigurationPath

      protected String getEntityConfigurationPath()
      Deprecated.
    • asAssociationFor

      public EntityLinkBuilder asAssociationFor(EntityLinkBuilder sourceLinkBuilder, Object sourceEntity)
      Deprecated.
      Creates a new link builder that represents the current linkbuilder as an association from a source entity, this will use EntityLinkBuilder.associations(Object) on the source link builder for prefixing the current link builder.
      Specified by:
      asAssociationFor in interface EntityLinkBuilder