ApplicationTenancyRepository
API
ApplicationTenancyRepository.java
interface ApplicationTenancyRepository {
ApplicationTenancy newApplicationTenancy() (1)
Collection<ApplicationTenancy> allTenancies()
Collection<ApplicationTenancy> getRootTenancies() (2)
Collection<ApplicationTenancy> getChildren(ApplicationTenancy tenancy)
Collection<ApplicationTenancy> findByNameOrPathMatchingCached(String partialNameOrPath)
ApplicationTenancy findByPath(String path)
Collection<ApplicationTenancy> findMatching(String search) (3)
ApplicationTenancy newTenancy(String name, String path, ApplicationTenancy parent)
void setTenancyOnUser(ApplicationTenancy tenancy, ApplicationUser user)
void clearTenancyOnUser(ApplicationUser user)
void setParentOnTenancy(ApplicationTenancy tenancy, ApplicationTenancy parent)
void clearParentOnTenancy(ApplicationTenancy tenancy)
}
1 | newApplicationTenancy() |
2 | getRootTenancies()
non-parented, not a child |
3 | findMatching(String)
auto-complete support |