lumis.service.rss
Class RssManager

Package class diagram package RssManager
java.lang.Object
  extended by lumis.service.rss.RssManager
All Implemented Interfaces:
IRssManager

public class RssManager
extends Object
implements IRssManager

Implementation for the RSS manager.

Since:
4.1.0

Constructor Summary
RssManager()
           
 
Method Summary
 void generateRssXmlFile(SessionConfig sessionConfig, RssConfig rssConfig, String oldPath, ITransaction transaction)
          Generate the Rss Xml File
 RssConfig get(SessionConfig sessionConfig, String id, ITransaction transaction)
          Returns the RssConfig for a Rss with the given id.
 Collection<String> getIdsByServiceInstanceId(SessionConfig sessionConfig, String serviceInstanceId, ITransaction transaction)
          Get the Rss ids by the Service Instance Id
protected  String getSourceFieldValue(Node sourceNode, String fieldId, String fieldType, String errorMessage, boolean stored, boolean showError)
           
protected  void prepare(RssConfig rssConfig, ITransaction transaction)
          Prepare data and validate to insert in table
protected  String processHeader(String header)
           
 boolean validateUniqueFilePath(String filePath, String notIncludingRssId, ITransaction transaction)
          Verify if already exist a path specified to another RSS
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RssManager

public RssManager()
Method Detail

generateRssXmlFile

public void generateRssXmlFile(SessionConfig sessionConfig,
                               RssConfig rssConfig,
                               String oldPath,
                               ITransaction transaction)
                        throws PortalException,
                               ServiceException
Description copied from interface: IRssManager
Generate the Rss Xml File

Specified by:
generateRssXmlFile in interface IRssManager
Throws:
PortalException
ServiceException

processHeader

protected String processHeader(String header)
                        throws PortalException
Throws:
PortalException

get

public RssConfig get(SessionConfig sessionConfig,
                     String id,
                     ITransaction transaction)
              throws PortalException
Description copied from interface: IRssManager
Returns the RssConfig for a Rss with the given id.

Specified by:
get in interface IRssManager
Returns:
Throws:
PortalException

getIdsByServiceInstanceId

public Collection<String> getIdsByServiceInstanceId(SessionConfig sessionConfig,
                                                    String serviceInstanceId,
                                                    ITransaction transaction)
                                             throws PortalException
Description copied from interface: IRssManager
Get the Rss ids by the Service Instance Id

Specified by:
getIdsByServiceInstanceId in interface IRssManager
Returns:
Throws:
PortalException

prepare

protected void prepare(RssConfig rssConfig,
                       ITransaction transaction)
                throws PortalException
Prepare data and validate to insert in table

Parameters:
rssConfig -
transaction -
Throws:
PortalException
Since:
4.1.0

getSourceFieldValue

protected String getSourceFieldValue(Node sourceNode,
                                     String fieldId,
                                     String fieldType,
                                     String errorMessage,
                                     boolean stored,
                                     boolean showError)
                              throws PortalException
Throws:
PortalException

validateUniqueFilePath

public boolean validateUniqueFilePath(String filePath,
                                      String notIncludingRssId,
                                      ITransaction transaction)
                               throws PortalException
Description copied from interface: IRssManager
Verify if already exist a path specified to another RSS

Specified by:
validateUniqueFilePath in interface IRssManager
Returns:
Throws:
PortalException


Lumisportal  4.1.0.071221 - Copyright © 2001-2007, Lumis. All Rights Reserved.