Metadata

Description

The Metadata functionality allows expanding the Soffid objects, their attributes, and their data types. Also, it allows expanding custom objects.

By default, there is a list of built-in objects, but it is possible to create new custom objects and add new custom attributes to each of them.

It is usual to add custom attributes in the User built-in object to hold additional information.

Each attribute has a data type, it may be a basic type as a String (simple text), integer value, date, or something more complex as a reference to a custom object, or a popup to select a manager. In this way, one can build relationships between objects.

Built-in objects

The built-in objects are the objects that are part of the Soffid core. It can not be removed, but more custom attributes can be added.

The following objects are Soffid well-known objects that can be customized by means of this screen. All of them are tagged as Built-in objects.

    Custom objects

    The custom objects are the objects created by the administrator to extend the Soffid underlying data model. All of them are marked as  Built-in type No.

    Each custom object type created by the administrator is displayed at the custom objects menu options.

    Screen overview

    image.png

    image.png

    Related objects

    Standard attributes

    Table attributes

    Object attributes

    For more information, you can visit the Textual index page.

    Attribute attributes

    In Soffid 4, labels are now multilanguage. Once you have saved a new attribute, you can modify it by clicking on the language icon.

    Image

    image.png

    Image

    image.png

    In Soffid 4, you can now see it in the attribute by hovering over the round information icon.

    Image

    image.png

    Image

    image.png

    // Sample to enable company name attribute only when the user is of type E (external)
    return "E".equals(object{"userType"});
    // Sample for checking birthDate is greater than 18 years old
    c = java.util.Calendar.getInstance();
    c.add(-18, c.YEAR);
    if (birthDate == null || birthDate.before(c.getTime()) return true;
    else return "Birth date should be before "+ new java.text.SimpleDateFormat().format(c.getTime());
    
    // Sample to set contract number attribute to read only if the attribute company is empty
    // Place as an on-load trigger in the contract number field
    if (ownerObject.attributes.get("company") == null || ownerObject.attributes.get("company").trim().isEmpty())
      inputField.setReadonly(true);
    else
      inputField.setReadonly(false);
    // Sample trigger to set contract number attribute to read only when the company attribute gets empty
    // Place as an on-change trigger in the contract field
    contractField = inputFields.get("contractNumber");
    if (value == null || value.trim().isEmpty())
      contractField.setReadonly(true);
    else
      contractField.setReadonly(false);
    contractField.invalidate(); // Redraw contract number field
    
    ......
    inputFields.get("contractNumber").getValue();

    You can access to SCIM Chapter for more information

    Actions

    Table actions

    Add new

    Allows you to add a new custom object in the system. To add a new custom object it is necessary to fill in the required fields. By default, it will have two mandatory attributes, name and description.

    Delete metadata

    Allows you to remove one or more custom objects by selecting one or more records and next clicking this button. To perform that action, Soffid will ask you for confirmation, you could confirm or cancel the operation.

    Download CSV file

    Allows you to download a CSV file with the basic information of all metadata. 

    View

    Allows you to show and hide columns in the table.

    You can also set the order in which the columns will be displayed.

    Metadata detail

    Refresh

    Allows you to refresh all the metadata information.

    Download CSV file

    Allows you to download a CSV file with the basic information of the metadata object. 

    Import

    Allows you to upload a CSV file with the attribute metadata to add or update attribute metadata to Soffid.

    First, you need to pick up a CSV file, that CSV has to contain a specific configuration. Then you need to check the content to be loaded, it is allowed to choose if you want or not to load a specific attribute. And finally, you need to select the mappings for each column of the CSV file to import the data correctly and click the Import button.

    Delete metadata

    Allows you to delete the metadata object. To delete a metadata you can click on the "three points" icon and then click the delete metadata button.

    Soffid will ask you for confirmation to perform that action, you could confirm or cancel the operation.

    Set to default

    Only for built-in objects. Allows you to set the factory setting. Sometimes, usually after an upgrade, it is advisable to reset the built-in attributes of a built-in object. In that case, the properties of the attribute will be changed to the factory setting ones.

    Expand all Displays all the attributes of the different blocks.
    Collapse all Hide all attributes of the different blocks.
    "Types of views" Change the view type: Classic view, Modern view, Compact design.

    Add new

    Allows you to add a new attribute metadata.

    Delete Allows you to remove one or more attributes by selecting one or more records and next clicking this button. To perform that action, Soffid will ask you for confirmation, you could confirm or cancel the operation.

    Undo

    Allows you to quit without applying any changes made.

    Apply changes

    Allows you to save the data of a new metadata object or to update the data of a specific metadata object. To save the data it will be mandatory to fill in the required fields.

    Metadata attributes detail

    Delete

    Allows you to delete the metadata object. Soffid will ask you for confirmation to perform that action, you could confirm or cancel the operation.

    Expand all Displays all the attributes of the different blocks.
    Collapse all Hide all attributes of the different blocks.
    "Types of views" Change the view type: Classic view, Modern view, Compact design.

    Undo

    Allows you to quit without applying any changes made.

    Apply changes

    Allows you to save the data of a new metadata object or to update the data of a specific metadata object. To save the data it will be mandatory to fill in the required fields.


    Revision #10
    Created 19 July 2025 11:26:23 by Sion Vives
    Updated 22 September 2025 13:01:05 by Sion Vives