|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.exoplatform.services.wcm.link.LiveLinkManagerServiceImpl
public class LiveLinkManagerServiceImpl
Created by The eXo Platform SAS Author : Phan Le Thanh Chuong chuong_phan@exoplatform.com Aug 6, 2008
| Constructor Summary | |
|---|---|
LiveLinkManagerServiceImpl(WCMConfigurationService configurationService,
org.exoplatform.services.jcr.RepositoryService repositoryService,
LivePortalManagerService livePortalManagerService,
org.exoplatform.services.cache.CacheService cacheService,
org.exoplatform.container.xml.InitParams initParams)
Instantiates a new live link manager service impl. |
|
| 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) |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public LiveLinkManagerServiceImpl(WCMConfigurationService configurationService,
org.exoplatform.services.jcr.RepositoryService repositoryService,
LivePortalManagerService livePortalManagerService,
org.exoplatform.services.cache.CacheService cacheService,
org.exoplatform.container.xml.InitParams initParams)
throws java.lang.Exception
configurationService - the configuration servicerepositoryService - the repository servicelivePortalManagerService - the live portal manager servicecacheService - the cache serviceinitParams - the init params
java.lang.Exception - the exception| Method Detail |
|---|
public java.util.List<LinkBean> getBrokenLinks(java.lang.String portalName)
throws java.lang.Exception
LiveLinkManagerService
getBrokenLinks in interface LiveLinkManagerServiceportalName - the portal name
java.lang.Exception - the exception
public java.util.List<java.lang.String> getBrokenLinks(javax.jcr.Node webContent)
throws java.lang.Exception
LiveLinkManagerService
getBrokenLinks in interface LiveLinkManagerServicewebContent - the web content
java.lang.Exception - the exception
public void updateLinks()
throws java.lang.Exception
LiveLinkManagerService
updateLinks in interface LiveLinkManagerServicejava.lang.Exception - the exception
public void updateLinks(java.lang.String portalName)
throws java.lang.Exception
LiveLinkManagerService
updateLinks in interface LiveLinkManagerServiceportalName - the portal name
java.lang.Exception - the exception
public java.util.List<java.lang.String> extractLinks(javax.jcr.Node htmlFile)
throws java.lang.Exception
LiveLinkManagerServicea, iframe, frame, href)
and all image (img) from html document
extractLinks in interface LiveLinkManagerServicehtmlFile - the node html file
java.lang.Exception - the exception
public void updateLinkDataForNode(javax.jcr.Node webContent,
java.util.List<java.lang.String> newLinks)
throws java.lang.Exception
LiveLinkManagerService
updateLinkDataForNode in interface LiveLinkManagerServicewebContent - the current web content nodenewLinks - the list of new links will be updated
java.lang.Exception - the exception
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||