Class ResourceElement.Builder

    • Method Detail

      • addComplexObjectAttribute

        public ResourceElement.Builder addComplexObjectAttribute​(String name)
        Adds a complex attribute of type OBJECT. The operation checks whether the resource contains the complex attribute.
      • addComplexObjectAttribute

        public ResourceElement.Builder addComplexObjectAttribute​(String name,
                                                                 FormValidation formValidation)
        Adds a complex attribute of type OBJECT. The operation checks whether the resource contains the complex attribute. Also adds a form validation for the specific complex attribute form.
      • setComplexListAttribute

        public ResourceElement.Builder setComplexListAttribute​(String name,
                                                               String column)
        Sets the complex attribute of type LIST.
        Parameters:
        name - The name of the complex attribute
        column - The column for the table on the sub-page
      • setComplexListAttribute

        public ResourceElement.Builder setComplexListAttribute​(String name,
                                                               String column,
                                                               Iterable<String> addAttributes)
        Sets the complex attribute of type LIST.
        Parameters:
        name - The name of the complex attribute
        column - The column for the table on the sub-page
        addAttributes - attributes for the add resource dialog
      • setComplexListAttribute

        public ResourceElement.Builder setComplexListAttribute​(String name,
                                                               String column,
                                                               Function<ModelNode,​String> identifier)
        Sets the complex attribute of type LIST.
        Parameters:
        name - The name of the complex attribute
        column - The column for the table on the sub-page
        identifier - function to maintain the selection after updating the table entries
      • setComplexListAttribute

        public ResourceElement.Builder setComplexListAttribute​(String name,
                                                               String column,
                                                               Iterable<String> addAttributes,
                                                               Function<ModelNode,​String> identifier)
        Sets the complex attribute of type LIST.
        Parameters:
        name - The name of the complex attribute
        column - The column for the table on the sub-page
        addAttributes - attributes for the add resource dialog
        identifier - function to maintain the selection after updating the table entries
      • setComplexListAttribute

        public ResourceElement.Builder setComplexListAttribute​(String name,
                                                               Iterable<String> columns)
        Sets the complex attribute of type LIST.
        Parameters:
        name - The name of the complex attribute
        columns - The columns for the table on the sub-page
      • setComplexListAttribute

        public ResourceElement.Builder setComplexListAttribute​(String name,
                                                               Iterable<String> columns,
                                                               Iterable<String> addAttributes)
        Sets the complex attribute of type LIST.
        Parameters:
        name - The name of the complex attribute
        columns - The columns for the table on the sub-page
        addAttributes - attributes for the add resource dialog
      • setComplexListAttribute

        public ResourceElement.Builder setComplexListAttribute​(String name,
                                                               Iterable<String> columns,
                                                               Function<ModelNode,​String> identifier)
        Sets the complex attribute of type LIST.
        Parameters:
        name - The name of the complex attribute
        columns - The columns for the table on the sub-page
        identifier - function to maintain the selection after updating the table entries
      • setComplexListAttribute

        public ResourceElement.Builder setComplexListAttribute​(String name,
                                                               Iterable<String> columns,
                                                               Iterable<String> addAttributes,
                                                               Function<ModelNode,​String> identifier)
        Sets the complex attribute of type LIST.
        Parameters:
        name - The name of the complex attribute
        columns - The columns for the table on the sub-page
        addAttributes - attributes for the add resource dialog
        identifier - function to maintain the selection after updating the table entries