|
![]() |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.nitido.nimbox.http.services.ad.SkinAdMap
public class SkinAdMap
This class contains all the Ads for a given skin.
Field Summary | |
---|---|
protected java.util.HashMap |
_ads
contains the set of Ads for a given skin. |
protected boolean |
_displayTrackingEnabled
If set, AD display tracking is enabled |
protected Entity |
_entity
Reference to the Entity object making the request |
protected java.lang.String |
_skinID
reference to the skin ID associated to this map |
protected NiMTrackingService |
_trackingService
reference to the tracking service used to record when an AD is placed on a skin |
static java.lang.String |
KEY_DEFAULT_AD
Key to retrieve the default AD from the map |
Constructor Summary | |
---|---|
protected |
SkinAdMap(SkinAdMap original)
This method creates a deep copy of the given SkinAdMap |
protected |
SkinAdMap(java.lang.String skinID,
boolean displayTrackingEnabled)
Default class constructor. |
Method Summary | |
---|---|
void |
addSkinAd(java.lang.String locationID,
SkinAd ad)
Adds a new Ad for a skin under the given id parameter. |
java.lang.String |
getAdContent(java.lang.String locationID)
This method returns the URL of the Ad image that appears on the given skin location |
java.lang.String |
getAdDescription(java.lang.String locationID)
This method returns the text to be displayed if the client browser does not support image display. |
java.lang.String |
getLinkURL(java.lang.String locationID)
This method returns the link URL of the Ad that appears on the given skin location |
SkinAd |
getSkinAd(java.lang.String locationID)
Given a skin location (locationID), this method returns a reference to the Ad object for the given location. |
java.lang.String[] |
getSkinAdLocationIDs()
This method returns the location IDs for each SkinAd in this map. |
void |
removeSkinAd(java.lang.String locationID)
Removes the Ad object, identified by the given ID, from the map. |
void |
setEntity(Entity entity)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String KEY_DEFAULT_AD
protected transient NiMTrackingService _trackingService
protected java.lang.String _skinID
protected java.util.HashMap _ads
protected Entity _entity
protected boolean _displayTrackingEnabled
Constructor Detail |
---|
protected SkinAdMap(java.lang.String skinID, boolean displayTrackingEnabled)
protected SkinAdMap(SkinAdMap original)
original
- The SkinAdMap that is to be copiedMethod Detail |
---|
public void setEntity(Entity entity)
public java.lang.String[] getSkinAdLocationIDs()
public SkinAd getSkinAd(java.lang.String locationID) throws AdNotFoundException
locationID
- The skin location where the Ad is placed.
AdNotFoundException
- If no AD is found for the given skin locationpublic java.lang.String getLinkURL(java.lang.String locationID) throws AdNotFoundException
locationID
- The skin location where the Ad is placed.
AdNotFoundException
- If no AD is found for the given skin locationpublic java.lang.String getAdContent(java.lang.String locationID) throws AdNotFoundException
locationID
- The skin location where the Ad is placed.
AdNotFoundException
- If no AD is found for the given skin locationpublic java.lang.String getAdDescription(java.lang.String locationID) throws AdNotFoundException
locationID
- The skin location where the Ad is placed.
AdNotFoundException
- If no AD is found for the given skin locationpublic void addSkinAd(java.lang.String locationID, SkinAd ad)
locationID
- Reference to the location of the skin where the given Ad
should be placed.ad
- Reference to the new Ad object
java.lang.IllegalArgumentException
- If the given parameters are null.public void removeSkinAd(java.lang.String locationID)
locationID
- Reference to the location of the skin.
|
Nitido NiM 2.5 Java API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright © 1999-2009 Nitido Inc. Proprietary and Confidential. All Rights Reserved.