The documentation from version 39.5.17 of PLANTA project can be found in the new PLANTA Online Help.

Object Protection

Information

  • In the object protection data fields, information on the record is saved, e.g. by whom/when it was created or changed, or, according to the license, whether it is a standard record or an individual record.
  • A data table does not have to contain object protection data fields.

Details

  • If a data table has object protection data fields
    • they must be defined in the following order and with the following parameters.
    • the DB pos. of the first object protection DI (Created on) must be in the Pos. OS field.
Data item DI Python ID SQL ID Column type DB length DF length Status
Created on created_on OS_CREATED_ON Date 4 8 6
Modified on modified_on OS_MODIFIED_ON Date 4 8 6
rwdu rwdu OS_RWDU Object protection for "rwd” output 2 4 6
Created by created_by OS_CREATED_BY Alpha, Gross 20 20 6
Modified by modified_by OS_MODIFIED_BY Alpha, Gross 20 20 6
Owner license owner_license OS_LICENSE Alpha, Gross 4 4 6
OPC opc OS_OPC_BY Alpha, Gross 8 8 6
Owner owner OS_OWNER Object protection for "rwd” output 2 4 6
Group group OS_GROUP Object protection for "rwd” output 2 4 6
Any any OS_ANY Object protection for "rwd” output 2 4 6

Data Fields of Object Protection

Created by (creating user)

When you create a record, the ID (code) of the logged-on user is automatically entered in this field.

The creating user is also the owner of a record.

Created on (creation date)

When you create a record, the creation date is automatically entered in this field.

Modified by (modifying user)

When you modify a record, the ID (code) of the logged-on user is automatically entered in this field.

Modified on (modification date)

When you modify a record, the modifying date is automatically entered in this field.

OPC (object protection class)

The content of this data field is set to the user object protection class of the creating user.

In case an entry has been made for the user and the data table in question in the User: Object Protection/Data Table module, the OPC field from this entry is used.

An object protection class can belong to several users. Doing so, several program users are combined in a so called group.

The object protection class is not related to the user class of a user.

Owner

Specifies what actions are permitted for records if the user created them himself / herself:

  • r = read
  • w = write/change
  • d = delete

The protection characteristics are shown as follows:

  • rwd = reading, writing, and deletion permitted
  • rw- = reading and writing permitted
  • r-d = reading and deletion permitted
  • r-- = reading permitted only
  • The w and d rights must always be specified together with r, since a record must be read to be changeable/deletable. Hence, to specify "delete only" it is necessary to specify r-d and not merely --d.

group

Specifies what actions are permitted for the record if the user's object protection class matches the object protection class entry in the record.

Values analogous to owner.

any

The authorization for any will apply if the user is not the creating user for the record and does not have the same object protection class as that for the record.

Values analogous to owner.

rwdu

Owner License

Upon creation of a record, the current license is entered automatically. You can distinguish standard records from individual records by their license.

         PLANTA project









 
  • Suche in Topic-Namen

  • Suche in Topic-Inhalten
This site is powered by the TWiki collaboration platform Powered by Perl