From graffito-commits-return-225-apmail-incubator-graffito-commits-archive=www.apache.org@incubator.apache.org Thu Jul 28 05:40:45 2005 Return-Path: Delivered-To: apmail-incubator-graffito-commits-archive@www.apache.org Received: (qmail 83530 invoked from network); 28 Jul 2005 05:40:45 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 28 Jul 2005 05:40:45 -0000 Received: (qmail 283 invoked by uid 500); 28 Jul 2005 05:40:45 -0000 Mailing-List: contact graffito-commits-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: graffito-dev@incubator.apache.org Delivered-To: mailing list graffito-commits@incubator.apache.org Received: (qmail 270 invoked by uid 500); 28 Jul 2005 05:40:45 -0000 Delivered-To: apmail-incubator-graffito-cvs@incubator.apache.org Received: (qmail 267 invoked by uid 99); 28 Jul 2005 05:40:45 -0000 X-ASF-Spam-Status: No, hits=-9.8 required=10.0 tests=ALL_TRUSTED,NO_REAL_NAME X-Spam-Check-By: apache.org Received: from [209.237.227.194] (HELO minotaur.apache.org) (209.237.227.194) by apache.org (qpsmtpd/0.29) with SMTP; Wed, 27 Jul 2005 22:40:34 -0700 Received: (qmail 83503 invoked by uid 65534); 28 Jul 2005 05:40:31 -0000 Message-ID: <20050728054031.83502.qmail@minotaur.apache.org> Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r225698 - in /incubator/graffito/trunk/components/src/java/org/apache/portals/graffito/persistence: ContentPersistenceService.java ContentStoreService.java Date: Thu, 28 Jul 2005 05:40:30 -0000 To: graffito-cvs@incubator.apache.org From: clombart@apache.org X-Mailer: svnmailer-1.0.2 X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Author: clombart Date: Wed Jul 27 22:40:26 2005 New Revision: 225698 URL: http://svn.apache.org/viewcvs?rev=225698&view=rev Log: Review object model (see GRFT-25) Modified: incubator/graffito/trunk/components/src/java/org/apache/portals/graffito/persistence/ContentPersistenceService.java incubator/graffito/trunk/components/src/java/org/apache/portals/graffito/persistence/ContentStoreService.java Modified: incubator/graffito/trunk/components/src/java/org/apache/portals/graffito/persistence/ContentPersistenceService.java URL: http://svn.apache.org/viewcvs/incubator/graffito/trunk/components/src/java/org/apache/portals/graffito/persistence/ContentPersistenceService.java?rev=225698&r1=225697&r2=225698&view=diff ============================================================================== --- incubator/graffito/trunk/components/src/java/org/apache/portals/graffito/persistence/ContentPersistenceService.java (original) +++ incubator/graffito/trunk/components/src/java/org/apache/portals/graffito/persistence/ContentPersistenceService.java Wed Jul 27 22:40:26 2005 @@ -1,319 +1,326 @@ -/* - * Copyright 2000-2004 The Apache Software Foundation. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package org.apache.portals.graffito.persistence; - -import java.util.Collection; -import java.util.Iterator; - -import org.apache.portals.graffito.store.ContentStore; -import org.apache.portals.graffito.exception.CmsIncorrectServerException; -import org.apache.portals.graffito.exception.CmsInstantiateException; -import org.apache.portals.graffito.exception.CmsPermissionException; -import org.apache.portals.graffito.model.CmsObject; -import org.apache.portals.graffito.model.Document; -import org.apache.portals.graffito.model.HistoryElement; -import org.apache.portals.graffito.model.Server; -import org.apache.portals.graffito.search.Filter; - -/** - * Cms Persistence Service. - * - * The persistence service manages a set of content stores and dispatch all requests to thoses stores. - * By default, there is a Master Graffito Store and different content stores. - * The Master Graffito Store contains all content stores references and if needed some cms objects like documents & folders. - * - * When a service like the ContentModelService send a request to do on a cms object, the persistence service try - * to find the correct content store and send it the request. - * - * - * @author Lombart Christophe - * - */ -public interface ContentPersistenceService -{ - /** Folder Interface name - use to instantiate CmsOjbect */ - public final static String FOLDER = "Folder"; - - /** Versionned Document Interface name - use to instantiate CmsOjbect */ - public final static String DOCUMENT = "Document"; - - /** Hisotry Interface name - use to instantiate a version history element */ - public final static String HISTPORY = "HistoryElement"; - - /** Link Interface name - use to instantiate CmsOjbect */ - public final static String LINK = "Link"; - - /** Webdav Server Interface name - use to instantiate Webdav server reference */ - public final static String WEBDAV_SERVER = "WebdavServer"; - - /** Graffito Store Interface name - use to instantiate GraffitoServer reference */ - public final static String GRAFFITO_SERVER = "GraffitoServer"; - - /** File System Store Interface name - use to instantiate FileSystem Server reference */ - public final static String FILE_SYSTEM_SERVER = "FileSystemServer"; - - /** - * Factory method to create cms objects. It is a generic factory used to - * create all CMS related objects like Document, Folder but also Server, HistoryElement, ... . - * - * @param objectName The object interface name - * @return a new instantiated cms object - * @throws CmsInstantiateException when the cms object instance can't be created - */ - public Object createObject(String objectName) throws CmsInstantiateException; - - /** - * Insert any kind of object (CmsObject, Server, HistoryElement, ...) - * - * @param object The object to be inserted - * @throws ContentPersistenceException when it is not possible to insert the object - * @throws CmsPermissionException when the user has not suffisiant privileges - */ - public void insert(Object object) throws ContentPersistenceException, CmsPermissionException; - - /** - * Update any kind of object (CmsObject, Server, HistoryElement, ...) - * - * @param object The object to be updated. - * @throws ContentPersistenceException when it is not possible to insert the object - * @throws CmsPermissionException when the user has not suffisiant privileges - */ - public void update(Object object) throws ContentPersistenceException, CmsPermissionException; - - /** - * Delete any kind of object from a persistence store (CmsObject, Server, ...) . - * - * @param object the object to be delete - * - * @throws ContentPersistenceException unknown object or system error - * @throws CmsPermissionException when the user has not suffisiant privileges - */ - public void delete(Object object) throws ContentPersistenceException, CmsPermissionException; - - - /** - * Delete a CmsObject - * - * @param cmsObjectUri The uri of the cms object to delete - * - * @throws ContentPersistenceException unknown object or system error - * @throws CmsPermissionException when the user has not suffisiant privileges - */ - public void delete(String cmsObjectUri) throws ContentPersistenceException, CmsPermissionException; - - /** - * Delete several objects from a persistence store. - * - * @param clazz The class on wich the filter has to be executed - * @param filter Filter used to select the object to delete - * - * @throws ContentPersistenceException unknown object or system error - * @throws CmsPermissionException when the user has not suffisiant privileges - */ - public void deleteAll(Class clazz, Filter filter) throws ContentPersistenceException, CmsPermissionException; - - - /** - * Instantiate a new filter object. This filter is store independant. - * - * @return a new filter object - */ - public Filter newFilter(); - - /** - * Get a cms related object from the persistent store (can be a document, a folder or Server, ...). - * - * @param clazz Class or interface used for the filter. Represent the extend to be search - * @param filter used to retrieve the cms object.The criteria should provide only one object - * - * @return object the object to be retrieved - * - * @throws ContentPersistenceException when it is not possible to find the associated store - * @throws CmsPermissionException when the user has not suffisiant privileges - */ - public Object getObjectbyQuery(Class clazz, Filter filter) throws ContentPersistenceException, CmsPermissionException; - - /** - * - * Get a cms object from the persistent store depending on an uri. If the - * cms object is a document, this method returns the lastest - * - * @param uri Object uri - * - * @return the object found or null - * - * @throws ContentPersistenceException when it is not possible to find the associated store - * @throws CmsPermissionException when the user has not suffisiant privileges - */ - public CmsObject getCmsObject(String uri) throws ContentPersistenceException, CmsPermissionException; - - /** - * - * Get a cms object from the persistent store depending on an uri and a - * version number. If the cms object is a document, this method returns the - * lastest - * - * @param uri object uri - * @param versionNum The document version number - * @return the object found or null - * - * @throws ContentPersistenceException when it is not possible to find the associated store - * @throws CmsPermissionException when the user has not suffisiant privileges - */ - public CmsObject getCmsObject(String uri, String versionNum) throws ContentPersistenceException, CmsPermissionException; - - /** - * Get all cms objects (documents & folders) found in an parent uri. - * @param uri The parent folder uri from which the cms objects have to be retrieved. it can be a server scope or a folder uri. - * @return the cms object children found - * - * @throws ContentPersistenceException when it is not possible to find the associated store - */ - public Collection getChildren(String uri) throws ContentPersistenceException; - - - /** - * Get folders found in a parent uri. - * @param uri The parent folder uri from which the folders have to be retrieved. it can be a server scope or a parent folder uri. - * @return the folder children found - * - * @throws ContentPersistenceException when it is not possible to find the associated store - */ - public Collection getFolders(String uri) throws ContentPersistenceException; - - /** - * Get documents found in a parent uri. - * @param uri The parent folder uri from which the documents have to be retrieved. it can be a server scope or a parent folder uri. - * @return the folder children found - * - * @throws ContentPersistenceException when it is not possible to find the associated store - */ - public Collection getDocuments(String uri) throws ContentPersistenceException; - - /** - * Get links found in a parent uri. - * @param uri The parent folder uri from which the links have to be retrieved. it can be a server scope or a parent folder uri. - * @return the children found - * - * @throws ContentPersistenceException when it is not possible to find the associated store - */ - public Collection getLinks(String uri) throws ContentPersistenceException; - - /** - * Add a new history element - * - * @param historyElement - * @throws ContentPersistenceException when it is not possible to insert the object - * @throws CmsPermissionException when the user has not suffisiant privileges - */ - public void insertHistoryElement(HistoryElement historyElement) throws ContentPersistenceException, CmsPermissionException ; - - - /** - * Get the version history element defined from a Document. From this history element, it is possible to find previous version history element by calling {@link HistoryElement#getPrevious()} - * @param document The document for which the version history has be found - * @return The History element found - * @throws ContentPersistenceException when it is not possible to find the store associated to the associated document - * @throws CmsPermissionException when the user has not suffisiant privileges - */ - public HistoryElement getHistory(Document document) throws ContentPersistenceException, CmsPermissionException; - - /** - * Get a collection of objects (CmsObject, Server, HistoryElement, ...) from the persistence store. - * This method filters de cms object in function of the user permissions. - * - * @param clazz Class or interface used for the filter. Represent the extend to be search - * @param filter used to retrieve the cms object.The criteria should provide only one object - * - * @return object found collection or null - * - * @throws ContentPersistenceException when it is not possible to find the associated store - */ - public Collection getCollectionByQuery(Class clazz, Filter filter) throws ContentPersistenceException; - - /** - * Get an iterator of objects (CmsObject, Server, HistoryElement, ...) from the persistence store. - * This method filters de cms object in function of the user permissions. - * - * @param clazz Class or interface used for the filter. Represent the extend to be search - * @param filter used to retrieve the cms object.The criteria should provide only one object - * - * @return object found iterator or null - * - * @throws ContentPersistenceException when it is not possible to find the associated store - */ - public Iterator getIteratorByQuery(Class clazz, Filter filter) throws ContentPersistenceException; - - - /** - * Get a server reference based on the scope - * - * @param scope the scope associated to the server to search. The scope is an uri prefix like "/myserver" - * @return the server found or null - * - * @throws ContentPersistenceException when it is not possible to find the associated store - * @throws CmsPermissionException when the user has not suffisiant privileges - */ - public Server getServer(String scope) throws ContentPersistenceException, CmsPermissionException; - - /** - * Add a new Server reference into the content tree. - * - * @param server the server to add into the content tree - * @throws CmsPermissionException when the user has not suffisiant privileges - * @throws CmsIncorrectServerException when the server is not correct - */ - public void registerServer(Server server) throws CmsPermissionException, CmsIncorrectServerException; - - /** - * Drop a server from the content tree - * - * @param server the server to remove from tne content tree - * @throws CmsPermissionException when the user has not suffisiant privileges - * @throws CmsIncorrectServerException when it is not possible to unregister the server - */ - public void unRegisterServer(Server server) throws CmsPermissionException, CmsIncorrectServerException; - - /** - * Get all registered servers - * @param withMasterServer If true the Graffito Master server will be in the server list - * @return the server list - * @throws CmsPermissionException when the user has not suffisiant privileges - */ - public Collection getServers(boolean withMasterServer) throws CmsPermissionException;; - - /** - * Get a content store associated to a scope. A scope is a based uri path - * - * @param scope Scope based uri path used to search a PersistencStore - * @return the content store found or null - * - * @throws ContentPersistenceException when it is not possible to find the associated store - */ - public ContentStore getStore(String scope) throws ContentPersistenceException; - - /** - * Get a persistence store associated to a scope. A scope is a based uri - * path - * - * @return the persistence master store - * - * @throws ContentPersistenceException when it is not possible to find the associated store - * - */ - public ContentStore getGraffitoMasterStore() throws ContentPersistenceException; - +/* + * Copyright 2004-2005 The Apache Software Foundation or its licensors, + * as applicable. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.apache.portals.graffito.persistence; + +import java.util.Collection; +import java.util.Iterator; + +import org.apache.portals.graffito.exception.CmsIncorrectServerException; +import org.apache.portals.graffito.exception.CmsInstantiateException; +import org.apache.portals.graffito.exception.CmsPermissionException; +import org.apache.portals.graffito.model.core.CmsObject; +import org.apache.portals.graffito.model.core.HistoryElement; +import org.apache.portals.graffito.model.core.VersionnedContent; +import org.apache.portals.graffito.model.server.Server; +import org.apache.portals.graffito.services.search.Filter; +import org.apache.portals.graffito.store.ContentStore; + +/** + * Cms Persistence Service. + * + * The persistenceService service manages a set of content stores and dispatch all requests to thoses stores. + * By default, there is a Master Graffito Store and different content stores. + * The Master Graffito Store contains all content stores references and if needed some cms objects like documents & folders. + * + * When a service like the ContentModelService send a request to do on a cms object, the persistenceService service try + * to find the correct content store and send it the request. + * + * + * @author Lombart Christophe + * + */ +public interface ContentPersistenceService +{ + /** Folder Interface name - use to instantiate CmsOjbect */ + public final static String FOLDER = "Folder"; + + /** Content Interface name - use to instantiate CmsOjbect */ + public final static String CONTENT = "Content"; + + /** Content Interface name - use to instantiate CmsOjbect */ + public final static String VERSIONNED_CONTENT = "VersionnedContent"; + + /** Content Interface name - use to instantiate CmsOjbect */ + public final static String DOCUMENT = "Document"; + + /** Hisotry Interface name - use to instantiate a version history element */ + public final static String HISTPORY = "HistoryElement"; + + /** Link Interface name - use to instantiate CmsOjbect */ + public final static String LINK = "Link"; + + /** Webdav Server Interface name - use to instantiate Webdav server reference */ + public final static String WEBDAV_SERVER = "WebdavServer"; + + /** Graffito Store Interface name - use to instantiate GraffitoServer reference */ + public final static String GRAFFITO_SERVER = "GraffitoServer"; + + /** File System Store Interface name - use to instantiate FileSystem Server reference */ + public final static String FILE_SYSTEM_SERVER = "FileSystemServer"; + + /** + * Factory method to create cms objects. It is a generic factory used to + * create all CMS related objects like Document, Folder but also Server, HistoryElement, ... . + * + * @param objectName The object interface name + * @return a new instantiated cms object + * @throws CmsInstantiateException when the cms object instance can't be created + */ + public Object createObject(String objectName) throws CmsInstantiateException; + + /** + * Insert any kind of object (CmsObject, Server, HistoryElement, ...) + * + * @param object The object to be inserted + * @throws ContentPersistenceException when it is not possible to insert the object + * @throws CmsPermissionException when the user has not suffisiant privileges + */ + public void insert(Object object) throws ContentPersistenceException, CmsPermissionException; + + /** + * Update any kind of object (CmsObject, Server, HistoryElement, ...) + * + * @param object The object to be updated. + * @throws ContentPersistenceException when it is not possible to insert the object + * @throws CmsPermissionException when the user has not suffisiant privileges + */ + public void update(Object object) throws ContentPersistenceException, CmsPermissionException; + + /** + * Delete any kind of object from a persistenceService store (CmsObject, Server, ...) . + * + * @param object the object to be delete + * + * @throws ContentPersistenceException unknown object or system error + * @throws CmsPermissionException when the user has not suffisiant privileges + */ + public void delete(Object object) throws ContentPersistenceException, CmsPermissionException; + + + /** + * Delete a CmsObject + * + * @param cmsObjectUri The uri of the cms object to delete + * + * @throws ContentPersistenceException unknown object or system error + * @throws CmsPermissionException when the user has not suffisiant privileges + */ + public void delete(String cmsObjectUri) throws ContentPersistenceException, CmsPermissionException; + + /** + * Delete several objects from a persistenceService store. + * + * @param clazz The class on wich the filter has to be executed + * @param filter Filter used to select the object to delete + * + * @throws ContentPersistenceException unknown object or system error + * @throws CmsPermissionException when the user has not suffisiant privileges + */ + public void deleteAll(Class clazz, Filter filter) throws ContentPersistenceException, CmsPermissionException; + + + /** + * Instantiate a new filter object. This filter is store independant. + * + * @return a new filter object + */ + public Filter newFilter(); + + /** + * Get a cms related object from the persistent store (can be a document, a folder or Server, ...). + * + * @param clazz Class or interface used for the filter. Represent the extend to be search + * @param filter used to retrieve the cms object.The criteria should provide only one object + * + * @return object the object to be retrieved + * + * @throws ContentPersistenceException when it is not possible to find the associated store + * @throws CmsPermissionException when the user has not suffisiant privileges + */ + public Object getObjectbyQuery(Class clazz, Filter filter) throws ContentPersistenceException, CmsPermissionException; + + /** + * + * Get a cms object from the persistent store depending on an uri. If the + * cms object is a document, this method returns the lastest + * + * @param uri Object uri + * + * @return the object found or null + * + * @throws ContentPersistenceException when it is not possible to find the associated store + * @throws CmsPermissionException when the user has not suffisiant privileges + */ + public CmsObject getCmsObject(String uri) throws ContentPersistenceException, CmsPermissionException; + + /** + * + * Get a cms object from the persistent store depending on an uri and a + * version number. If the cms object is a document, this method returns the + * lastest + * + * @param uri object uri + * @param versionNum The document version number + * @return the object found or null + * + * @throws ContentPersistenceException when it is not possible to find the associated store + * @throws CmsPermissionException when the user has not suffisiant privileges + */ + public CmsObject getCmsObject(String uri, String versionNum) throws ContentPersistenceException, CmsPermissionException; + + /** + * Get all cms objects (documents & folders) found in an parent uri. + * @param uri The parent folder uri from which the cms objects have to be retrieved. it can be a server scope or a folder uri. + * @return the cms object children found + * + * @throws ContentPersistenceException when it is not possible to find the associated store + */ + public Collection getChildren(String uri) throws ContentPersistenceException; + + + /** + * Get folders found in a parent uri. + * @param uri The parent folder uri from which the folders have to be retrieved. it can be a server scope or a parent folder uri. + * @return the folder children found + * + * @throws ContentPersistenceException when it is not possible to find the associated store + */ + public Collection getFolders(String uri) throws ContentPersistenceException; + + /** + * Get contents found in a parent uri. + * @param uri The parent folder uri from which the contents have to be retrieved. it can be a server scope or a parent folder uri. + * @return the folder children found + * + * @throws ContentPersistenceException when it is not possible to find the associated store + */ + public Collection getContents(String uri) throws ContentPersistenceException; + + /** + * Get links found in a parent uri. + * @param uri The parent folder uri from which the links have to be retrieved. it can be a server scope or a parent folder uri. + * @return the children found + * + * @throws ContentPersistenceException when it is not possible to find the associated store + */ + public Collection getLinks(String uri) throws ContentPersistenceException; + + /** + * Add a new history element + * + * @param historyElement + * @throws ContentPersistenceException when it is not possible to insert the object + * @throws CmsPermissionException when the user has not suffisiant privileges + */ + public void insertHistoryElement(HistoryElement historyElement) throws ContentPersistenceException, CmsPermissionException ; + + + /** + * Get the version history element defined from a versionned content. From this history element, it is possible to find previous version history element by calling {@link HistoryElement#getPrevious()} + * @param versionnedContent The content for which the history has to be retrieved + * @return The History element found + * @throws ContentPersistenceException when it is not possible to find the store associated to the associated document + * @throws CmsPermissionException when the user has not suffisiant privileges + */ + public HistoryElement getHistory(VersionnedContent versionnedContent) throws ContentPersistenceException, CmsPermissionException; + + /** + * Get a collection of objects (CmsObject, Server, HistoryElement, ...) from the persistenceService store. + * This method filters de cms object in function of the user permissions. + * + * @param clazz Class or interface used for the filter. Represent the extend to be search + * @param filter used to retrieve the cms object.The criteria should provide only one object + * + * @return object found collection or null + * + * @throws ContentPersistenceException when it is not possible to find the associated store + */ + public Collection getCollectionByQuery(Class clazz, Filter filter) throws ContentPersistenceException; + + /** + * Get an iterator of objects (CmsObject, Server, HistoryElement, ...) from the persistenceService store. + * This method filters de cms object in function of the user permissions. + * + * @param clazz Class or interface used for the filter. Represent the extend to be search + * @param filter used to retrieve the cms object.The criteria should provide only one object + * + * @return object found iterator or null + * + * @throws ContentPersistenceException when it is not possible to find the associated store + */ + public Iterator getIteratorByQuery(Class clazz, Filter filter) throws ContentPersistenceException; + + + /** + * Get a server reference based on the scope + * + * @param scope the scope associated to the server to search. The scope is an uri prefix like "/myserver" + * @return the server found or null + * + * @throws ContentPersistenceException when it is not possible to find the associated store + * @throws CmsPermissionException when the user has not suffisiant privileges + */ + public Server getServer(String scope) throws ContentPersistenceException, CmsPermissionException; + + /** + * Add a new Server reference into the content tree. + * + * @param server the server to add into the content tree + * @throws CmsPermissionException when the user has not suffisiant privileges + * @throws CmsIncorrectServerException when the server is not correct + */ + public void registerServer(Server server) throws CmsPermissionException, CmsIncorrectServerException; + + /** + * Drop a server from the content tree + * + * @param server the server to remove from tne content tree + * @throws CmsPermissionException when the user has not suffisiant privileges + * @throws CmsIncorrectServerException when it is not possible to unregister the server + */ + public void unRegisterServer(Server server) throws CmsPermissionException, CmsIncorrectServerException; + + /** + * Get all registered servers + * @param withMasterServer If true the Graffito Master server will be in the server list + * @return the server list + * @throws CmsPermissionException when the user has not suffisiant privileges + */ + public Collection getServers(boolean withMasterServer) throws CmsPermissionException;; + + /** + * Get a content store associated to a scope. A scope is a based uri path + * + * @param scope Scope based uri path used to search a PersistencStore + * @return the content store found or null + * + * @throws ContentPersistenceException when it is not possible to find the associated store + */ + public ContentStore getStore(String scope) throws ContentPersistenceException; + + /** + * Get a persistenceService store associated to a scope. A scope is a based uri + * path + * + * @return the persistenceService master store + * + * @throws ContentPersistenceException when it is not possible to find the associated store + * + */ + public ContentStore getGraffitoMasterStore() throws ContentPersistenceException; + } Modified: incubator/graffito/trunk/components/src/java/org/apache/portals/graffito/persistence/ContentStoreService.java URL: http://svn.apache.org/viewcvs/incubator/graffito/trunk/components/src/java/org/apache/portals/graffito/persistence/ContentStoreService.java?rev=225698&r1=225697&r2=225698&view=diff ============================================================================== --- incubator/graffito/trunk/components/src/java/org/apache/portals/graffito/persistence/ContentStoreService.java (original) +++ incubator/graffito/trunk/components/src/java/org/apache/portals/graffito/persistence/ContentStoreService.java Wed Jul 27 22:40:26 2005 @@ -15,9 +15,9 @@ */ package org.apache.portals.graffito.persistence; -import org.apache.portals.graffito.store.ContentStore; import org.apache.portals.graffito.exception.CmsInstantiateException; -import org.apache.portals.graffito.model.Server; +import org.apache.portals.graffito.model.server.Server; +import org.apache.portals.graffito.store.ContentStore; /** *