public class LiveLinkManagerServiceImpl extends Object implements LiveLinkManagerService
| Constructor and Description |
|---|
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.
|
| Modifier and Type | Method and Description |
|---|---|
List<String> |
extractLinks(javax.jcr.Node htmlFile)
Extract all link (
a, iframe, frame, href)
and all image (img) from html document |
List<String> |
getBrokenLinks(javax.jcr.Node webContent)
Gets the broken links by web content.
|
List<LinkBean> |
getBrokenLinks(String portalName)
Gets the broken links by portal.
|
void |
updateLinkDataForNode(javax.jcr.Node webContent,
List<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(String portalName)
Get all link existed in specified portal and update status for them (live or broken)
|
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 Exception
configurationService - the configuration servicerepositoryService - the repository servicelivePortalManagerService - the live portal manager servicecacheService - the cache serviceinitParams - the init paramsException - the exceptionpublic List<LinkBean> getBrokenLinks(String portalName) throws Exception
LiveLinkManagerServicegetBrokenLinks in interface LiveLinkManagerServiceportalName - the portal nameException - the exceptionpublic List<String> getBrokenLinks(javax.jcr.Node webContent) throws Exception
LiveLinkManagerServicegetBrokenLinks in interface LiveLinkManagerServicewebContent - the web contentException - the exceptionpublic void updateLinks()
throws Exception
LiveLinkManagerServiceupdateLinks in interface LiveLinkManagerServiceException - the exceptionpublic void updateLinks(String portalName) throws Exception
LiveLinkManagerServiceupdateLinks in interface LiveLinkManagerServiceportalName - the portal nameException - the exceptionpublic List<String> extractLinks(javax.jcr.Node htmlFile) throws Exception
LiveLinkManagerServicea, iframe, frame, href)
and all image (img) from html documentextractLinks in interface LiveLinkManagerServicehtmlFile - the node html fileException - the exceptionpublic void updateLinkDataForNode(javax.jcr.Node webContent,
List<String> newLinks)
throws Exception
LiveLinkManagerServiceupdateLinkDataForNode in interface LiveLinkManagerServicewebContent - the current web content nodenewLinks - the list of new links will be updatedException - the exceptionCopyright © 2003–2019 eXo Platform SAS. All rights reserved.