API Overview API Index Package Overview Direct link to this page
JavaOnTracks 0.1.2
  net.jot.db.authentication. JOTAuthPermission View Javadoc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56

/*
------------------------------------
JavaOnTracks          Thibaut Colar
tcolar-jot AT colar DOT net
Artistic Licence 2.0
http://www.javaontracks.net
------------------------------------
 */
package net.jot.db.authentication;

import net.jot.persistance.JOTModel;
import net.jot.persistance.JOTModelMapping;

/**
 * Object representing a user permission in DB
 * Used to assign a permission "String" (ie: "CAN_EDIT") to a Profile.
 * @author thibautc
 *
 */
public abstract class JOTAuthPermission extends JOTModel
{
	// dataProfile refers to dataProfile.id
        // should be a long
	public long profile;
	public String permission;

	public String getPermission()
	{
		return permission;
	}

	public void setPermission(String permission)
	{
		this.permission = permission;
	}

	public long getProfile()
	{
		return profile;
	}

	public void setProfile(long profile)
	{
		this.profile = profile;
	}

/**
	 * If you override this in the subclass, make sure you still call this (super.customize())
	 * Or copy the "defineFields" entries
	 */
	public void customize(JOTModelMapping mapping)
	{
            mapping.defineFieldSize("dataPermission",80);
	}

}

Generated By: JavaOnTracks Doclet 0.1.5     ©Thibaut Colar