package votorola.a.diff.harvest.cache;// Copyright 2010-2012. Christian Weilbach. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Votorola Software"), to deal in the Votorola Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicence, and/or sell copies of the Votorola Software, and to permit persons to whom the Votorola Software is furnished to do so, subject to the following conditions: The preceding copyright notice and this permission notice shall be included in all copies or substantial portions of the Votorola Software. THE VOTOROLA SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE VOTOROLA SOFTWARE OR THE USE OR OTHER DEALINGS IN THE VOTOROLA SOFTWARE. /** * This class contains a derived Message object, which * contains all the original message data and additionally * information to the single diffKey URL it maps to in this * message. This is what is stored in the database. * This is losely connected to the Bite type of Crossforum. * @see DraftPair * @see Cache * @see Message * @see HarvestTable */ import votorola.a.count.XCastRelation; import votorola.g.lang.ThreadSafe; /** * TODO This wrapper is not used by {@link HarvestCache} at the moment because * we don't have historic voting data in the database yet and therefore cannot * store relational data. * * Related authenticated diff-messages are the last processing stage of * {@link HarvestCache} before storing this information in the database. * * @see HarvestCache * @see AuthDiffMessage * */ @ThreadSafe class RelAuthDiffMessage { final private AuthDiffMessage admsg; public AuthDiffMessage authDiffMessage() { return admsg; } private final XCastRelation relation; public XCastRelation relation() { return relation; } RelAuthDiffMessage(final AuthDiffMessage admsg, final XCastRelation rel) { this.admsg = admsg; this.relation = rel; } }