public class RssManager extends Object implements IRssManager
Constructor and Description |
---|
RssManager() |
Modifier and Type | Method and Description |
---|---|
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) |
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 old
base 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 table
|
protected String |
processHeader(String header) |
boolean |
validateUniqueFilePath(String filePath,
String notIncludingRssId,
ITransaction transaction)
Verify if already exist a path specified to another RSS
|
public void generateRssXmlFile(SessionConfig sessionConfig, RssConfig rssConfig, String oldPath, ITransaction transaction) throws PortalException, ServiceException
IRssManager
generateRssXmlFile
in interface IRssManager
PortalException
ServiceException
protected String processHeader(String header) throws PortalException
PortalException
public RssConfig get(SessionConfig sessionConfig, String id, ITransaction transaction) throws PortalException
IRssManager
get
in interface IRssManager
PortalException
public Collection<String> getIdsByServiceInstanceId(SessionConfig sessionConfig, String serviceInstanceId, ITransaction transaction) throws PortalException
IRssManager
getIdsByServiceInstanceId
in interface IRssManager
PortalException
protected void prepare(RssConfig rssConfig, ITransaction transaction) throws PortalException
rssConfig
- transaction
- PortalException
protected String getSourceFieldValue(Node sourceNode, String fieldId, String fieldType, String errorMessage, boolean stored, boolean showError) throws PortalException
PortalException
public boolean validateUniqueFilePath(String filePath, String notIncludingRssId, ITransaction transaction) throws PortalException
IRssManager
validateUniqueFilePath
in interface IRssManager
PortalException
public void instanceMoved(SessionConfig sessionConfig, ServiceInstanceConfig serviceInstance, IWebsite oldWebsite, IWebsite newWebsite, ITransaction transaction) throws PortalException
IRssManager
instanceMoved
in interface IRssManager
sessionConfig
- the user's session.serviceInstance
- the service instance.oldWebsite
- the old website.newWebsite
- the new website.transaction
- the transaction.PortalException
public void instanceMoved(SessionConfig sessionConfig, ServiceInstanceConfig serviceInstance, IPortalBaseFolder oldBaseFolder, IPortalBaseFolder newBaseFolder, ITransaction transaction) throws PortalException
IRssManager
base folder
to the new one.instanceMoved
in interface IRssManager
sessionConfig
- the user's session.serviceInstance
- the service instance.oldBaseFolder
- the old base folder.newBaseFolder
- the new base folder.transaction
- the transaction.PortalException
public void instanceDeleted(SessionConfig sessionConfig, ServiceInstanceConfig serviceInstance, ITransaction transaction) throws PortalException
IRssManager
instanceDeleted
in interface IRssManager
sessionConfig
- the user's session.serviceInstance
- the service instance.transaction
- the transaction.PortalException
LumisXP 12.4.0.200625 - Copyright © 2006–2020 Lumis EIP Tecnologia da Informação LTDA. All Rights Reserved.