Breadcrumbs

Method

It is possible to use the SFormat to invoke a method on a given base. For security reasons, it is not possible to invoke methods on any class.

There are two systems:

  • a BlackList, which forbids you to invoke methods on given classes. You CANNOT change it.

  • a WhiteList, which allows you to declare the components on which you can invoke methods.


The BlackList contains all these classes and the classes which inherits them:

  • BPassword

  • BAbstractAuthenticator

  • BAbstractPasswordEncoder (the base class for all PasswordEncoder)

  • BUser

  • BAbstractRole (the base class for all Roles)

  • BAbstractCategory (the base class for all Categories)


The WhiteList is located in the BtibService in the SFormatWhiteList slot. If you want to use any method, you must fill it.

The WhiteList is a dropdown which is generated by following these rules:

  1. It gets all your modules and all the classes in these modules

  2. It removes all the blacklisted classes

  3. It removes all the interfaces

  4. It removes what we call “root components” (BObject, BValue, BSimple, BComplex, BStruct, BComponent, BComponentBtib).


For security reasons, each invocation of method will verify that the content of the WhiteList hasn’t been tampered.