Package com.soffid.iam.model
Class AccountEntityDaoImpl
- java.lang.Object
-
- org.springframework.dao.support.DaoSupport
-
- org.springframework.orm.hibernate3.support.HibernateDaoSupport
-
- com.soffid.iam.model.AccountEntityDaoBase
-
- com.soffid.iam.model.AccountEntityDaoImpl
-
- All Implemented Interfaces:
AccountEntityDao
,org.springframework.beans.factory.InitializingBean
public class AccountEntityDaoImpl extends AccountEntityDaoBase
-
-
Field Summary
Fields Modifier and Type Field Description static String
PREVIOUS_STATUS_ATTRIBUTE
-
Constructor Summary
Constructors Constructor Description AccountEntityDaoImpl()
-
Method Summary
All Methods Instance 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
objectvoid
create(AccountEntity entity)
Adds an instance ofAccountEntity
to the persistent store.Collection<AccountEntity>
findByText(CriteriaSearchConfiguration criteria, String text)
CriteriaSearchConfiguration implementationList<AccountEntity>
findSharedAccounts(CriteriaSearchConfiguration criteria, String name, String dispatcher)
CriteriaSearchConfiguration implementationprotected com.soffid.iam.api.AccessControlList
generateAcl(AccountEntity source, es.caib.seycon.ng.comu.AccountAccessLevelEnum al)
protected es.caib.seycon.ng.comu.AccountAccessLevelEnum
handleGetAccessLevel(AccountEntity source, String user)
protected void
handlePropagateChanges(AccountEntity account)
void
handleRemoveFromCache(AccountEntity entity)
protected void
handleUpdate(AccountEntity entity, String auditType)
void
remove(AccountEntity entity)
Removes an instance ofAccountEntity
from the persistent store.protected void
removeCacheEntry(AccountEntity entity)
void
toAccount(AccountEntity source, com.soffid.iam.api.Account target)
Copy data toAccount
objectvoid
update(AccountEntity entity)
Updates an instance ofAccountEntity
at the persistent store.-
Methods inherited from class com.soffid.iam.model.AccountEntityDaoBase
accountToEntityList, create, findAcountNames, findAcountNames, findAcountNames, findByCriteria, findByNameAndSystem, findByNameAndSystem, findByNameAndSystem, findByText, findByText, findByUser, findByUser, findByUser, findByUserAndDomain, findByUserAndDomain, findByUserAndDomain, findByUserAndSystem, findByUserAndSystem, findByUserAndSystem, findSharedAccounts, findSharedAccounts, getAccessLevel, getAccountAccessEntityDao, getAccountAttributeEntityDao, getAccountPasswordEntityDao, getAccountSnapshotEntityDao, getACLService, getAuditEntityDao, getGroupEntityDao, getHostServiceEntityDao, getHPAccounts, getHPAccounts, getHPAccounts, getIssueEntityDao, getJumpServerGroupEntityDao, getNetworkDiscoveryAccountEntityDao, getPamAccounts, getPamAccounts, getPamAccounts, getPamAccountsExpiredPassword, getPamAccountsExpiredPassword, getPamAccountsExpiredPassword, getPamAccountsWrongPassword, getPamAccountsWrongPassword, getPamAccountsWrongPassword, getReservedHPAccounts, getReservedHPAccounts, getReservedHPAccounts, getRoleAccountEntityDao, getRoleEntityDao, getSystemEntityDao, getTaskEntityDao, getUserAccountEntityDao, getUserEntityDao, getUserTypeEntityDao, getVaultFolderEntityDao, load, loadAll, newAccountEntity, propagateChanges, query, query, remove, remove, removeFromCache, setAccountAccessEntityDao, setAccountAttributeEntityDao, setAccountPasswordEntityDao, setAccountSnapshotEntityDao, setACLService, setAuditEntityDao, setGroupEntityDao, setHostServiceEntityDao, setIssueEntityDao, setJumpServerGroupEntityDao, setNetworkDiscoveryAccountEntityDao, setRoleAccountEntityDao, setRoleEntityDao, setSystemEntityDao, setTaskEntityDao, setUserAccountEntityDao, setUserEntityDao, setUserTypeEntityDao, setVaultFolderEntityDao, toAccount, toAccountList, update, update
-
Methods inherited from class org.springframework.orm.hibernate3.support.HibernateDaoSupport
checkDaoConfig, closeSessionIfNecessary, convertHibernateAccessException, createHibernateTemplate, getHibernateTemplate, getSession, getSession, getSessionFactory, releaseSession, setHibernateTemplate, setSessionFactory
-
-
-
-
Field Detail
-
PREVIOUS_STATUS_ATTRIBUTE
public static final String PREVIOUS_STATUS_ATTRIBUTE
- See Also:
- Constant Field Values
-
-
Method Detail
-
create
public void create(AccountEntity entity)
Description copied from class:AccountEntityDaoBase
Adds an instance ofAccountEntity
to the persistent store.- Specified by:
create
in interfaceAccountEntityDao
- Overrides:
create
in classAccountEntityDaoBase
-
removeCacheEntry
protected void removeCacheEntry(AccountEntity entity)
-
update
public void update(AccountEntity entity)
Description copied from class:AccountEntityDaoBase
Updates an instance ofAccountEntity
at the persistent store.- Specified by:
update
in interfaceAccountEntityDao
- Overrides:
update
in classAccountEntityDaoBase
-
remove
public void remove(AccountEntity entity)
Description copied from class:AccountEntityDaoBase
Removes an instance ofAccountEntity
from the persistent store.- Specified by:
remove
in interfaceAccountEntityDao
- Overrides:
remove
in classAccountEntityDaoBase
-
accountToEntity
public AccountEntity accountToEntity(com.soffid.iam.api.Account instance)
Description copied from class:AccountEntityDaoBase
Transforms fromAccount
object- Specified by:
accountToEntity
in interfaceAccountEntityDao
- Overrides:
accountToEntity
in classAccountEntityDaoBase
-
toAccount
public void toAccount(AccountEntity source, com.soffid.iam.api.Account target)
Description copied from class:AccountEntityDaoBase
Copy data toAccount
object- Specified by:
toAccount
in interfaceAccountEntityDao
- Overrides:
toAccount
in classAccountEntityDaoBase
-
generateAcl
protected com.soffid.iam.api.AccessControlList generateAcl(AccountEntity source, es.caib.seycon.ng.comu.AccountAccessLevelEnum al)
-
accountToEntity
public void accountToEntity(com.soffid.iam.api.Account source, AccountEntity target, boolean copyIfNull)
Description copied from class:AccountEntityDaoBase
Copy data fromAccount
object- Specified by:
accountToEntity
in interfaceAccountEntityDao
- Overrides:
accountToEntity
in classAccountEntityDaoBase
-
findSharedAccounts
public List<AccountEntity> findSharedAccounts(CriteriaSearchConfiguration criteria, String name, String dispatcher)
Description copied from class:AccountEntityDaoBase
CriteriaSearchConfiguration implementation- Specified by:
findSharedAccounts
in interfaceAccountEntityDao
- Overrides:
findSharedAccounts
in classAccountEntityDaoBase
-
handlePropagateChanges
protected void handlePropagateChanges(AccountEntity account) throws Exception
- Specified by:
handlePropagateChanges
in classAccountEntityDaoBase
- Throws:
Exception
-
handleUpdate
protected void handleUpdate(AccountEntity entity, String auditType) throws Exception
- Specified by:
handleUpdate
in classAccountEntityDaoBase
- Throws:
Exception
-
findByText
public Collection<AccountEntity> findByText(CriteriaSearchConfiguration criteria, String text)
Description copied from class:AccountEntityDaoBase
CriteriaSearchConfiguration implementation- Specified by:
findByText
in interfaceAccountEntityDao
- Overrides:
findByText
in classAccountEntityDaoBase
-
handleRemoveFromCache
public void handleRemoveFromCache(AccountEntity entity)
- Specified by:
handleRemoveFromCache
in classAccountEntityDaoBase
-
handleGetAccessLevel
protected es.caib.seycon.ng.comu.AccountAccessLevelEnum handleGetAccessLevel(AccountEntity source, String user) throws es.caib.seycon.ng.exception.InternalErrorException
- Specified by:
handleGetAccessLevel
in classAccountEntityDaoBase
- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
-