|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnl.gx.webmanager.services.seo.entity.impl.FriendlyURLEntityImpl
nl.gx.webmanager.services.seo.entity.impl.PageFriendlyURLEntityImpl
public final class PageFriendlyURLEntityImpl
Representation of a friendly URL of a page. A page is located by a page ID (id) and a language ID (langid).
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface nl.gx.webmanager.services.seo.FriendlyURLEntity |
|---|
FriendlyURLEntity.ContentType |
| Field Summary |
|---|
| Fields inherited from interface nl.gx.webmanager.services.seo.PageFriendlyURLEntity |
|---|
ID_PART, LANGID_PART |
| Fields inherited from interface nl.gx.webmanager.services.seo.FriendlyURLEntity |
|---|
PATH_SEPARATOR |
| Constructor Summary | |
|---|---|
PageFriendlyURLEntityImpl(int pageId,
int pageVersionId,
int langId,
java.lang.String urlTitle,
int websiteId,
boolean isActive,
boolean isLive)
Constructor used to create a new page friendly URL entity. |
|
PageFriendlyURLEntityImpl(int id,
java.lang.String urlIdentifier,
java.lang.String entityIdentifier,
java.lang.String urlTitle,
int websiteId,
java.lang.Integer sequenceNumber,
boolean activated,
boolean alternative,
boolean isLive,
java.lang.String queryString,
java.util.Date entryDate,
FriendlyURLEntity reference,
int pageVersionId)
Constructor used to instantiate an existing friendly URL entity when all fields are available. |
|
| Method Summary | |
|---|---|
FriendlyURLEntity.ContentType |
getContentType()
Returns the content type of the friendly URL entity. |
java.lang.Integer |
getDepth()
Deprecated. |
java.lang.Integer |
getLangId()
Returns the language identifier of the friendly URL. |
java.lang.Integer |
getPageId()
Returns the page identifier of the friendly URL. |
java.lang.Integer |
getPageVersionId()
Deprecated. |
java.lang.String |
getURLTitlePath()
Returns the URL title path of the friendly URL. |
java.lang.Integer |
getVersionId()
Returns the version id of the friendly URL. |
void |
renamePathPart(int depth,
java.lang.String urlTitle)
Deprecated. |
void |
renameStartPath(int depth,
java.lang.String replace)
Deprecated. |
void |
setURLPath(java.lang.String urlTitlePath)
Sets the URL path of both the URL identifier as the URL title to the given URL title path. |
java.lang.String |
toString()
|
| Methods inherited from class nl.gx.webmanager.services.seo.entity.impl.FriendlyURLEntityImpl |
|---|
equals, getAlternativePath, getBaseEntityIdentifier, getBaseIdentifier, getBaseURLTitleEntityIdentifier, getEntityIdentifier, getEntryDate, getId, getQueryString, getReference, getSequenceNumber, getURLIdentifier, getURLTitle, getURLTitleEntity, getWebsiteId, hashCode, isActivated, isAlternative, isCurrent, isLive, setActivated, setAlternative, setId, setLive, setReference, setSequenceNumber, setURLTitle, setURLTitleIdentifier |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface nl.gx.webmanager.services.seo.entity.FriendlyURLEntityMutator |
|---|
setActivated, setAlternative, setId, setLive, setReference, setSequenceNumber, setURLTitleIdentifier |
| Methods inherited from interface nl.gx.webmanager.services.seo.FriendlyURLEntity |
|---|
getAlternativePath, getBaseEntityIdentifier, getBaseIdentifier, getBaseURLTitleEntityIdentifier, getEntityIdentifier, getEntryDate, getId, getQueryString, getReference, getSequenceNumber, getURLIdentifier, getURLTitle, getURLTitleEntity, getWebsiteId, isActivated, isAlternative, isCurrent, isLive |
| Constructor Detail |
|---|
public PageFriendlyURLEntityImpl(int pageId,
int pageVersionId,
int langId,
java.lang.String urlTitle,
int websiteId,
boolean isActive,
boolean isLive)
pageId - Identifier of the page.pageVersionId - Page version identifier.langId - Language identifier of the page.urlTitle - URL title of that page.websiteId - Host id for which the friendly URL exists.isActive - true if the URL title is active, that is, is accessible,
false otherwise.isLive - true is the page pointed by the URL title is current, false
otherwise.
public PageFriendlyURLEntityImpl(int id,
java.lang.String urlIdentifier,
java.lang.String entityIdentifier,
java.lang.String urlTitle,
int websiteId,
java.lang.Integer sequenceNumber,
boolean activated,
boolean alternative,
boolean isLive,
java.lang.String queryString,
java.util.Date entryDate,
FriendlyURLEntity reference,
int pageVersionId)
id - The identifier of the entity.urlIdentifier - The URL identifier of the entity.entityIdentifier - The entity identifier of the entity.urlTitle - The URL title of the entity.websiteId - The host id of the entity.sequenceNumber - The sequence number of the entity.activated - The activated bit the entity.alternative - The alternative path of the entity.isLive - The live bit of the entity.queryString - The query string of the entity.entryDate - The creation date of the entity.reference - The reference of the entity.pageVersionId - The page version id of the entity.| Method Detail |
|---|
public FriendlyURLEntity.ContentType getContentType()
getContentType in interface FriendlyURLEntitygetContentType in class FriendlyURLEntityImplpublic java.lang.Integer getPageId()
getPageId in interface PageFriendlyURLEntitypublic java.lang.Integer getVersionId()
getVersionId in interface FriendlyURLEntitygetVersionId in class FriendlyURLEntityImpl@Deprecated public java.lang.Integer getPageVersionId()
getPageVersionId in interface PageFriendlyURLEntitypublic java.lang.Integer getLangId()
getLangId in interface PageFriendlyURLEntity@Deprecated public java.lang.Integer getDepth()
getDepth in interface PageFriendlyURLEntitypublic java.lang.String getURLTitlePath()
getURLTitlePath in interface PageFriendlyURLEntitypublic void setURLPath(java.lang.String urlTitlePath)
setURLPath in interface PageFriendlyURLEntityMutatorurlTitlePath - The new URL title path.
@Deprecated
public void renameStartPath(int depth,
java.lang.String replace)
depth page parts with replace.
renameStartPath in interface PageFriendlyURLEntityMutatordepth - Remove the first page part till this depth.replace - String to replace it with.
@Deprecated
public void renamePathPart(int depth,
java.lang.String urlTitle)
/a/b/c and the following statement is executed:
renamePathPart(2, "d") then the URL identifier (and URL title) becomes a/d/c.
This method operates in memory, the change is not persisted.
Note that if replace is an empty string then the page part is removed from the path.
renamePathPart in interface PageFriendlyURLEntityMutatordepth - Specifies the path part to rename starting with index 1.urlTitle - The string to replace the specified path part with.public java.lang.String toString()
toString in class FriendlyURLEntityImpl
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||