Class DefaultReferenceModelProperties

    • Field Detail

      • MODEL_ALL_REFERENCED_OBJECTS

        public static final java.lang.String MODEL_ALL_REFERENCED_OBJECTS
        See Also:
        Constant Field Values
      • MODEL_VALUE_CHANGED

        public static final java.lang.String MODEL_VALUE_CHANGED
        See Also:
        Constant Field Values
    • Constructor Detail

      • DefaultReferenceModelProperties

        public DefaultReferenceModelProperties()
    • Method Detail

      • deleteObjectFromModel

        public void deleteObjectFromModel​(java.lang.Object object,
                                          java.util.Set<java.lang.String> properties)
      • getReferencedModelProperties

        public java.util.Set<java.lang.String> getReferencedModelProperties​(java.lang.Object referencedObject)
        Description copied from interface: ReferenceModelProperties
        Gets referenced model properties.
        Specified by:
        getReferencedModelProperties in interface ReferenceModelProperties
        Parameters:
        referencedObject - reference object
        Returns:
        properties
      • updateReferenceProperties

        public void updateReferenceProperties​(java.util.Set<java.lang.String> referenceProperties,
                                              java.lang.Object updatedObject,
                                              ObjectNotFoundExceptionHandler exceptionHandler)
        Description copied from interface: ReferenceModelProperties
        Updates reference properties.
        Specified by:
        updateReferenceProperties in interface ReferenceModelProperties
        Parameters:
        referenceProperties - properties
        updatedObject - updated object
        exceptionHandler - exception handler, which allows to handle ObjectNotFound exception
      • updateReferencedObjects

        public void updateReferencedObjects​(WidgetModel widgetModel,
                                            java.lang.String referencedModelProperty,
                                            java.util.Set<java.lang.Object> referencedObjects)
        Description copied from interface: ReferenceModelProperties
        Updates referenced objects.
        Specified by:
        updateReferencedObjects in interface ReferenceModelProperties
        Parameters:
        widgetModel - widget model
        referencedModelProperty - referenced model property
        referencedObjects - referenced objects
      • isEdited

        public boolean isEdited​(java.lang.Object objectOfComparison,
                                java.lang.Object currentObject)
        Description copied from interface: ReferenceModelProperties
        Checks if given objects are the same. If given object is a collection, at least one element from this collection needs to be equal to current object.
        Specified by:
        isEdited in interface ReferenceModelProperties
        currentObject - object or collection of objects to be compared with objectOfComparison
        Returns:
        boolean true if objects are the same