Blame view

src/main/java/org/legrog/web/xyz/SharedService.java 1.02 KB
1
package org.legrog.web.xyz;
2

3
import org.legrog.entities.*;
4 5 6

import java.util.List;

7
/**
8
 * Shared service for data not part of a specific package
9
 */
10 11
public interface SharedService {

12
    /**
13
     * Adds a Country
14
     *
15 16
     * @param country Country to add
     * @return Country
17
     */
18
    Country addCountry(Country country);
19

20
    /**
21
     * Provides the List of Country
22 23 24
     *
     * @return List<Country>
     */
25 26
    List<Country> getAllCountries();

27
    /**
28
     * Provides the List of DisplayNameMask
29 30 31
     *
     * @return List<DisplayNameMask>
     */
32 33
    List<DisplayNameMask> getAllDisplayNameMasks();

34
    /**
35
     * Provides the List of AccountRole
36 37 38
     *
     * @return List<AccountRole>
     */
39
    List<AccountRole> getAvailableUserRoles();
40

41
    /**
42
     * Provides the List of AccountProperty
43 44 45
     *
     * @return List<AccountProperty>
     */
46
    List<AccountProperty> getAvailableUserProperties();
47

48
    /**
49
     * Provides the Account of the current user
50 51 52
     * @return Account
     *
     */
53
    Account getCurrentUser();
54
}