API Overview API Index Package Overview Direct link to this page
JavaOnTracks 0.1.2
  net.jot.db.authentication. JOTAuthProfile 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
57
58
59

/*
------------------------------------
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 permission set (a.k.a profile) in DB
 * The dataProfile is basically used to map a user to a set of permissions
 * The dataProfile name should be unique.
 * @author thibautc
 *
 */
public abstract class JOTAuthProfile extends JOTModel
{
	// ie: "Admin"
	public String name;
	// ie: "Administartor account, full permissions"
	public String description;
	
	/**
	 * 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("name",30);
			mapping.defineFieldSize("description",80);
	}

	public String getDescription()
	{
		return description;
	}

	public void setDescription(String description)
	{
		this.description = description;
	}

	public String getName()
	{
		return name;
	}

	public void setName(String name)
	{
		this.name = name;
	}
        
 
}

Generated By: JavaOnTracks Doclet 0.1.5     ©Thibaut Colar