View Javadoc
1   /*
2    * Copyright 2010 James Pether Sörling
3    *
4    * Licensed under the Apache License, Version 2.0 (the "License");
5    * you may not use this file except in compliance with the License.
6    * You may obtain a copy of the License at
7    *
8    *   http://www.apache.org/licenses/LICENSE-2.0
9    *
10   * Unless required by applicable law or agreed to in writing, software
11   * distributed under the License is distributed on an "AS IS" BASIS,
12   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13   * See the License for the specific language governing permissions and
14   * limitations under the License.
15   *
16   *	$Id$
17   *  $HeadURL$
18  */
19  package com.hack23.cia.service.impl;
20  
21  import com.hack23.cia.model.internal.application.system.impl.Agency;
22  import com.hack23.cia.model.internal.application.system.impl.LanguageData;
23  import com.hack23.cia.model.internal.application.system.impl.Portal;
24  import com.hack23.cia.service.api.UserConfiguration;
25  
26  /**
27   * The Class UserConfigurationImpl.
28   */
29  final class UserConfigurationImpl implements UserConfiguration {
30  
31  	/** The agency. */
32  	private final Agency agency;
33  
34  	/** The portal. */
35  	private final Portal portal;
36  
37  	private final LanguageData languageData;
38  
39  	/**
40  	 * Instantiates a new user configuration impl.
41  	 *
42  	 * @param agency
43  	 *            the agency
44  	 * @param portal
45  	 *            the portal
46  	 */
47  	public UserConfigurationImpl(final Agency agency, final Portal portal, final LanguageData languageData) {
48  		super();
49  		this.agency = agency;
50  		this.portal = portal;
51  		this.languageData = languageData;
52  	}
53  
54  	@Override
55  	public Agency getAgency() {
56  		return agency;
57  	}
58  
59  	@Override
60  	public Portal getPortal() {
61  		return portal;
62  	}
63  
64  	@Override
65  	public LanguageData getLanguage() {
66  		return languageData;
67  	}
68  }