Class SY_User_bus

Properties

LOCAL cBrowseFilter$="NY"  
LOCAL cBrowseIndex$="kEXTERNAL"  
LOCAL cInactive$="N"  
LOCAL cIsSysDB  
LOCAL cMainTable$="SY_User"  
LOCAL cPrimaryIndex$  
LOCAL cActivityLogColumnChgSkip$="SecurityKey$"  

[string] Activity Log - List of columns to not report that changed in the activity log

LOCAL cActivityLogColumnChgSumm$="Password$"  
[string] Activity Log - List of columns to report that they changed in the activity log, but not to display the values that changed.
LOCAL cActivityLogTaskDesc$="User Maintenance"  
[string] Activity Log - name of task
LOCAL cActivityLogWrite=isTRUE  
[boolean] Activity Log - Create activity log entry for changes when set to TRUE (1)
PROPERTY JobTitleDefault$  
Default value for SY_User;JobTitle$

Methods

FUNCTION CheckActive()  
FUNCTION CheckForActiveUsers()  
FUNCTION CheckSecurityEnabled()  
FUNCTION ConfirmDelete()  
FUNCTION CopyUser(fromLogon$, copyPrefs, copyRoles, copyAutoComp)  
FUNCTION CopyUser(fromLogon$, copyPrefs, copyRoles, copyAutoComp, oDtlObj, oAucObj)  
FUNCTION CopyUser(copyFromLogon$, copyToLogon$, copyPrefs, copyRoles)  
FUNCTION CopyUser(copyFromLogon$, copyToLogon$, copyPrefs, copyRoles, detailObj)  

To copy existing user credentials from one existing logon to another new logon. The new logon must already be in setmode using SetKey() and be a NEW logon. Note, the new record will then have to be written.

ParameterDescription
fromLogon$ [input, string] Pre-existing user logon from which to copy to the current user
copyPrefs [input, boolean] Boolean flag to indicate whether to copy user preferences from the fromLogon$ user.
copyRoles [input, boolean] Boolean flag to indicate whether to copy role settings from the fromLogon$ user.
copyAutoComp [input, boolean] Boolean flag to indicate whether to copy auto complete settings from the fromLogon$ user. FALSE will default the settings.
oDtlObj{optional} [input/output, objhandle] Optionally passed object handle for the SY_UserSecurity_bus object if already in use in the calling class. Otherwise if not passed in will be instantiated in the CopyUser() function and the handle passed back.
oAucObj{optional} [input/output, objhandle] Optionally passed object handle for the SY_AutoComplete_bus object if already in use in the calling class. Otherwise if not passed in will be instantiated in the CopyUser() function and the handle passed back.
Returns [boolean] retSUCCESS (1) - user copied corrrectly with options set. retFAILURE (0) failiure, check LastErrorMsg$ for reasons.
FUNCTION DELETE(key$)  
FUNCTION PassOriginalUserCode(userCode$)  
FUNCTION ReadRec(key$)  
FUNCTION RenameUserLogon(oldLogon$, newLogon$)  
FUNCTION SetDefaults()  
FUNCTION SetUserReactivate(bNewState)  
FUNCTION ValidatePassword(pass$, namef$, namel$, logon$)  
FUNCTION ValidatePasswordDate(passwordDate)  
FUNCTION ValidateUserLogon(value$, defFlag$)  
FUNCTION WRITE()  

Properties inherited from: SY_Maint

cActionWrite, cActionDelete, cActivityLogFilePrefix$, DocDateWarnDisplayed, DocDateWarnStatus, EditState, RecordChanged, FirstFailure$, DocumentTotal, ReadOnlyReason$, UDTValidation$, ViewOnly, CurrentPrecision, DocDateWarnForceOff, DocDateWarnObject, ScriptObject, ImportTest

Properties inherited from: SY_MaintSet

FileChanged

Methods inherited from: CI_ThemeCode_val

ClassValidateThemeCode()

Methods inherited from: SY_Maint

ChangedRecordCompare(), ChangedRecordInfo(), Clear(), ClearRecord(), ConfirmDelete(), CopyFrom(), ExportToCSV(), GetColumnInfo(), GetColumnProperties$(), GetDefaults(), GetOrigRecord$(), GetPropertyValue(), GetValidationGroups$(), ResetDocDateWarnState(), SetCopyKeyValue(), SetDocDateWarnDisplayed(), SetDocDateWarnOff(), SetKey(), SetKeyValue(), SetPartialRecord(), SetRecord(), SetToReadOnly(), SetValue(), SetValues(), Write(), ActivityLogCreateFile(), ActivityLogPrepare(), ActivityLogSetMessage$(), ActivityLogWrite(), CallScript(), CheckForAdvancedFieldSettings(), CheckForScripts(), CheckNullRequiredField(), PERFORM ChildValidate(), ClassValidateDate(), ClassValidateTelephoneNo(), ClearSetFiles(), ColInfoInitAll(), ColInfoInitDefaults(), CommitRow(), GetPropertyCommon(), InitColInfo(), InitScriptEngine(), InitWorkTable(), IsColInIOList(), IsValid(), LoadColInfo(), OpenMainTable(), ParseExtField(), RemoveColToSkip(), ResetRow(), RetrieveColInfo(), SetDefaults(), SetFilter(), SetMode(), SetParentHandle(), SetValueNoValidate(), StoreColToSkip(), ValidateAll(), ValidateAllRecord(), ValidateColInfo(), ValidateRule()

Methods inherited from: SY_MaintSet

ClearSetFiles(), CommitRow(), QuickRowLoad(), ResetRow(), SeedDetailRow(), SetFilter(), SetMode()