org.apache.portals.graffito.persistence
Interface ContentStoreService

All Known Implementing Classes:
ContentStoreServiceImpl

public interface ContentStoreService

This service is managing all content store defined in Graffito. The Persistence service delegates to this service this management in order to have specific container implementations.

Version:
Author:
Lombart Christophe

Method Summary
 boolean canRegisterServer(org.apache.portals.graffito.model.server.Server server)
          Check if a new server can be registers
 ContentStore getStore(java.lang.String serverAlias)
          Return the store associated to a server alias
 void newStore(org.apache.portals.graffito.model.server.Server server)
          Plug a new ContentStorein function of a server reference into Graffito
 void removeStore(java.lang.String serverAlias)
          Unplug a ContentStore from the Graffito engine
 

Method Detail

newStore

void newStore(org.apache.portals.graffito.model.server.Server server)
              throws org.apache.portals.graffito.exception.CmsInstantiateException
Plug a new ContentStorein function of a server reference into Graffito

Parameters:
server - The server for which the ContentStore has to be instantiate. This server param contains all information to instantiate & connect to the content store
Throws:
org.apache.portals.graffito.exception.CmsInstantiateException - when It is not possible to instantiate the ContentStore

getStore

ContentStore getStore(java.lang.String serverAlias)
Return the store associated to a server alias

Parameters:
serverAlias - The server alias assigned to the store to found
Returns:
The Content store found or null

removeStore

void removeStore(java.lang.String serverAlias)
Unplug a ContentStore from the Graffito engine

Parameters:
serverAlias - The server alias associated to the Content store to unplug

canRegisterServer

boolean canRegisterServer(org.apache.portals.graffito.model.server.Server server)
Check if a new server can be registers

Parameters:
server - The new server to register
Returns:
true if the new server can be registered


Copyright © 2004-2006 The Apache Software Foundation. All Rights Reserved.