fr.paris.lutece.plugins.rating.service
Class ResourceDisplayManager

java.lang.Object
  extended by fr.paris.lutece.plugins.rating.service.ResourceDisplayManager
All Implemented Interfaces:
fr.paris.lutece.portal.business.resourceenhancer.IResourceDisplayManager

public class ResourceDisplayManager
extends java.lang.Object
implements fr.paris.lutece.portal.business.resourceenhancer.IResourceDisplayManager

This class manages resource display extension


Constructor Summary
ResourceDisplayManager()
           
 
Method Summary
 void buildPageAddOn(java.util.Map<java.lang.String,java.lang.Object> model, java.lang.String strResourceType, int nIdResource, java.lang.String strPortletId, javax.servlet.http.HttpServletRequest request)
          Add datas to the model use by resource template
 void getXmlAddOn(java.lang.StringBuffer strXml, java.lang.String strResourceType, int nIdResource)
          Add XML datas to the XML resource
static void sendCommentNotification(javax.servlet.http.HttpServletRequest request, java.lang.String strResourceType, int nIdResource, int nMailingListId, int nVoteValue)
          Notify list that a vote has been done
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ResourceDisplayManager

public ResourceDisplayManager()
Method Detail

getXmlAddOn

public void getXmlAddOn(java.lang.StringBuffer strXml,
                        java.lang.String strResourceType,
                        int nIdResource)
Add XML datas to the XML resource

Specified by:
getXmlAddOn in interface fr.paris.lutece.portal.business.resourceenhancer.IResourceDisplayManager
Parameters:
strXml - The Xml document
strResourceType - the resource type
nIdResource - The resource id

buildPageAddOn

public void buildPageAddOn(java.util.Map<java.lang.String,java.lang.Object> model,
                           java.lang.String strResourceType,
                           int nIdResource,
                           java.lang.String strPortletId,
                           javax.servlet.http.HttpServletRequest request)
Add datas to the model use by resource template

Specified by:
buildPageAddOn in interface fr.paris.lutece.portal.business.resourceenhancer.IResourceDisplayManager
Parameters:
model - The model use by resource template
strResourceType - the resource type
nIdResource - The resource id
strPortletId - The portlet ID
request - The HTTP Request

sendCommentNotification

public static void sendCommentNotification(javax.servlet.http.HttpServletRequest request,
                                           java.lang.String strResourceType,
                                           int nIdResource,
                                           int nMailingListId,
                                           int nVoteValue)
Notify list that a vote has been done

Parameters:
request - The HTTP Request
strResourceType - the resource type
nIdResource - The resource id
nMailingListId - the id of the mailing list
nVoteValue - the value of the vote


Copyright © 2010 Mairie de Paris. All Rights Reserved.