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.component.agent.impl.riksdagen.workers.data;
20  
21  import java.util.List;
22  
23  import com.hack23.cia.model.external.riksdagen.documentcontent.impl.DocumentContentData;
24  import com.hack23.cia.model.external.riksdagen.dokumentlista.impl.DocumentElement;
25  import com.hack23.cia.model.external.riksdagen.dokumentstatus.impl.DocumentStatusContainer;
26  import com.hack23.cia.model.external.riksdagen.person.impl.PersonData;
27  import com.hack23.cia.model.external.riksdagen.utskottsforslag.impl.CommitteeProposalComponentData;
28  import com.hack23.cia.model.external.riksdagen.votering.impl.VoteData;
29  
30  /**
31   * The Interface RiksdagenUpdateService.
32   */
33  public interface RiksdagenUpdateService {
34  
35  
36  	/**
37  	 * Update.
38  	 *
39  	 * @param personData
40  	 *            the person data
41  	 */
42  	void update(PersonData personData);
43  
44  	/**
45  	 * Update committee proposal component data.
46  	 *
47  	 * @param committeeProposal
48  	 *            the committee proposal
49  	 */
50  	void updateCommitteeProposalComponentData(
51  			CommitteeProposalComponentData committeeProposal);
52  
53  	/**
54  	 * Update document content data.
55  	 *
56  	 * @param documentContent
57  	 *            the document content
58  	 */
59  	void updateDocumentContentData(DocumentContentData documentContent);
60  
61  	/**
62  	 * Update document data.
63  	 *
64  	 * @param documentData
65  	 *            the document data
66  	 */
67  	void updateDocumentData(DocumentStatusContainer documentData);
68  
69  	/**
70  	 * Update document element.
71  	 *
72  	 * @param documentElement
73  	 *            the document element
74  	 */
75  	void updateDocumentElement(DocumentElement documentElement);
76  
77  	/**
78  	 * Update vote data data.
79  	 *
80  	 * @param ballot
81  	 *            the ballot
82  	 */
83  	void updateVoteDataData(List<VoteData> ballot);
84  
85  }