Class TenantRepositoryImpl

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      Tenant findByName​(String name)
      Returns the tenant for the given name.
      void init()  
      void removeByName​(String name)
      Removes the tenant for the given name.
      • Methods inherited from class org.craftercms.commons.mongo.AbstractJongoRepository

        count, count, count, createSortQuery, deleteFile, deleteFile, find, find, findAll, findById, findByStringId, findOne, findOne, getCollection, getFileInfo, getFileInfo, getQueryFor, insert, insert, listFilesByName, readFile, readFile, remove, remove, removeById, removeByStringId, returnList, returnSimple, save, save, saveFile, saveFile, setJongo, setQueries, update, update, update, update, updateFile, updateFile, updateFile, validateObject, validateObject
      • 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
    • Constructor Detail

      • TenantRepositoryImpl

        public TenantRepositoryImpl()
    • Method Detail

      • init

        public void init()
                  throws Exception
        Overrides:
        init in class org.craftercms.commons.mongo.AbstractJongoRepository<Tenant>
        Throws:
        Exception
      • findByName

        public Tenant findByName​(String name)
                          throws org.craftercms.commons.mongo.MongoDataException
        Description copied from interface: TenantRepository
        Returns the tenant for the given name.
        Specified by:
        findByName in interface TenantRepository
        Parameters:
        name - the tenant's name
        Returns:
        the tenant, or null if not found.
        Throws:
        org.craftercms.commons.mongo.MongoDataException
      • removeByName

        public void removeByName​(String name)
                          throws org.craftercms.commons.mongo.MongoDataException
        Description copied from interface: TenantRepository
        Removes the tenant for the given name.
        Specified by:
        removeByName in interface TenantRepository
        Parameters:
        name - the tenant's name
        Throws:
        org.craftercms.commons.mongo.MongoDataException