org.exoplatform.services.wcm.portal.impl
Class LivePortalManagerServiceImpl

java.lang.Object
  extended by org.exoplatform.services.wcm.portal.impl.LivePortalManagerServiceImpl
All Implemented Interfaces:
LivePortalManagerService, org.picocontainer.Startable

public class LivePortalManagerServiceImpl
extends java.lang.Object
implements LivePortalManagerService, org.picocontainer.Startable

The Class LivePortalManagerServiceImpl.


Constructor Summary
LivePortalManagerServiceImpl()
          Instantiates a new live portal manager service impl.
 
Method Summary
 void addLivePortal(org.exoplatform.services.jcr.ext.common.SessionProvider sessionProvider, org.exoplatform.portal.config.model.PortalConfig portalConfig)
          Adds the live portal on current repository.
 javax.jcr.Node getLivePortal(org.exoplatform.services.jcr.ext.common.SessionProvider sessionProvider, java.lang.String portalName)
          Gets the live portal by name.
 javax.jcr.Node getLivePortal(org.exoplatform.services.jcr.ext.common.SessionProvider sessionProvider, java.lang.String repository, java.lang.String portalName)
          Gets the live portal on specific repository.
 javax.jcr.Node getLivePortalByChild(javax.jcr.Node childNode)
           
 java.util.List<javax.jcr.Node> getLivePortals(org.exoplatform.services.jcr.ext.common.SessionProvider sessionProvider)
          Gets the all live portals on current repository.
 java.util.List<javax.jcr.Node> getLivePortals(org.exoplatform.services.jcr.ext.common.SessionProvider sessionProvider, java.lang.String repository)
          Gets the live portals on specific repository.
 java.util.Collection<java.lang.String> getLivePortalsPath()
           
 javax.jcr.Node getLiveSharedPortal(org.exoplatform.services.jcr.ext.common.SessionProvider sessionProvider)
          Gets the live shared portal on current repository.
 javax.jcr.Node getLiveSharedPortal(org.exoplatform.services.jcr.ext.common.SessionProvider sessionProvider, java.lang.String repository)
          Gets the live shared portal on specific repository.
 java.lang.String getPortalNameByPath(java.lang.String portalPath)
          Gets the all live portals path.
 java.lang.String getPortalPathByName(java.lang.String portalName)
           
 void removeLivePortal(org.exoplatform.services.jcr.ext.common.SessionProvider sessionProvider, org.exoplatform.portal.config.model.PortalConfig portalConfig)
          Removes the live portal on current repository.
 void start()
           
 void stop()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LivePortalManagerServiceImpl

public LivePortalManagerServiceImpl()
Instantiates a new live portal manager service impl.

Parameters:
configService - the config service
repositoryService - the repository service
Method Detail

getLivePortal

public final javax.jcr.Node getLivePortal(org.exoplatform.services.jcr.ext.common.SessionProvider sessionProvider,
                                          java.lang.String portalName)
                                   throws java.lang.Exception
Description copied from interface: LivePortalManagerService
Gets the live portal by name.

Specified by:
getLivePortal in interface LivePortalManagerService
Parameters:
sessionProvider - the session provider
portalName - the portal name
Returns:
the live portal
Throws:
java.lang.Exception - the exception

getLivePortals

public final java.util.List<javax.jcr.Node> getLivePortals(org.exoplatform.services.jcr.ext.common.SessionProvider sessionProvider)
                                                    throws java.lang.Exception
Description copied from interface: LivePortalManagerService
Gets the all live portals on current repository.

Specified by:
getLivePortals in interface LivePortalManagerService
Parameters:
sessionProvider - the session provider
Returns:
the live portals
Throws:
java.lang.Exception - the exception

getLiveSharedPortal

public final javax.jcr.Node getLiveSharedPortal(org.exoplatform.services.jcr.ext.common.SessionProvider sessionProvider)
                                         throws java.lang.Exception
Description copied from interface: LivePortalManagerService
Gets the live shared portal on current repository.

Specified by:
getLiveSharedPortal in interface LivePortalManagerService
Parameters:
sessionProvider - the session provider
Returns:
the live shared portal
Throws:
java.lang.Exception - the exception

getLivePortal

public final javax.jcr.Node getLivePortal(org.exoplatform.services.jcr.ext.common.SessionProvider sessionProvider,
                                          java.lang.String repository,
                                          java.lang.String portalName)
                                   throws java.lang.Exception
Description copied from interface: LivePortalManagerService
Gets the live portal on specific repository.

Specified by:
getLivePortal in interface LivePortalManagerService
Parameters:
sessionProvider - the session provider
repository - the repository
portalName - the portal name
Returns:
the live portal
Throws:
java.lang.Exception - the exception

getLivePortals

public final java.util.List<javax.jcr.Node> getLivePortals(org.exoplatform.services.jcr.ext.common.SessionProvider sessionProvider,
                                                           java.lang.String repository)
                                                    throws java.lang.Exception
Description copied from interface: LivePortalManagerService
Gets the live portals on specific repository.

Specified by:
getLivePortals in interface LivePortalManagerService
Parameters:
sessionProvider - the session provider
repository - the repository
Returns:
the live portals
Throws:
java.lang.Exception - the exception

getLiveSharedPortal

public final javax.jcr.Node getLiveSharedPortal(org.exoplatform.services.jcr.ext.common.SessionProvider sessionProvider,
                                                java.lang.String repository)
                                         throws java.lang.Exception
Description copied from interface: LivePortalManagerService
Gets the live shared portal on specific repository.

Specified by:
getLiveSharedPortal in interface LivePortalManagerService
Parameters:
sessionProvider - the session provider
repository - the repository
Returns:
the live shared portal
Throws:
java.lang.Exception - the exception

addLivePortal

public final void addLivePortal(org.exoplatform.services.jcr.ext.common.SessionProvider sessionProvider,
                                org.exoplatform.portal.config.model.PortalConfig portalConfig)
                         throws java.lang.Exception
Description copied from interface: LivePortalManagerService
Adds the live portal on current repository.

Specified by:
addLivePortal in interface LivePortalManagerService
Parameters:
sessionProvider - the session provider
portalConfig - the portal config
Throws:
java.lang.Exception - the exception

removeLivePortal

public void removeLivePortal(org.exoplatform.services.jcr.ext.common.SessionProvider sessionProvider,
                             org.exoplatform.portal.config.model.PortalConfig portalConfig)
                      throws java.lang.Exception
Description copied from interface: LivePortalManagerService
Removes the live portal on current repository.

Specified by:
removeLivePortal in interface LivePortalManagerService
Parameters:
sessionProvider - the session provider
portalConfig - the portal config
Throws:
java.lang.Exception - the exception

getLivePortalsPath

public java.util.Collection<java.lang.String> getLivePortalsPath()
                                                          throws java.lang.Exception
Specified by:
getLivePortalsPath in interface LivePortalManagerService
Throws:
java.lang.Exception

getPortalNameByPath

public java.lang.String getPortalNameByPath(java.lang.String portalPath)
                                     throws java.lang.Exception
Description copied from interface: LivePortalManagerService
Gets the all live portals path.

Specified by:
getPortalNameByPath in interface LivePortalManagerService
Returns:
the live portals path
Throws:
java.lang.Exception - the exception

getLivePortalByChild

public javax.jcr.Node getLivePortalByChild(javax.jcr.Node childNode)
                                    throws java.lang.Exception
Specified by:
getLivePortalByChild in interface LivePortalManagerService
Throws:
java.lang.Exception

start

public void start()
Specified by:
start in interface org.picocontainer.Startable

stop

public void stop()
Specified by:
stop in interface org.picocontainer.Startable

getPortalPathByName

public java.lang.String getPortalPathByName(java.lang.String portalName)
                                     throws java.lang.Exception
Specified by:
getPortalPathByName in interface LivePortalManagerService
Throws:
java.lang.Exception


Copyright © 2011 eXo Platform SAS. All Rights Reserved.