UaTk Internal Function and Description
_process_record
This function determines the record type associated with a command. Recognized record
types include:
DISTRIBUTE Command
Type
Description
"0"
Preserve Modifications
"1"
Exact Copy
MODIFY Command
Type
Description
USER
User Admin User Record
GROUP
User Admin Group Record
SYSPOL
Security System Policy Record
RESOURCE
Security Mgmt Resource Record
ROLE
Security Mgmt Role Record
See also: GetRecordType
_process_attribute
This function processes attributes found in a record associated with the command. Attributes
follow the record type or are found immediately following the command and up to the
_EOD_ termination.
Attributes found are stored with their values in the hashs accum_attr_list,
accum_attr_version, and accum_attr_change packages. These attributes are available to
the application by using the methods GetAttributeValue( ), GetAttributeVersion( ), and
GetAttributeChange( ) within a handler.
_invoke_handler
This function is used by the UaTkMain method and the _process_command function to
invoke a command handler, if one is registered for the current command.
A Simple Perl Library Example
The following simple example uses the Perl Library to print
attributes from a distribution.
#!/usr/local/bin/perl
#
# test_modify.pl
- test basics of perl library.
#
use UaTk;
Developing Your Application in Perl
72
User Administration Version 3.8