All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.duracloud.account.db.repo.DuracloudRepoMgr Maven / Gradle / Ivy

There is a newer version: 8.0.0
Show newest version
/*
 * The contents of this file are subject to the license and copyright
 * detailed in the LICENSE and NOTICE files at the root of the source
 * tree and available online at
 *
 *     http://duracloud.org/license/
 */
package org.duracloud.account.db.repo;

import java.util.HashSet;
import java.util.Set;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Component;

/**
 * @author Erik Paulsson
 * Date: 7/17/13
 */
@Component(value = "repoMgr")
public class DuracloudRepoMgr {

    @Autowired
    private DuracloudUserRepo userRepo;

    @Autowired
    private DuracloudGroupRepo groupRepo;

    @Autowired
    private DuracloudAccountRepo accountRepo;

    @Autowired
    private DuracloudRightsRepo rightsRepo;

    @Autowired
    private DuracloudUserInvitationRepo userInvitationRepo;

    @Autowired
    private DuracloudStorageProviderAccountRepo storageProviderAccountRepo;

    @Autowired
    private DuracloudMillRepo duracloudMillRepo;

    @Autowired
    private EmailTemplateRepo emailTemplateRepo;

    public DuracloudUserRepo getUserRepo() {
        return userRepo;
    }

    public DuracloudGroupRepo getGroupRepo() {
        return groupRepo;
    }

    public DuracloudAccountRepo getAccountRepo() {
        return accountRepo;
    }

    public DuracloudRightsRepo getRightsRepo() {
        return rightsRepo;
    }

    public DuracloudUserInvitationRepo getUserInvitationRepo() {
        return userInvitationRepo;
    }

    public DuracloudStorageProviderAccountRepo getStorageProviderAccountRepo() {
        return storageProviderAccountRepo;
    }

    public EmailTemplateRepo getEmailTemplateRepo() {
        return emailTemplateRepo;
    }

    public Set getAllRepos() {
        Set repos = new HashSet<>();
        repos.add(userRepo);
        repos.add(groupRepo);
        repos.add(accountRepo);
        repos.add(rightsRepo);
        repos.add(userInvitationRepo);
        repos.add(storageProviderAccountRepo);
        repos.add(duracloudMillRepo);
        repos.add(emailTemplateRepo);
        return repos;
    }

    public DuracloudMillRepo getDuracloudMillRepo() {
        return duracloudMillRepo;
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy