Subversion Repositories bacoAlunos

Rev

Rev 1782 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
163 jmachado 1
package pt.estgp.estgweb.domain;
2
 
3
import org.apache.log4j.Logger;
4
 
5
import java.util.List;
6
import java.util.Date;
7
import java.io.Serializable;
8
 
9
/**
10
 * @author Jorge Machado
11
 * @date 2/Mar/2008
12
 * @time 10:27:25
13
 * @see pt.estgp.estgweb.domain
14
 */
15
public class ReminderImpl extends Reminder implements IOwned, IContextTimerObject
16
{
17
 
18
    private static final 1.5.0/docs/api/java/util/logging/Logger.html">Logger logger = 1.5.0/docs/api/java/util/logging/Logger.html">Logger.getLogger(ReminderImpl.class);
19
 
20
 
1782 jmachado 21
    public boolean checkIsOwnedBy(GenericUser u)
163 jmachado 22
    {
1782 jmachado 23
        return checkIsOwnedBy(u, false);
208 jmachado 24
    }
25
 
1782 jmachado 26
    public boolean checkIsOwnedBy(GenericUser u, boolean transaction)
208 jmachado 27
    {
163 jmachado 28
        return u.getId() == getOwner().getId();
29
    }
30
 
31
    public GenericUser getOwner()
32
    {
33
        return super.getOwner();
34
    }
35
 
36
    /**
37
     * Not implemented in reminders
38
     *
39
     * @return null
40
     */
41
    public List<String> getOwnerRoles()
42
    {
43
        logger.warn("Invoke not implemented method in class:" + getClass().getName());
44
        return null;
45
    }
46
 
47
    /**
48
     * Not implemented in reminders
49
     *
50
     * @return null
51
     */
52
    public 1.5.0/docs/api/java/lang/String.html">String getChoosedOwnerRole()
53
    {
54
        logger.warn("Invoke not implemented method in class:" + getClass().getName());
55
        return null;
56
    }
57
 
58
    public 1.5.0/docs/api/java/io/Serializable.html">Serializable getSerializable()
59
    {
60
        return getId();
61
    }
62
 
63
    public 5+0%2Fdocs%2Fapi+Date">Date getEndTime()
64
    {
65
        return super.getExpireDate();
66
    }
67
 
68
    public 5+0%2Fdocs%2Fapi+Date">Date getStartTime()
69
    {
70
        return super.getStartDate();
71
    }
72
 
73
}