/*
 * Copyright (C) 2018 EPAM Systems
 *
 * 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 com.epam.ta.reportportal.dao;

import com.epam.ta.reportportal.entity.preference.UserPreference;

import java.util.List;

/**
 * @author Pavel Bortnik
 */
public interface UserPreferenceRepository extends ReportPortalRepository<UserPreference, Long> {

	List<UserPreference> findByProjectIdAndUserId(Long projectId, Long userId);

}

@@ -724,16 +724,49 @@
 t;%0A%0A/**%0A
+ * User preference repository%0A *%0A
  * @auth
@@ -782,16 +782,16 @@
 Bortnik%0A
-
  */%0Apubl
@@ -889,33 +889,378 @@
 %7B%0A%0A%09
-List%3CUserPreference%3E find
+/**%0A%09 * Find user preferences by project and user%0A%09 *%0A%09 * @param projectId Project id%0A%09 * @param userId    User id%0A%09 * @return List of user preferences%0A%09 */%0A%09List%3CUserPreference%3E findByProjectIdAndUserId(Long projectId, Long userId);%0A%0A%09/**%0A%09 * Remove user preferences by rpoject and user%0A%09 *%0A%09 * @param projectId Project id%0A%09 * @param userId    User id%0A%09 */%0A%09void remove
 ByPr

add remove project to user preferences repository