1
2 package olr.om;
3
4
5 import org.apache.log4j.Logger;
6 import org.apache.torque.TorqueException;
7 import org.apache.torque.om.Persistent;
8
9 /***
10 * The skeleton for this class was autogenerated by Torque on:
11 *
12 * [Wed Jun 16 21:12:50 CEST 2004]
13 *
14 * You should add additional methods to this class to meet the
15 * application requirements. This class will only be generated as
16 * long as it does not already exist in the output directory.
17 */
18 public class RdfUser
19 extends olr.om.BaseRdfUser
20 implements Persistent
21 {
22 public boolean isContributor() {
23
24 try {
25 return getRdfGroup().getRoleContributor() == 1;
26 }
27 catch(TorqueException e) {
28 Logger.getLogger(this.getClass()).error("Exception getting contributor role of RdfGroup: " + e);
29 return false;
30 }
31 }
32 }