Package com.logicaldoc.core.security.dao
Class HibernateTenantDAO
- java.lang.Object
-
- com.logicaldoc.core.HibernatePersistentObjectDAO<com.logicaldoc.core.security.Tenant>
-
- com.logicaldoc.core.security.dao.HibernateTenantDAO
-
- All Implemented Interfaces:
com.logicaldoc.core.PersistentObjectDAO<com.logicaldoc.core.security.Tenant>
,com.logicaldoc.core.security.dao.TenantDAO
public class HibernateTenantDAO extends com.logicaldoc.core.HibernatePersistentObjectDAO<com.logicaldoc.core.security.Tenant> implements com.logicaldoc.core.security.dao.TenantDAO
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
count()
void
delete(long tenantId, int code)
Set<String>
findAllNames()
com.logicaldoc.core.security.Tenant
findByName(String name)
String
getTenantName(long tenantId)
void
setAttributeSetDao(com.logicaldoc.core.metadata.AttributeSetDAO attributeSetDao)
void
setConf(com.logicaldoc.util.config.ContextProperties conf)
void
setDashletDao(com.logicaldoc.core.dashlet.DashletDAO dashletDao)
void
setFolderDao(com.logicaldoc.core.folder.FolderDAO folderDao)
void
setGenericDao(com.logicaldoc.core.generic.GenericDAO genericDao)
void
setGroupDao(com.logicaldoc.core.security.dao.GroupDAO groupDao)
void
setMessageTemplateDao(com.logicaldoc.core.communication.MessageTemplateDAO messageTemplateDao)
void
setTemplateDao(com.logicaldoc.core.metadata.TemplateDAO templateDao)
void
setUserDao(com.logicaldoc.core.security.dao.UserDAO userDao)
void
store(com.logicaldoc.core.security.Tenant tenant)
-
Methods inherited from class com.logicaldoc.core.HibernatePersistentObjectDAO
bulkUpdate, bulkUpdate, delete, deleteAll, deleteAll, findAll, findAll, findAllIds, findAllIds, findById, findById, findByObjectQuery, findByObjectQuery, findByQuery, findByQuery, findByWhere, findByWhere, findByWhere, findIdsByWhere, findIdsByWhere, getDbms, getSessionFactory, initialize, isOracle, jdbcUpdate, jdbcUpdate, query, queryForInt, queryForList, queryForList, queryForLong, queryForLong, queryForObject, queryForRowSet, queryForString, setSessionFactory
-
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.logicaldoc.core.PersistentObjectDAO
bulkUpdate, bulkUpdate, delete, deleteAll, deleteAll, findAll, findAll, findAllIds, findAllIds, findById, findById, findByObjectQuery, findByObjectQuery, findByQuery, findByQuery, findByWhere, findByWhere, findByWhere, findIdsByWhere, findIdsByWhere, getDbms, initialize, isOracle, jdbcUpdate, jdbcUpdate, query, queryForInt, queryForList, queryForList, queryForLong, queryForLong, queryForObject, queryForRowSet, queryForString
-
-
-
-
Method Detail
-
delete
public void delete(long tenantId, int code) throws com.logicaldoc.core.PersistenceException
- Specified by:
delete
in interfacecom.logicaldoc.core.PersistentObjectDAO<com.logicaldoc.core.security.Tenant>
- Overrides:
delete
in classcom.logicaldoc.core.HibernatePersistentObjectDAO<com.logicaldoc.core.security.Tenant>
- Throws:
com.logicaldoc.core.PersistenceException
-
findByName
public com.logicaldoc.core.security.Tenant findByName(String name)
- Specified by:
findByName
in interfacecom.logicaldoc.core.security.dao.TenantDAO
-
count
public int count()
- Specified by:
count
in interfacecom.logicaldoc.core.security.dao.TenantDAO
-
setFolderDao
public void setFolderDao(com.logicaldoc.core.folder.FolderDAO folderDao)
-
store
public void store(com.logicaldoc.core.security.Tenant tenant) throws com.logicaldoc.core.PersistenceException
- Specified by:
store
in interfacecom.logicaldoc.core.PersistentObjectDAO<com.logicaldoc.core.security.Tenant>
- Overrides:
store
in classcom.logicaldoc.core.HibernatePersistentObjectDAO<com.logicaldoc.core.security.Tenant>
- Throws:
com.logicaldoc.core.PersistenceException
-
setGroupDao
public void setGroupDao(com.logicaldoc.core.security.dao.GroupDAO groupDao)
-
setUserDao
public void setUserDao(com.logicaldoc.core.security.dao.UserDAO userDao)
-
setConf
public void setConf(com.logicaldoc.util.config.ContextProperties conf)
-
setGenericDao
public void setGenericDao(com.logicaldoc.core.generic.GenericDAO genericDao)
-
setTemplateDao
public void setTemplateDao(com.logicaldoc.core.metadata.TemplateDAO templateDao)
-
findAllNames
public Set<String> findAllNames()
- Specified by:
findAllNames
in interfacecom.logicaldoc.core.security.dao.TenantDAO
-
setMessageTemplateDao
public void setMessageTemplateDao(com.logicaldoc.core.communication.MessageTemplateDAO messageTemplateDao)
-
setAttributeSetDao
public void setAttributeSetDao(com.logicaldoc.core.metadata.AttributeSetDAO attributeSetDao)
-
getTenantName
public String getTenantName(long tenantId)
- Specified by:
getTenantName
in interfacecom.logicaldoc.core.security.dao.TenantDAO
-
setDashletDao
public void setDashletDao(com.logicaldoc.core.dashlet.DashletDAO dashletDao)
-
-