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

java.lang.Object
  extended by org.apache.portals.graffito.services.core.impl.BaseContentServiceImpl
      extended by org.apache.portals.graffito.services.core.impl.AbstractModelServiceImpl

public abstract class AbstractModelServiceImpl
extends BaseContentServiceImpl

Astract class for all model service (ContentModelService, DocumentModelService, ...).

Version:
$Id: Exp $

Field Summary
protected static org.apache.commons.logging.Log logger
           
 
Fields inherited from class org.apache.portals.graffito.services.core.impl.BaseContentServiceImpl
persistenceService
 
Constructor Summary
AbstractModelServiceImpl(ContentPersistenceService persistenceService)
           
 
Method Summary
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 org.apache.portals.graffito.services.core.impl.BaseContentServiceImpl
getPersistenceService
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logger

protected static final org.apache.commons.logging.Log logger
Constructor Detail

AbstractModelServiceImpl

public AbstractModelServiceImpl(ContentPersistenceService persistenceService)
Parameters:
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

Overrides:
validateUri in class BaseContentServiceImpl
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

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


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