Package com.logicaldoc.core.security.dao
Class HibernateTenantDAO
- java.lang.Object
-
- com.logicaldoc.core.HibernatePersistentObjectDAO<Tenant>
-
- com.logicaldoc.core.security.dao.HibernateTenantDAO
-
- All Implemented Interfaces:
PersistentObjectDAO<Tenant>,TenantDAO
public class HibernateTenantDAO extends HibernatePersistentObjectDAO<Tenant> implements TenantDAO
-
-
Field Summary
-
Fields inherited from interface com.logicaldoc.core.PersistentObjectDAO
ENTITY
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcount()Counts the total number of tenantsSet<String>findAllNames()Retrieves all the tenant namesTenantfindByName(String name)Finds a tenant by nameStringgetTenantName(long tenantId)Retrieves the tenant's namevoidsetAttributeSetDao(AttributeSetDAO attributeSetDao)voidsetConf(ContextProperties conf)voidsetDashletDao(DashletDAO dashletDao)voidsetFolderDao(FolderDAO folderDao)voidsetGenericDao(GenericDAO genericDao)voidsetGroupDao(GroupDAO groupDao)voidsetMessageTemplateDao(MessageTemplateDAO messageTemplateDao)voidsetTemplateDao(TemplateDAO templateDao)voidsetUserDao(UserDAO userDao)voidstore(Tenant entity)This method persists the entity object-
Methods inherited from class com.logicaldoc.core.HibernatePersistentObjectDAO
bulkUpdate, bulkUpdate, delete, 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, 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
-
findByName
public Tenant findByName(String name)
Description copied from interface:TenantDAOFinds a tenant by name- Specified by:
findByNamein interfaceTenantDAO- Parameters:
name- name of wanted tenant- Returns:
- Wanted tenant or null
-
count
public int count()
Description copied from interface:TenantDAOCounts the total number of tenants
-
setFolderDao
public void setFolderDao(FolderDAO folderDao)
-
setGroupDao
public void setGroupDao(GroupDAO groupDao)
-
setUserDao
public void setUserDao(UserDAO userDao)
-
setConf
public void setConf(ContextProperties conf)
-
setGenericDao
public void setGenericDao(GenericDAO genericDao)
-
setTemplateDao
public void setTemplateDao(TemplateDAO templateDao)
-
setDashletDao
public void setDashletDao(DashletDAO dashletDao)
-
findAllNames
public Set<String> findAllNames()
Description copied from interface:TenantDAORetrieves all the tenant names- Specified by:
findAllNamesin interfaceTenantDAO- Returns:
- the collection of all the tenant names
-
setMessageTemplateDao
public void setMessageTemplateDao(MessageTemplateDAO messageTemplateDao)
-
store
public void store(Tenant entity)
Description copied from interface:PersistentObjectDAOThis method persists the entity object- Specified by:
storein interfacePersistentObjectDAO<Tenant>- Overrides:
storein classHibernatePersistentObjectDAO<Tenant>- Parameters:
entity- entity to be stored
-
setAttributeSetDao
public void setAttributeSetDao(AttributeSetDAO attributeSetDao)
-
getTenantName
public String getTenantName(long tenantId)
Description copied from interface:TenantDAORetrieves the tenant's name- Specified by:
getTenantNamein interfaceTenantDAO- Parameters:
tenantId- identifier of the tenant- Returns:
- name of the tenant
-
-