Class ContentUniqueSlug


  • public class ContentUniqueSlug
    extends Object
    Content unique slug.
    Since:
    14.1.0
    Version:
    $Revision: 24684 $ $Date: 2021-08-23 18:58:35 -0300 (Mon, 23 Aug 2021) $
    • Constructor Detail

      • ContentUniqueSlug

        public ContentUniqueSlug​(String serviceInstanceId,
                                 String sourceId,
                                 String slug)
        Create a unique slug with the given parameters.
        Parameters:
        serviceInstanceId - the service instance identifier.
        sourceId - the source identifier.
        slug - the slug.
        Since:
        14.1.0
      • ContentUniqueSlug

        public ContentUniqueSlug​(String uniqueSlugStr)
        Creates a unique friendly id from the given generated string.
        Parameters:
        uniqueSlugStr - the unique friendly id string.
        Since:
        14.1.0
    • Method Detail

      • getServiceInstanceId

        public String getServiceInstanceId()
        Returns the service instance identifier.
        Returns:
        the service instance identifier.
        Since:
        14.1.0
      • getSourceId

        public String getSourceId()
        Returns the source identifier.
        Returns:
        the source identifier.
        Since:
        14.1.0
      • getSlug

        public String getSlug()
        Returns the slug.
        Returns:
        the slug.
        Since:
        14.1.0
      • getUniqueSlug

        public String getUniqueSlug()
        Returns the unique slug.
        Returns:
        the unique slug.
        Since:
        14.1.0
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object