Skip to main content
summaryrefslogtreecommitdiffstats
blob: 877bf068211b2e1d17675986d9d1aa4e3e99f16a (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
50
51
/*******************************************************************************
 * Copyright (c) 2013 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.ats.api.user;

import java.util.Collection;
import java.util.List;
import org.eclipse.osee.framework.core.enums.Active;
import org.eclipse.osee.framework.jdk.core.type.OseeCoreException;

/**
 * Non-artifact based user service
 * 
 * @author Donald G. Dunne
 */
public interface IAtsUserService {

   IAtsUser getCurrentUser() throws OseeCoreException;

   String getCurrentUserId() throws OseeCoreException;

   IAtsUser getUserById(String userId) throws OseeCoreException;

   boolean isUserIdValid(String userId) throws OseeCoreException;

   boolean isUserNameValid(String name) throws OseeCoreException;

   IAtsUser getUserByName(String name) throws OseeCoreException;

   Collection<IAtsUser> getUsersByUserIds(Collection<String> userIds) throws OseeCoreException;

   boolean isAtsAdmin(IAtsUser user);

   List<IAtsUser> getUsers(Active active);

   List<IAtsUser> getUsersSortedByName(Active active);

   void clearCache();

   boolean currentUserHasAccessToAtsBranch(Long branchUuid);

   void releaseUser();

}

Back to the top