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

org.duracloud.account.db.repo.DuracloudAccountRepo 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.List;

import org.duracloud.account.db.model.AccountInfo;
import org.duracloud.account.db.model.AccountInfo.AccountStatus;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

/**
 * @author Erik Paulsson
 * Date: 7/8/13
 */
@Repository(value = "accountRepo")
public interface DuracloudAccountRepo extends JpaRepository {

    /**
     * This method returns the account with the given subdomain
     *
     * @param subdomain of account
     * @return account info
     */
    public AccountInfo findBySubdomain(String subdomain);

    /**
     * This method returns the account with the given subdomain
     *
     * @param status
     * @return list of account info
     */
    public List findByStatus(AccountStatus status);

    /**
     * @param id
     * @return
     */
    public AccountInfo findByPrimaryStorageProviderAccountId(Long id);

    /**
     * @param id
     * @return
     */
    public AccountInfo findBySecondaryStorageProviderAccountsId(Long id);

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy