Class TenantRepositoryImpl

java.lang.Object
org.craftercms.commons.mongo.AbstractJongoRepository<Tenant>
org.craftercms.profile.repositories.impl.TenantRepositoryImpl
All Implemented Interfaces:
org.craftercms.commons.mongo.CrudRepository<Tenant>, TenantRepository

public class TenantRepositoryImpl extends org.craftercms.commons.mongo.AbstractJongoRepository<Tenant> implements TenantRepository
Default implementation of TenantRepository.
Author:
avasquez
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
     
    static final String
     
    static final String
     
    static final String
     

    Fields inherited from class org.craftercms.commons.mongo.AbstractJongoRepository

    clazz, collectionName, gridfs, jongo, queries
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the tenant for the given name.
    void
     
    void
    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 class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    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
  • Field Details

  • Constructor Details

    • TenantRepositoryImpl

      public TenantRepositoryImpl()
  • Method Details

    • 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