net.datacrow.core.objects.helpers
Class User
java.lang.Object
net.datacrow.core.objects.DcObject
net.datacrow.core.objects.helpers.User
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Comparable<DcObject>
public class User
- extends DcObject
- See Also:
- Serialized Form
Fields inherited from class net.datacrow.core.objects.DcObject |
_ID, _SYS_AVAILABLE, _SYS_CONTAINER, _SYS_CREATED, _SYS_DISPLAYVALUE, _SYS_EXTERNAL_REFERENCES, _SYS_FILEHASH, _SYS_FILEHASHTYPE, _SYS_FILENAME, _SYS_FILESIZE, _SYS_LENDBY, _SYS_LOANDUEDATE, _SYS_LOANDURATION, _SYS_LOANENDDATE, _SYS_LOANSTARTDATE, _SYS_LOANSTATUS, _SYS_LOANSTATUSDAYS, _SYS_MODIFIED, _SYS_MODULE, _SYS_SERVICE, _SYS_SERVICEURL, _VALUE, children |
Constructor Summary |
User()
|
Method Summary |
protected void |
beforeSave()
Actions to be performed before saving the object. |
void |
checkIntegrity()
Checks the integrity of the item. |
void |
delete(boolean validate)
Permanently deletes the item. |
boolean |
isAdmin()
|
void |
loadChildren(int[] fields)
Load all children. |
void |
saveNew(boolean queued)
Inserts the item into the database. |
Methods inherited from class net.datacrow.core.objects.DcObject |
addChild, addExternalReference, addRequest, applyEnhancers, applyTemplate, applyTemplate, beforeDelete, clearValues, clone, compareTo, copy, copyImage, createIcon, destroy, equals, executeRequests, finalize, flushImages, getChildren, getCurrentChildren, getDatabaseFieldCount, getDatabaseFieldName, getDefaultSortFieldIdx, getDisplayFieldIdx, getDisplayString, getExternalReference, getField, getFieldIndices, getFields, getFieldType, getFileField, getFilename, getIcon, getID, getLabel, getMaxFieldLength, getModule, getName, getNormalizedString, getNotSearchableFields, getParentID, getParentReferenceFieldIndex, getRequests, getSystemDisplayFieldIdx, getTableName, getTableShortName, getValue, getValueDef, getValues, hashCode, hasPrimaryKey, initializeImages, initializeReferences, initializeReferences, isChanged, isChanged, isDestroyed, isEnabled, isFilled, isLastInLine, isLoaded, isNew, isRequired, isSearchable, isUnique, isUpdateGUI, load, load, markAsChanged, markAsUnchanged, merge, release, reload, removeChildren, removeRequests, saveUpdate, saveUpdate, setChanged, setChildren, setIDs, setLastInLine, setLoanInformation, setLoanInformation, setNew, setUpdateGUI, setValidate, setValue, setValueForColumn, setValueForName, setValueLowLevel, toString, validateRequiredFields |
Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, wait, wait, wait |
_A_LOGINNAME
public static final int _A_LOGINNAME
- See Also:
- Constant Field Values
_B_ENABLED
public static final int _B_ENABLED
- See Also:
- Constant Field Values
_C_NAME
public static final int _C_NAME
- See Also:
- Constant Field Values
_D_DESCRIPTION
public static final int _D_DESCRIPTION
- See Also:
- Constant Field Values
_E_PHOTO
public static final int _E_PHOTO
- See Also:
- Constant Field Values
_F_EMAIL
public static final int _F_EMAIL
- See Also:
- Constant Field Values
_G_ADDRESS
public static final int _G_ADDRESS
- See Also:
- Constant Field Values
_H_PHONE_HOME
public static final int _H_PHONE_HOME
- See Also:
- Constant Field Values
_I_PHONE_WORK
public static final int _I_PHONE_WORK
- See Also:
- Constant Field Values
_J_CITY
public static final int _J_CITY
- See Also:
- Constant Field Values
_K_COUNTRY
public static final int _K_COUNTRY
- See Also:
- Constant Field Values
_L_ADMIN
public static final int _L_ADMIN
- See Also:
- Constant Field Values
User
public User()
loadChildren
public void loadChildren(int[] fields)
- Description copied from class:
DcObject
- Load all children. Children will only be loaded when no child information
is present yet. Will not overwrite existing values.
- Overrides:
loadChildren
in class DcObject
beforeSave
protected void beforeSave()
throws ValidationException
- Description copied from class:
DcObject
- Actions to be performed before saving the object.
- Overrides:
beforeSave
in class DcObject
- Throws:
ValidationException
saveNew
public void saveNew(boolean queued)
throws ValidationException
- Description copied from class:
DcObject
- Inserts the item into the database.
- Overrides:
saveNew
in class DcObject
- Parameters:
queued
- Indicates if the item should be saved using the query queue.
- Throws:
ValidationException
- See Also:
Query
,
DatabaseManager
,
QueryQueue
checkIntegrity
public void checkIntegrity()
throws ValidationException
- Description copied from class:
DcObject
- Checks the integrity of the item.
- Overrides:
checkIntegrity
in class DcObject
- Throws:
ValidationException
delete
public void delete(boolean validate)
throws ValidationException
- Description copied from class:
DcObject
- Permanently deletes the item.
- Overrides:
delete
in class DcObject
- Throws:
ValidationException
isAdmin
public boolean isAdmin()