org.jboss.portal.identity.db
Class HibernateUserProfileModuleImpl
java.lang.Object
ServiceMBeanSupport
org.jboss.portal.jems.as.system.AbstractJBossService
org.jboss.portal.identity.service.IdentityModuleService
org.jboss.portal.identity.service.UserProfileModuleService
org.jboss.portal.identity.db.HibernateUserProfileModuleImpl
- All Implemented Interfaces:
- UserProfileModule
public class HibernateUserProfileModuleImpl
- extends UserProfileModuleService
- Version:
- $Revision: 1.1 $
- Author:
- Boleslaw Dawidowicz
Methods inherited from class org.jboss.portal.identity.service.IdentityModuleService |
getConnectionJNDIName, getIdentityConfiguration, getIdentityContext, getIdentityEventBroadcaster, getInitOptions, getJNDIName, getModuleType, setConnectionJNDIName, setIdentityContext, setInitOptions, setJNDIName, setModuleType |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
sessionFactory
protected SessionFactory sessionFactory
- .
userModule
protected UserModule userModule
sessionFactoryJNDIName
protected java.lang.String sessionFactoryJNDIName
- .
HibernateUserProfileModuleImpl
public HibernateUserProfileModuleImpl()
startService
protected void startService()
throws java.lang.Exception
- Overrides:
startService
in class UserProfileModuleService
- Throws:
java.lang.Exception
stopService
protected void stopService()
throws java.lang.Exception
- Overrides:
stopService
in class IdentityModuleService
- Throws:
java.lang.Exception
getSessionFactoryJNDIName
public java.lang.String getSessionFactoryJNDIName()
setSessionFactoryJNDIName
public void setSessionFactoryJNDIName(java.lang.String sessionFactoryJNDIName)
getProperty
public java.lang.Object getProperty(User user,
java.lang.String propertyName)
throws IdentityException
- Description copied from interface:
UserProfileModule
- Returns user property
- Returns:
-
- Throws:
IdentityException
setProperty
public void setProperty(User user,
java.lang.String propertyName,
java.lang.Object propertyValue)
throws IdentityException
- Description copied from interface:
UserProfileModule
- Sets user property. If the property value is null the property will be removed.
propertyValue
- value
- Throws:
IdentityException
getProperties
public java.util.Map getProperties(User user)
throws IdentityException
- Description copied from interface:
UserProfileModule
- Returns all properties related to user
- Returns:
-
- Throws:
IdentityException
getCurrentSession
protected Session getCurrentSession()
- Can be subclasses to provide testing in a non JTA environement.
processUser
protected HibernateUserImpl processUser(User user)
throws IdentityException
- Throws:
IdentityException
getProfileInfo
public ProfileInfo getProfileInfo()
throws IdentityException
- obtains UserProfile object - if module is used as a Delegate it tries to obtain it from the main one.
- Returns:
-
- Throws:
IdentityException
isSynchronizeNonExistingUsers
public boolean isSynchronizeNonExistingUsers()
setSynchronizeNonExistingUsers
public void setSynchronizeNonExistingUsers(boolean synchronizeNonExistingUsers)
isEnableSynchronizedUsers
public boolean isEnableSynchronizedUsers()
setEnableSynchronizedUsers
public void setEnableSynchronizedUsers(boolean enableSynchronizedUsers)
isAcceptOtherImplementations
public boolean isAcceptOtherImplementations()
setAcceptOtherImplementations
public void setAcceptOtherImplementations(boolean acceptOtherImplementations)
getDefaultSynchronizePassword
public java.lang.String getDefaultSynchronizePassword()
setDefaultSynchronizePassword
public void setDefaultSynchronizePassword(java.lang.String defaultSynchronizePassword)
isRandomSynchronizePassword
public boolean isRandomSynchronizePassword()
setRandomSynchronizePassword
public void setRandomSynchronizePassword(boolean randomSynchronizePassword)
getUserModule
protected UserModule getUserModule()
throws IdentityException
- Throws:
IdentityException