org.apache.portals.graffito.model.server
Interface Server

All Known Subinterfaces:
FileSystemServer, GraffitoServer, WebdavServer

public interface Server

The Server interface is the ancestor for all kind of content servers (DB, Webdav, ...). A Server is a collection of Folder. Each Server is associated to a plugin class name (see org.apache.portals.graffito.store in the component subproject). In the Graffito context, there is a mandatary server called "Graffito Master Server" which contains server metadatas. By this way, the Graffito engine can mount all referenced servers into the same content tree. Each server has scope which is an uri prefix. Each cms object with the same uri prefix will be stores in this server.

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

Method Summary
 java.lang.String getAlias()
           
 java.lang.String getDescription()
           
 java.lang.String getScope()
          The scope is the uri prefix assigned to this server (eg.
 java.lang.String getStoreClassName()
           
 java.lang.String getTitle()
           
 void setAlias(java.lang.String alias)
          Set the server alias.
 void setDescription(java.lang.String description)
          Set the description
 void setScope(java.lang.String scope)
          Set the server scope
 void setStoreClassName(java.lang.String pluginClassName)
          set the store class name.
 void setTitle(java.lang.String title)
          Set the server title
 

Method Detail

getScope

java.lang.String getScope()
The scope is the uri prefix assigned to this server (eg. "/myserver")

Returns:
the server scope

setScope

void setScope(java.lang.String scope)
Set the server scope

Parameters:
scope - the new scope to set

setAlias

void setAlias(java.lang.String alias)
Set the server alias. This ia an unique id

Parameters:
alias - the new alias to set

getAlias

java.lang.String getAlias()
Returns:
the server alias

setDescription

void setDescription(java.lang.String description)
Set the description

Parameters:
description - the new description to set

getDescription

java.lang.String getDescription()
Returns:
the server description

getTitle

java.lang.String getTitle()
Returns:
the server title

setTitle

void setTitle(java.lang.String title)
Set the server title

Parameters:
title - the new server title to set

setStoreClassName

void setStoreClassName(java.lang.String pluginClassName)
set the store class name.

Parameters:
pluginClassName - the content class store to set

getStoreClassName

java.lang.String getStoreClassName()
Returns:
the store class name


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