Interface TenantRepository

  • All Superinterfaces:
    org.craftercms.commons.mongo.CrudRepository<Tenant>
    All Known Implementing Classes:
    TenantRepositoryImpl

    public interface TenantRepository
    extends org.craftercms.commons.mongo.CrudRepository<Tenant>
    DB repository for Tenants
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      Tenant findByName​(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 Detail

      • findByName

        Tenant findByName​(String name)
                   throws org.craftercms.commons.mongo.MongoDataException
        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

        void removeByName​(String name)
                   throws org.craftercms.commons.mongo.MongoDataException
        Removes the tenant for the given name.
        Parameters:
        name - the tenant's name
        Throws:
        org.craftercms.commons.mongo.MongoDataException