Interface ISlugProvider

  • All Implemented Interfaces:

    
    public interface ISlugProvider
    
                        

    Interface to be implemented by custom slug generators.

    Provides logic for generating unique slugs based on an entity and a base slug string.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      abstract String generateSlug(ISlugSupport<?> entity, String slug) Generates a slug for the given entity using the provided base slug.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

    • Method Detail

      • generateSlug

         abstract String generateSlug(ISlugSupport<?> entity, String slug)

        Generates a slug for the given entity using the provided base slug.

        Implementations may apply additional rules such as uniqueness checks, suffixes, or normalization.

        Parameters:
        entity - The entity for which the slug is being generated.
        slug - The base slug string derived from the entity's annotated SlugField.
        Returns:

        A valid and unique slug string to be assigned to the entity.