Package lumis.content.core
Class ContentUniqueSlug
- java.lang.Object
-
- lumis.content.core.ContentUniqueSlug
-
public class ContentUniqueSlug extends java.lang.Object
Content unique slug.- Since:
- 14.1.0
- Version:
- $Revision$ $Date$
-
-
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()
-
-
-
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 classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
-