SharedService.java 1.02 KB
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();
}