org.melati.poem
Class Capability

Package class diagram package Capability
java.lang.Object
  extended by org.melati.poem.transaction.Transactioned
      extended by org.melati.poem.JdbcPersistent
          extended by org.melati.poem.generated.CapabilityBase
              extended by org.melati.poem.Capability
All Implemented Interfaces:
Cloneable, Persistable, Persistent, Treeable

public class Capability
extends CapabilityBase

The quality of being able to perform an action. Melati POEM generated, programmer modifiable stub for a Persistent Capability object.

Description: A capability which users can be required to possess before accessing data.

Field summary for SQL table Capability
NameTypeDescription
id Integer The Table Row Object ID
name String A human-readable name for the capability

Generator
org.melati.poem.prepro.TableDef#generateMainJava

Field Summary
 
Fields inherited from class org.melati.poem.generated.CapabilityBase
id, name
 
Fields inherited from class org.melati.poem.transaction.Transactioned
valid
 
Constructor Summary
Capability()
          Constructor for a Persistent Capability object.
Capability(String name)
          Constructor for a Persistent Capability object.
 
Method Summary
 void assertCanRead(AccessToken token)
          Allow this object to be read by anyone.
 String toString()
          Return the capability name.
 
Methods inherited from class org.melati.poem.generated.CapabilityBase
getCapabilityTable, getId_unsafe, getId, getIdField, getName_unsafe, getName, getNameField, getPoemDatabaseTables, setId_unsafe, setId, setId, setName_unsafe, setName
 
Methods inherited from class org.melati.poem.JdbcPersistent
assertCanCreate, assertCanCreate, assertCanDelete, assertCanDelete, assertCanRead, assertCanWrite, assertCanWrite, clone, commit, countMatchSQL, delete_unsafe, delete, delete, deleteAndCommit, deleteAndCommit, deleteLock, displayString, displayString, displayString, dump, dump, duplicated, duplicatedFloating, equals, existenceLock, existenceLock, fieldsOfColumns, fromClause, getCanDelete, getCanRead, getCanSelect, getCanWrite, getChildren, getCooked, getCookedString, getDatabase, getDetailDisplayFields, getField, getFields, getPrimaryDisplayField, getRaw, getRawString, getReadable, getRecordDisplayFields, getSearchCriterionFields, getSummaryDisplayFields, getTable, getTroid, hashCode, invalidate, isDirty, load, makePersistent, postEdit, postInsert, postModify, postWrite, preEdit, readLock, readLock, readLock, rollback, setCooked, setDirty, setRaw, setRawString, statusExistent, statusNonexistent, troid, upToDate, writeDown, writeLock, writeLock, writeLock
 
Methods inherited from class org.melati.poem.transaction.Transactioned
markValid, reset, setTransactionPool, transactionPool, unSee
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Capability

public Capability()
Constructor for a Persistent Capability object.

Description: A capability which users can be required to possess before accessing data.

Generator
org.melati.poem.prepro.TableDef#generateMainJava

Capability

public Capability(String name)
Constructor for a Persistent Capability object.

Description: A capability which users can be required to possess before accessing data.

Parameters:
name - the name of a Capability to create.
Method Detail

assertCanRead

public void assertCanRead(AccessToken token)
Allow this object to be read by anyone.

Specified by:
assertCanRead in interface Persistent
Overrides:
assertCanRead in class JdbcPersistent
Parameters:
token - any AccessToken
See Also:
Persistent.assertCanRead(org.melati.poem.AccessToken)

toString

public String toString()
Return the capability name.

Overrides:
toString in class JdbcPersistent
Returns:
the name of this Capability
See Also:
Object.toString()


Copyright © 2000-2010 PanEris. All Rights Reserved.