nl.gx.webmanager.services.seo.entity.impl
Class MediaItemFriendlyURLEntityImpl

java.lang.Object
  extended by nl.gx.webmanager.services.seo.entity.impl.FriendlyURLEntityImpl
      extended by nl.gx.webmanager.services.seo.entity.impl.MediaItemFriendlyURLEntityImpl
All Implemented Interfaces:
FriendlyURLEntityMutator, FriendlyURLEntity, MediaItemFriendlyURLEntity

public final class MediaItemFriendlyURLEntityImpl
extends FriendlyURLEntityImpl
implements MediaItemFriendlyURLEntity

Representation of a friendly URL of a media item. A media item is located by a content ID (contentid). A media item can have a Google News ID.

Author:
Sander Dahlberg

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.MediaItemFriendlyURLEntity
MEDIA_ITEM_ID_PART
 
Fields inherited from interface nl.gx.webmanager.services.seo.FriendlyURLEntity
PATH_SEPARATOR
 
Constructor Summary
MediaItemFriendlyURLEntityImpl(int mediaItemId, int mediaItemVersionId, java.lang.String urlTitle, boolean isActive, boolean isLive)
          Constructor used to create a new media item friendly URL entity.
MediaItemFriendlyURLEntityImpl(int id, java.lang.String urlIdentifier, java.lang.String entityIdentifier, java.lang.String urlTitle, int websiteId, java.lang.Integer sequenceNumber, boolean activated, boolean isLive, java.lang.String queryString, java.util.Date entryDate, FriendlyURLEntity reference, java.lang.Integer mediaItemVersionId, java.lang.String googleNewsId)
          Constructor used to instantiate an existing friendly URL entity when all fields are available.
 
Method Summary
protected  java.lang.String constructGoogleNewsId()
          Returns the Constructed Google id of the media item.
 FriendlyURLEntity.ContentType getContentType()
          Returns the content type of the friendly URL entity.
 java.lang.String getGoogleNewsId()
          Returns the Google News identifier of the friendly URL.
 java.lang.Integer getMediaItemId()
          Returns the media item identifier of the friendly URL.
 java.lang.Integer getVersionId()
          Returns the version id of the friendly URL.
 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.FriendlyURLEntity
getAlternativePath, getBaseEntityIdentifier, getBaseIdentifier, getBaseURLTitleEntityIdentifier, getEntityIdentifier, getEntryDate, getId, getQueryString, getReference, getSequenceNumber, getURLIdentifier, getURLTitle, getURLTitleEntity, getWebsiteId, isActivated, isAlternative, isCurrent, isLive
 

Constructor Detail

MediaItemFriendlyURLEntityImpl

public MediaItemFriendlyURLEntityImpl(int mediaItemId,
                                      int mediaItemVersionId,
                                      java.lang.String urlTitle,
                                      boolean isActive,
                                      boolean isLive)
Constructor used to create a new media item friendly URL entity.

Parameters:
mediaItemId - Identifier of a media item.
mediaItemVersionId - Identifier of a media item version.
urlTitle - URL title of that media item.
isActive - true if the URL title is active, that is, is accessible, false otherwise.
isLive - true if the media item version the URL title is pointing to, is the current media item version of the media item, false otherwise.

MediaItemFriendlyURLEntityImpl

public MediaItemFriendlyURLEntityImpl(int id,
                                      java.lang.String urlIdentifier,
                                      java.lang.String entityIdentifier,
                                      java.lang.String urlTitle,
                                      int websiteId,
                                      java.lang.Integer sequenceNumber,
                                      boolean activated,
                                      boolean isLive,
                                      java.lang.String queryString,
                                      java.util.Date entryDate,
                                      FriendlyURLEntity reference,
                                      java.lang.Integer mediaItemVersionId,
                                      java.lang.String googleNewsId)
Constructor used to instantiate an existing friendly URL entity when all fields are available.

Parameters:
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 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.
mediaItemVersionId - The media item version id of the entity.
googleNewsId - The Google News id of the entity.
Method Detail

getContentType

public FriendlyURLEntity.ContentType getContentType()
Returns the content type of the friendly URL entity.

Specified by:
getContentType in interface FriendlyURLEntity
Overrides:
getContentType in class FriendlyURLEntityImpl
Returns:
The content type of the friendly URL entity.

getMediaItemId

public java.lang.Integer getMediaItemId()
Returns the media item identifier of the friendly URL.

Specified by:
getMediaItemId in interface MediaItemFriendlyURLEntity
Returns:
The media item identifier of the friendly URL.

getVersionId

public java.lang.Integer getVersionId()
Returns the version id of the friendly URL.

Specified by:
getVersionId in interface FriendlyURLEntity
Overrides:
getVersionId in class FriendlyURLEntityImpl
Returns:
The version id of the friendly URL.

getGoogleNewsId

public java.lang.String getGoogleNewsId()
Returns the Google News identifier of the friendly URL.

Specified by:
getGoogleNewsId in interface MediaItemFriendlyURLEntity
Returns:
The Google News identifier of the friendly URL.

toString

public java.lang.String toString()

Overrides:
toString in class FriendlyURLEntityImpl

constructGoogleNewsId

protected java.lang.String constructGoogleNewsId()
Returns the Constructed Google id of the media item.

Returns:
the Constructed Google id of the media item.


Copyright © 2007-2011 GX Software BV. All Rights Reserved.