Class ContentUniqueSlug


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

      Constructors 
      Constructor Description
      ContentUniqueSlug​(java.lang.String uniqueSlugStr)
      Creates a unique friendly id from the given generated string.
      ContentUniqueSlug​(java.lang.String serviceInstanceId, java.lang.String sourceId, java.lang.String slug)
      Create a unique slug with the given parameters.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object obj)  
      java.lang.String getServiceInstanceId()
      Returns the service instance identifier.
      java.lang.String getSlug()
      Returns the slug.
      java.lang.String getSourceId()
      Returns the source identifier.
      java.lang.String getUniqueSlug()
      Returns the unique slug.
      int hashCode()  
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • ContentUniqueSlug

        public ContentUniqueSlug​(java.lang.String serviceInstanceId,
                                 java.lang.String sourceId,
                                 java.lang.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​(java.lang.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 java.lang.String getServiceInstanceId()
        Returns the service instance identifier.
        Returns:
        the service instance identifier.
        Since:
        14.1.0
      • getSourceId

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

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

        public java.lang.String getUniqueSlug()
        Returns the unique slug.
        Returns:
        the unique slug.
        Since:
        14.1.0
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object