ch.claudio.trainer.data
Class Skill

java.lang.Object
  extended by ch.claudio.trainer.data.Skill

public class Skill
extends java.lang.Object

Associtate a skill score and permission to a user for a certain language. This allows to control which users may make contributions to the local database.

Version:
$Id: Skill.java 148 2006-09-14 20:52:32Z claudio $
Author:
Claudio Nieder

Copyright (C) 2006 Claudio Nieder <private@claudio.ch>, CH-8610 Uster

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; version 2 of the License.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA


Constructor Summary
Skill(java.lang.String languageArg, User userArg, int scoreArg, Permission permissionArg)
           
 
Method Summary
 java.lang.String getLanguage()
           
 Permission getPermission()
           
 int getScore()
           
 User getUser()
           
static void main(java.lang.String[] args)
          Print license.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Skill

public Skill(java.lang.String languageArg,
             User userArg,
             int scoreArg,
             Permission permissionArg)
Parameters:
languageArg -
userArg -
scoreArg -
permissionArg -
Method Detail

getLanguage

public java.lang.String getLanguage()
Returns:
the language

getPermission

public Permission getPermission()
Returns:
the permission

getScore

public int getScore()
Returns:
the score

getUser

public User getUser()
Returns:
the user

main

public static void main(java.lang.String[] args)
Print license.

Parameters:
args - ignored