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 StringPREVIOUS_STATUS_ATTRIBUTE
-
Constructor Summary
Constructors Constructor Description AccountEntityDaoImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AccountEntityaccountToEntity(com.soffid.iam.api.Account instance)Transforms fromAccountobjectvoidaccountToEntity(com.soffid.iam.api.Account source, AccountEntity target, boolean copyIfNull)Copy data fromAccountobjectvoidcreate(AccountEntity entity)Adds an instance ofAccountEntityto 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.AccessControlListgenerateAcl(AccountEntity source, es.caib.seycon.ng.comu.AccountAccessLevelEnum al)protected es.caib.seycon.ng.comu.AccountAccessLevelEnumhandleGetAccessLevel(AccountEntity source, String user)protected voidhandlePropagateChanges(AccountEntity account)voidhandleRemoveFromCache(AccountEntity entity)protected voidhandleUpdate(AccountEntity entity, String auditType)voidremove(AccountEntity entity)Removes an instance ofAccountEntityfrom the persistent store.protected voidremoveCacheEntry(AccountEntity entity)voidtoAccount(AccountEntity source, com.soffid.iam.api.Account target)Copy data toAccountobjectvoidupdate(AccountEntity entity)Updates an instance ofAccountEntityat 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:AccountEntityDaoBaseAdds an instance ofAccountEntityto the persistent store.- Specified by:
createin interfaceAccountEntityDao- Overrides:
createin classAccountEntityDaoBase
-
removeCacheEntry
protected void removeCacheEntry(AccountEntity entity)
-
update
public void update(AccountEntity entity)
Description copied from class:AccountEntityDaoBaseUpdates an instance ofAccountEntityat the persistent store.- Specified by:
updatein interfaceAccountEntityDao- Overrides:
updatein classAccountEntityDaoBase
-
remove
public void remove(AccountEntity entity)
Description copied from class:AccountEntityDaoBaseRemoves an instance ofAccountEntityfrom the persistent store.- Specified by:
removein interfaceAccountEntityDao- Overrides:
removein classAccountEntityDaoBase
-
accountToEntity
public AccountEntity accountToEntity(com.soffid.iam.api.Account instance)
Description copied from class:AccountEntityDaoBaseTransforms fromAccountobject- Specified by:
accountToEntityin interfaceAccountEntityDao- Overrides:
accountToEntityin classAccountEntityDaoBase
-
toAccount
public void toAccount(AccountEntity source, com.soffid.iam.api.Account target)
Description copied from class:AccountEntityDaoBaseCopy data toAccountobject- Specified by:
toAccountin interfaceAccountEntityDao- Overrides:
toAccountin 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:AccountEntityDaoBaseCopy data fromAccountobject- Specified by:
accountToEntityin interfaceAccountEntityDao- Overrides:
accountToEntityin classAccountEntityDaoBase
-
findSharedAccounts
public List<AccountEntity> findSharedAccounts(CriteriaSearchConfiguration criteria, String name, String dispatcher)
Description copied from class:AccountEntityDaoBaseCriteriaSearchConfiguration implementation- Specified by:
findSharedAccountsin interfaceAccountEntityDao- Overrides:
findSharedAccountsin classAccountEntityDaoBase
-
handlePropagateChanges
protected void handlePropagateChanges(AccountEntity account) throws Exception
- Specified by:
handlePropagateChangesin classAccountEntityDaoBase- Throws:
Exception
-
handleUpdate
protected void handleUpdate(AccountEntity entity, String auditType) throws Exception
- Specified by:
handleUpdatein classAccountEntityDaoBase- Throws:
Exception
-
findByText
public Collection<AccountEntity> findByText(CriteriaSearchConfiguration criteria, String text)
Description copied from class:AccountEntityDaoBaseCriteriaSearchConfiguration implementation- Specified by:
findByTextin interfaceAccountEntityDao- Overrides:
findByTextin classAccountEntityDaoBase
-
handleRemoveFromCache
public void handleRemoveFromCache(AccountEntity entity)
- Specified by:
handleRemoveFromCachein classAccountEntityDaoBase
-
handleGetAccessLevel
protected es.caib.seycon.ng.comu.AccountAccessLevelEnum handleGetAccessLevel(AccountEntity source, String user) throws es.caib.seycon.ng.exception.InternalErrorException
- Specified by:
handleGetAccessLevelin classAccountEntityDaoBase- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
-