org.apache.portals.graffito.services.core.impl
Class BaseContentServiceImpl

java.lang.Object
  extended by org.apache.portals.graffito.services.core.impl.BaseContentServiceImpl
Direct Known Subclasses:
AbstractModelServiceImpl, ContentModelServiceImpl, ContentServerServiceImpl, ContentVersionServiceImpl, DocumentModelServiceImpl

public abstract class BaseContentServiceImpl
extends java.lang.Object

Base class for all High level Graffito services : Model, Query, security, Version, ... .

Author:
Christophe Lombart

Field Summary
protected  ContentPersistenceService persistenceService
           
 
Constructor Summary
BaseContentServiceImpl(ContentPersistenceService persistenceService)
          Constructor : initialise with the persistenceService service
 
Method Summary
protected  ContentPersistenceService getPersistenceService()
          Get the persistenceService service
protected  void validateParentFolder(org.apache.portals.graffito.model.core.CmsObject cmsObject)
          Check if the cms object parent folder is correct
protected  void validateUri(java.lang.String uri)
          Check if the cms object uri is correct
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

persistenceService

protected ContentPersistenceService persistenceService
Constructor Detail

BaseContentServiceImpl

public BaseContentServiceImpl(ContentPersistenceService persistenceService)
Constructor : initialise with the persistenceService service

Parameters:
persistenceService - The reference to the PersistenceService
Method Detail

validateUri

protected void validateUri(java.lang.String uri)
                    throws org.apache.portals.graffito.exception.CmsInvalidObjectException
Check if the cms object uri is correct

Parameters:
uri - The uri to validate
Throws:
org.apache.portals.graffito.exception.CmsInvalidObjectException - when the uri is not correct

validateParentFolder

protected void validateParentFolder(org.apache.portals.graffito.model.core.CmsObject cmsObject)
                             throws org.apache.portals.graffito.exception.CmsInvalidUriException
Check if the cms object parent folder is correct

Parameters:
cmsObject - to validate
Throws:
org.apache.portals.graffito.exception.CmsInvalidUriException - when the parent folder is not correct

getPersistenceService

protected ContentPersistenceService getPersistenceService()
Get the persistenceService service

Returns:
The persistenceService service.


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