Package com.soffid.iam.service.ejb
Class PreferencesServiceBean
- java.lang.Object
-
- org.springframework.ejb.support.AbstractStatelessSessionBean
-
- com.soffid.iam.service.ejb.PreferencesServiceBean
-
- All Implemented Interfaces:
com.soffid.iam.service.ejb.PreferencesService
,Serializable
,javax.ejb.EnterpriseBean
,javax.ejb.SessionBean
,org.springframework.ejb.support.SmartSessionBean
public class PreferencesServiceBean extends org.springframework.ejb.support.AbstractStatelessSessionBean implements com.soffid.iam.service.ejb.PreferencesService
- See Also:
com.soffid.iam.service.PreferencesService
,,com.soffid.iam.service.PreferencesService
,, Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static String
BEAN_FACTORY_PATH_ENVIRONMENT_KEY
-
Constructor Summary
Constructors Constructor Description PreferencesServiceBean()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
ejbCreate()
Initizlizes beenvoid
ejbRemove()
String
findMyPreference(String name)
Map<String,String>
findUserPreferences(String user)
protected org.springframework.beans.factory.BeanFactory
getBeanFactory()
javax.ejb.SessionContext
getSessionContext()
protected void
onEjbCreate()
protected void
onEjbRemove()
void
setBeanFactoryLocator(org.springframework.beans.factory.access.BeanFactoryLocator arg0)
void
setBeanFactoryLocatorKey(String arg0)
void
setSessionContext(javax.ejb.SessionContext sessionContext)
Override default BeanFactoryLocator implementation to provide singleton loading of the application context Bean factory.void
setUserPreference(String user, String preference, String value)
Map<String,String>
setUserPreferences(String user, Map<String,String> preferences)
void
updateMyPreference(String name, String value)
-
Methods inherited from class org.springframework.ejb.support.AbstractStatelessSessionBean
ejbActivate, ejbPassivate
-
-
-
-
Field Detail
-
BEAN_FACTORY_PATH_ENVIRONMENT_KEY
public static final String BEAN_FACTORY_PATH_ENVIRONMENT_KEY
- See Also:
- Constant Field Values
-
-
Method Detail
-
findMyPreference
@PermitAll public String findMyPreference(String name) throws es.caib.seycon.ng.exception.InternalErrorException
- Specified by:
findMyPreference
in interfacecom.soffid.iam.service.ejb.PreferencesService
- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
findUserPreferences
@PermitAll public Map<String,String> findUserPreferences(String user) throws es.caib.seycon.ng.exception.InternalErrorException
- Specified by:
findUserPreferences
in interfacecom.soffid.iam.service.ejb.PreferencesService
- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
setUserPreferences
@PermitAll public Map<String,String> setUserPreferences(String user, Map<String,String> preferences) throws es.caib.seycon.ng.exception.InternalErrorException
- Specified by:
setUserPreferences
in interfacecom.soffid.iam.service.ejb.PreferencesService
- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
setUserPreference
@PermitAll public void setUserPreference(String user, String preference, String value) throws es.caib.seycon.ng.exception.InternalErrorException
- Specified by:
setUserPreference
in interfacecom.soffid.iam.service.ejb.PreferencesService
- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
updateMyPreference
@PermitAll public void updateMyPreference(String name, String value) throws es.caib.seycon.ng.exception.InternalErrorException
- Specified by:
updateMyPreference
in interfacecom.soffid.iam.service.ejb.PreferencesService
- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
ejbCreate
@PostConstruct public void ejbCreate() throws javax.ejb.CreateException
Initizlizes been- Overrides:
ejbCreate
in classorg.springframework.ejb.support.AbstractStatelessSessionBean
- Throws:
javax.ejb.CreateException
- See Also:
AbstractStatelessSessionBean.onEjbCreate()
-
onEjbCreate
protected void onEjbCreate()
- Specified by:
onEjbCreate
in classorg.springframework.ejb.support.AbstractStatelessSessionBean
-
setSessionContext
public void setSessionContext(javax.ejb.SessionContext sessionContext)
Override default BeanFactoryLocator implementation to provide singleton loading of the application context Bean factory.- Specified by:
setSessionContext
in interfacejavax.ejb.SessionBean
- See Also:
SessionBean.setSessionContext(javax.ejb.SessionContext)
-
getSessionContext
public final javax.ejb.SessionContext getSessionContext()
- Specified by:
getSessionContext
in interfaceorg.springframework.ejb.support.SmartSessionBean
-
setBeanFactoryLocator
public void setBeanFactoryLocator(org.springframework.beans.factory.access.BeanFactoryLocator arg0)
-
setBeanFactoryLocatorKey
public void setBeanFactoryLocatorKey(String arg0)
-
getBeanFactory
protected org.springframework.beans.factory.BeanFactory getBeanFactory()
-
ejbRemove
public void ejbRemove()
-
onEjbRemove
protected void onEjbRemove()
-
-