1 package org.splat.dal.bo.som;
3 * Base implementation of actor relations such as Contributor, Reviewer and Approver.
4 * ActorRelation objects are attached to Documents for defining those who HAVE CONTRIBUTED to these documents,
5 * while instances of subclasses of ActorRelation are attached to Studies for setting those who CAN CONTRIBUTE to given document types.</br>
7 * Depending on the actual relation object, the value of the actor relation has different meaning:
9 * <li>The description of ActorRelation objects defines the type of contributions (Contributor, Reviewer, Approver...)</li>
10 * <li>The description of instances of subclasses of ActorRelation defines the type of acting documents</li>
13 * @author Daniel Brunier-Coulin
14 * @copyright OPEN CASCADE 2012
17 import org.splat.dal.bo.kernel.Persistent;
18 import org.splat.dal.bo.kernel.Relation;
19 import org.splat.dal.bo.kernel.User;
22 public abstract class ActorRelation extends Relation {
26 // ==============================================================================================================================
28 // ==============================================================================================================================
30 // Database fetch constructor
31 protected ActorRelation () {
33 // ActorRelation subclasses constructor
34 protected ActorRelation (Study from, User to) {
35 // ---------------------------------------------
40 // ==============================================================================================================================
41 // Public member functions
42 // ==============================================================================================================================
45 public User getTo () {
46 // --------------------
49 protected void setTo (Persistent to) {
50 // ------------------------------------