org.apache.cocoon.portal.profile.impl
Class MapProfileLS

java.lang.Object
  extended by org.apache.avalon.framework.logger.AbstractLogEnabled
      extended by org.apache.cocoon.portal.profile.impl.MapProfileLS
All Implemented Interfaces:
Disposable, Component, LogEnabled, Serviceable, ThreadSafe, ProfileLS

public class MapProfileLS
extends AbstractLogEnabled
implements Component, Serviceable, ProfileLS, ThreadSafe, Disposable

This implementation uses Castor to load/save the profiles.

Version:
CVS $Id: MapProfileLS.html 1304258 2012-03-23 10:09:27Z ilgrosso $
Author:
Carsten Ziegeler

Field Summary
protected  ServiceManager manager
          The component manager
protected  XPathProcessor xpathProcessor
          The XPath Processor
 
Fields inherited from interface org.apache.cocoon.portal.profile.ProfileLS
PARAMETER_OBJECTMAP, PARAMETER_PROFILETYPE, PROFILETYPE_COPLETBASEDATA, PROFILETYPE_COPLETDATA, PROFILETYPE_COPLETINSTANCEDATA, PROFILETYPE_LAYOUT, ROLE
 
Constructor Summary
MapProfileLS()
           
 
Method Summary
 void dispose()
           
protected  StringBuffer getSaveURI(Map keyMap)
           
protected  String getURI(Map keyMap)
           
 SourceValidity getValidity(Object key, Map parameters)
           
 Object loadProfile(Object key, Map parameters)
          Load a profile
 void saveProfile(Object key, Map parameters, Object profile)
          Save a profile
 void service(ServiceManager manager)
           
 
Methods inherited from class org.apache.avalon.framework.logger.AbstractLogEnabled
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

manager

protected ServiceManager manager
The component manager


xpathProcessor

protected XPathProcessor xpathProcessor
The XPath Processor

Constructor Detail

MapProfileLS

public MapProfileLS()
Method Detail

dispose

public void dispose()
Specified by:
dispose in interface Disposable

service

public void service(ServiceManager manager)
             throws ServiceException
Specified by:
service in interface Serviceable
Throws:
ServiceException

getURI

protected String getURI(Map keyMap)
                 throws Exception
Throws:
Exception

getSaveURI

protected StringBuffer getSaveURI(Map keyMap)
                           throws Exception
Throws:
Exception

loadProfile

public Object loadProfile(Object key,
                          Map parameters)
                   throws Exception
Description copied from interface: ProfileLS
Load a profile

Specified by:
loadProfile in interface ProfileLS
Throws:
Exception

saveProfile

public void saveProfile(Object key,
                        Map parameters,
                        Object profile)
                 throws Exception
Description copied from interface: ProfileLS
Save a profile

Specified by:
saveProfile in interface ProfileLS
Throws:
Exception

getValidity

public SourceValidity getValidity(Object key,
                                  Map parameters)
Specified by:
getValidity in interface ProfileLS


Copyright © 1999-2010 The Apache Software Foundation. All Rights Reserved.