VPMSec Class

The VPMSec class is a non-visual custom class that contains methods called by the VPM Enterprise Security forms. In a VPM Enterprise application the Security object is instantiated from this class and thereafter its properties and methods can be referenced or called using the _SCREEN.oApp.oSec object reference.

Properties

The following table lists the class properties. The properties listed include the standard Visual FoxPro class properties that the VPM Enterprise class uses and the VPM Enterprise custom properties. Where appropriate, the Comments column of the table describes a property and provides suggestions for its use.

Property & Initial Value

Comments

Standard Properties Used:

 

Name = “vpmsec”

 

Custom Properties:

 

cControlPermissionGroupsForm = “controlgroups”

Contains the name of the Control Permission Groups form or form class.

cControlPermissionGroupsForm_ ClassLibrary = “prosec”

Contains the name of the class library that contains the Control Permission Groups form class if cControlPermissionGroupsForm contains the name of a form class.

cControlPermissionsForm = “controlpermissions”

Contains the name of the Control Permissions form or form class.

cControlPermissionsForm_ ClassLibrary = “prosec”

Contains the name of the class library that contains the Control Permissions form class if cControlPermissionsForm contains the name of a form class.

cCopyPermissionsForm = “copypermissions”

Contains the name of the Copy Permissions form or form class.

cCopyPermissionsForm_ClassLibrary = “prosec”

Contains the name of the class library that contains the Copy Permissions form class if cCopyPermissionsForm contains the name of a form class.

cFieldPermissionGroupsForm = “fieldgroups”

Contains the name of the Field Permission Groups form or form class.

cFieldPermissionGroupsForm_ ClassLibrary = “prosec”

Contains the name of the class library that contains the Field Permission Groups form class if cFieldPermissionGroupsForm contains the name of a form class.

cFieldPermissionsForm = “fieldpermissions”

Contains the name of the Field Permissions form or form class.

cFieldPermissionsForm_ClassLibrary = “prosec”

Contains the name of the class library that contains the Field Permissions form class if cFieldPermissionsForm contains the name of a form class.

cIntroductoryForm = “introductoryform”

Contains the name of the Introductory form or form class.

cIntroductoryForm_ClassLibrary = “prosec”

Contains the name of the class library that contains the Introductory form class if cIntroductoryForm contains the name of a form class.

cLoginForm = “login”

Contains the name of the Login form or form class.

cLoginForm_ClassLibrary = “prosec”

Contains the name of the class library that contains the Login form class if cLoginForm contains the name of a form class.

cMenuPermissionGroupsForm = “menugroups”

Contains the name of the Menu Permission Groups form or form class.

cMenuPermissionGroupsForm_ ClassLibrary = “prosec”

Contains the name of the class library that contains the Menu Permission Groups form class if cMenuPermissionGroupsForm contains the name of a form class.

cMenuPermissionsForm = “menupermissions”

Contains the name of the Menu Permissions form or form class.

cMenuPermissionsForm_ClassLibrary = “prosec”

Contains the name of the class library that contains the Menu Permissions form class if cMenuPermissionsForm contains the name of a form class.

cNewPassword = “”

Filled-in by the New Password form so that the Login form can save the password to the current user’s User record.

cNewPasswordForm = “newpwd”

Contains the name of the New Password form or form class.

cNewPasswordForm_ClassLibrary = “prosec”

Contains the name of the class library that contains the New Password form class if cNewPasswordForm contains the name of a form class.

cPasswordSetupForm = “pwdsetup”

Contains the name of the Password Setup form or form class.

cPasswordSetupForm_ClassLibrary = “prosec”

Contains the name of the class library that contains the Password Setup form class if cPasswordSetupForm contains the name of a form class.

cPasswordsForm = “password”

Contains the name of the Passwords form or form class.

cPasswordsForm_ClassLibrary = “prosec”

Contains the name of the class library that contains the Passwords form class if cPasswordsForm contains the name of a form class.

cUsersForm = “users”

Contains the name of the Users form or form class.

cUsersForm_ClassLibrary = “prosec”

Contains the name of the class library that contains the Users form class if cUsersForm contains the name of a form class.

nLogOnStatus = 0

Filled-in by the Login form to signify to the PerformUserAccessSecurityCheck method of the application object whether or not the user successfully logged into the application.

UserData_cAccessLevel = SPACE(1)

The Access Level letter that has been assigned to the current user.

UserData_cControlPermissionGroup = SPACE(3)

The Control Permission Group code of the Control Permission Group to which the current user has been assigned.

UserData_cFieldPermissionGroup = SPACE(3)

The Field Permission Group code of the Field Permission Group to which the current user has been assigned.

UserData_cFiller = SPACE(69)

User-defined data entered through the Additional Information field on the Users form.

UserData_cFirstName = “”

The current user’s first name.

UserData_cLastName = “”

The current user’s last name.

UserData_cMenuPermissionGroup = SPACE(3)

The Menu Permission Group code of the Menu Permission Group to which the current user has been assigned.

UserData_cMiddleName = “”

The current user’s middle name.

UserData_cPassword = “”

The current user’s password.

UserData_cUserID = “”

The ID of the current user.

UserData_cUserNumber = “”

The current user’s user number.

UserData_dPasswordDate = “”

The last date the current user’s password was changed.

UserData_lFieldHelpEditPermission = .T.

The Field Help Edit Authorization setting for the current user.

UserData_lGlobalConditionsAddEditPermission = .T.

The Global Conditions Add/Edit Authorization setting for the current user.

UserData_lMultipleLoginPermission = .T.

The Multiple Login permission setting for the current user.

UserData_lPicklistAddEditPermission = .T.

The Picklist Add/Edit Authorization setting for the current user.

UserData_nPasswordPeriod = 0

The number of days that a password can be used before the current user must enter a new password.

UserData_nUserReportManagerType = 1

The type of Report Manager that will come up when current user selects the Report Manager menu option. The types are Edit & Run (1) and Run Only (2).

Methods

The following table lists the class methods. The methods listed include the standard Visual FoxPro class methods that the VPM Enterprise class uses and the VPM Enterprise custom methods. Where appropriate, the Comments column of the table describes a method and provides suggestions for its use.

Method

Comments

Standard Methods Used:

 

Init

The User table used by the application may be the Users table of another application (as specified on the Shared Data form). If so, the encryption routine (StringEncrypt and StringDecrypt methods) used on the data in that table must continue to use the Application Prefix of that application, not the current application. The Init method derives the Application Prefix of that application from the name of the User table.

Custom Methods:

 

LogOn_LogOff

Changes the log-on status in the current user’s record in the Users table.

Parameter: stcOnOff

RunControlPermission GroupsForm

Runs the form specified in the properties cControlPermissionGroupsForm and cControlPermissionGroupsForm_ClassLibrary.

RunControlPermissionsForm

Runs the form specified in the properties cControlPermissionsForm and cControlPermissionsForm_ClassLibrary.

Parameters: stcUG, stcIDGCode, stlEdit

RunCopyPermissionsForm

Runs the form specified in the properties cCopyPermissionsForm and cCopyPermissionsForm_ClassLibrary.

Parameters: stcCM, stcCpyUG, stcSkipIDG, stoCallingForm

RunFieldPermissionGroups Form

Runs the form specified in the properties cFieldPermissionGroupsForm and cFieldPermissionGroupsForm_ClassLibrary.

RunFieldPermissionsForm

Runs the form specified in the properties cFieldPermissionsForm and cFieldPermissionsForm_ClassLibrary.

Parameter: stcIDGCode

RunIntroductoryForm

Runs the form specified in the properties cIntroductoryForm and cIntroductoryForm_ClassLibrary.

Parameter: stlFromHelp

RunLoginForm

Runs the form specified in the properties cLoginForm and cLoginForm_ClassLibrary.

RunMenuPermissionGroupsForm

Runs the form specified in the properties cMenuPermissionGroupsForm and cMenuPermissionGroupsForm_ClassLibrary.

RunMenuPermissionsForm

Runs the form specified in the properties cMenuPermissionsForm and cMenuPermissionsForm_ClassLibrary.

Parameters: stcUG, stcIDGCode, stlEdit

RunNewPasswordForm

Runs the form specified in the properties cNewPasswordForm and cNewPasswordForm_ClassLibrary.

Parameters: stcUserID, stcPassword

RunPasswordSetupForm

Runs the form specified in the properties cPasswordSetupForm and cPasswordSetupForm_ClassLibrary.

RunPasswordsForm

Runs the form specified in the properties cPasswordsForm and cPasswordsForm_ClassLibrary.

RunUsersForm

Runs the form specified in the properties cUsersForm and cUsersForm_ClassLibrary.

More:

General Classes