|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.melati.poem.transaction.Transactioned org.melati.poem.JdbcPersistent org.melati.poem.generated.CapabilityBase org.melati.poem.Capability
public class Capability
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
| ||
---|---|---|
Name | Type | Description |
id | Integer | The Table Row Object ID |
name | String | A human-readable name for the capability |
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.transaction.Transactioned |
---|
markValid, reset, setTransactionPool, transactionPool, unSee |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Capability()
Persistent
Capability
object.
Description: A capability which users can be required to possess before accessing data.
public Capability(String name)
Persistent
Capability
object.
Description: A capability which users can be required to possess before accessing data.
name
- the name of a Capability
to create.Method Detail |
---|
public void assertCanRead(AccessToken token)
assertCanRead
in interface Persistent
assertCanRead
in class JdbcPersistent
token
- any AccessToken
Persistent.assertCanRead(org.melati.poem.AccessToken)
public String toString()
toString
in class JdbcPersistent
Capability
Object.toString()
|
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |