org.exoplatform.services.wcm.link
Interface LiveLinkManagerService

All Known Implementing Classes:
LiveLinkManagerServiceImpl

public interface LiveLinkManagerService

Created by The eXo Platform SAS Author : Phan Le Thanh Chuong chuong_phan@exoplatform.com Aug 6, 2008


Method Summary
 java.util.List<java.lang.String> extractLinks(javax.jcr.Node htmlFile)
          Extract all link (a, iframe, frame, href) and all image (img) from html document
 java.util.List<java.lang.String> getBrokenLinks(javax.jcr.Node webContent)
          Gets the broken links by web content.
 java.util.List<LinkBean> getBrokenLinks(java.lang.String portalName)
          Gets the broken links by portal.
 void updateLinkDataForNode(javax.jcr.Node webContent, java.util.List<java.lang.String> newLinks)
          Add exo:links (multi value) property of exo:linkable node type to web content node, with pattern
 void updateLinks()
          Get all link existed in all portal and update status for them (live or broken)
 void updateLinks(java.lang.String portalName)
          Get all link existed in specified portal and update status for them (live or broken)
 

Method Detail

updateLinks

void updateLinks()
                 throws java.lang.Exception
Get all link existed in all portal and update status for them (live or broken)

Throws:
java.lang.Exception - the exception

updateLinks

void updateLinks(java.lang.String portalName)
                 throws java.lang.Exception
Get all link existed in specified portal and update status for them (live or broken)

Parameters:
portalName - the portal name
Throws:
java.lang.Exception - the exception

getBrokenLinks

java.util.List<LinkBean> getBrokenLinks(java.lang.String portalName)
                                        throws java.lang.Exception
Gets the broken links by portal.

Parameters:
portalName - the portal name
Returns:
the broken links
Throws:
java.lang.Exception - the exception

getBrokenLinks

java.util.List<java.lang.String> getBrokenLinks(javax.jcr.Node webContent)
                                                throws java.lang.Exception
Gets the broken links by web content.

Parameters:
webContent - the web content
Returns:
the broken links
Throws:
java.lang.Exception - the exception

extractLinks

java.util.List<java.lang.String> extractLinks(javax.jcr.Node htmlFile)
                                              throws java.lang.Exception
Extract all link (a, iframe, frame, href) and all image (img) from html document

Parameters:
htmlFile - the node html file
Returns:
the list of link's URL
Throws:
java.lang.Exception - the exception

updateLinkDataForNode

void updateLinkDataForNode(javax.jcr.Node webContent,
                           java.util.List<java.lang.String> newLinks)
                           throws java.lang.Exception
Add exo:links (multi value) property of exo:linkable node type to web content node, with pattern

Parameters:
webContent - the current web content node
newLinks - the list of new links will be updated
Throws:
java.lang.Exception - the exception


Copyright © 2010 eXo Platform SAS. All Rights Reserved.