Package com.soffid.iam.model
Class AccountEntityDaoBase
- java.lang.Object
-
- org.springframework.dao.support.DaoSupport
-
- org.springframework.orm.hibernate3.support.HibernateDaoSupport
-
- com.soffid.iam.model.AccountEntityDaoBase
-
- All Implemented Interfaces:
AccountEntityDao
,org.springframework.beans.factory.InitializingBean
- Direct Known Subclasses:
AccountEntityDaoImpl
public abstract class AccountEntityDaoBase extends org.springframework.orm.hibernate3.support.HibernateDaoSupport implements AccountEntityDao
DAO Base for Entity AccountEntity
-
-
Constructor Summary
Constructors Constructor Description AccountEntityDaoBase()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description AccountEntity
accountToEntity(com.soffid.iam.api.Account instance)
Transforms fromAccount
objectvoid
accountToEntity(com.soffid.iam.api.Account source, AccountEntity target, boolean copyIfNull)
Copy data fromAccount
objectList<AccountEntity>
accountToEntityList(Collection<com.soffid.iam.api.Account> instances)
Transforms fromAccount
listvoid
create(AccountEntity entity)
Adds an instance ofAccountEntity
to the persistent store.void
create(Collection<? extends AccountEntity> entities)
Creates a collection ofAccountEntity
and adds it to the persistent store.List<String>
findAcountNames(CriteriaSearchConfiguration criteria, String systemName)
CriteriaSearchConfiguration implementationList<String>
findAcountNames(String systemName)
Operation findAcountNamesList<String>
findAcountNames(String queryString, CriteriaSearchConfiguration criteria, String systemName)
Internal implementationList<AccountEntity>
findByCriteria(es.caib.seycon.ng.comu.AccountCriteria criteria)
Operation findByCriteriaAccountEntity
findByNameAndSystem(CriteriaSearchConfiguration criteria, String name, String dispatcher)
CriteriaSearchConfiguration implementationAccountEntity
findByNameAndSystem(String queryString, CriteriaSearchConfiguration criteria, String name, String dispatcher)
Internal implementationAccountEntity
findByNameAndSystem(String name, String dispatcher)
Operation findByNameAndSystemCollection<AccountEntity>
findByText(CriteriaSearchConfiguration criteria, String text)
CriteriaSearchConfiguration implementationCollection<AccountEntity>
findByText(String text)
Operation findByTextCollection<AccountEntity>
findByText(String queryString, CriteriaSearchConfiguration criteria, String text)
Internal implementationList<AccountEntity>
findByUser(CriteriaSearchConfiguration criteria, Long userId)
CriteriaSearchConfiguration implementationList<AccountEntity>
findByUser(Long userId)
Operation findByUserList<AccountEntity>
findByUser(String queryString, CriteriaSearchConfiguration criteria, Long userId)
Internal implementationList<AccountEntity>
findByUserAndDomain(CriteriaSearchConfiguration criteria, String user, String domain)
CriteriaSearchConfiguration implementationList<AccountEntity>
findByUserAndDomain(String queryString, CriteriaSearchConfiguration criteria, String user, String domain)
Internal implementationList<AccountEntity>
findByUserAndDomain(String user, String domain)
Operation findByUserAndDomainList<AccountEntity>
findByUserAndSystem(CriteriaSearchConfiguration criteria, String user, String dispatcher)
CriteriaSearchConfiguration implementationList<AccountEntity>
findByUserAndSystem(String queryString, CriteriaSearchConfiguration criteria, String user, String dispatcher)
Internal implementationList<AccountEntity>
findByUserAndSystem(String user, String dispatcher)
Operation findByUserAndSystemList<AccountEntity>
findSharedAccounts(CriteriaSearchConfiguration criteria, String name, String system)
CriteriaSearchConfiguration implementationList<AccountEntity>
findSharedAccounts(String queryString, CriteriaSearchConfiguration criteria, String name, String system)
Internal implementationList<AccountEntity>
findSharedAccounts(String name, String system)
Operation findSharedAccountses.caib.seycon.ng.comu.AccountAccessLevelEnum
getAccessLevel(AccountEntity account, String user)
Operation getAccessLevelAccountAccessEntityDao
getAccountAccessEntityDao()
Gets reference toaccountAccessEntityDao
.AccountAttributeEntityDao
getAccountAttributeEntityDao()
Gets reference toaccountAttributeEntityDao
.AccountPasswordEntityDao
getAccountPasswordEntityDao()
Gets reference toaccountPasswordEntityDao
.AccountSnapshotEntityDao
getAccountSnapshotEntityDao()
Gets reference toaccountSnapshotEntityDao
.ACLService
getACLService()
Gets reference toaCLService
.AuditEntityDao
getAuditEntityDao()
Gets reference toauditoriaEntityDao
.GroupEntityDao
getGroupEntityDao()
Gets reference togrupEntityDao
.HostServiceEntityDao
getHostServiceEntityDao()
Gets reference tohostServiceEntityDao
.Long
getHPAccounts()
Operation getHPAccountsLong
getHPAccounts(CriteriaSearchConfiguration criteria)
CriteriaSearchConfiguration implementationLong
getHPAccounts(String queryString, CriteriaSearchConfiguration criteria)
Internal implementationIssueEntityDao
getIssueEntityDao()
Gets reference toissueEntityDao
.JumpServerGroupEntityDao
getJumpServerGroupEntityDao()
Gets reference tojumpServerGroupEntityDao
.NetworkDiscoveryAccountEntityDao
getNetworkDiscoveryAccountEntityDao()
Gets reference tonetworkDiscoveryAccountEntityDao
.Long
getPamAccounts()
Operation getPamAccountsLong
getPamAccounts(CriteriaSearchConfiguration criteria)
CriteriaSearchConfiguration implementationLong
getPamAccounts(String queryString, CriteriaSearchConfiguration criteria)
Internal implementationLong
getPamAccountsExpiredPassword()
Operation getPamAccountsExpiredPasswordLong
getPamAccountsExpiredPassword(CriteriaSearchConfiguration criteria)
CriteriaSearchConfiguration implementationLong
getPamAccountsExpiredPassword(String queryString, CriteriaSearchConfiguration criteria)
Internal implementationLong
getPamAccountsWrongPassword()
Operation getPamAccountsWrongPasswordLong
getPamAccountsWrongPassword(CriteriaSearchConfiguration criteria)
CriteriaSearchConfiguration implementationLong
getPamAccountsWrongPassword(String queryString, CriteriaSearchConfiguration criteria)
Internal implementationLong
getReservedHPAccounts()
Operation getReservedHPAccountsLong
getReservedHPAccounts(CriteriaSearchConfiguration criteria)
CriteriaSearchConfiguration implementationLong
getReservedHPAccounts(String queryString, CriteriaSearchConfiguration criteria)
Internal implementationRoleAccountEntityDao
getRoleAccountEntityDao()
Gets reference torolAccountEntityDao
.RoleEntityDao
getRoleEntityDao()
Gets reference torolEntityDao
.SystemEntityDao
getSystemEntityDao()
Gets reference todispatcherEntityDao
.TaskEntityDao
getTaskEntityDao()
Gets reference totasqueEntityDao
.UserAccountEntityDao
getUserAccountEntityDao()
Gets reference touserAccountEntityDao
.UserEntityDao
getUserEntityDao()
Gets reference tousuariEntityDao
.UserTypeEntityDao
getUserTypeEntityDao()
Gets reference totipusUsuariEntityDao
.VaultFolderEntityDao
getVaultFolderEntityDao()
Gets reference tovaultFolderEntityDao
.protected abstract es.caib.seycon.ng.comu.AccountAccessLevelEnum
handleGetAccessLevel(AccountEntity account, String user)
protected abstract void
handlePropagateChanges(AccountEntity account)
protected abstract void
handleRemoveFromCache(AccountEntity entity)
protected abstract void
handleUpdate(AccountEntity entity, String auditType)
AccountEntity
load(Long id)
Loads an instance ofAccountEntity
from the persistent store.List<AccountEntity>
loadAll()
Loads all instances ofAccountEntity
from the persistent store.AccountEntity
newAccountEntity()
Creates an instance ofAccountEntity
.void
propagateChanges(AccountEntity account)
Operation propagateChangesList<AccountEntity>
query(String queryString, Parameter[] parameters)
Query ofAccountEntity
from the persistent store.List<AccountEntity>
query(String queryString, Parameter[] parameters, CriteriaSearchConfiguration criteria)
Query ofAccountEntity
from the persistent store.void
remove(AccountEntity entity)
Removes an instance ofAccountEntity
from the persistent store.void
remove(Long id)
Removes an instance ofAccountEntity
from the persistent store.void
remove(Collection<? extends AccountEntity> entities)
Removes a collection ofAccountEntity
from the persistent store.void
removeFromCache(AccountEntity entity)
Operation removeFromCachevoid
setAccountAccessEntityDao(AccountAccessEntityDao accountAccessEntityDao)
Sets reference toaccountAccessEntityDao
.void
setAccountAttributeEntityDao(AccountAttributeEntityDao accountAttributeEntityDao)
Sets reference toaccountAttributeEntityDao
.void
setAccountPasswordEntityDao(AccountPasswordEntityDao accountPasswordEntityDao)
Sets reference toaccountPasswordEntityDao
.void
setAccountSnapshotEntityDao(AccountSnapshotEntityDao accountSnapshotEntityDao)
Sets reference toaccountSnapshotEntityDao
.void
setACLService(ACLService aCLService)
Sets reference toaCLService
.void
setAuditEntityDao(AuditEntityDao auditoriaEntityDao)
Sets reference toauditoriaEntityDao
.void
setGroupEntityDao(GroupEntityDao grupEntityDao)
Sets reference togrupEntityDao
.void
setHostServiceEntityDao(HostServiceEntityDao hostServiceEntityDao)
Sets reference tohostServiceEntityDao
.void
setIssueEntityDao(IssueEntityDao issueEntityDao)
Sets reference toissueEntityDao
.void
setJumpServerGroupEntityDao(JumpServerGroupEntityDao jumpServerGroupEntityDao)
Sets reference tojumpServerGroupEntityDao
.void
setNetworkDiscoveryAccountEntityDao(NetworkDiscoveryAccountEntityDao networkDiscoveryAccountEntityDao)
Sets reference tonetworkDiscoveryAccountEntityDao
.void
setRoleAccountEntityDao(RoleAccountEntityDao rolAccountEntityDao)
Sets reference torolAccountEntityDao
.void
setRoleEntityDao(RoleEntityDao rolEntityDao)
Sets reference torolEntityDao
.void
setSystemEntityDao(SystemEntityDao dispatcherEntityDao)
Sets reference todispatcherEntityDao
.void
setTaskEntityDao(TaskEntityDao tasqueEntityDao)
Sets reference totasqueEntityDao
.void
setUserAccountEntityDao(UserAccountEntityDao userAccountEntityDao)
Sets reference touserAccountEntityDao
.void
setUserEntityDao(UserEntityDao usuariEntityDao)
Sets reference tousuariEntityDao
.void
setUserTypeEntityDao(UserTypeEntityDao tipusUsuariEntityDao)
Sets reference totipusUsuariEntityDao
.void
setVaultFolderEntityDao(VaultFolderEntityDao vaultFolderEntityDao)
Sets reference tovaultFolderEntityDao
.com.soffid.iam.api.Account
toAccount(AccountEntity entity)
Transforms toAccount
objectvoid
toAccount(AccountEntity source, com.soffid.iam.api.Account target)
Copy data toAccount
objectList<com.soffid.iam.api.Account>
toAccountList(Collection<AccountEntity> instances)
Transforms toAccount
listvoid
update(AccountEntity entity)
Updates an instance ofAccountEntity
at the persistent store.void
update(AccountEntity entity, String auditType)
Operation updatevoid
update(Collection<? extends AccountEntity> entities)
Updates a collection ofAccountEntity
in the persistent store.-
Methods inherited from class org.springframework.orm.hibernate3.support.HibernateDaoSupport
checkDaoConfig, closeSessionIfNecessary, convertHibernateAccessException, createHibernateTemplate, getHibernateTemplate, getSession, getSession, getSessionFactory, releaseSession, setHibernateTemplate, setSessionFactory
-
-
-
-
Method Detail
-
setACLService
public void setACLService(ACLService aCLService)
Sets reference toaCLService
.
-
getACLService
public ACLService getACLService()
Gets reference toaCLService
.
-
setAccountAccessEntityDao
public void setAccountAccessEntityDao(AccountAccessEntityDao accountAccessEntityDao)
Sets reference toaccountAccessEntityDao
.
-
getAccountAccessEntityDao
public AccountAccessEntityDao getAccountAccessEntityDao()
Gets reference toaccountAccessEntityDao
.
-
setAccountAttributeEntityDao
public void setAccountAttributeEntityDao(AccountAttributeEntityDao accountAttributeEntityDao)
Sets reference toaccountAttributeEntityDao
.
-
getAccountAttributeEntityDao
public AccountAttributeEntityDao getAccountAttributeEntityDao()
Gets reference toaccountAttributeEntityDao
.
-
setAccountPasswordEntityDao
public void setAccountPasswordEntityDao(AccountPasswordEntityDao accountPasswordEntityDao)
Sets reference toaccountPasswordEntityDao
.
-
getAccountPasswordEntityDao
public AccountPasswordEntityDao getAccountPasswordEntityDao()
Gets reference toaccountPasswordEntityDao
.
-
setAccountSnapshotEntityDao
public void setAccountSnapshotEntityDao(AccountSnapshotEntityDao accountSnapshotEntityDao)
Sets reference toaccountSnapshotEntityDao
.
-
getAccountSnapshotEntityDao
public AccountSnapshotEntityDao getAccountSnapshotEntityDao()
Gets reference toaccountSnapshotEntityDao
.
-
setAuditEntityDao
public void setAuditEntityDao(AuditEntityDao auditoriaEntityDao)
Sets reference toauditoriaEntityDao
.
-
getAuditEntityDao
public AuditEntityDao getAuditEntityDao()
Gets reference toauditoriaEntityDao
.
-
setSystemEntityDao
public void setSystemEntityDao(SystemEntityDao dispatcherEntityDao)
Sets reference todispatcherEntityDao
.
-
getSystemEntityDao
public SystemEntityDao getSystemEntityDao()
Gets reference todispatcherEntityDao
.
-
setGroupEntityDao
public void setGroupEntityDao(GroupEntityDao grupEntityDao)
Sets reference togrupEntityDao
.
-
getGroupEntityDao
public GroupEntityDao getGroupEntityDao()
Gets reference togrupEntityDao
.
-
setHostServiceEntityDao
public void setHostServiceEntityDao(HostServiceEntityDao hostServiceEntityDao)
Sets reference tohostServiceEntityDao
.
-
getHostServiceEntityDao
public HostServiceEntityDao getHostServiceEntityDao()
Gets reference tohostServiceEntityDao
.
-
setIssueEntityDao
public void setIssueEntityDao(IssueEntityDao issueEntityDao)
Sets reference toissueEntityDao
.
-
getIssueEntityDao
public IssueEntityDao getIssueEntityDao()
Gets reference toissueEntityDao
.
-
setJumpServerGroupEntityDao
public void setJumpServerGroupEntityDao(JumpServerGroupEntityDao jumpServerGroupEntityDao)
Sets reference tojumpServerGroupEntityDao
.
-
getJumpServerGroupEntityDao
public JumpServerGroupEntityDao getJumpServerGroupEntityDao()
Gets reference tojumpServerGroupEntityDao
.
-
setNetworkDiscoveryAccountEntityDao
public void setNetworkDiscoveryAccountEntityDao(NetworkDiscoveryAccountEntityDao networkDiscoveryAccountEntityDao)
Sets reference tonetworkDiscoveryAccountEntityDao
.
-
getNetworkDiscoveryAccountEntityDao
public NetworkDiscoveryAccountEntityDao getNetworkDiscoveryAccountEntityDao()
Gets reference tonetworkDiscoveryAccountEntityDao
.
-
setRoleAccountEntityDao
public void setRoleAccountEntityDao(RoleAccountEntityDao rolAccountEntityDao)
Sets reference torolAccountEntityDao
.
-
getRoleAccountEntityDao
public RoleAccountEntityDao getRoleAccountEntityDao()
Gets reference torolAccountEntityDao
.
-
setRoleEntityDao
public void setRoleEntityDao(RoleEntityDao rolEntityDao)
Sets reference torolEntityDao
.
-
getRoleEntityDao
public RoleEntityDao getRoleEntityDao()
Gets reference torolEntityDao
.
-
setTaskEntityDao
public void setTaskEntityDao(TaskEntityDao tasqueEntityDao)
Sets reference totasqueEntityDao
.
-
getTaskEntityDao
public TaskEntityDao getTaskEntityDao()
Gets reference totasqueEntityDao
.
-
setUserTypeEntityDao
public void setUserTypeEntityDao(UserTypeEntityDao tipusUsuariEntityDao)
Sets reference totipusUsuariEntityDao
.
-
getUserTypeEntityDao
public UserTypeEntityDao getUserTypeEntityDao()
Gets reference totipusUsuariEntityDao
.
-
setUserAccountEntityDao
public void setUserAccountEntityDao(UserAccountEntityDao userAccountEntityDao)
Sets reference touserAccountEntityDao
.
-
getUserAccountEntityDao
public UserAccountEntityDao getUserAccountEntityDao()
Gets reference touserAccountEntityDao
.
-
setUserEntityDao
public void setUserEntityDao(UserEntityDao usuariEntityDao)
Sets reference tousuariEntityDao
.
-
getUserEntityDao
public UserEntityDao getUserEntityDao()
Gets reference tousuariEntityDao
.
-
setVaultFolderEntityDao
public void setVaultFolderEntityDao(VaultFolderEntityDao vaultFolderEntityDao)
Sets reference tovaultFolderEntityDao
.
-
getVaultFolderEntityDao
public VaultFolderEntityDao getVaultFolderEntityDao()
Gets reference tovaultFolderEntityDao
.
-
getAccessLevel
public es.caib.seycon.ng.comu.AccountAccessLevelEnum getAccessLevel(AccountEntity account, String user) throws es.caib.seycon.ng.exception.InternalErrorException
Description copied from interface:AccountEntityDao
Operation getAccessLevel- Specified by:
getAccessLevel
in interfaceAccountEntityDao
- Returns:
- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
handleGetAccessLevel
protected abstract es.caib.seycon.ng.comu.AccountAccessLevelEnum handleGetAccessLevel(AccountEntity account, String user) throws Exception
- Throws:
Exception
-
findByNameAndSystem
public AccountEntity findByNameAndSystem(String name, String dispatcher)
Operation findByNameAndSystem- Specified by:
findByNameAndSystem
in interfaceAccountEntityDao
- Parameters:
name
-dispatcher
-- Returns:
-
findByNameAndSystem
public AccountEntity findByNameAndSystem(CriteriaSearchConfiguration criteria, String name, String dispatcher)
CriteriaSearchConfiguration implementation- Specified by:
findByNameAndSystem
in interfaceAccountEntityDao
-
findByNameAndSystem
public AccountEntity findByNameAndSystem(String queryString, CriteriaSearchConfiguration criteria, String name, String dispatcher)
Internal implementation
-
getHPAccounts
public Long getHPAccounts()
Operation getHPAccounts- Specified by:
getHPAccounts
in interfaceAccountEntityDao
- Returns:
-
getHPAccounts
public Long getHPAccounts(CriteriaSearchConfiguration criteria)
CriteriaSearchConfiguration implementation- Specified by:
getHPAccounts
in interfaceAccountEntityDao
-
getHPAccounts
public Long getHPAccounts(String queryString, CriteriaSearchConfiguration criteria)
Internal implementation
-
getPamAccounts
public Long getPamAccounts()
Operation getPamAccounts- Specified by:
getPamAccounts
in interfaceAccountEntityDao
- Returns:
-
getPamAccounts
public Long getPamAccounts(CriteriaSearchConfiguration criteria)
CriteriaSearchConfiguration implementation- Specified by:
getPamAccounts
in interfaceAccountEntityDao
-
getPamAccounts
public Long getPamAccounts(String queryString, CriteriaSearchConfiguration criteria)
Internal implementation
-
getPamAccountsExpiredPassword
public Long getPamAccountsExpiredPassword()
Operation getPamAccountsExpiredPassword- Specified by:
getPamAccountsExpiredPassword
in interfaceAccountEntityDao
- Returns:
-
getPamAccountsExpiredPassword
public Long getPamAccountsExpiredPassword(CriteriaSearchConfiguration criteria)
CriteriaSearchConfiguration implementation- Specified by:
getPamAccountsExpiredPassword
in interfaceAccountEntityDao
-
getPamAccountsExpiredPassword
public Long getPamAccountsExpiredPassword(String queryString, CriteriaSearchConfiguration criteria)
Internal implementation
-
getPamAccountsWrongPassword
public Long getPamAccountsWrongPassword()
Operation getPamAccountsWrongPassword- Specified by:
getPamAccountsWrongPassword
in interfaceAccountEntityDao
- Returns:
-
getPamAccountsWrongPassword
public Long getPamAccountsWrongPassword(CriteriaSearchConfiguration criteria)
CriteriaSearchConfiguration implementation- Specified by:
getPamAccountsWrongPassword
in interfaceAccountEntityDao
-
getPamAccountsWrongPassword
public Long getPamAccountsWrongPassword(String queryString, CriteriaSearchConfiguration criteria)
Internal implementation
-
getReservedHPAccounts
public Long getReservedHPAccounts()
Operation getReservedHPAccounts- Specified by:
getReservedHPAccounts
in interfaceAccountEntityDao
- Returns:
-
getReservedHPAccounts
public Long getReservedHPAccounts(CriteriaSearchConfiguration criteria)
CriteriaSearchConfiguration implementation- Specified by:
getReservedHPAccounts
in interfaceAccountEntityDao
-
getReservedHPAccounts
public Long getReservedHPAccounts(String queryString, CriteriaSearchConfiguration criteria)
Internal implementation
-
findByText
public Collection<AccountEntity> findByText(String text)
Operation findByText- Specified by:
findByText
in interfaceAccountEntityDao
- Parameters:
text
-- Returns:
-
findByText
public Collection<AccountEntity> findByText(CriteriaSearchConfiguration criteria, String text)
CriteriaSearchConfiguration implementation- Specified by:
findByText
in interfaceAccountEntityDao
-
findByText
public Collection<AccountEntity> findByText(String queryString, CriteriaSearchConfiguration criteria, String text)
Internal implementation
-
findAcountNames
public List<String> findAcountNames(String systemName)
Operation findAcountNames- Specified by:
findAcountNames
in interfaceAccountEntityDao
- Parameters:
systemName
-- Returns:
-
findAcountNames
public List<String> findAcountNames(CriteriaSearchConfiguration criteria, String systemName)
CriteriaSearchConfiguration implementation- Specified by:
findAcountNames
in interfaceAccountEntityDao
-
findAcountNames
public List<String> findAcountNames(String queryString, CriteriaSearchConfiguration criteria, String systemName)
Internal implementation
-
findByCriteria
public List<AccountEntity> findByCriteria(es.caib.seycon.ng.comu.AccountCriteria criteria)
Operation findByCriteria- Specified by:
findByCriteria
in interfaceAccountEntityDao
- Parameters:
criteria
-- Returns:
-
findByUser
public List<AccountEntity> findByUser(Long userId)
Operation findByUser- Specified by:
findByUser
in interfaceAccountEntityDao
- Parameters:
userId
-- Returns:
-
findByUser
public List<AccountEntity> findByUser(CriteriaSearchConfiguration criteria, Long userId)
CriteriaSearchConfiguration implementation- Specified by:
findByUser
in interfaceAccountEntityDao
-
findByUser
public List<AccountEntity> findByUser(String queryString, CriteriaSearchConfiguration criteria, Long userId)
Internal implementation
-
findByUserAndDomain
public List<AccountEntity> findByUserAndDomain(String user, String domain)
Operation findByUserAndDomain- Specified by:
findByUserAndDomain
in interfaceAccountEntityDao
- Parameters:
user
-domain
-- Returns:
-
findByUserAndDomain
public List<AccountEntity> findByUserAndDomain(CriteriaSearchConfiguration criteria, String user, String domain)
CriteriaSearchConfiguration implementation- Specified by:
findByUserAndDomain
in interfaceAccountEntityDao
-
findByUserAndDomain
public List<AccountEntity> findByUserAndDomain(String queryString, CriteriaSearchConfiguration criteria, String user, String domain)
Internal implementation
-
findByUserAndSystem
public List<AccountEntity> findByUserAndSystem(String user, String dispatcher)
Operation findByUserAndSystem- Specified by:
findByUserAndSystem
in interfaceAccountEntityDao
- Parameters:
user
-dispatcher
-- Returns:
-
findByUserAndSystem
public List<AccountEntity> findByUserAndSystem(CriteriaSearchConfiguration criteria, String user, String dispatcher)
CriteriaSearchConfiguration implementation- Specified by:
findByUserAndSystem
in interfaceAccountEntityDao
-
findByUserAndSystem
public List<AccountEntity> findByUserAndSystem(String queryString, CriteriaSearchConfiguration criteria, String user, String dispatcher)
Internal implementation
-
findSharedAccounts
public List<AccountEntity> findSharedAccounts(String name, String system)
Operation findSharedAccounts- Specified by:
findSharedAccounts
in interfaceAccountEntityDao
- Parameters:
name
-system
-- Returns:
-
findSharedAccounts
public List<AccountEntity> findSharedAccounts(CriteriaSearchConfiguration criteria, String name, String system)
CriteriaSearchConfiguration implementation- Specified by:
findSharedAccounts
in interfaceAccountEntityDao
-
findSharedAccounts
public List<AccountEntity> findSharedAccounts(String queryString, CriteriaSearchConfiguration criteria, String name, String system)
Internal implementation
-
propagateChanges
public void propagateChanges(AccountEntity account) throws es.caib.seycon.ng.exception.InternalErrorException, es.caib.seycon.ng.exception.InternalErrorException
Description copied from interface:AccountEntityDao
Operation propagateChanges- Specified by:
propagateChanges
in interfaceAccountEntityDao
- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
handlePropagateChanges
protected abstract void handlePropagateChanges(AccountEntity account) throws Exception
- Throws:
Exception
-
removeFromCache
public void removeFromCache(AccountEntity entity) throws es.caib.seycon.ng.exception.InternalErrorException
Description copied from interface:AccountEntityDao
Operation removeFromCache- Specified by:
removeFromCache
in interfaceAccountEntityDao
- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
handleRemoveFromCache
protected abstract void handleRemoveFromCache(AccountEntity entity) throws Exception
- Throws:
Exception
-
update
public void update(AccountEntity entity, String auditType) throws es.caib.seycon.ng.exception.InternalErrorException
Description copied from interface:AccountEntityDao
Operation update- Specified by:
update
in interfaceAccountEntityDao
- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
handleUpdate
protected abstract void handleUpdate(AccountEntity entity, String auditType) throws Exception
- Throws:
Exception
-
toAccount
public void toAccount(AccountEntity source, com.soffid.iam.api.Account target)
Copy data toAccount
object- Specified by:
toAccount
in interfaceAccountEntityDao
-
toAccount
public com.soffid.iam.api.Account toAccount(AccountEntity entity)
Transforms toAccount
object- Specified by:
toAccount
in interfaceAccountEntityDao
-
toAccountList
public List<com.soffid.iam.api.Account> toAccountList(Collection<AccountEntity> instances)
Transforms toAccount
list- Specified by:
toAccountList
in interfaceAccountEntityDao
-
accountToEntity
public void accountToEntity(com.soffid.iam.api.Account source, AccountEntity target, boolean copyIfNull)
Copy data fromAccount
object- Specified by:
accountToEntity
in interfaceAccountEntityDao
-
accountToEntity
public AccountEntity accountToEntity(com.soffid.iam.api.Account instance)
Transforms fromAccount
object- Specified by:
accountToEntity
in interfaceAccountEntityDao
-
accountToEntityList
public List<AccountEntity> accountToEntityList(Collection<com.soffid.iam.api.Account> instances)
Transforms fromAccount
list- Specified by:
accountToEntityList
in interfaceAccountEntityDao
-
newAccountEntity
public AccountEntity newAccountEntity()
Creates an instance ofAccountEntity
.- Specified by:
newAccountEntity
in interfaceAccountEntityDao
-
load
public AccountEntity load(Long id)
Loads an instance ofAccountEntity
from the persistent store.- Specified by:
load
in interfaceAccountEntityDao
-
loadAll
public List<AccountEntity> loadAll()
Loads all instances ofAccountEntity
from the persistent store.- Specified by:
loadAll
in interfaceAccountEntityDao
-
create
public void create(AccountEntity entity)
Adds an instance ofAccountEntity
to the persistent store.- Specified by:
create
in interfaceAccountEntityDao
-
update
public void update(AccountEntity entity)
Updates an instance ofAccountEntity
at the persistent store.- Specified by:
update
in interfaceAccountEntityDao
-
remove
public void remove(AccountEntity entity)
Removes an instance ofAccountEntity
from the persistent store.- Specified by:
remove
in interfaceAccountEntityDao
-
create
public void create(Collection<? extends AccountEntity> entities)
Creates a collection ofAccountEntity
and adds it to the persistent store.- Specified by:
create
in interfaceAccountEntityDao
-
update
public void update(Collection<? extends AccountEntity> entities)
Updates a collection ofAccountEntity
in the persistent store.- Specified by:
update
in interfaceAccountEntityDao
-
remove
public void remove(Collection<? extends AccountEntity> entities)
Removes a collection ofAccountEntity
from the persistent store.- Specified by:
remove
in interfaceAccountEntityDao
-
remove
public void remove(Long id)
Removes an instance ofAccountEntity
from the persistent store.- Specified by:
remove
in interfaceAccountEntityDao
-
query
public List<AccountEntity> query(String queryString, Parameter[] parameters)
Query ofAccountEntity
from the persistent store. parameter query HQL Query String parameter parameters HQL Parameters- Specified by:
query
in interfaceAccountEntityDao
-
query
public List<AccountEntity> query(String queryString, Parameter[] parameters, CriteriaSearchConfiguration criteria)
Query ofAccountEntity
from the persistent store. parameter query HQL Query String parameter parameters HQL Parameters parameter maxResults max number of rows to return- Specified by:
query
in interfaceAccountEntityDao
-
-