Interface TenantRepository
- All Superinterfaces:
org.craftercms.commons.mongo.CrudRepository<Tenant>
- All Known Implementing Classes:
TenantRepositoryImpl
DB repository for
Tenant
s-
Method Summary
Modifier and TypeMethodDescriptionfindByName
(String name) Returns the tenant for the given name.void
removeByName
(String name) Removes the tenant for the given name.Methods inherited from interface org.craftercms.commons.mongo.CrudRepository
count, count, count, deleteFile, deleteFile, find, find, findAll, findById, findByStringId, findOne, findOne, getFileInfo, getFileInfo, insert, insert, listFilesByName, readFile, readFile, remove, remove, removeById, removeByStringId, save, save, saveFile, saveFile, update, update, update, update, updateFile, updateFile, updateFile
-
Method Details
-
findByName
Returns the tenant for the given name.- Parameters:
name
- the tenant's name- Returns:
- the tenant, or null if not found.
- Throws:
org.craftercms.commons.mongo.MongoDataException
-
removeByName
Removes the tenant for the given name.- Parameters:
name
- the tenant's name- Throws:
org.craftercms.commons.mongo.MongoDataException
-