org.opengts.war.report
Class ReportDeviceList
java.lang.Object
org.opengts.dbtools.DBRecord<ReportDeviceList>
org.opengts.war.report.ReportDeviceList
public class ReportDeviceList
- extends DBRecord<ReportDeviceList>
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.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, getTableDescription, 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, setCreationDefaultValues, 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, setRuntimeDefaultValues, 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 |
ReportDeviceList
public ReportDeviceList(Account acct,
User user)
ReportDeviceList
public ReportDeviceList(Account acct,
User user,
Device device)
ReportDeviceList
public ReportDeviceList(Account acct,
User user,
java.lang.String[] devID)
ReportDeviceList
public ReportDeviceList(Account acct,
User user,
DeviceGroup group)
getAccountID
public java.lang.String getAccountID()
getAccount
public Account getAccount()
getUserID
public java.lang.String getUserID()
getUser
public User getUser()
getDeviceGroupID
public java.lang.String getDeviceGroupID()
getDeviceGroup
public DeviceGroup getDeviceGroup()
isDeviceGroup
public boolean isDeviceGroup()
getDevice
public Device getDevice(java.lang.String devID)
throws DBException
- Throws:
DBException
clear
public void clear()
getDeviceMap
protected java.util.Map<java.lang.String,ReportDeviceList.DeviceHolder> getDeviceMap()
setDevice
public boolean setDevice(User user,
ReportDeviceList.DeviceHolder dh)
_addDevice
protected void _addDevice(User user,
ReportDeviceList.DeviceHolder dh)
throws DBException
- Throws:
DBException
_addDevice
protected void _addDevice(User user,
Device device)
throws DBException
- Throws:
DBException
add
public boolean add(Device device)
add
public boolean add(java.lang.String[] devID)
add
public boolean add(java.util.List<java.lang.String> devIDList)
add
public boolean add(java.lang.String devID)
add
public boolean add(DeviceGroup group)
addAllAuthorizedDevices
public void addAllAuthorizedDevices()
size
public int size()
iterator
public java.util.Iterator<java.lang.String> iterator()
getDeviceHolderList
public java.util.List<ReportDeviceList.DeviceHolder> getDeviceHolderList(boolean sort)
getFirstDeviceID
public java.lang.String getFirstDeviceID()
getFirstDevice
public Device getFirstDevice()
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<ReportDeviceList>
- Returns:
- A String representation of the DBRecordKey for this DBRecord