|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.nitido.nimbox.http.services.ad.NiMAdService
public abstract class NiMAdService
This interface defines the methods for accessing the NiM Ad Service.
| Field Summary | |
|---|---|
static java.lang.String |
KEY_AD_DEST
|
static java.lang.String |
KEY_AD_SRC
|
static java.lang.String |
KEY_TRACKING_ID
|
| Constructor Summary | |
|---|---|
protected |
NiMAdService()
Default constructor |
| Method Summary | |
|---|---|
protected SkinAd |
copySkinAd(SkinAd ad)
This method returns a deep copy of the given AD parameter. |
protected SkinAdMap |
copySkinAdMap(SkinAdMap original)
return a copy of the original SkinAdMap |
protected SkinAd |
createSkinAd(java.lang.String id,
java.lang.String linkURL,
java.lang.String content,
java.lang.String description)
This method is used by extenders of this class to create a new instance of a Skin AD. |
protected SkinAdMap |
createSkinAdMap(java.lang.String skinID,
boolean enableDisplayTracking)
This method is used by extenders of this class to create a new instance of an empty SkinMap. |
abstract SkinAdMap |
getAdMap(Entity entity,
NimletOutput output)
This method returns the set of Ads to be displayed for the given entity and skin. |
| 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_TRACKING_ID
public static final java.lang.String KEY_AD_SRC
public static final java.lang.String KEY_AD_DEST
| Constructor Detail |
|---|
protected NiMAdService()
| Method Detail |
|---|
public abstract SkinAdMap getAdMap(Entity entity,
NimletOutput output)
entity - Reference to the Entity that is making the request.output - Reference to the NimletOutput object that resulted from the
execution of a Nimlet. This NimletOutput object contains
the skin name that is going to be dispatched to the user.
protected SkinAdMap createSkinAdMap(java.lang.String skinID,
boolean enableDisplayTracking)
protected SkinAdMap copySkinAdMap(SkinAdMap original)
original - Reference to the SkinAdMap to be copied
protected SkinAd createSkinAd(java.lang.String id,
java.lang.String linkURL,
java.lang.String content,
java.lang.String description)
id - The AD id. This parameter cannot be null or an empty string.linkURL - URL to the Ad. This parameter cannot be null or an empty string.content - The AD content. This parameter cannot be null or an empty string.description - The AD description.
java.lang.IllegalArgumentException - If the link or image URL is null or an empty stringprotected SkinAd copySkinAd(SkinAd ad)
ad - The AD to be copied
java.lang.IllegalArgumentException - If the given AD parameter is null
|
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.