org.exoplatform.services.wsrp.producer.impl
Class PersistentStateManagerImpl

java.lang.Object
  extended by org.exoplatform.services.wsrp.producer.impl.PersistentStateManagerImpl
All Implemented Interfaces:
PersistentStateManager

public class PersistentStateManagerImpl
extends Object
implements PersistentStateManager

Author:
Mestrallet Benjamin benjmestrallet@users.sourceforge.net

Constructor Summary
PersistentStateManagerImpl(org.exoplatform.services.cache.CacheService cacheService, org.exoplatform.services.database.HibernateService hservice, WSRPConfiguration conf)
           
 
Method Summary
 void addConsumerConfiguredPortletHandle(String portletHandle, org.exoplatform.services.wsrp.type.RegistrationContext registrationContext)
           
 void deregister(org.exoplatform.services.wsrp.type.RegistrationContext registrationContext)
           
 Map<String,String[]> getNavigationalSate(String navigationalState)
           
 org.exoplatform.services.wsrp.type.RegistrationData getRegistrationData(org.exoplatform.services.wsrp.type.RegistrationContext registrationContext)
           
 boolean isConsumerConfiguredPortlet(String portletHandle, org.exoplatform.services.wsrp.type.RegistrationContext registrationContext)
           
 boolean isRegistered(org.exoplatform.services.wsrp.type.RegistrationContext registrationContext)
           
 WSRP1StateData load(String key)
           
 void putNavigationalState(String ns, Map<String,String[]> renderParameters)
           
 byte[] register(String registrationHandle, org.exoplatform.services.wsrp.type.RegistrationData data)
           
 void remove(String key)
           
 void removeConsumerConfiguredPortletHandle(String portletHandle, org.exoplatform.services.wsrp.type.RegistrationContext registrationContext)
           
 void save(String key, String type, Object o)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PersistentStateManagerImpl

public PersistentStateManagerImpl(org.exoplatform.services.cache.CacheService cacheService,
                                  org.exoplatform.services.database.HibernateService hservice,
                                  WSRPConfiguration conf)
                           throws Exception
Throws:
Exception
Method Detail

getRegistrationData

public org.exoplatform.services.wsrp.type.RegistrationData getRegistrationData(org.exoplatform.services.wsrp.type.RegistrationContext registrationContext)
                                                                        throws WSRPException
Specified by:
getRegistrationData in interface PersistentStateManager
Throws:
WSRPException

register

public byte[] register(String registrationHandle,
                       org.exoplatform.services.wsrp.type.RegistrationData data)
                throws WSRPException
Specified by:
register in interface PersistentStateManager
Throws:
WSRPException

deregister

public void deregister(org.exoplatform.services.wsrp.type.RegistrationContext registrationContext)
                throws WSRPException
Specified by:
deregister in interface PersistentStateManager
Throws:
WSRPException

isRegistered

public boolean isRegistered(org.exoplatform.services.wsrp.type.RegistrationContext registrationContext)
                     throws WSRPException
Specified by:
isRegistered in interface PersistentStateManager
Throws:
WSRPException

isConsumerConfiguredPortlet

public boolean isConsumerConfiguredPortlet(String portletHandle,
                                           org.exoplatform.services.wsrp.type.RegistrationContext registrationContext)
                                    throws WSRPException
Specified by:
isConsumerConfiguredPortlet in interface PersistentStateManager
Throws:
WSRPException

addConsumerConfiguredPortletHandle

public void addConsumerConfiguredPortletHandle(String portletHandle,
                                               org.exoplatform.services.wsrp.type.RegistrationContext registrationContext)
                                        throws WSRPException
Specified by:
addConsumerConfiguredPortletHandle in interface PersistentStateManager
Throws:
WSRPException

removeConsumerConfiguredPortletHandle

public void removeConsumerConfiguredPortletHandle(String portletHandle,
                                                  org.exoplatform.services.wsrp.type.RegistrationContext registrationContext)
                                           throws WSRPException
Specified by:
removeConsumerConfiguredPortletHandle in interface PersistentStateManager
Throws:
WSRPException

getNavigationalSate

public Map<String,String[]> getNavigationalSate(String navigationalState)
                                         throws WSRPException
Specified by:
getNavigationalSate in interface PersistentStateManager
Throws:
WSRPException

putNavigationalState

public void putNavigationalState(String ns,
                                 Map<String,String[]> renderParameters)
                          throws WSRPException
Specified by:
putNavigationalState in interface PersistentStateManager
Throws:
WSRPException

save

public final void save(String key,
                       String type,
                       Object o)
                throws Exception
Throws:
Exception

load

public final WSRP1StateData load(String key)
                          throws Exception
Throws:
Exception

remove

public final void remove(String key)
                  throws Exception
Throws:
Exception


Copyright © 2009 eXo Platform SAS. All Rights Reserved.