org.opengts.db.tables
Class RoleAcl

java.lang.Object
  extended by org.opengts.dbtools.DBRecord<RT>
      extended by org.opengts.db.AccountRecord<RT>
          extended by org.opengts.db.RoleRecord<RoleAcl>
              extended by org.opengts.db.tables.RoleAcl

public class RoleAcl
extends RoleRecord<RoleAcl>


Nested Class Summary
static class RoleAcl.Key
           
 
Nested classes/interfaces inherited from class org.opengts.db.RoleRecord
RoleRecord.RoleKey<RT extends DBRecord>
 
Nested classes/interfaces inherited from class org.opengts.db.AccountRecord
AccountRecord.AccountKey<RT extends DBRecord>
 
Nested classes/interfaces inherited from class org.opengts.dbtools.DBRecord
DBRecord.DBChangeListener
 
Field Summary
static java.lang.String _TABLE_NAME
           
static java.lang.String FLD_accessLevel
           
static java.lang.String FLD_aclID
           
 
Fields inherited from class org.opengts.db.RoleRecord
FLD_roleID, SYSTEM_ROLE_PREFIX
 
Fields inherited from class org.opengts.db.AccountRecord
FLD_accountID, FLD_displayName, FLD_isActive, FLD_notes
 
Fields inherited from class org.opengts.dbtools.DBRecord
errorDescription, excludedUpdateFields, FLD_creationMillis, FLD_creationTime, FLD_description, FLD_lastUpdateAccount, FLD_lastUpdateTime, FLD_lastUpdateUser, hasError, ID_SIZE, isValidating, lastSQLException, NOTIFY_GROUP, PSEUDO_FIELD_CHAR, tempProps
 
Constructor Summary
RoleAcl()
           
RoleAcl(RoleAcl.Key key)
           
 
Method Summary
static RoleAcl createNewRoleAcl(Role role, java.lang.String aclID)
           
static boolean deleteAccessLevel(Role role, java.lang.String aclId)
           
static boolean exists(java.lang.String acctID, java.lang.String roleID, java.lang.String aclID)
           
 int getAccessLevel()
           
static AclEntry.AccessLevel getAccessLevel(RoleAcl ra)
           
static AclEntry.AccessLevel getAccessLevel(Role role, java.lang.String aclId, AclEntry.AccessLevel dftAccess)
           
 java.lang.String getAclID()
           
static DBFactory<RoleAcl> getFactory()
           
static RoleAcl getRoleAcl(Role role, java.lang.String aclId)
           
static RoleAcl getRoleAcl(Role role, java.lang.String aclId, boolean create)
           
static java.lang.String getTableDescription(java.util.Locale loc)
           
 boolean hasAllAccess()
           
 boolean hasReadAccess()
           
 boolean hasWriteAccess()
           
static void main(java.lang.String[] args)
           
 void setAccessLevel(int v)
           
static void setAccessLevel(Role role, java.lang.String aclId, AclEntry.AccessLevel level)
           
 void setAccessLevel(java.lang.String v)
           
 void setCreationDefaultValues()
          Override to set default values
static java.lang.String TABLE_NAME()
           
 java.lang.String toString()
          Returns a String representation of the DBRecordKey for this DBRecord
 
Methods inherited from class org.opengts.db.RoleRecord
getDisplayRoleID, getRole, getRoleDescription, getRoleID, isSystemAdminRoleID, newField_roleID, setRole
 
Methods inherited from class org.opengts.db.AccountRecord
createSystemAdminAccount, getAccount, getAccountDescription, getAccountID, getDisplayName, getFilteredID, getFilteredID, getIsActive, getNotes, GetSimpleLocalString, getSystemAdminAccount, getSystemAdminAccountID, hasAccount, hasSystemAdminAccountID, isAccountManager, isActive, isSystemAdmin, isSystemAdmin, isSystemAdminAccountID, isValidID, newField_accountID, newField_accountID, newField_displayName, newField_displayName, newField_isActive, newField_isActive, newField_notes, newField_notes, setAccount, setDisplayName, setIsActive, setNotes, setRuntimeDefaultValues
 
Methods inherited from class org.opengts.dbtools.DBRecord
_getFactory, _reload, addChangedNotification, addExcludedUpdateFields, adjustStringLength_1, adjustStringLength, appendFieldValues, clearChanged, clearError, clearExcludedUpdateFields, clearLastCaughtSQLException, equals, excludeFieldFromUpdate, excludeFieldFromUpdate, fireChangeNotification, geKeyValue, getCreationDateTime, getCreationMillis, getCreationTime, GetCurrentAccount, GetCurrentUser, getDefaultFieldValueKey, getDescription, getErrorDescription, getFactory, getFactory, getField, getFieldBoolean, getFieldDateTime, getFieldDouble, getFieldFloat, getFieldInt, getFieldLong, getFieldName, getFieldString, getFieldValue, getFieldValue, getFieldValue, getFieldValue, getFieldValue, getFieldValue, getFieldValue, getFieldValue, getFieldValue, getKeyValue, getLastCaughtSQLException, getLastUpdateAccount, getLastUpdateTime, getLastUpdateTime, getLastUpdateUser, getNextGroup, getOptionalFieldValue, getOptionalFieldValue, getOptionalFieldValue, getOptionalFieldValue, getOptionalFieldValue, getOptionalFieldValue, getOptionalFieldValue, getOptionalFieldValue, getOptionalFieldValue, getRecordCount, getRecordCount, getRecordCount, getRecordCount, getRecordCount, getRecordKey, getRecords, getRecords, getTemporaryProperties, getValue, getVirtual, hasChanged, hasError, hasField, hasFieldValue, hasOptionalFieldValue, hasTemporaryProperties, insert, isFieldUnsigned, isLastCaughtSQLExceptionErrorCode, isOkToReload, isOkToSave, isValidating, isVirtual, lock, lockRead, lockWrite, newField_creationMillis, newField_creationTime, newField_creationTime, newField_description, newField_description, newField_lastUpdateAccount, newField_lastUpdateAccount, newField_lastUpdateTime, newField_lastUpdateUser, newField_lastUpdateUser, printXML, printXML, printXML, printXML, printXML, printXML, recordDidInsert, recordDidUpdate, recordWillInsert, recordWillUpdate, reload, reload, removeChangedNotification, save, select, select, select, setAllFieldValues, setAllFieldValues, setAllFieldValues, setAllFieldValues, setChanged, setChanged, setCreationMillis, setCreationTime, SetCurrentAccount, SetCurrentUser, setDescription, setError, setError, setFieldValue, setFieldValue, setFieldValue, setFieldValue, setFieldValue, setFieldValue, setFieldValue, setIgnoreInvalidFields, setKeyValue, setLastCaughtSQLException, setLastUpdateAccount, setLastUpdateTime, setLastUpdateUser, setOptionalFieldValue, setOptionalFieldValue, setOptionalFieldValue, setOptionalFieldValue, setOptionalFieldValue, setOptionalFieldValue, setOptionalFieldValue, setOptionalFieldValue, setValidating, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setVirtual, toXML, toXML, toXML, toXML, toXML, unlock, update, update, update
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

_TABLE_NAME

public static final java.lang.String _TABLE_NAME
See Also:
Constant Field Values

FLD_aclID

public static final java.lang.String FLD_aclID
See Also:
Constant Field Values

FLD_accessLevel

public static final java.lang.String FLD_accessLevel
See Also:
Constant Field Values
Constructor Detail

RoleAcl

public RoleAcl()

RoleAcl

public RoleAcl(RoleAcl.Key key)
Method Detail

TABLE_NAME

public static java.lang.String TABLE_NAME()

getFactory

public static DBFactory<RoleAcl> getFactory()

getTableDescription

public static java.lang.String getTableDescription(java.util.Locale loc)

getAclID

public java.lang.String getAclID()

getAccessLevel

public int getAccessLevel()

setAccessLevel

public void setAccessLevel(int v)

setAccessLevel

public void setAccessLevel(java.lang.String v)

hasReadAccess

public boolean hasReadAccess()

hasWriteAccess

public boolean hasWriteAccess()

hasAllAccess

public boolean hasAllAccess()

toString

public java.lang.String toString()
Description copied from class: DBRecord
Returns a String representation of the DBRecordKey for this DBRecord

Overrides:
toString in class DBRecord<RoleAcl>
Returns:
A String representation of the DBRecordKey for this DBRecord

setCreationDefaultValues

public void setCreationDefaultValues()
Description copied from class: DBRecord
Override to set default values

Overrides:
setCreationDefaultValues in class DBRecord<RoleAcl>

exists

public static boolean exists(java.lang.String acctID,
                             java.lang.String roleID,
                             java.lang.String aclID)
                      throws DBException
Throws:
DBException

getAccessLevel

public static AclEntry.AccessLevel getAccessLevel(RoleAcl ra)

getAccessLevel

public static AclEntry.AccessLevel getAccessLevel(Role role,
                                                  java.lang.String aclId,
                                                  AclEntry.AccessLevel dftAccess)

setAccessLevel

public static void setAccessLevel(Role role,
                                  java.lang.String aclId,
                                  AclEntry.AccessLevel level)
                           throws DBException
Throws:
DBException

deleteAccessLevel

public static boolean deleteAccessLevel(Role role,
                                        java.lang.String aclId)
                                 throws DBException
Throws:
DBException

getRoleAcl

public static RoleAcl getRoleAcl(Role role,
                                 java.lang.String aclId)
                          throws DBException
Throws:
DBException

getRoleAcl

public static RoleAcl getRoleAcl(Role role,
                                 java.lang.String aclId,
                                 boolean create)
                          throws DBException
Throws:
DBException

createNewRoleAcl

public static RoleAcl createNewRoleAcl(Role role,
                                       java.lang.String aclID)
                                throws DBException
Throws:
DBException

main

public static void main(java.lang.String[] args)