org.opengts.db.tables
Class Role
java.lang.Object
org.opengts.dbtools.DBRecord<RT>
org.opengts.db.AccountRecord<RT>
org.opengts.db.RoleRecord<Role>
org.opengts.db.tables.Role
public class Role
- extends RoleRecord<Role>
Nested Class Summary |
static class |
Role.Key
|
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 |
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 |
_TABLE_NAME
public static final java.lang.String _TABLE_NAME
- See Also:
- Constant Field Values
Role
public Role()
Role
public Role(Role.Key key)
TABLE_NAME
public static java.lang.String TABLE_NAME()
getFactory
public static DBFactory<Role> getFactory()
getTableDescription
public static java.lang.String getTableDescription(java.util.Locale loc)
setCreationDefaultValues
public void setCreationDefaultValues()
- Description copied from class:
DBRecord
- Override to set default values
- Overrides:
setCreationDefaultValues
in class DBRecord<Role>
isSystemAdminRole
public boolean isSystemAdminRole()
getAclsForRole
public java.lang.String[] getAclsForRole()
throws DBException
- Throws:
DBException
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<Role>
- Returns:
- A String representation of the DBRecordKey for this DBRecord
exists
public static boolean exists(java.lang.String acctID,
java.lang.String roleID)
throws DBException
- Throws:
DBException
getRole
public static Role getRole(java.lang.String accountId,
java.lang.String roleId)
throws DBException
- Throws:
DBException
getRole
public static Role getRole(Account account,
java.lang.String roleId)
throws DBException
- Throws:
DBException
getRole
public static Role getRole(Account account,
java.lang.String roleId,
boolean create)
throws DBException
- Throws:
DBException
createNewRole
public static Role createNewRole(Account account,
java.lang.String roleID)
throws DBException
- Throws:
DBException
getRolesForAccount
public static java.lang.String[] getRolesForAccount(java.lang.String acctId)
throws DBException
- Throws:
DBException
getRolesForAccount
public static java.lang.String[] getRolesForAccount(java.lang.String acctId,
boolean inclSysRoles)
throws DBException
- Throws:
DBException
getRoles
public static java.lang.String[] getRoles(DBSelect<Role> dsel)
throws DBException
- Throws:
DBException
hasUsers
public static boolean hasUsers(Role role)
getUserCount
public static long getUserCount(Role role)
main
public static void main(java.lang.String[] args)