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

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

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

This implementation uses Castor to load/save the profiles.

Version:
$Id: MapProfileLS.java 328453 2005-10-25 19:08:53Z cziegeler $

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
See Also:
Disposable.dispose()

service

public void service(ServiceManager manager)
             throws ServiceException
Specified by:
service in interface Serviceable
Throws:
ServiceException
See Also:
Serviceable.service(org.apache.avalon.framework.service.ServiceManager)

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
See Also:
ProfileLS.loadProfile(java.lang.Object, java.util.Map)

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
See Also:
ProfileLS.saveProfile(java.lang.Object, java.util.Map, java.lang.Object)

getValidity

public SourceValidity getValidity(Object key,
                                  Map parameters)
Specified by:
getValidity in interface ProfileLS
See Also:
ProfileLS.getValidity(java.lang.Object, java.util.Map)


Copyright ? 1999-2005 The Apache Software Foundation. All Rights Reserved.