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 AuditEntity
auditoriaToEntity(es.caib.seycon.ng.comu.Auditoria instance)
Transforms fromAuditoria
objectvoid
auditoriaToEntity(es.caib.seycon.ng.comu.Auditoria source, AuditEntity target, boolean copyIfNull)
Copy data fromAuditoria
objectList<AuditEntity>
auditoriaToEntityList(Collection<es.caib.seycon.ng.comu.Auditoria> instances)
Transforms fromAudit
listAuditEntity
auditToEntity(com.soffid.iam.api.Audit instance)
Transforms fromAudit
objectvoid
auditToEntity(com.soffid.iam.api.Audit source, AuditEntity target, boolean copyIfNull)
Copy data fromAudit
objectList<AuditEntity>
auditToEntityList(Collection<com.soffid.iam.api.Audit> instances)
Transforms fromAudit
listvoid
create(AuditEntity entity)
Adds an instance ofAuditEntity
to the persistent store.void
create(Collection<? extends AuditEntity> entities)
Creates a collection ofAuditEntity
and 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 findAuditByCriteria4AuditEntity
findById(CriteriaSearchConfiguration criteria, Long id)
CriteriaSearchConfiguration implementationAuditEntity
findById(Long id)
Operation findByIdAuditEntity
findById(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 implementationAccountEntityDao
getAccountEntityDao()
Gets reference toaccountEntityDao
.EmailDomainEntityDao
getEmailDomainEntityDao()
Gets reference todominiCorreuEntityDao
.EmailListEntityDao
getEmailListEntityDao()
Gets reference tollistaCorreuEntityDao
.GroupEntityDao
getGroupEntityDao()
Gets reference togrupEntityDao
.HostEntityDao
getHostEntityDao()
Gets reference tomaquinaEntityDao
.InformationSystemEntityDao
getInformationSystemEntityDao()
Gets reference toaplicacioEntityDao
.NetworkEntityDao
getNetworkEntityDao()
Gets reference toxarxaEntityDao
.com.soffid.iam.service.PasswordService
getPasswordService()
Gets reference topasswordService
.PrinterEntityDao
getPrinterEntityDao()
Gets reference toimpressoraEntityDao
.RoleEntityDao
getRoleEntityDao()
Gets reference torolEntityDao
.SystemEntityDao
getSystemEntityDao()
Gets reference todispatcherEntityDao
.TenantEntityDao
getTenantEntityDao()
Gets reference totenantEntityDao
.UserEntityDao
getUserEntityDao()
Gets reference tousuariEntityDao
.protected abstract void
handleUnlinkAccounts(AccountEntity account)
AuditEntity
load(Long id)
Loads an instance ofAuditEntity
from the persistent store.List<AuditEntity>
loadAll()
Loads all instances ofAuditEntity
from the persistent store.AuditEntity
newAuditEntity()
Creates an instance ofAuditEntity
.List<AuditEntity>
query(String queryString, Parameter[] parameters)
Query ofAuditEntity
from the persistent store.List<AuditEntity>
query(String queryString, Parameter[] parameters, CriteriaSearchConfiguration criteria)
Query ofAuditEntity
from the persistent store.void
remove(AuditEntity entity)
Removes an instance ofAuditEntity
from the persistent store.void
remove(Long id)
Removes an instance ofAuditEntity
from the persistent store.void
remove(Collection<? extends AuditEntity> entities)
Removes a collection ofAuditEntity
from the persistent store.void
setAccountEntityDao(AccountEntityDao accountEntityDao)
Sets reference toaccountEntityDao
.void
setEmailDomainEntityDao(EmailDomainEntityDao dominiCorreuEntityDao)
Sets reference todominiCorreuEntityDao
.void
setEmailListEntityDao(EmailListEntityDao llistaCorreuEntityDao)
Sets reference tollistaCorreuEntityDao
.void
setGroupEntityDao(GroupEntityDao grupEntityDao)
Sets reference togrupEntityDao
.void
setHostEntityDao(HostEntityDao maquinaEntityDao)
Sets reference tomaquinaEntityDao
.void
setInformationSystemEntityDao(InformationSystemEntityDao aplicacioEntityDao)
Sets reference toaplicacioEntityDao
.void
setNetworkEntityDao(NetworkEntityDao xarxaEntityDao)
Sets reference toxarxaEntityDao
.void
setPasswordService(com.soffid.iam.service.PasswordService passwordService)
Sets reference topasswordService
.void
setPrinterEntityDao(PrinterEntityDao impressoraEntityDao)
Sets reference toimpressoraEntityDao
.void
setRoleEntityDao(RoleEntityDao rolEntityDao)
Sets reference torolEntityDao
.void
setSystemEntityDao(SystemEntityDao dispatcherEntityDao)
Sets reference todispatcherEntityDao
.void
setTenantEntityDao(TenantEntityDao tenantEntityDao)
Sets reference totenantEntityDao
.void
setUserEntityDao(UserEntityDao usuariEntityDao)
Sets reference tousuariEntityDao
.com.soffid.iam.api.Audit
toAudit(AuditEntity entity)
Transforms toAudit
objectvoid
toAudit(AuditEntity source, com.soffid.iam.api.Audit target)
Copy data toAudit
objectList<com.soffid.iam.api.Audit>
toAuditList(Collection<AuditEntity> instances)
Transforms toAudit
listes.caib.seycon.ng.comu.Auditoria
toAuditoria(AuditEntity entity)
Transforms toAudit
objectvoid
toAuditoria(AuditEntity source, es.caib.seycon.ng.comu.Auditoria target)
Copy data toAuditoria
objectList<es.caib.seycon.ng.comu.Auditoria>
toAuditoriaList(Collection<AuditEntity> instances)
Transforms toAuditoria
listvoid
unlinkAccounts(AccountEntity account)
Operation unlinkAccounts Unlinks audit logs from account that is going to be removedvoid
update(AuditEntity entity)
Updates an instance ofAuditEntity
at the persistent store.void
update(Collection<? extends AuditEntity> entities)
Updates a collection ofAuditEntity
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
-
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:
findById
in interfaceAuditEntityDao
- Parameters:
id
-- Returns:
-
findById
public AuditEntity findById(CriteriaSearchConfiguration criteria, Long id)
CriteriaSearchConfiguration implementation- Specified by:
findById
in interfaceAuditEntityDao
-
findById
public AuditEntity findById(String queryString, CriteriaSearchConfiguration criteria, Long id)
Internal implementation
-
findByIndex
public Collection<AuditEntity> findByIndex(String searchIndex)
Operation findByIndex- Specified by:
findByIndex
in interfaceAuditEntityDao
- Parameters:
searchIndex
-- Returns:
-
findByIndex
public Collection<AuditEntity> findByIndex(CriteriaSearchConfiguration criteria, String searchIndex)
CriteriaSearchConfiguration implementation- Specified by:
findByIndex
in 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:
findAuditByCriteria1
in 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:
findAuditByCriteria1
in 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:
findAuditByCriteria2
in 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:
findAuditByCriteria2
in 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:
findAuditByCriteria3
in 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:
findAuditByCriteria3
in 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:
findAuditByCriteria4
in 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:
findAuditByCriteria4
in 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:AuditEntityDao
Operation unlinkAccounts Unlinks audit logs from account that is going to be removed- Specified by:
unlinkAccounts
in 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 toAudit
object- Specified by:
toAudit
in interfaceAuditEntityDao
-
toAudit
public com.soffid.iam.api.Audit toAudit(AuditEntity entity)
Transforms toAudit
object- Specified by:
toAudit
in interfaceAuditEntityDao
-
toAuditList
public List<com.soffid.iam.api.Audit> toAuditList(Collection<AuditEntity> instances)
Transforms toAudit
list- Specified by:
toAuditList
in interfaceAuditEntityDao
-
auditToEntity
public void auditToEntity(com.soffid.iam.api.Audit source, AuditEntity target, boolean copyIfNull)
Copy data fromAudit
object- Specified by:
auditToEntity
in interfaceAuditEntityDao
-
auditToEntity
public AuditEntity auditToEntity(com.soffid.iam.api.Audit instance)
Transforms fromAudit
object- Specified by:
auditToEntity
in interfaceAuditEntityDao
-
auditToEntityList
public List<AuditEntity> auditToEntityList(Collection<com.soffid.iam.api.Audit> instances)
Transforms fromAudit
list- Specified by:
auditToEntityList
in interfaceAuditEntityDao
-
toAuditoria
public void toAuditoria(AuditEntity source, es.caib.seycon.ng.comu.Auditoria target)
Description copied from interface:AuditEntityDao
Copy data toAuditoria
object- Specified by:
toAuditoria
in interfaceAuditEntityDao
-
toAuditoria
public es.caib.seycon.ng.comu.Auditoria toAuditoria(AuditEntity entity)
Transforms toAudit
object- Specified by:
toAuditoria
in interfaceAuditEntityDao
-
toAuditoriaList
public List<es.caib.seycon.ng.comu.Auditoria> toAuditoriaList(Collection<AuditEntity> instances)
Transforms toAuditoria
list- Specified by:
toAuditoriaList
in interfaceAuditEntityDao
-
auditoriaToEntity
public void auditoriaToEntity(es.caib.seycon.ng.comu.Auditoria source, AuditEntity target, boolean copyIfNull)
Copy data fromAuditoria
object- Specified by:
auditoriaToEntity
in interfaceAuditEntityDao
-
auditoriaToEntity
public AuditEntity auditoriaToEntity(es.caib.seycon.ng.comu.Auditoria instance)
Transforms fromAuditoria
object- Specified by:
auditoriaToEntity
in interfaceAuditEntityDao
-
auditoriaToEntityList
public List<AuditEntity> auditoriaToEntityList(Collection<es.caib.seycon.ng.comu.Auditoria> instances)
Transforms fromAudit
list- Specified by:
auditoriaToEntityList
in interfaceAuditEntityDao
-
newAuditEntity
public AuditEntity newAuditEntity()
Creates an instance ofAuditEntity
.- Specified by:
newAuditEntity
in interfaceAuditEntityDao
-
load
public AuditEntity load(Long id)
Loads an instance ofAuditEntity
from the persistent store.- Specified by:
load
in interfaceAuditEntityDao
-
loadAll
public List<AuditEntity> loadAll()
Loads all instances ofAuditEntity
from the persistent store.- Specified by:
loadAll
in interfaceAuditEntityDao
-
create
public void create(AuditEntity entity)
Adds an instance ofAuditEntity
to the persistent store.- Specified by:
create
in interfaceAuditEntityDao
-
update
public void update(AuditEntity entity)
Updates an instance ofAuditEntity
at the persistent store.- Specified by:
update
in interfaceAuditEntityDao
-
remove
public void remove(AuditEntity entity)
Removes an instance ofAuditEntity
from the persistent store.- Specified by:
remove
in interfaceAuditEntityDao
-
create
public void create(Collection<? extends AuditEntity> entities)
Creates a collection ofAuditEntity
and adds it to the persistent store.- Specified by:
create
in interfaceAuditEntityDao
-
update
public void update(Collection<? extends AuditEntity> entities)
Updates a collection ofAuditEntity
in the persistent store.- Specified by:
update
in interfaceAuditEntityDao
-
remove
public void remove(Collection<? extends AuditEntity> entities)
Removes a collection ofAuditEntity
from the persistent store.- Specified by:
remove
in interfaceAuditEntityDao
-
remove
public void remove(Long id)
Removes an instance ofAuditEntity
from the persistent store.- Specified by:
remove
in interfaceAuditEntityDao
-
query
public List<AuditEntity> query(String queryString, Parameter[] parameters)
Query ofAuditEntity
from the persistent store. parameter query HQL Query String parameter parameters HQL Parameters- Specified by:
query
in interfaceAuditEntityDao
-
query
public List<AuditEntity> query(String queryString, Parameter[] parameters, CriteriaSearchConfiguration criteria)
Query ofAuditEntity
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 interfaceAuditEntityDao
-
-