Package lumis.service.rss
Class RssManager
- java.lang.Object
-
- lumis.service.rss.RssManager
-
- All Implemented Interfaces:
IRssManager
public class RssManager extends java.lang.Object implements IRssManager
Implementation for the RSS manager.- Since:
- 4.1.0
- Version:
- $Revision$ $Date$
-
-
Constructor Summary
Constructors Constructor Description RssManager()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
generateRssXmlFile(SessionConfig sessionConfig, RssConfig rssConfig, java.lang.String oldPath, ITransaction transaction)
Generate the Rss Xml FileRssConfig
get(SessionConfig sessionConfig, java.lang.String id, ITransaction transaction)
Returns the RssConfig for a Rss with the given id.java.util.Collection<java.lang.String>
getIdsByServiceInstanceId(SessionConfig sessionConfig, java.lang.String serviceInstanceId, ITransaction transaction)
Get the Rss ids by the Service Instance Idprotected java.lang.String
getSourceFieldValue(org.w3c.dom.Node sourceNode, java.lang.String fieldId, java.lang.String fieldType, java.lang.String errorMessage, boolean stored, boolean showError)
void
instanceDeleted(SessionConfig sessionConfig, ServiceInstanceConfig serviceInstance, ITransaction transaction)
Removes the public files from the website.void
instanceMoved(SessionConfig sessionConfig, ServiceInstanceConfig serviceInstance, IPortalBaseFolder oldBaseFolder, IPortalBaseFolder newBaseFolder, ITransaction transaction)
Moves the public files from the oldbase folder
to the new one.void
instanceMoved(SessionConfig sessionConfig, ServiceInstanceConfig serviceInstance, IWebsite oldWebsite, IWebsite newWebsite, ITransaction transaction)
Moves the public files from the old website to the new one.protected void
prepare(RssConfig rssConfig, ITransaction transaction)
Prepare data and validate to insert in tableprotected java.lang.String
processHeader(java.lang.String header)
boolean
validateUniqueFilePath(java.lang.String filePath, java.lang.String notIncludingRssId, ITransaction transaction)
Verify if already exist a path specified to another RSS
-
-
-
Method Detail
-
generateRssXmlFile
public void generateRssXmlFile(SessionConfig sessionConfig, RssConfig rssConfig, java.lang.String oldPath, ITransaction transaction) throws PortalException, ServiceException
Description copied from interface:IRssManager
Generate the Rss Xml File- Specified by:
generateRssXmlFile
in interfaceIRssManager
- Throws:
PortalException
ServiceException
-
processHeader
protected java.lang.String processHeader(java.lang.String header) throws PortalException
- Throws:
PortalException
-
get
public RssConfig get(SessionConfig sessionConfig, java.lang.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 interfaceIRssManager
- Returns:
- Throws:
PortalException
-
getIdsByServiceInstanceId
public java.util.Collection<java.lang.String> getIdsByServiceInstanceId(SessionConfig sessionConfig, java.lang.String serviceInstanceId, ITransaction transaction) throws PortalException
Description copied from interface:IRssManager
Get the Rss ids by the Service Instance Id- Specified by:
getIdsByServiceInstanceId
in interfaceIRssManager
- 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 java.lang.String getSourceFieldValue(org.w3c.dom.Node sourceNode, java.lang.String fieldId, java.lang.String fieldType, java.lang.String errorMessage, boolean stored, boolean showError) throws PortalException
- Throws:
PortalException
-
validateUniqueFilePath
public boolean validateUniqueFilePath(java.lang.String filePath, java.lang.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 interfaceIRssManager
- Returns:
- Throws:
PortalException
-
instanceMoved
public void instanceMoved(SessionConfig sessionConfig, ServiceInstanceConfig serviceInstance, IWebsite oldWebsite, IWebsite newWebsite, ITransaction transaction) throws PortalException
Description copied from interface:IRssManager
Moves the public files from the old website to the new one.- Specified by:
instanceMoved
in interfaceIRssManager
- Parameters:
sessionConfig
- the user's session.serviceInstance
- the service instance.oldWebsite
- the old website.newWebsite
- the new website.transaction
- the transaction.- Throws:
PortalException
-
instanceMoved
public void instanceMoved(SessionConfig sessionConfig, ServiceInstanceConfig serviceInstance, IPortalBaseFolder oldBaseFolder, IPortalBaseFolder newBaseFolder, ITransaction transaction) throws PortalException
Description copied from interface:IRssManager
Moves the public files from the oldbase folder
to the new one.- Specified by:
instanceMoved
in interfaceIRssManager
- Parameters:
sessionConfig
- the user's session.serviceInstance
- the service instance.oldBaseFolder
- the old base folder.newBaseFolder
- the new base folder.transaction
- the transaction.- Throws:
PortalException
-
instanceDeleted
public void instanceDeleted(SessionConfig sessionConfig, ServiceInstanceConfig serviceInstance, ITransaction transaction) throws PortalException
Description copied from interface:IRssManager
Removes the public files from the website.- Specified by:
instanceDeleted
in interfaceIRssManager
- Parameters:
sessionConfig
- the user's session.serviceInstance
- the service instance.transaction
- the transaction.- Throws:
PortalException
-
-