org.exoplatform.services.wcm.metadata
Class PageMetadataServiceImpl

java.lang.Object
  extended by org.exoplatform.services.wcm.metadata.PageMetadataServiceImpl
All Implemented Interfaces:
PageMetadataService

public class PageMetadataServiceImpl
extends java.lang.Object
implements PageMetadataService

Created by The eXo Platform SAS Author : Hoa Pham hoa.phamvu@exoplatform.com Nov 3, 2008


Field Summary
 
Fields inherited from interface org.exoplatform.services.wcm.metadata.PageMetadataService
DESCRIPTION, KEYWORDS, PAGE_TITLE, ROBOTS, SITE_TITLE
 
Constructor Summary
PageMetadataServiceImpl(LivePortalManagerService livePortalManagerService, org.exoplatform.services.cms.taxonomy.TaxonomyService taxonomyService, org.exoplatform.services.cms.folksonomy.FolksonomyService folksonomyService)
          Instantiates a new page metadata service impl.
 
Method Summary
 java.util.HashMap<java.lang.String,java.lang.String> extractMetadata(javax.jcr.Node node)
          Extract metadata information from node.
protected  javax.jcr.Node findPortal(javax.jcr.Node child)
          Find portal.
 java.util.HashMap<java.lang.String,java.lang.String> getPortalMetadata(org.exoplatform.services.jcr.ext.common.SessionProvider sessionProvider, java.lang.String uri)
          Retrieves the portal metadata information for each request uri.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PageMetadataServiceImpl

public PageMetadataServiceImpl(LivePortalManagerService livePortalManagerService,
                               org.exoplatform.services.cms.taxonomy.TaxonomyService taxonomyService,
                               org.exoplatform.services.cms.folksonomy.FolksonomyService folksonomyService)
                        throws java.lang.Exception
Instantiates a new page metadata service impl.

Parameters:
livePortalManagerService - the live portal manager service
categoriesService - the categories service
folksonomyService - the folksonomy service
Throws:
java.lang.Exception - the exception
Method Detail

getPortalMetadata

public java.util.HashMap<java.lang.String,java.lang.String> getPortalMetadata(org.exoplatform.services.jcr.ext.common.SessionProvider sessionProvider,
                                                                              java.lang.String uri)
                                                                       throws java.lang.Exception
Description copied from interface: PageMetadataService
Retrieves the portal metadata information for each request uri.

Specified by:
getPortalMetadata in interface PageMetadataService
Parameters:
sessionProvider - the session provider
uri - the uri
Returns:
the portal metadata
Throws:
java.lang.Exception - the exception

extractMetadata

public java.util.HashMap<java.lang.String,java.lang.String> extractMetadata(javax.jcr.Node node)
                                                                     throws java.lang.Exception
Description copied from interface: PageMetadataService
Extract metadata information from node.

Specified by:
extractMetadata in interface PageMetadataService
Parameters:
node - the node
Returns:
the hash map< string, string>
Throws:
java.lang.Exception - the exception

findPortal

protected javax.jcr.Node findPortal(javax.jcr.Node child)
                             throws java.lang.Exception
Find portal.

Parameters:
child - the child
Returns:
the node
Throws:
java.lang.Exception - the exception


Copyright © 2011 eXo Platform SAS. All Rights Reserved.