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 StringNIFstatic StringTELEFON-
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 UserEntityanonimousUserToEntity(com.soffid.iam.api.AnonimousUser usuariAnonim)Transforms fromAnonimousUserobjectUserEntitybPMUserToEntity(com.soffid.iam.bpm.api.BPMUser bPMUser)Transforms fromBPMUserobjectvoidcreate(UserEntity usuari)Adds an instance ofUserEntityto the persistent store.voidcreate(Collection entities)Creates a collection ofUserEntityand adds it to the persistent store.Collection<UserEntity>findByText(CriteriaSearchConfiguration criteria, String text)CriteriaSearchConfiguration implementationList<UserEntity>findUsersGroupAndSubgroupsByGroupCode(String codiGrup)Operation findUsersGroupAndSubgroupsByGroupCodeCollectionfindUsuarisByRolUsuariAtorgat(String nomRolAtorgat, String baseDeDadesRolAtorgat, String codiAplicacioRolAtorgat, String tipusDomini, String codiGrupDominiRolAtorgat, String codiAplicacioDominiRolAtorgat, String idValorDominiAplicacioDominiRolAtorgat)StringgetNextAnonimUser()Operation getNextAnonimUserStringgetNextHostUserName()StringgetNextUserIDRequest()Operation getNextUserIDRequestStringgetNextUserName()Operation getNextUserNameStringgetSeguentCodiFarmacia()String[]getTasks(String codiUsuari)Operation getTasksprotected voidhandleCreateUpdateTasks(UserEntity usuari, com.soffid.iam.api.User oldValue)protected voidhandleMerge(Long src, Long target)StringhandleRefreshCanvis(String codiUsuari)UserEntityidentityToEntity(com.soffid.iam.api.Identity identitat)Transforms fromIdentityobjectvoididentityToEntity(com.soffid.iam.api.Identity source, UserEntity target, boolean copyIfNull)Copy data fromIdentityobjectstatic Stringnow(String dateFormat)voidremove(UserEntity usuari)Removes an instance ofUserEntityfrom the persistent store.voidremove(Collection entities)Removes a collection ofUserEntityfrom the persistent store.voidtoBPMUser(UserEntity source, com.soffid.iam.bpm.api.BPMUser target)Copy data toBPMUserobjectvoidtoIdentitatCustom(UserEntity source, com.soffid.iam.api.Identity target)com.soffid.iam.api.IdentitytoIdentity(UserEntity entity)Transforms toIdentityobjectvoidtoIdentity(UserEntity source, com.soffid.iam.api.Identity target)Copy data toIdentityobjectcom.soffid.iam.api.UsertoUser(UserEntity entity)Transforms toUserobjectvoidtoUser(UserEntity sourceEntity, com.soffid.iam.api.User targetVO)Copy data toUserobjectvoidupdate(UserEntity usuari)Updates an instance ofUserEntityat the persistent store.voidupdate(Collection entities)Updates a collection ofUserEntityin the persistent store.UserEntityuserToEntity(com.soffid.iam.api.User usuari)Transforms fromUserobjectvoiduserToEntity(com.soffid.iam.api.User sourceVO, UserEntity targetEntity, boolean copyIfNull)Copy data fromUserobject-
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:UserEntityDaoBaseAdds an instance ofUserEntityto the persistent store.- Specified by:
createin interfaceUserEntityDao- Overrides:
createin classUserEntityDaoBase- Throws:
RuntimeException
-
update
public void update(UserEntity usuari) throws RuntimeException
Description copied from class:UserEntityDaoBaseUpdates an instance ofUserEntityat the persistent store.- Specified by:
updatein interfaceUserEntityDao- Overrides:
updatein classUserEntityDaoBase- Throws:
RuntimeException
-
remove
public void remove(UserEntity usuari) throws RuntimeException
Description copied from class:UserEntityDaoBaseRemoves an instance ofUserEntityfrom the persistent store.- Specified by:
removein interfaceUserEntityDao- Overrides:
removein classUserEntityDaoBase- Throws:
RuntimeException
-
toUser
public void toUser(UserEntity sourceEntity, com.soffid.iam.api.User targetVO)
Description copied from class:UserEntityDaoBaseCopy data toUserobject- Specified by:
toUserin interfaceUserEntityDao- Overrides:
toUserin classUserEntityDaoBase
-
handleRefreshCanvis
public String handleRefreshCanvis(String codiUsuari) throws es.caib.seycon.ng.exception.InternalErrorException
- Specified by:
handleRefreshCanvisin classUserEntityDaoBase- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
toUser
public com.soffid.iam.api.User toUser(UserEntity entity)
Description copied from interface:UserEntityDaoTransforms toUserobject- Specified by:
toUserin interfaceUserEntityDao- Overrides:
toUserin 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:UserEntityDaoBaseTransforms fromUserobject- Specified by:
userToEntityin interfaceUserEntityDao- Overrides:
userToEntityin 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:UserEntityDaoBaseCopy data fromUserobject- Specified by:
userToEntityin interfaceUserEntityDao- Overrides:
userToEntityin 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:UserEntityDaoBaseOperation getTasks- Specified by:
getTasksin interfaceUserEntityDao- Overrides:
getTasksin classUserEntityDaoBase- Returns:
-
getNextUserName
public String getNextUserName()
Description copied from class:UserEntityDaoBaseOperation getNextUserName- Specified by:
getNextUserNamein interfaceUserEntityDao- Overrides:
getNextUserNamein classUserEntityDaoBase- Returns:
-
getSeguentCodiFarmacia
public String getSeguentCodiFarmacia()
-
getNextAnonimUser
public String getNextAnonimUser()
Description copied from class:UserEntityDaoBaseOperation getNextAnonimUser- Specified by:
getNextAnonimUserin interfaceUserEntityDao- Overrides:
getNextAnonimUserin classUserEntityDaoBase- Returns:
-
getNextHostUserName
public String getNextHostUserName()
-
toIdentity
public void toIdentity(UserEntity source, com.soffid.iam.api.Identity target)
Description copied from class:UserEntityDaoBaseCopy data toIdentityobject- Specified by:
toIdentityin interfaceUserEntityDao- Overrides:
toIdentityin 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:UserEntityDaoBaseTransforms toIdentityobject- Specified by:
toIdentityin interfaceUserEntityDao- Overrides:
toIdentityin 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:UserEntityDaoTransforms fromIdentityobject- 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:UserEntityDaoBaseCopy data fromIdentityobject- Specified by:
identityToEntityin interfaceUserEntityDao- Overrides:
identityToEntityin 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:UserEntityDaoTransforms fromAnonimousUserobject- 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:UserEntityDaoBaseOperation findUsersGroupAndSubgroupsByGroupCode- Specified by:
findUsersGroupAndSubgroupsByGroupCodein interfaceUserEntityDao- Overrides:
findUsersGroupAndSubgroupsByGroupCodein 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:UserEntityDaoBaseOperation getNextUserIDRequest- Specified by:
getNextUserIDRequestin interfaceUserEntityDao- Overrides:
getNextUserIDRequestin classUserEntityDaoBase- Returns:
-
create
public void create(Collection entities)
Description copied from class:UserEntityDaoBaseCreates a collection ofUserEntityand adds it to the persistent store.- Specified by:
createin interfaceUserEntityDao- Overrides:
createin classUserEntityDaoBase
-
update
public void update(Collection entities)
Description copied from class:UserEntityDaoBaseUpdates a collection ofUserEntityin the persistent store.- Specified by:
updatein interfaceUserEntityDao- Overrides:
updatein classUserEntityDaoBase
-
remove
public void remove(Collection entities)
Description copied from class:UserEntityDaoBaseRemoves a collection ofUserEntityfrom the persistent store.- Specified by:
removein interfaceUserEntityDao- Overrides:
removein classUserEntityDaoBase
-
bPMUserToEntity
public UserEntity bPMUserToEntity(com.soffid.iam.bpm.api.BPMUser bPMUser)
Description copied from interface:UserEntityDaoTransforms fromBPMUserobject
-
toBPMUser
public void toBPMUser(UserEntity source, com.soffid.iam.bpm.api.BPMUser target)
Description copied from class:UserEntityDaoBaseCopy data toBPMUserobject- Specified by:
toBPMUserin interfaceUserEntityDao- Overrides:
toBPMUserin classUserEntityDaoBase
-
handleCreateUpdateTasks
protected void handleCreateUpdateTasks(UserEntity usuari, com.soffid.iam.api.User oldValue) throws Exception
- Specified by:
handleCreateUpdateTasksin classUserEntityDaoBase- Throws:
Exception
-
findByText
public Collection<UserEntity> findByText(CriteriaSearchConfiguration criteria, String text)
Description copied from class:UserEntityDaoBaseCriteriaSearchConfiguration implementation- Specified by:
findByTextin interfaceUserEntityDao- Overrides:
findByTextin classUserEntityDaoBase
-
handleMerge
protected void handleMerge(Long src, Long target) throws Exception
- Specified by:
handleMergein classUserEntityDaoBase- Throws:
Exception
-
-