SharedService.java
1.02 KB
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
52
53
54
package org.legrog.web.xyz;
import org.legrog.entities.*;
import java.util.List;
/**
* Shared service for data not part of a specific package
*/
public interface SharedService {
/**
* Adds a Country
*
* @param country Country to add
* @return Country
*/
Country addCountry(Country country);
/**
* Provides the List of Country
*
* @return List<Country>
*/
List<Country> getAllCountries();
/**
* Provides the List of DisplayNameMask
*
* @return List<DisplayNameMask>
*/
List<DisplayNameMask> getAllDisplayNameMasks();
/**
* Provides the List of AccountRole
*
* @return List<AccountRole>
*/
List<AccountRole> getAvailableUserRoles();
/**
* Provides the List of AccountProperty
*
* @return List<AccountProperty>
*/
List<AccountProperty> getAvailableUserProperties();
/**
* Provides the Account of the current user
* @return Account
*
*/
Account getCurrentUser();
}