Interface Extension.RightsProvider

  • All Known Implementing Classes:
    CatalogManager
    Enclosing class:
    Extension

    public static interface Extension.RightsProvider
    Implement this interface at your Manager class to restrict the modifying access to a specific attribute for a specific item.
    Since:
    2.20
    • Method Detail

      • isEditable

        boolean isEditable​(Item item,
                           AttributeDescriptor descriptor)
        Checks whether given attribute for given item can be modified. Implement this method at your manager class to deny the modifying access of an attribute for given item instance. It is called before attribute is shown at hmc frontend to decide if the input form is editable.
        Parameters:
        item - the item instance whose attribute will be shown
        descriptor - attribute which will be shown
        Returns:
        true if the current session user can edit the attribute of this specific item, false otherwise