blob: be160a9752f18ddc3441e8156196870e602ed32f [file] [log] [blame]
/*********************************************************************
* Copyright (c) 2014 Boeing
*
* This program and the accompanying materials are made
* available under the terms of the Eclipse Public License 2.0
* which is available at https://www.eclipse.org/legal/epl-2.0/
*
* SPDX-License-Identifier: EPL-2.0
*
* Contributors:
* Boeing - initial API and implementation
**********************************************************************/
package org.eclipse.osee.account.admin.internal;
import org.eclipse.osee.account.admin.Account;
import org.eclipse.osee.account.admin.SubscriptionAdmin;
import org.eclipse.osee.account.rest.model.SubscriptionGroupId;
import org.eclipse.osee.framework.jdk.core.type.ResultSet;
/**
* @author Roberto E. Escobar
*/
public class SubscriptionResolver {
private final SubscriptionAdmin subscriptionsAdmin;
public SubscriptionResolver(SubscriptionAdmin subscriptionsAdmin) {
super();
this.subscriptionsAdmin = subscriptionsAdmin;
}
public ResultSet<Account> getSubscriptionMembersById(SubscriptionGroupId groupId) {
ResultSet<Account> toReturn;
toReturn = subscriptionsAdmin.getSubscriptionMembersOfSubscriptionById(groupId);
return toReturn;
}
}