/**
* Copyright © 2015 Pablo Grela Palleiro (pablogp_9@hotmail.com)
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.cuacfm.members.model.program;
import java.util.Date;
import java.util.List;
import org.cuacfm.members.model.account.Account;
/**
* The Interface ProgramRepository.
*/
public interface ProgramRepository {
/**
* Save.
*
* @param program the program
* @return program
*/
public Program save(Program program);
/**
* Update.
*
* @param program the program
* @return program
*/
public Program update(Program program);
/**
* Delete.
*
* @param program the program
*/
public void delete(Program program);
/**
* Find by id.
*
* @param id the id of program
* @return the program
*/
public Program findById(Long id);
/**
* Find by login.
*
* @param name the name of program
* @return Program
*/
public Program findByName(String name);
/**
* Get all programs.
*
* @return List<Program>
*/
public List<Program> getProgramList();
/**
* Get all active programs.
*
* @return List<Program>
*/
public List<Program> getProgramListActive();
/**
* Gets the program list active by user.
*
* @param account the account
* @return the program list active by user
*/
public List<Program> getProgramListActiveByUser(Account account);
/**
* Gets the program list close.
*
* @return the program list close
*/
public List<Program> getProgramListClose();
/**
* Gets the program list active whitout pays.
*
* @param month the month
* @return the program list active whitout pays
*/
public List<Program> getProgramListActiveWhitoutPays(Date month);
/**
* Find program type list.
*
* @return the list
*/
public List<ProgramType> findProgramTypeList();
/**
* Find program type by id.
*
* @param id the id
* @return the program type
*/
public ProgramType findProgramTypeById(int id);
/**
* Find program type by name.
*
* @param name the name
* @return the program type
*/
public ProgramType findProgramTypeByName(String name);
/**
* Find program thematic list.
*
* @return the list
*/
public List<ProgramThematic> findProgramThematicList();
/**
* Find program thematic by id.
*
* @param id the id
* @return the program thematic
*/
public ProgramThematic findProgramThematicById(int id);
/**
* Find program thematic by name.
*
* @param name the name
* @return the program thematic
*/
public ProgramThematic findProgramThematicByName(String name);
/**
* Find program category list.
*
* @return the list
*/
public List<ProgramCategory> findProgramCategoryList();
/**
* Find program category by id.
*
* @param id the id
* @return the program category
*/
public ProgramCategory findProgramCategoryById(int id);
/**
* Find program category by name.
*
* @param name the name
* @return the program category
*/
public ProgramCategory findProgramCategoryByName(String name);
/**
* Find program language list.
*
* @return the list
*/
public List<ProgramLanguage> findProgramLanguageList();
/**
* Find program language by id.
*
* @param id the id
* @return the program language
*/
public ProgramLanguage findProgramLanguageById(int id);
/**
* Find program language by name.
*
* @param name the name
* @return the program language
*/
public ProgramLanguage findProgramLanguageByName(String name);
}