org.apache.portals.graffito.services.core
Interface ContentServerService


public interface ContentServerService

Content Server Interface

This service maintains server references and their integration into the virtual content tree. In this version, all servers are plugged on the root content tree level. Later, we plan to "mount" external servers anywhere in the content tree.

Version:
$Id: ContentServerService.java,v 1.1 2004/12/22 21:16:12 christophe Exp $
Author:
Christophe Lombart

Method Summary
 void addServer(Server server)
          Adds a new server to engine's persistent store.
 FileSystemServer createFileSystemServer()
          Factory to create a new File System server reference object
 GraffitoServer createGraffitoServer()
          Factory to create a new Graffito server reference object
 WebdavServer createWebdavServer()
          Factory to create a new WEBDAV server reference object
 java.util.Collection getAllServers()
          Get all server references defined into the engine's persistence store.
 Server getServer(java.lang.String scope)
          Get a server reference from the engine's persistent store.
 void removeServer(Server server)
          Remove a server from the engine's persistent store.
 void updateServer(Server server)
          Update a server reference into the engine's persistent store.
 

Method Detail

createWebdavServer

WebdavServer createWebdavServer()
                                throws ContentManagementException
Factory to create a new WEBDAV server reference object

Returns:
an empty factory created WEBDAV server reference
Throws:
ContentManagementException

createGraffitoServer

GraffitoServer createGraffitoServer()
                                    throws ContentManagementException
Factory to create a new Graffito server reference object

Returns:
an empty factory created Graffito server
Throws:
ContentManagementException

createFileSystemServer

FileSystemServer createFileSystemServer()
                                        throws ContentManagementException
Factory to create a new File System server reference object

Returns:
an empty factory created File System server
Throws:
ContentManagementException

addServer

void addServer(Server server)
               throws ContentManagementException
Adds a new server to engine's persistent store.

Parameters:
server - the server to add
Throws:
ContentManagementException

removeServer

void removeServer(Server server)
                  throws ContentManagementException
Remove a server from the engine's persistent store. This method delete only the server reference (not its associated content tree).

Parameters:
server - the server reference to remove.
Throws:
ContentManagementException

getServer

Server getServer(java.lang.String scope)
                 throws ContentManagementException
Get a server reference from the engine's persistent store.

Parameters:
scope - the scope assigned to the server to retrieve.
Returns:
server found or null.
Throws:
ContentManagementException

updateServer

void updateServer(Server server)
                  throws ContentManagementException
Update a server reference into the engine's persistent store.

Parameters:
server - the server to be updated.
Throws:
ContentManagementException

getAllServers

java.util.Collection getAllServers()
                                   throws ContentManagementException
Get all server references defined into the engine's persistence store.

Returns:
a collection of Server
Throws:
ContentManagementException


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