API Overview API Index Package Overview Direct link to this page
JavaOnTracks 0.1.2
  net.jot.db.authentication. JOTAuthUser View Source
Author(s)
thibautc
Since
Version
Serial
Hierarchy
 Object
      JOTModelAddons
          JOTModel
              JOTAuthUser
Implements
Subclasses
Description
publicabstract abstract class JOTAuthUser
  Object representation of a User in DB and providing a basic authentication system.
See also:   
Constructors
public JOTAuthUser ()
Methods
Hide/Show inherited methods
protectedstatic void createTableIfNecessary (JOTTransaction transaction, Class modelClass) throws Exception [Inherited From net.jot.persistance.JOTModelAddons]
Creates the table in the DB, if it doesn't exists yet
public void customize (JOTModelMapping mapping) [Specified in JOTModel]
If you override this in the subclass, make sure you still call this (super.customize()) Or copy the "defineFields" entries
public String defineStorage () [Inherited From JOTModel]
  Returns the "storage" to be used by this Model.
public void delete () throws Exception [Inherited From JOTModel]
public void delete (JOTTransaction transaction) throws Exception [Inherited From JOTModel]
Deletes the coresponding record from the database
publicstatic void deleteWholeTable (JOTTransaction transaction, Class modelClass) throws Exception [Inherited From net.jot.persistance.JOTModelAddons]
  Dump a whole table (model) data into a stream(ie file) in CSV format
public Object getFieldValue (String fieldName) [Inherited From JOTModel]
public Object getFieldValues (JOTModelMapping mapping, JOTSQLCondition conds) [Inherited From JOTModel]
  Return all fields values
public long getId () [Inherited From JOTModel]
publicfinal JOTModelMapping getMapping (JOTTransaction transaction) throws Exception [Inherited From JOTModel]
  Called to get the table mapping.
public Class getQueryImplClass () [Inherited From JOTModel]
publicstatic JOTAuthUser getUserByLogin (Class implClass, String login) throws Exception
public boolean hasPermission (String permission)
  checks wether a user has a given permission
public void initQueryImplClass () throws Exception [Inherited From JOTModel]
Deletes the table in the DB
public boolean isNew () [Inherited From JOTModel]
publicstatic boolean isNewUser (Class implClass, String login) throws Exception
Wether the dataLogin is available (not already in use) implClass is your subclass of JOTAuthUser
publicstatic boolean isUserValid (Class implClass, String login, String password) throws Exception
  Use to check if a user with given login/password exists.
public void save () throws Exception [Inherited From JOTModel]
public void save (JOTTransaction transaction) throws Exception [Inherited From JOTModel]
Save/update the table in teh database.
publicfinal void setId (int id) [Inherited From JOTModel]
Fields
Hide/Show inherited fields
publicfinalstatictransient String DEFAULT_STORAGE = "default" [Inherited From JOTModel]
protected long id [Inherited From JOTModel]
The "id" of the object in the database (ie: primary key)
public String login
public String password
public int profile
protectedtransient Class queryImplClass [Inherited From JOTModel]
Nested Classes
Generated By: JavaOnTracks Doclet 0.1.5     ©Thibaut Colar