Package com.soffid.iam.model
Class AuditEntityDaoBase
- java.lang.Object
-
- org.springframework.dao.support.DaoSupport
-
- org.springframework.orm.hibernate3.support.HibernateDaoSupport
-
- com.soffid.iam.model.AuditEntityDaoBase
-
- All Implemented Interfaces:
AuditEntityDao,org.springframework.beans.factory.InitializingBean
- Direct Known Subclasses:
AuditEntityDaoImpl
public abstract class AuditEntityDaoBase extends org.springframework.orm.hibernate3.support.HibernateDaoSupport implements AuditEntityDao
DAO Base for Entity AuditEntity
-
-
Constructor Summary
Constructors Constructor Description AuditEntityDaoBase()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description AuditEntityauditoriaToEntity(es.caib.seycon.ng.comu.Auditoria instance)Transforms fromAuditoriaobjectvoidauditoriaToEntity(es.caib.seycon.ng.comu.Auditoria source, AuditEntity target, boolean copyIfNull)Copy data fromAuditoriaobjectList<AuditEntity>auditoriaToEntityList(Collection<es.caib.seycon.ng.comu.Auditoria> instances)Transforms fromAuditlistAuditEntityauditToEntity(com.soffid.iam.api.Audit instance)Transforms fromAuditobjectvoidauditToEntity(com.soffid.iam.api.Audit source, AuditEntity target, boolean copyIfNull)Copy data fromAuditobjectList<AuditEntity>auditToEntityList(Collection<com.soffid.iam.api.Audit> instances)Transforms fromAuditlistvoidcreate(AuditEntity entity)Adds an instance ofAuditEntityto the persistent store.voidcreate(Collection<? extends AuditEntity> entities)Creates a collection ofAuditEntityand adds it to the persistent store.List<AuditEntity>findAuditByCriteria1(CriteriaSearchConfiguration criteria, String author, String object, String user, String action)CriteriaSearchConfiguration implementationList<AuditEntity>findAuditByCriteria1(String queryString, CriteriaSearchConfiguration criteria, String author, String object, String user, String action)Internal implementationList<AuditEntity>findAuditByCriteria1(String author, String object, String user, String action)Operation findAuditByCriteria1List<AuditEntity>findAuditByCriteria2(CriteriaSearchConfiguration criteria, String author, String object, String user, String column, String value, String action)CriteriaSearchConfiguration implementationList<AuditEntity>findAuditByCriteria2(String queryString, CriteriaSearchConfiguration criteria, String author, String object, String user, String column, String value, String action)Internal implementationList<AuditEntity>findAuditByCriteria2(String author, String object, String user, String column, String value, String action)Operation findAuditByCriteria2List<AuditEntity>findAuditByCriteria3(CriteriaSearchConfiguration criteria, Date nullDate, Date until, Date since, String author, String object, String user, String action)CriteriaSearchConfiguration implementationList<AuditEntity>findAuditByCriteria3(String queryString, CriteriaSearchConfiguration criteria, Date nullDate, Date until, Date since, String author, String object, String user, String action)Internal implementationList<AuditEntity>findAuditByCriteria3(Date nullDate, Date until, Date since, String author, String object, String user, String action)Operation findAuditByCriteria3List<AuditEntity>findAuditByCriteria4(CriteriaSearchConfiguration criteria, Date nullDate, Date until, Date since, String author, String object, String user, String column, String value, String action)CriteriaSearchConfiguration implementationList<AuditEntity>findAuditByCriteria4(String queryString, CriteriaSearchConfiguration criteria, Date nullDate, Date until, Date since, String author, String object, String user, String column, String value, String action)Internal implementationList<AuditEntity>findAuditByCriteria4(Date nullDate, Date until, Date since, String author, String object, String user, String column, String value, String action)Operation findAuditByCriteria4AuditEntityfindById(CriteriaSearchConfiguration criteria, Long id)CriteriaSearchConfiguration implementationAuditEntityfindById(Long id)Operation findByIdAuditEntityfindById(String queryString, CriteriaSearchConfiguration criteria, Long id)Internal implementationCollection<AuditEntity>findByIndex(CriteriaSearchConfiguration criteria, String searchIndex)CriteriaSearchConfiguration implementationCollection<AuditEntity>findByIndex(String searchIndex)Operation findByIndexCollection<AuditEntity>findByIndex(String queryString, CriteriaSearchConfiguration criteria, String searchIndex)Internal implementationAccountEntityDaogetAccountEntityDao()Gets reference toaccountEntityDao.EmailDomainEntityDaogetEmailDomainEntityDao()Gets reference todominiCorreuEntityDao.EmailListEntityDaogetEmailListEntityDao()Gets reference tollistaCorreuEntityDao.GroupEntityDaogetGroupEntityDao()Gets reference togrupEntityDao.HostEntityDaogetHostEntityDao()Gets reference tomaquinaEntityDao.InformationSystemEntityDaogetInformationSystemEntityDao()Gets reference toaplicacioEntityDao.NetworkEntityDaogetNetworkEntityDao()Gets reference toxarxaEntityDao.com.soffid.iam.service.PasswordServicegetPasswordService()Gets reference topasswordService.PrinterEntityDaogetPrinterEntityDao()Gets reference toimpressoraEntityDao.RoleEntityDaogetRoleEntityDao()Gets reference torolEntityDao.SystemEntityDaogetSystemEntityDao()Gets reference todispatcherEntityDao.TenantEntityDaogetTenantEntityDao()Gets reference totenantEntityDao.UserEntityDaogetUserEntityDao()Gets reference tousuariEntityDao.protected abstract voidhandleUnlinkAccounts(AccountEntity account)AuditEntityload(Long id)Loads an instance ofAuditEntityfrom the persistent store.List<AuditEntity>loadAll()Loads all instances ofAuditEntityfrom the persistent store.AuditEntitynewAuditEntity()Creates an instance ofAuditEntity.List<AuditEntity>query(String queryString, Parameter[] parameters)Query ofAuditEntityfrom the persistent store.List<AuditEntity>query(String queryString, Parameter[] parameters, CriteriaSearchConfiguration criteria)Query ofAuditEntityfrom the persistent store.voidremove(AuditEntity entity)Removes an instance ofAuditEntityfrom the persistent store.voidremove(Long id)Removes an instance ofAuditEntityfrom the persistent store.voidremove(Collection<? extends AuditEntity> entities)Removes a collection ofAuditEntityfrom the persistent store.voidsetAccountEntityDao(AccountEntityDao accountEntityDao)Sets reference toaccountEntityDao.voidsetEmailDomainEntityDao(EmailDomainEntityDao dominiCorreuEntityDao)Sets reference todominiCorreuEntityDao.voidsetEmailListEntityDao(EmailListEntityDao llistaCorreuEntityDao)Sets reference tollistaCorreuEntityDao.voidsetGroupEntityDao(GroupEntityDao grupEntityDao)Sets reference togrupEntityDao.voidsetHostEntityDao(HostEntityDao maquinaEntityDao)Sets reference tomaquinaEntityDao.voidsetInformationSystemEntityDao(InformationSystemEntityDao aplicacioEntityDao)Sets reference toaplicacioEntityDao.voidsetNetworkEntityDao(NetworkEntityDao xarxaEntityDao)Sets reference toxarxaEntityDao.voidsetPasswordService(com.soffid.iam.service.PasswordService passwordService)Sets reference topasswordService.voidsetPrinterEntityDao(PrinterEntityDao impressoraEntityDao)Sets reference toimpressoraEntityDao.voidsetRoleEntityDao(RoleEntityDao rolEntityDao)Sets reference torolEntityDao.voidsetSystemEntityDao(SystemEntityDao dispatcherEntityDao)Sets reference todispatcherEntityDao.voidsetTenantEntityDao(TenantEntityDao tenantEntityDao)Sets reference totenantEntityDao.voidsetUserEntityDao(UserEntityDao usuariEntityDao)Sets reference tousuariEntityDao.com.soffid.iam.api.AudittoAudit(AuditEntity entity)Transforms toAuditobjectvoidtoAudit(AuditEntity source, com.soffid.iam.api.Audit target)Copy data toAuditobjectList<com.soffid.iam.api.Audit>toAuditList(Collection<AuditEntity> instances)Transforms toAuditlistes.caib.seycon.ng.comu.AuditoriatoAuditoria(AuditEntity entity)Transforms toAuditobjectvoidtoAuditoria(AuditEntity source, es.caib.seycon.ng.comu.Auditoria target)Copy data toAuditoriaobjectList<es.caib.seycon.ng.comu.Auditoria>toAuditoriaList(Collection<AuditEntity> instances)Transforms toAuditorialistvoidunlinkAccounts(AccountEntity account)Operation unlinkAccounts Unlinks audit logs from account that is going to be removedvoidupdate(AuditEntity entity)Updates an instance ofAuditEntityat the persistent store.voidupdate(Collection<? extends AuditEntity> entities)Updates a collection ofAuditEntityin 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
-
setAccountEntityDao
public void setAccountEntityDao(AccountEntityDao accountEntityDao)
Sets reference toaccountEntityDao.
-
getAccountEntityDao
public AccountEntityDao getAccountEntityDao()
Gets reference toaccountEntityDao.
-
setInformationSystemEntityDao
public void setInformationSystemEntityDao(InformationSystemEntityDao aplicacioEntityDao)
Sets reference toaplicacioEntityDao.
-
getInformationSystemEntityDao
public InformationSystemEntityDao getInformationSystemEntityDao()
Gets reference toaplicacioEntityDao.
-
setSystemEntityDao
public void setSystemEntityDao(SystemEntityDao dispatcherEntityDao)
Sets reference todispatcherEntityDao.
-
getSystemEntityDao
public SystemEntityDao getSystemEntityDao()
Gets reference todispatcherEntityDao.
-
setEmailDomainEntityDao
public void setEmailDomainEntityDao(EmailDomainEntityDao dominiCorreuEntityDao)
Sets reference todominiCorreuEntityDao.
-
getEmailDomainEntityDao
public EmailDomainEntityDao getEmailDomainEntityDao()
Gets reference todominiCorreuEntityDao.
-
setGroupEntityDao
public void setGroupEntityDao(GroupEntityDao grupEntityDao)
Sets reference togrupEntityDao.
-
getGroupEntityDao
public GroupEntityDao getGroupEntityDao()
Gets reference togrupEntityDao.
-
setPrinterEntityDao
public void setPrinterEntityDao(PrinterEntityDao impressoraEntityDao)
Sets reference toimpressoraEntityDao.
-
getPrinterEntityDao
public PrinterEntityDao getPrinterEntityDao()
Gets reference toimpressoraEntityDao.
-
setEmailListEntityDao
public void setEmailListEntityDao(EmailListEntityDao llistaCorreuEntityDao)
Sets reference tollistaCorreuEntityDao.
-
getEmailListEntityDao
public EmailListEntityDao getEmailListEntityDao()
Gets reference tollistaCorreuEntityDao.
-
setHostEntityDao
public void setHostEntityDao(HostEntityDao maquinaEntityDao)
Sets reference tomaquinaEntityDao.
-
getHostEntityDao
public HostEntityDao getHostEntityDao()
Gets reference tomaquinaEntityDao.
-
setPasswordService
public void setPasswordService(com.soffid.iam.service.PasswordService passwordService)
Sets reference topasswordService.
-
getPasswordService
public com.soffid.iam.service.PasswordService getPasswordService()
Gets reference topasswordService.
-
setRoleEntityDao
public void setRoleEntityDao(RoleEntityDao rolEntityDao)
Sets reference torolEntityDao.
-
getRoleEntityDao
public RoleEntityDao getRoleEntityDao()
Gets reference torolEntityDao.
-
setTenantEntityDao
public void setTenantEntityDao(TenantEntityDao tenantEntityDao)
Sets reference totenantEntityDao.
-
getTenantEntityDao
public TenantEntityDao getTenantEntityDao()
Gets reference totenantEntityDao.
-
setUserEntityDao
public void setUserEntityDao(UserEntityDao usuariEntityDao)
Sets reference tousuariEntityDao.
-
getUserEntityDao
public UserEntityDao getUserEntityDao()
Gets reference tousuariEntityDao.
-
setNetworkEntityDao
public void setNetworkEntityDao(NetworkEntityDao xarxaEntityDao)
Sets reference toxarxaEntityDao.
-
getNetworkEntityDao
public NetworkEntityDao getNetworkEntityDao()
Gets reference toxarxaEntityDao.
-
findById
public AuditEntity findById(Long id)
Operation findById- Specified by:
findByIdin interfaceAuditEntityDao- Parameters:
id-- Returns:
-
findById
public AuditEntity findById(CriteriaSearchConfiguration criteria, Long id)
CriteriaSearchConfiguration implementation- Specified by:
findByIdin interfaceAuditEntityDao
-
findById
public AuditEntity findById(String queryString, CriteriaSearchConfiguration criteria, Long id)
Internal implementation
-
findByIndex
public Collection<AuditEntity> findByIndex(String searchIndex)
Operation findByIndex- Specified by:
findByIndexin interfaceAuditEntityDao- Parameters:
searchIndex-- Returns:
-
findByIndex
public Collection<AuditEntity> findByIndex(CriteriaSearchConfiguration criteria, String searchIndex)
CriteriaSearchConfiguration implementation- Specified by:
findByIndexin interfaceAuditEntityDao
-
findByIndex
public Collection<AuditEntity> findByIndex(String queryString, CriteriaSearchConfiguration criteria, String searchIndex)
Internal implementation
-
findAuditByCriteria1
public List<AuditEntity> findAuditByCriteria1(String author, String object, String user, String action)
Operation findAuditByCriteria1- Specified by:
findAuditByCriteria1in interfaceAuditEntityDao- Parameters:
author-object-user-action-- Returns:
-
findAuditByCriteria1
public List<AuditEntity> findAuditByCriteria1(CriteriaSearchConfiguration criteria, String author, String object, String user, String action)
CriteriaSearchConfiguration implementation- Specified by:
findAuditByCriteria1in interfaceAuditEntityDao
-
findAuditByCriteria1
public List<AuditEntity> findAuditByCriteria1(String queryString, CriteriaSearchConfiguration criteria, String author, String object, String user, String action)
Internal implementation
-
findAuditByCriteria2
public List<AuditEntity> findAuditByCriteria2(String author, String object, String user, String column, String value, String action)
Operation findAuditByCriteria2- Specified by:
findAuditByCriteria2in interfaceAuditEntityDao- Parameters:
author-object-user-column-value-action-- Returns:
-
findAuditByCriteria2
public List<AuditEntity> findAuditByCriteria2(CriteriaSearchConfiguration criteria, String author, String object, String user, String column, String value, String action)
CriteriaSearchConfiguration implementation- Specified by:
findAuditByCriteria2in interfaceAuditEntityDao
-
findAuditByCriteria2
public List<AuditEntity> findAuditByCriteria2(String queryString, CriteriaSearchConfiguration criteria, String author, String object, String user, String column, String value, String action)
Internal implementation
-
findAuditByCriteria3
public List<AuditEntity> findAuditByCriteria3(Date nullDate, Date until, Date since, String author, String object, String user, String action)
Operation findAuditByCriteria3- Specified by:
findAuditByCriteria3in interfaceAuditEntityDao- Parameters:
nullDate-until-since-author-object-user-action-- Returns:
-
findAuditByCriteria3
public List<AuditEntity> findAuditByCriteria3(CriteriaSearchConfiguration criteria, Date nullDate, Date until, Date since, String author, String object, String user, String action)
CriteriaSearchConfiguration implementation- Specified by:
findAuditByCriteria3in interfaceAuditEntityDao
-
findAuditByCriteria3
public List<AuditEntity> findAuditByCriteria3(String queryString, CriteriaSearchConfiguration criteria, Date nullDate, Date until, Date since, String author, String object, String user, String action)
Internal implementation
-
findAuditByCriteria4
public List<AuditEntity> findAuditByCriteria4(Date nullDate, Date until, Date since, String author, String object, String user, String column, String value, String action)
Operation findAuditByCriteria4- Specified by:
findAuditByCriteria4in interfaceAuditEntityDao- Parameters:
nullDate-until-since-author-object-user-column-value-action-- Returns:
-
findAuditByCriteria4
public List<AuditEntity> findAuditByCriteria4(CriteriaSearchConfiguration criteria, Date nullDate, Date until, Date since, String author, String object, String user, String column, String value, String action)
CriteriaSearchConfiguration implementation- Specified by:
findAuditByCriteria4in interfaceAuditEntityDao
-
findAuditByCriteria4
public List<AuditEntity> findAuditByCriteria4(String queryString, CriteriaSearchConfiguration criteria, Date nullDate, Date until, Date since, String author, String object, String user, String column, String value, String action)
Internal implementation
-
unlinkAccounts
public void unlinkAccounts(AccountEntity account) throws es.caib.seycon.ng.exception.InternalErrorException
Description copied from interface:AuditEntityDaoOperation unlinkAccounts Unlinks audit logs from account that is going to be removed- Specified by:
unlinkAccountsin interfaceAuditEntityDao- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
handleUnlinkAccounts
protected abstract void handleUnlinkAccounts(AccountEntity account) throws Exception
- Throws:
Exception
-
toAudit
public void toAudit(AuditEntity source, com.soffid.iam.api.Audit target)
Copy data toAuditobject- Specified by:
toAuditin interfaceAuditEntityDao
-
toAudit
public com.soffid.iam.api.Audit toAudit(AuditEntity entity)
Transforms toAuditobject- Specified by:
toAuditin interfaceAuditEntityDao
-
toAuditList
public List<com.soffid.iam.api.Audit> toAuditList(Collection<AuditEntity> instances)
Transforms toAuditlist- Specified by:
toAuditListin interfaceAuditEntityDao
-
auditToEntity
public void auditToEntity(com.soffid.iam.api.Audit source, AuditEntity target, boolean copyIfNull)Copy data fromAuditobject- Specified by:
auditToEntityin interfaceAuditEntityDao
-
auditToEntity
public AuditEntity auditToEntity(com.soffid.iam.api.Audit instance)
Transforms fromAuditobject- Specified by:
auditToEntityin interfaceAuditEntityDao
-
auditToEntityList
public List<AuditEntity> auditToEntityList(Collection<com.soffid.iam.api.Audit> instances)
Transforms fromAuditlist- Specified by:
auditToEntityListin interfaceAuditEntityDao
-
toAuditoria
public void toAuditoria(AuditEntity source, es.caib.seycon.ng.comu.Auditoria target)
Description copied from interface:AuditEntityDaoCopy data toAuditoriaobject- Specified by:
toAuditoriain interfaceAuditEntityDao
-
toAuditoria
public es.caib.seycon.ng.comu.Auditoria toAuditoria(AuditEntity entity)
Transforms toAuditobject- Specified by:
toAuditoriain interfaceAuditEntityDao
-
toAuditoriaList
public List<es.caib.seycon.ng.comu.Auditoria> toAuditoriaList(Collection<AuditEntity> instances)
Transforms toAuditorialist- Specified by:
toAuditoriaListin interfaceAuditEntityDao
-
auditoriaToEntity
public void auditoriaToEntity(es.caib.seycon.ng.comu.Auditoria source, AuditEntity target, boolean copyIfNull)Copy data fromAuditoriaobject- Specified by:
auditoriaToEntityin interfaceAuditEntityDao
-
auditoriaToEntity
public AuditEntity auditoriaToEntity(es.caib.seycon.ng.comu.Auditoria instance)
Transforms fromAuditoriaobject- Specified by:
auditoriaToEntityin interfaceAuditEntityDao
-
auditoriaToEntityList
public List<AuditEntity> auditoriaToEntityList(Collection<es.caib.seycon.ng.comu.Auditoria> instances)
Transforms fromAuditlist- Specified by:
auditoriaToEntityListin interfaceAuditEntityDao
-
newAuditEntity
public AuditEntity newAuditEntity()
Creates an instance ofAuditEntity.- Specified by:
newAuditEntityin interfaceAuditEntityDao
-
load
public AuditEntity load(Long id)
Loads an instance ofAuditEntityfrom the persistent store.- Specified by:
loadin interfaceAuditEntityDao
-
loadAll
public List<AuditEntity> loadAll()
Loads all instances ofAuditEntityfrom the persistent store.- Specified by:
loadAllin interfaceAuditEntityDao
-
create
public void create(AuditEntity entity)
Adds an instance ofAuditEntityto the persistent store.- Specified by:
createin interfaceAuditEntityDao
-
update
public void update(AuditEntity entity)
Updates an instance ofAuditEntityat the persistent store.- Specified by:
updatein interfaceAuditEntityDao
-
remove
public void remove(AuditEntity entity)
Removes an instance ofAuditEntityfrom the persistent store.- Specified by:
removein interfaceAuditEntityDao
-
create
public void create(Collection<? extends AuditEntity> entities)
Creates a collection ofAuditEntityand adds it to the persistent store.- Specified by:
createin interfaceAuditEntityDao
-
update
public void update(Collection<? extends AuditEntity> entities)
Updates a collection ofAuditEntityin the persistent store.- Specified by:
updatein interfaceAuditEntityDao
-
remove
public void remove(Collection<? extends AuditEntity> entities)
Removes a collection ofAuditEntityfrom the persistent store.- Specified by:
removein interfaceAuditEntityDao
-
remove
public void remove(Long id)
Removes an instance ofAuditEntityfrom the persistent store.- Specified by:
removein interfaceAuditEntityDao
-
query
public List<AuditEntity> query(String queryString, Parameter[] parameters)
Query ofAuditEntityfrom the persistent store. parameter query HQL Query String parameter parameters HQL Parameters- Specified by:
queryin interfaceAuditEntityDao
-
query
public List<AuditEntity> query(String queryString, Parameter[] parameters, CriteriaSearchConfiguration criteria)
Query ofAuditEntityfrom the persistent store. parameter query HQL Query String parameter parameters HQL Parameters parameter maxResults max number of rows to return- Specified by:
queryin interfaceAuditEntityDao
-
-