<thclass="colFirst"scope="col">Modifier and Type</th>
<thclass="colSecond"scope="col">Method</th>
<thclass="colLast"scope="col">Description</th>
</tr>
</thead>
<tbody>
<trclass="altColor"id="i0">
<tdclass="colFirst"><code>java.util.Optional<<ahref="../entities/Exchange.html"title="class in com.plannaplan.entities">Exchange</a>></code></td>
<thclass="colSecond"scope="row"><code><spanclass="memberNameLink"><ahref="#checkForExchange(com.plannaplan.entities.Assignment,com.plannaplan.entities.Groups)">checkForExchange</a></span>​(<ahref="../entities/Assignment.html"title="class in com.plannaplan.entities">Assignment</a> assignment,
<ahref="../entities/Groups.html"title="class in com.plannaplan.entities">Groups</a> group)</code></th>
<tdclass="colLast"> </td>
</tr>
<trclass="rowColor"id="i1">
<tdclass="colFirst"><code>void</code></td>
<thclass="colSecond"scope="row"><code><spanclass="memberNameLink"><ahref="#deleteExchange(com.plannaplan.entities.Exchange)">deleteExchange</a></span>​(<ahref="../entities/Exchange.html"title="class in com.plannaplan.entities">Exchange</a> entity)</code></th>
<tdclass="colLast"> </td>
</tr>
<trclass="altColor"id="i2">
<tdclass="colFirst"><code>java.util.List<<ahref="../entities/Exchange.html"title="class in com.plannaplan.entities">Exchange</a>></code></td>
<tdclass="colFirst"><code>java.util.Optional<<ahref="../entities/Exchange.html"title="class in com.plannaplan.entities">Exchange</a>></code></td>
<divclass="block">method to perform Exchange algorythm.</div>
</td>
</tr>
<trclass="rowColor"id="i7">
<tdclass="colFirst"><code><ahref="../entities/Exchange.html"title="class in com.plannaplan.entities">Exchange</a></code></td>
<thclass="colSecond"scope="row"><code><spanclass="memberNameLink"><ahref="#save(com.plannaplan.entities.Exchange)">save</a></span>​(<ahref="../entities/Exchange.html"title="class in com.plannaplan.entities">Exchange</a> exchange)</code></th>
<tdclass="colLast"> </td>
</tr>
</tbody>
</table>
</div>
</div>
<divclass="inheritedList">
<h3>Methods inherited from class java.lang.Object</h3>
<divclass="memberSignature"><spanclass="modifiers">public</span> <spanclass="returnType"><ahref="../entities/Exchange.html"title="class in com.plannaplan.entities">Exchange</a></span> <spanclass="memberName">save</span>​(<spanclass="arguments"><ahref="../entities/Exchange.html"title="class in com.plannaplan.entities">Exchange</a> exchange)</span></div>
<divclass="memberSignature"><spanclass="modifiers">public</span> <spanclass="returnType">java.util.Optional<<ahref="../entities/Exchange.html"title="class in com.plannaplan.entities">Exchange</a>></span> <spanclass="memberName">getById</span>​(<spanclass="arguments">java.lang.Long id)</span></div>
<divclass="memberSignature"><spanclass="modifiers">public</span> <spanclass="returnType">java.util.List<<ahref="../entities/Exchange.html"title="class in com.plannaplan.entities">Exchange</a>></span> <spanclass="memberName">getAllExchanges</span>()</div>
<divclass="memberSignature"><spanclass="modifiers">public</span> <spanclass="returnType">java.util.List<<ahref="../entities/Exchange.html"title="class in com.plannaplan.entities">Exchange</a>></span> <spanclass="memberName">getByUserId</span>​(<spanclass="arguments">java.lang.Long id)</span></div>
<divclass="memberSignature"><spanclass="modifiers">public</span> <spanclass="returnType">void</span> <spanclass="memberName">deleteExchange</span>​(<spanclass="arguments"><ahref="../entities/Exchange.html"title="class in com.plannaplan.entities">Exchange</a> entity)</span></div>
<divclass="memberSignature"><spanclass="modifiers">public</span> <spanclass="returnType">java.util.Optional<<ahref="../entities/Exchange.html"title="class in com.plannaplan.entities">Exchange</a>></span> <spanclass="memberName">checkForExchange</span>​(<spanclass="arguments"><ahref="../entities/Assignment.html"title="class in com.plannaplan.entities">Assignment</a> assignment,
<ahref="../entities/Groups.html"title="class in com.plannaplan.entities">Groups</a> group)</span></div>
<divclass="block">method to perform Exchange algorythm. It search for matches and swap
assignments between latests user commisions if it can be performed. After
swap we block users matches that contains switched groups. After algorythm
email is being sent to all users with information about performed exchanges</div>
</section>
</li>
<liclass="blockList">
<sectionclass="detail">
<h3><aid="getMatches()">getMatches</a></h3>
<divclass="memberSignature"><spanclass="modifiers">public</span> <spanclass="returnType">java.util.List<<ahref="../models/MatchData.html"title="class in com.plannaplan.models">MatchData</a>></span> <spanclass="memberName">getMatches</span>()</div>