blob: 173404e4023afe2f368d6849c32794426f07ff6f (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
|
/*******************************************************************************
* Copyright (c) 2014 Boeing.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* Boeing - initial API and implementation
*******************************************************************************/
package org.eclipse.osee.account.admin.ds;
import org.eclipse.osee.account.admin.Account;
import org.eclipse.osee.account.admin.Subscription;
import org.eclipse.osee.account.admin.SubscriptionGroup;
import org.eclipse.osee.framework.jdk.core.type.ResultSet;
/**
* @author Roberto E. Escobar
*/
public interface SubscriptionStorage {
ResultSet<Subscription> getSubscriptionsByAccountLocalId(long accountId);
Subscription getSubscription(String subscriptionUuid);
void updateSubscription(long accountId, long groupId, boolean activate);
ResultSet<SubscriptionGroup> getSubscriptionGroups();
ResultSet<SubscriptionGroup> getSubscriptionGroupByLocalId(long groupId);
ResultSet<SubscriptionGroup> getSubscriptionGroupByName(String name);
ResultSet<SubscriptionGroup> getSubscriptionGroupByGuid(String guid);
boolean subscriptionGroupNameExists(String groupName);
SubscriptionGroup createSubscriptionGroup(String name);
void deleteSubscriptionGroup(SubscriptionGroup group);
ResultSet<Account> getSubscriptionGroupMembersByLocalId(long groupId);
ResultSet<Account> getSubscriptionGroupMembersByName(String name);
ResultSet<Account> getSubscriptionGroupMembersByGuid(String guid);
}
|