API Overview API Index Package Overview Direct link to this page
JavaOnTracks 0.1.2
  net.jot.db.authentication. JOTAuthPermission View Source
Author(s)
thibautc
Since
Version
Serial
Hierarchy
 Object
      JOTModelAddons
          JOTModel
              JOTAuthPermission
Implements
Subclasses
Description
publicabstract abstract class JOTAuthPermission
Object representing a user permission in DB Used to assign a permission "String" (ie: "CAN_EDIT") to a Profile.
See also:   
Constructors
public JOTAuthPermission ()
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 String getPermission ()
public long getProfile ()
public Class getQueryImplClass () [Inherited From JOTModel]
public void initQueryImplClass () throws Exception [Inherited From JOTModel]
Deletes the table in the DB
public boolean isNew () [Inherited From JOTModel]
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]
public void setPermission (String permission)
public void setProfile (long profile)
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 permission
public long profile
protectedtransient Class queryImplClass [Inherited From JOTModel]
Nested Classes
Generated By: JavaOnTracks Doclet 0.1.5     ©Thibaut Colar