Package com.soffid.iam.model
Class UserEntityDaoImpl
- java.lang.Object
-
- org.springframework.dao.support.DaoSupport
-
- org.springframework.orm.hibernate3.support.HibernateDaoSupport
-
- com.soffid.iam.model.UserEntityDaoBase
-
- com.soffid.iam.model.UserEntityDaoImpl
-
- All Implemented Interfaces:
UserEntityDao
,org.springframework.beans.factory.InitializingBean
public class UserEntityDaoImpl extends UserEntityDaoBase
- See Also:
es.caib.seycon.ng.model.UsuariEntity
-
-
Field Summary
Fields Modifier and Type Field Description static String
NIF
static String
TELEFON
-
Fields inherited from class com.soffid.iam.model.UserEntityDaoBase
mapUser, mapUserTimeout
-
-
Constructor Summary
Constructors Constructor Description UserEntityDaoImpl()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description UserEntity
anonimousUserToEntity(com.soffid.iam.api.AnonimousUser usuariAnonim)
Transforms fromAnonimousUser
objectUserEntity
bPMUserToEntity(com.soffid.iam.bpm.api.BPMUser bPMUser)
Transforms fromBPMUser
objectvoid
create(UserEntity usuari)
Adds an instance ofUserEntity
to the persistent store.void
create(Collection entities)
Creates a collection ofUserEntity
and adds it to the persistent store.Collection<UserEntity>
findByText(CriteriaSearchConfiguration criteria, String text)
CriteriaSearchConfiguration implementationList<UserEntity>
findUsersGroupAndSubgroupsByGroupCode(String codiGrup)
Operation findUsersGroupAndSubgroupsByGroupCodeCollection
findUsuarisByRolUsuariAtorgat(String nomRolAtorgat, String baseDeDadesRolAtorgat, String codiAplicacioRolAtorgat, String tipusDomini, String codiGrupDominiRolAtorgat, String codiAplicacioDominiRolAtorgat, String idValorDominiAplicacioDominiRolAtorgat)
String
getNextAnonimUser()
Operation getNextAnonimUserString
getNextHostUserName()
String
getNextUserIDRequest()
Operation getNextUserIDRequestString
getNextUserName()
Operation getNextUserNameString
getSeguentCodiFarmacia()
String[]
getTasks(String codiUsuari)
Operation getTasksprotected void
handleCreateUpdateTasks(UserEntity usuari, com.soffid.iam.api.User oldValue)
protected void
handleMerge(Long src, Long target)
String
handleRefreshCanvis(String codiUsuari)
UserEntity
identityToEntity(com.soffid.iam.api.Identity identitat)
Transforms fromIdentity
objectvoid
identityToEntity(com.soffid.iam.api.Identity source, UserEntity target, boolean copyIfNull)
Copy data fromIdentity
objectstatic String
now(String dateFormat)
void
remove(UserEntity usuari)
Removes an instance ofUserEntity
from the persistent store.void
remove(Collection entities)
Removes a collection ofUserEntity
from the persistent store.void
toBPMUser(UserEntity source, com.soffid.iam.bpm.api.BPMUser target)
Copy data toBPMUser
objectvoid
toIdentitatCustom(UserEntity source, com.soffid.iam.api.Identity target)
com.soffid.iam.api.Identity
toIdentity(UserEntity entity)
Transforms toIdentity
objectvoid
toIdentity(UserEntity source, com.soffid.iam.api.Identity target)
Copy data toIdentity
objectcom.soffid.iam.api.User
toUser(UserEntity entity)
Transforms toUser
objectvoid
toUser(UserEntity sourceEntity, com.soffid.iam.api.User targetVO)
Copy data toUser
objectvoid
update(UserEntity usuari)
Updates an instance ofUserEntity
at the persistent store.void
update(Collection entities)
Updates a collection ofUserEntity
in the persistent store.UserEntity
userToEntity(com.soffid.iam.api.User usuari)
Transforms fromUser
objectvoid
userToEntity(com.soffid.iam.api.User sourceVO, UserEntity targetEntity, boolean copyIfNull)
Copy data fromUser
object-
Methods inherited from class com.soffid.iam.model.UserEntityDaoBase
anonimousUserToEntity, anonimousUserToEntityList, bPMUserToEntity, bPMUserToEntityList, createUpdateTasks, findByAccount, findByAccount, findByAccount, findById, findById, findById, findByNationalID, findByNationalID, findByNationalID, findByPrimaryGroup, findByPrimaryGroup, findByPrimaryGroup, findByShortName, findByShortName, findByShortName, findByText, findByText, findByUserName, findByUserName, findByUserName, findUserByDataValue, findUserByDataValue, findUserByDataValue, findUserNames, findUserNames, findUserNames, findUsersByNationalID, findUsersByNationalID, findUsersByNationalID, findUsersGroupAndSubgroupsByGroupCode, findUsersGroupAndSubgroupsByGroupCode, generateUserName, generateUserName, generateUserName, getAccountAccessEntityDao, getAuditEntityDao, getAuthoritativeChangeEntityDao, getEmailDomainEntityDao, getEmailListEntityDao, getGroupEntityDao, getHostAdminEntityDao, getHostEntityDao, getInformationSystemEntityDao, getIssueUserEntityDao, getMetaDataEntityDao, getNetworkAuthorizationEntityDao, getNextAnonimUser, getNextAnonimUser, getNextUserIDRequest, getNextUserIDRequest, getNextUserName, getNextUserName, getNoticeEntityDao, getPasswordEntityDao, getPasswordManagerTokenEntityDao, getPasswordsStatus, getPasswordsStatus, getPasswordsStatus, getRoleAccountEntityDao, getRoleEntityDao, getRoleGroupEntityDao, getSecretEntityDao, getSessionEntityDao, getSystemEntityDao, getTaskEntityDao, getTasks, getTasks, getTenantEntityDao, getUserAccountEntityDao, getUserCacheEntry, getUserDataEntityDao, getUserDomainEntityDao, getUserEmailEntityDao, getUserGroupEntityDao, getUserPreferenceEntityDao, getUserPrinterEntityDao, getUserTypeEntityDao, getVaultFolderAccessEntityDao, identitatToEntity, identitatToEntity, identitatToEntityList, identityToEntityList, load, loadAll, merge, newUserEntity, query, query, refreshCanvis, remove, removeUserCacheEntry, setAccountAccessEntityDao, setAuditEntityDao, setAuthoritativeChangeEntityDao, setEmailDomainEntityDao, setEmailListEntityDao, setGroupEntityDao, setHostAdminEntityDao, setHostEntityDao, setInformationSystemEntityDao, setIssueUserEntityDao, setMetaDataEntityDao, setNetworkAuthorizationEntityDao, setNoticeEntityDao, setPasswordEntityDao, setPasswordManagerTokenEntityDao, setRoleAccountEntityDao, setRoleEntityDao, setRoleGroupEntityDao, setSecretEntityDao, setSessionEntityDao, setSystemEntityDao, setTaskEntityDao, setTenantEntityDao, setUserAccountEntityDao, setUserDataEntityDao, setUserDomainEntityDao, setUserEmailEntityDao, setUserGroupEntityDao, setUserPreferenceEntityDao, setUserPrinterEntityDao, setUserTypeEntityDao, setVaultFolderAccessEntityDao, storeUserCacheEntry, toAnonimousUser, toAnonimousUser, toAnonimousUserList, toBPMUser, toBPMUserList, toIdentitat, toIdentitat, toIdentitatList, toIdentityList, toUserList, toUsuari, toUsuari, toUsuariAnonim, toUsuariAnonim, toUsuariAnonimList, toUsuariList, userToEntityList, usuariAnonimToEntity, usuariAnonimToEntity, usuariAnonimToEntityList, usuariToEntity, usuariToEntity, usuariToEntityList
-
Methods inherited from class org.springframework.orm.hibernate3.support.HibernateDaoSupport
checkDaoConfig, closeSessionIfNecessary, convertHibernateAccessException, createHibernateTemplate, getHibernateTemplate, getSession, getSession, getSessionFactory, releaseSession, setHibernateTemplate, setSessionFactory
-
-
-
-
Field Detail
-
NIF
public static final String NIF
- See Also:
- Constant Field Values
-
TELEFON
public static final String TELEFON
- See Also:
- Constant Field Values
-
-
Method Detail
-
create
public void create(UserEntity usuari) throws RuntimeException
Description copied from class:UserEntityDaoBase
Adds an instance ofUserEntity
to the persistent store.- Specified by:
create
in interfaceUserEntityDao
- Overrides:
create
in classUserEntityDaoBase
- Throws:
RuntimeException
-
update
public void update(UserEntity usuari) throws RuntimeException
Description copied from class:UserEntityDaoBase
Updates an instance ofUserEntity
at the persistent store.- Specified by:
update
in interfaceUserEntityDao
- Overrides:
update
in classUserEntityDaoBase
- Throws:
RuntimeException
-
remove
public void remove(UserEntity usuari) throws RuntimeException
Description copied from class:UserEntityDaoBase
Removes an instance ofUserEntity
from the persistent store.- Specified by:
remove
in interfaceUserEntityDao
- Overrides:
remove
in classUserEntityDaoBase
- Throws:
RuntimeException
-
toUser
public void toUser(UserEntity sourceEntity, com.soffid.iam.api.User targetVO)
Description copied from class:UserEntityDaoBase
Copy data toUser
object- Specified by:
toUser
in interfaceUserEntityDao
- Overrides:
toUser
in classUserEntityDaoBase
-
handleRefreshCanvis
public String handleRefreshCanvis(String codiUsuari) throws es.caib.seycon.ng.exception.InternalErrorException
- Specified by:
handleRefreshCanvis
in classUserEntityDaoBase
- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
toUser
public com.soffid.iam.api.User toUser(UserEntity entity)
Description copied from interface:UserEntityDao
Transforms toUser
object- Specified by:
toUser
in interfaceUserEntityDao
- Overrides:
toUser
in classUserEntityDaoBase
- See Also:
es.caib.seycon.ng.model.UsuariEntityDao#toUsuari(es.caib.seycon.ng.model.UsuariEntity)
-
userToEntity
public UserEntity userToEntity(com.soffid.iam.api.User usuari)
Description copied from class:UserEntityDaoBase
Transforms fromUser
object- Specified by:
userToEntity
in interfaceUserEntityDao
- Overrides:
userToEntity
in classUserEntityDaoBase
- See Also:
es.caib.seycon.ng.model.UsuariEntityDao#usuariToEntity(es.caib.seycon.ng.comu.Usuari)
-
userToEntity
public void userToEntity(com.soffid.iam.api.User sourceVO, UserEntity targetEntity, boolean copyIfNull)
Description copied from class:UserEntityDaoBase
Copy data fromUser
object- Specified by:
userToEntity
in interfaceUserEntityDao
- Overrides:
userToEntity
in classUserEntityDaoBase
- See Also:
es.caib.seycon.ng.model.UsuariEntityDao#usuariToEntity(es.caib.seycon.ng.comu.Usuari, es.caib.seycon.ng.model.UsuariEntity)
-
getTasks
public String[] getTasks(String codiUsuari)
Description copied from class:UserEntityDaoBase
Operation getTasks- Specified by:
getTasks
in interfaceUserEntityDao
- Overrides:
getTasks
in classUserEntityDaoBase
- Returns:
-
getNextUserName
public String getNextUserName()
Description copied from class:UserEntityDaoBase
Operation getNextUserName- Specified by:
getNextUserName
in interfaceUserEntityDao
- Overrides:
getNextUserName
in classUserEntityDaoBase
- Returns:
-
getSeguentCodiFarmacia
public String getSeguentCodiFarmacia()
-
getNextAnonimUser
public String getNextAnonimUser()
Description copied from class:UserEntityDaoBase
Operation getNextAnonimUser- Specified by:
getNextAnonimUser
in interfaceUserEntityDao
- Overrides:
getNextAnonimUser
in classUserEntityDaoBase
- Returns:
-
getNextHostUserName
public String getNextHostUserName()
-
toIdentity
public void toIdentity(UserEntity source, com.soffid.iam.api.Identity target)
Description copied from class:UserEntityDaoBase
Copy data toIdentity
object- Specified by:
toIdentity
in interfaceUserEntityDao
- Overrides:
toIdentity
in classUserEntityDaoBase
- See Also:
es.caib.seycon.ng.model.GrupEntityDao#toIdentitat(es.caib.seycon.ng.model.GrupEntity, es.caib.seycon.ng.comu.Identitat)
-
toIdentitatCustom
public void toIdentitatCustom(UserEntity source, com.soffid.iam.api.Identity target)
-
toIdentity
public com.soffid.iam.api.Identity toIdentity(UserEntity entity)
Description copied from class:UserEntityDaoBase
Transforms toIdentity
object- Specified by:
toIdentity
in interfaceUserEntityDao
- Overrides:
toIdentity
in classUserEntityDaoBase
- See Also:
es.caib.seycon.ng.model.UsuariEntityDao#toIdentitat(es.caib.seycon.ng.model.UsuariEntity)
-
identityToEntity
public UserEntity identityToEntity(com.soffid.iam.api.Identity identitat)
Description copied from interface:UserEntityDao
Transforms fromIdentity
object- See Also:
es.caib.seycon.ng.model.UsuariEntityDao#identitatToEntity(es.caib.seycon.ng.comu.Identitat)
-
identityToEntity
public void identityToEntity(com.soffid.iam.api.Identity source, UserEntity target, boolean copyIfNull)
Description copied from class:UserEntityDaoBase
Copy data fromIdentity
object- Specified by:
identityToEntity
in interfaceUserEntityDao
- Overrides:
identityToEntity
in classUserEntityDaoBase
- See Also:
es.caib.seycon.ng.model.UsuariEntityDao#identitatToEntity(es.caib.seycon.ng.comu.Identitat, es.caib.seycon.ng.model.UsuariEntity)
-
anonimousUserToEntity
public UserEntity anonimousUserToEntity(com.soffid.iam.api.AnonimousUser usuariAnonim)
Description copied from interface:UserEntityDao
Transforms fromAnonimousUser
object- See Also:
es.caib.seycon.ng.model.UsuariEntityDao#find(int, java.lang.String, es.caib.seycon.ng.model.Parameter[])
-
findUsersGroupAndSubgroupsByGroupCode
public List<UserEntity> findUsersGroupAndSubgroupsByGroupCode(String codiGrup)
Description copied from class:UserEntityDaoBase
Operation findUsersGroupAndSubgroupsByGroupCode- Specified by:
findUsersGroupAndSubgroupsByGroupCode
in interfaceUserEntityDao
- Overrides:
findUsersGroupAndSubgroupsByGroupCode
in classUserEntityDaoBase
- Returns:
-
findUsuarisByRolUsuariAtorgat
public Collection findUsuarisByRolUsuariAtorgat(String nomRolAtorgat, String baseDeDadesRolAtorgat, String codiAplicacioRolAtorgat, String tipusDomini, String codiGrupDominiRolAtorgat, String codiAplicacioDominiRolAtorgat, String idValorDominiAplicacioDominiRolAtorgat)
-
getNextUserIDRequest
public String getNextUserIDRequest()
Description copied from class:UserEntityDaoBase
Operation getNextUserIDRequest- Specified by:
getNextUserIDRequest
in interfaceUserEntityDao
- Overrides:
getNextUserIDRequest
in classUserEntityDaoBase
- Returns:
-
create
public void create(Collection entities)
Description copied from class:UserEntityDaoBase
Creates a collection ofUserEntity
and adds it to the persistent store.- Specified by:
create
in interfaceUserEntityDao
- Overrides:
create
in classUserEntityDaoBase
-
update
public void update(Collection entities)
Description copied from class:UserEntityDaoBase
Updates a collection ofUserEntity
in the persistent store.- Specified by:
update
in interfaceUserEntityDao
- Overrides:
update
in classUserEntityDaoBase
-
remove
public void remove(Collection entities)
Description copied from class:UserEntityDaoBase
Removes a collection ofUserEntity
from the persistent store.- Specified by:
remove
in interfaceUserEntityDao
- Overrides:
remove
in classUserEntityDaoBase
-
bPMUserToEntity
public UserEntity bPMUserToEntity(com.soffid.iam.bpm.api.BPMUser bPMUser)
Description copied from interface:UserEntityDao
Transforms fromBPMUser
object
-
toBPMUser
public void toBPMUser(UserEntity source, com.soffid.iam.bpm.api.BPMUser target)
Description copied from class:UserEntityDaoBase
Copy data toBPMUser
object- Specified by:
toBPMUser
in interfaceUserEntityDao
- Overrides:
toBPMUser
in classUserEntityDaoBase
-
handleCreateUpdateTasks
protected void handleCreateUpdateTasks(UserEntity usuari, com.soffid.iam.api.User oldValue) throws Exception
- Specified by:
handleCreateUpdateTasks
in classUserEntityDaoBase
- Throws:
Exception
-
findByText
public Collection<UserEntity> findByText(CriteriaSearchConfiguration criteria, String text)
Description copied from class:UserEntityDaoBase
CriteriaSearchConfiguration implementation- Specified by:
findByText
in interfaceUserEntityDao
- Overrides:
findByText
in classUserEntityDaoBase
-
handleMerge
protected void handleMerge(Long src, Long target) throws Exception
- Specified by:
handleMerge
in classUserEntityDaoBase
- Throws:
Exception
-
-