Interface MappingLineTypeService

    • Method Detail

      • updateCreationType

        void updateCreationType​(ComposedTypeMappingLine mappingLineModel,
                                ObjectType type)
        Sets the type (ObjectType) as a creation type for the composed mapping mappingLineModel.
        Parameters:
        mappingLineModel - mapping line
        type - type
      • getComposedTypeModel

        ComposedTypeModel getComposedTypeModel​(java.lang.String code)
        Return a composed type model for an item type code.
        Parameters:
        code - item type code
        Returns:
        composed type model
      • isUnique

        boolean isUnique​(ItemAttributePropertyDescriptor propertyDescriptor,
                         ObjectType type,
                         boolean includeConfigFile)
        Use for selecting. All unique attribute and this from the MappingLineModel.config be display and selected
        Parameters:
        propertyDescriptor - property descriptor
        type - type
        includeConfigFile - include the attributes from the mapping config file or not
        Returns:
        boolean
      • getTypeModel

        TypeModel getTypeModel​(ItemAttributePropertyDescriptor propertyDescriptor)
        Returns the type model for the attribute type of the supplied property descriptor.
        Parameters:
        propertyDescriptor - property descriptor
        Returns:
        type model
      • isAtomicType

        boolean isAtomicType​(ItemAttributePropertyDescriptor propertyDescriptor)
        Parameters:
        propertyDescriptor - property descriptor
        Returns:
        true if the type is atomic
      • isAtomicType

        boolean isAtomicType​(TypeModel model)
        Parameters:
        model - a model
        Returns:
        true if the type is atomic
      • isComposedType

        boolean isComposedType​(ItemAttributePropertyDescriptor propertyDescriptor)
        Parameters:
        propertyDescriptor - property descriptor
        Returns:
        true if the type is a composed type
      • isComposedType

        boolean isComposedType​(TypeModel model)
        Parameters:
        model - a model
        Returns:
        true if the type is a composed type
      • isCollectionType

        boolean isCollectionType​(ItemAttributePropertyDescriptor propertyDescriptor)
        Parameters:
        propertyDescriptor - property descriptor
        Returns:
        true if the type is of collection type
      • isCollectionType

        boolean isCollectionType​(TypeModel model)
        Parameters:
        model - a model
        Returns:
        true if the type is of collection type
      • isEnumerationType

        boolean isEnumerationType​(TypeModel model)
        Parameters:
        model - a model
        Returns:
        true if the type is an enumeration type
      • isLocalizedType

        boolean isLocalizedType​(ItemAttributePropertyDescriptor propertyDescriptor)
        Checks if the specified property descriptor refers to a property of a localized type (i.e. Product.name, description etc.)
        Parameters:
        propertyDescriptor - property descriptor
        Returns:
        true if the property descriptor refers to a property of a localized type
      • isLocalizedType

        boolean isLocalizedType​(TypeModel model)
        Parameters:
        model - a model
        Returns:
        true if the model is of localized type