org.exoplatform.services.wsrp2.producer.impl
Class PersistentStateManagerImpl
java.lang.Object
org.exoplatform.services.wsrp2.producer.impl.PersistentStateManagerImpl
- All Implemented Interfaces:
- PersistentStateManager
public class PersistentStateManagerImpl
- extends Object
- implements PersistentStateManager
- Author:
- Mestrallet Benjamin benjmestrallet@users.sourceforge.net
|
Method Summary |
void |
addConsumerConfiguredPortletHandle(String portletHandle,
org.exoplatform.services.wsrp2.type.RegistrationContext registrationContext)
|
void |
deregister(org.exoplatform.services.wsrp2.type.RegistrationContext registrationContext)
|
Map<String,String[]> |
getInteractionSate(String interactionState)
|
Map<String,String[]> |
getNavigationalState(String navigationalState)
|
org.exoplatform.services.wsrp2.type.Lifetime |
getPortletLifetime(String portletHandle)
|
org.exoplatform.services.wsrp2.type.RegistrationData |
getRegistrationData(org.exoplatform.services.wsrp2.type.RegistrationContext registrationContext)
|
org.exoplatform.services.wsrp2.type.Lifetime |
getRegistrationLifetime(org.exoplatform.services.wsrp2.type.RegistrationContext registrationContext)
|
Map<String,String[]> |
getResourceState(String resourceState)
|
boolean |
isConsumerConfiguredPortlet(String portletHandle,
org.exoplatform.services.wsrp2.type.RegistrationContext registrationContext)
|
boolean |
isRegistered(org.exoplatform.services.wsrp2.type.RegistrationContext registrationContext)
|
WSRP2StateData |
load(String key)
|
void |
putInteractionState(String interactionState,
Map<String,String[]> interactionParameters)
|
void |
putNavigationalState(String navigationalState,
Map<String,String[]> renderParameters)
|
org.exoplatform.services.wsrp2.type.Lifetime |
putPortletLifetime(String portletHandle,
org.exoplatform.services.wsrp2.type.Lifetime lifetime)
|
org.exoplatform.services.wsrp2.type.Lifetime |
putRegistrationLifetime(String registrationHandle,
org.exoplatform.services.wsrp2.type.Lifetime lifetime)
|
void |
putResourceState(String resourceState,
Map<String,String[]> resourceParameters)
|
byte[] |
register(String registrationHandle,
org.exoplatform.services.wsrp2.type.RegistrationData data)
|
void |
remove(String key)
|
void |
removeConsumerConfiguredPortletHandle(String portletHandle,
org.exoplatform.services.wsrp2.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 |
PersistentStateManagerImpl
public PersistentStateManagerImpl(org.exoplatform.services.cache.CacheService cacheService,
org.exoplatform.services.database.HibernateService hservice,
WSRPConfiguration conf)
throws Exception
- Throws:
Exception
getRegistrationData
public org.exoplatform.services.wsrp2.type.RegistrationData getRegistrationData(org.exoplatform.services.wsrp2.type.RegistrationContext registrationContext)
throws WSRPException
- Specified by:
getRegistrationData in interface PersistentStateManager
- Throws:
WSRPException
register
public byte[] register(String registrationHandle,
org.exoplatform.services.wsrp2.type.RegistrationData data)
throws WSRPException
- Specified by:
register in interface PersistentStateManager
- Throws:
WSRPException
deregister
public void deregister(org.exoplatform.services.wsrp2.type.RegistrationContext registrationContext)
throws WSRPException
- Specified by:
deregister in interface PersistentStateManager
- Throws:
WSRPException
isRegistered
public boolean isRegistered(org.exoplatform.services.wsrp2.type.RegistrationContext registrationContext)
throws WSRPException
- Specified by:
isRegistered in interface PersistentStateManager
- Throws:
WSRPException
isConsumerConfiguredPortlet
public boolean isConsumerConfiguredPortlet(String portletHandle,
org.exoplatform.services.wsrp2.type.RegistrationContext registrationContext)
throws WSRPException
- Specified by:
isConsumerConfiguredPortlet in interface PersistentStateManager
- Throws:
WSRPException
addConsumerConfiguredPortletHandle
public void addConsumerConfiguredPortletHandle(String portletHandle,
org.exoplatform.services.wsrp2.type.RegistrationContext registrationContext)
throws WSRPException
- Specified by:
addConsumerConfiguredPortletHandle in interface PersistentStateManager
- Throws:
WSRPException
removeConsumerConfiguredPortletHandle
public void removeConsumerConfiguredPortletHandle(String portletHandle,
org.exoplatform.services.wsrp2.type.RegistrationContext registrationContext)
throws WSRPException
- Specified by:
removeConsumerConfiguredPortletHandle in interface PersistentStateManager
- Throws:
WSRPException
save
public final void save(String key,
String type,
Object o)
throws Exception
- Throws:
Exception
load
public final WSRP2StateData load(String key)
throws Exception
- Throws:
Exception
remove
public final void remove(String key)
throws Exception
- Throws:
Exception
getNavigationalState
public Map<String,String[]> getNavigationalState(String navigationalState)
throws WSRPException
- Specified by:
getNavigationalState in interface PersistentStateManager
- Throws:
WSRPException
putNavigationalState
public void putNavigationalState(String navigationalState,
Map<String,String[]> renderParameters)
throws WSRPException
- Specified by:
putNavigationalState in interface PersistentStateManager
- Throws:
WSRPException
getInteractionSate
public Map<String,String[]> getInteractionSate(String interactionState)
throws WSRPException
- Specified by:
getInteractionSate in interface PersistentStateManager
- Throws:
WSRPException
putInteractionState
public void putInteractionState(String interactionState,
Map<String,String[]> interactionParameters)
throws WSRPException
- Specified by:
putInteractionState in interface PersistentStateManager
- Throws:
WSRPException
getResourceState
public Map<String,String[]> getResourceState(String resourceState)
throws WSRPException
- Specified by:
getResourceState in interface PersistentStateManager
- Throws:
WSRPException
putResourceState
public void putResourceState(String resourceState,
Map<String,String[]> resourceParameters)
throws WSRPException
- Specified by:
putResourceState in interface PersistentStateManager
- Throws:
WSRPException
putRegistrationLifetime
public org.exoplatform.services.wsrp2.type.Lifetime putRegistrationLifetime(String registrationHandle,
org.exoplatform.services.wsrp2.type.Lifetime lifetime)
throws WSRPException
- Specified by:
putRegistrationLifetime in interface PersistentStateManager
- Throws:
WSRPException
getRegistrationLifetime
public org.exoplatform.services.wsrp2.type.Lifetime getRegistrationLifetime(org.exoplatform.services.wsrp2.type.RegistrationContext registrationContext)
throws WSRPException
- Specified by:
getRegistrationLifetime in interface PersistentStateManager
- Throws:
WSRPException
putPortletLifetime
public org.exoplatform.services.wsrp2.type.Lifetime putPortletLifetime(String portletHandle,
org.exoplatform.services.wsrp2.type.Lifetime lifetime)
throws WSRPException
- Specified by:
putPortletLifetime in interface PersistentStateManager
- Throws:
WSRPException
getPortletLifetime
public org.exoplatform.services.wsrp2.type.Lifetime getPortletLifetime(String portletHandle)
throws WSRPException
- Specified by:
getPortletLifetime in interface PersistentStateManager
- Throws:
WSRPException
Copyright © 2009 eXo Platform SAS. All Rights Reserved.