Class RoleInheritanceWarningFICExtension

  • All Implemented Interfaces:

    public class RoleInheritanceWarningFICExtension
    extends Object
    implements FICExtension
    This FICExtension is used to show a warning message to the user when editing an access which belongs to a role marked as template. When this type of accesses are edited, the changes are propagated to the roles which are using that template to inherit permissions. With this class, the user will be warned before saving the changes.
    • Constructor Detail

      • RoleInheritanceWarningFICExtension

        public RoleInheritanceWarningFICExtension()
    • Method Detail

      • execute

        public void execute​(String mode,
                            Tab tab,
                            Map<String,​org.codehaus.jettison.json.JSONObject> columnValues,
                            BaseOBObject row,
                            List<String> changeEventCols,
                            List<org.codehaus.jettison.json.JSONObject> calloutMessages,
                            List<org.codehaus.jettison.json.JSONObject> attachments,
                            List<String> jsExcuteCode,
                            Map<String,​Object> hiddenInputs,
                            int noteCount,
                            List<String> overwrittenAuxiliaryInputs)
        Description copied from interface: FICExtension
        This method is executed in the execute method just before the response JSONObject is built. It receives all the instances of the objects used to build the response.
        Specified by:
        execute in interface FICExtension
        mode - The execution mode.
        tab - The Tab owner of the Form that it is being executed.
        columnValues - Map with the values of forms columns.
        row - The BaseOBObject that it is being edited in the form.
        changeEventCols - The List of dynamic columns that fire the CHANGE event mode.
        calloutMessages - The list of messages returned by the callouts that have been executed.
        attachments - A empty list where can be populated the attachments related to the record that it is being edited. By default these attachments are loaded when the section is opened and not by the FIC response.
        jsExcuteCode - The list of JavaScrip code returned by the callouts to be executed in the client.
        hiddenInputs - The Map with all the hidden fields with their values.
        noteCount - count of notes available on the record that it is being edited.
        overwrittenAuxiliaryInputs - The list of the Auxiliary Inputs that have been overriden by callouts.