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.api; 20 21 22 /** 23 * The Class DataSummary. 24 */ 25 public final class DataSummary implements DataModel { 26 27 /** The Constant serialVersionUID. */ 28 private static final long serialVersionUID = 1L; 29 30 /** The committee proposal size. */ 31 public final long committeeProposalSize; 32 33 /** The document content size. */ 34 public final long documentContentSize; 35 36 /** The document element size. */ 37 public final long documentElementSize; 38 39 /** The document status size. */ 40 public final long documentStatusSize; 41 42 /** The person size. */ 43 public final long personSize; 44 45 /** The total ballot votes. */ 46 public final long totalBallotVotes; 47 48 /** The vote size. */ 49 public final long voteSize; 50 51 /** 52 * Instantiates a new data summary. 53 * 54 * @param personSize 55 * the person size 56 * @param voteSize 57 * the vote size 58 * @param totalBallotVotes 59 * the total ballot votes 60 * @param documentElementSize 61 * the document element size 62 * @param documentContentSize 63 * the document content size 64 * @param documentStatusSize 65 * the document status size 66 * @param committeeProposalSize 67 * the committee proposal size 68 */ 69 public DataSummary(final long personSize,final long voteSize, final long totalBallotVotes,final long documentElementSize,final long documentContentSize,final long documentStatusSize,final long committeeProposalSize) { 70 this.personSize = personSize; 71 this.voteSize = voteSize; 72 this.totalBallotVotes = totalBallotVotes; 73 this.documentElementSize = documentElementSize; 74 this.documentContentSize = documentContentSize; 75 this.documentStatusSize = documentStatusSize; 76 this.committeeProposalSize = committeeProposalSize; 77 } 78 }