|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.tentackle.db.DbObjectClassVariables
org.tentackle.appworx.AppDbObjectClassVariables
public class AppDbObjectClassVariables
Extends DbObjectClassVariables for AppDbObjects.
| Field Summary | |
|---|---|
int |
allInContextCursorStatementId
prepared statement ID for AppDbObject.selectAllInContextCursor() |
int |
allInContextStatementId
prepared statement ID for AppDbObject.selectAllInContext() |
boolean |
checkSecurity
Flag is true to check the security rules for each access to objects of this class. |
int |
normTextCursorStatementId
prepared statement ID for AppDbObject.selectByNormTextCursor(java.lang.String) |
int |
normTextStatementId
prepared statement ID for AppDbObject.selectByNormText(java.lang.String) |
int |
selectEditedByStatementId
prepared statement ID for select in AppDbObject.updateEditedBy(java.sql.Timestamp, long, java.sql.Timestamp) |
int |
transferEditedByStatementId
prepared statement ID for AppDbObject.transferEditedBy(long) |
int |
updateEditedByOnlyStatementId
prepared statement ID for AppDbObject.updateEditedByOnly() |
int |
updateEditedByStatementId
prepared statement ID for AppDbObject.updateEditedBy(java.sql.Timestamp, long, java.sql.Timestamp) |
| Constructor Summary | |
|---|---|
AppDbObjectClassVariables(Class<? extends AppDbObject> clazz,
String tableName,
String singleName,
String multiName)
Constructs a classvariable. |
|
AppDbObjectClassVariables(Class<? extends AppDbObject> clazz,
String tableName,
String singleName,
String multiName,
boolean checkSecurity)
constructs a classvariable |
|
| Method Summary | ||
|---|---|---|
boolean |
isReadAllowed()
Check the read security for this class in all contexts. |
|
boolean |
isReadAllowed(AppDbObject object)
Check the read security for a single object. |
|
|
isReadAllowed(C objects)
Checks the read security for a collection of objects of this class. The returned collection is of the same type as the original collection. |
|
boolean |
isReadAllowed(ContextDb contextDb)
Check the read security for this class. |
|
boolean |
isWriteAllowed()
Check the write security for this class in all contexts. |
|
boolean |
isWriteAllowed(AppDbObject object)
Check the write security for a single object. |
|
|
isWriteAllowed(C objects)
Checks the write security for a collection of objects of this class. The returned collection is of the same type as the original collection. |
|
boolean |
isWriteAllowed(ContextDb contextDb)
Check the write security for this class. |
|
| Methods inherited from class org.tentackle.db.DbObjectClassVariables |
|---|
countInstance, getProperty, getRemoteDelegate, getRemoteDelegateId, getVariables, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public final boolean checkSecurity
public int normTextStatementId
AppDbObject.selectByNormText(java.lang.String)
public int allInContextStatementId
AppDbObject.selectAllInContext()
public int normTextCursorStatementId
AppDbObject.selectByNormTextCursor(java.lang.String)
public int allInContextCursorStatementId
AppDbObject.selectAllInContextCursor()
public int updateEditedByStatementId
AppDbObject.updateEditedBy(java.sql.Timestamp, long, java.sql.Timestamp)
public int updateEditedByOnlyStatementId
AppDbObject.updateEditedByOnly()
public int selectEditedByStatementId
AppDbObject.updateEditedBy(java.sql.Timestamp, long, java.sql.Timestamp)
public int transferEditedByStatementId
AppDbObject.transferEditedBy(long)
| Constructor Detail |
|---|
public AppDbObjectClassVariables(Class<? extends AppDbObject> clazz,
String tableName,
String singleName,
String multiName,
boolean checkSecurity)
clazz - is the class of the derived DbObjecttableName - is the SQL tablenamesingleName - text for a single objectmultiName - text for multiple objectscheckSecurity - is true to check the READ/WRITE-Security on each access.
public AppDbObjectClassVariables(Class<? extends AppDbObject> clazz,
String tableName,
String singleName,
String multiName)
clazz - is the class of the derived DbObjecttableName - is the SQL tablenamesingleName - text for a single objectmultiName - text for multiple objects| Method Detail |
|---|
public boolean isReadAllowed(ContextDb contextDb)
Notice that Security objects are always readable!
contextDb - the current context, null = all
public boolean isReadAllowed()
public boolean isWriteAllowed(ContextDb contextDb)
contextDb - the current context, null = all
public boolean isWriteAllowed()
public boolean isReadAllowed(AppDbObject object)
Notice that Security objects are always readable!
object - the object to check the security rules for.
public boolean isWriteAllowed(AppDbObject object)
object - the object to check the security rules for.
public <T extends AppDbObject,C extends Collection<T>> C isReadAllowed(C objects)
Notice that Security objects are always readable!
T - AppDbObject classC - Collection classobjects - the collection to check the security rules for.
public <T extends AppDbObject,C extends Collection<T>> C isWriteAllowed(C objects)
T - AppDbObject classC - Collection classobjects - the collection to check the security rules for.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||