com.silverpeas.kmelia
Class RssLastPublicationsServlet

java.lang.Object
  extended by javax.servlet.GenericServlet
      extended by javax.servlet.http.HttpServlet
          extended by com.silverpeas.kmelia.RssLastPublicationsServlet
All Implemented Interfaces:
Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig

public class RssLastPublicationsServlet
extends javax.servlet.http.HttpServlet

See Also:
Serialized Form

Field Summary
static String LOGIN_PARAM
           
static String PASSWORD_PARAM
           
static String SPACE_ID_PARAM
           
static String USER_ID_PARAM
           
 
Constructor Summary
RssLastPublicationsServlet()
           
 
Method Summary
 String getChannelTitle(String spaceId)
           
 Collection<com.stratelia.webactiv.util.publication.model.PublicationDetail> getElements(KmeliaTransversal kmeliaTransversal, String spaceId)
           
 com.silverpeas.personalization.UserPreferences getPersonalization(String userId)
          Return the personalization EJB
 String getServerURL(com.stratelia.webactiv.beans.admin.UserFull user)
           
 boolean isSpaceAvailable(String userId, String spaceId)
           
 boolean isUserAuthorized(com.stratelia.webactiv.beans.admin.UserFull user, String login, String password, String spaceId)
           
protected  void objectNotFound(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res)
           
 void service(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
           
 de.nava.informa.core.ItemIF toRssItem(com.stratelia.webactiv.util.publication.model.PublicationDetail publication, String serverURL, String lang)
           
 
Methods inherited from class javax.servlet.http.HttpServlet
doDelete, doGet, doHead, doOptions, doPost, doPut, doTrace, getLastModified, service
 
Methods inherited from class javax.servlet.GenericServlet
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, init, log, log
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SPACE_ID_PARAM

public static final String SPACE_ID_PARAM
See Also:
Constant Field Values

USER_ID_PARAM

public static final String USER_ID_PARAM
See Also:
Constant Field Values

PASSWORD_PARAM

public static final String PASSWORD_PARAM
See Also:
Constant Field Values

LOGIN_PARAM

public static final String LOGIN_PARAM
See Also:
Constant Field Values
Constructor Detail

RssLastPublicationsServlet

public RssLastPublicationsServlet()
Method Detail

service

public void service(javax.servlet.http.HttpServletRequest request,
                    javax.servlet.http.HttpServletResponse response)
             throws javax.servlet.ServletException,
                    IOException
Overrides:
service in class javax.servlet.http.HttpServlet
Throws:
javax.servlet.ServletException
IOException

getElements

public Collection<com.stratelia.webactiv.util.publication.model.PublicationDetail> getElements(KmeliaTransversal kmeliaTransversal,
                                                                                               String spaceId)

toRssItem

public de.nava.informa.core.ItemIF toRssItem(com.stratelia.webactiv.util.publication.model.PublicationDetail publication,
                                             String serverURL,
                                             String lang)
                                      throws MalformedURLException
Throws:
MalformedURLException

getChannelTitle

public String getChannelTitle(String spaceId)

getServerURL

public String getServerURL(com.stratelia.webactiv.beans.admin.UserFull user)

isUserAuthorized

public boolean isUserAuthorized(com.stratelia.webactiv.beans.admin.UserFull user,
                                String login,
                                String password,
                                String spaceId)

isSpaceAvailable

public boolean isSpaceAvailable(String userId,
                                String spaceId)

objectNotFound

protected void objectNotFound(javax.servlet.http.HttpServletRequest req,
                              javax.servlet.http.HttpServletResponse res)
                       throws IOException
Throws:
IOException

getPersonalization

public com.silverpeas.personalization.UserPreferences getPersonalization(String userId)
Return the personalization EJB

Parameters:
userId -
Returns:


Copyright © 2016 Silverpeas. All Rights Reserved.