Class DefaultIntegrationObjectService

    • Constructor Detail

      • DefaultIntegrationObjectService

        public DefaultIntegrationObjectService()
    • Method Detail

      • findAllDependencyTypes

        public java.util.Set<IntegrationObjectItemModel> findAllDependencyTypes​(java.lang.String integrationObjectItemCode,
                                                                                java.lang.String integrationObjectCode)
        Description copied from interface: IntegrationObjectService
        Find all the dependency types, which include dependencies of dependencies, for the given integration object item code.
        Specified by:
        findAllDependencyTypes in interface IntegrationObjectService
        Parameters:
        integrationObjectItemCode - Integration object item's code
        integrationObjectCode - Integration object's code
        Returns:
        Set of integration object items, or empty set if none is found
      • findAllIntegrationObjects

        public java.util.Set<IntegrationObjectModel> findAllIntegrationObjects​(java.lang.String itemTypeCode)
        Description copied from interface: IntegrationObjectService
        Find all IntegrationObjectModel associated with IntegrationObjectItemModel, which associates with the given itemTypeCode.
        Specified by:
        findAllIntegrationObjects in interface IntegrationObjectService
        Parameters:
        itemTypeCode - ComposedType associated with IntegrationObjectItemModel
        Returns:
        Set of integration objects, or empty set if none is found
      • findAttributeDescriptor

        public AttributeDescriptorModel findAttributeDescriptor​(java.lang.String integrationObjectCode,
                                                                java.lang.String integrationObjectItemCode,
                                                                java.lang.String integrationObjectItemAttributeName)
        Description copied from interface: IntegrationObjectService
        Find an AttributeDescriptor if it exists for the given integrationObjectItemCode and integrationObjectItemAttributeName
        Specified by:
        findAttributeDescriptor in interface IntegrationObjectService
        Parameters:
        integrationObjectCode - Integration object's code
        integrationObjectItemCode - Integration object item's code
        integrationObjectItemAttributeName - Integration object item attribute Name
        Returns:
        the AttributeDescriptorModel for the attribute.
      • findItemAttributeName

        public java.lang.String findItemAttributeName​(java.lang.String integrationObjectCode,
                                                      java.lang.String integrationObjectItemCode,
                                                      java.lang.String integrationObjectItemAttributeName)
        Description copied from interface: IntegrationObjectService
        Find the attribute name if it exists for the given integrationObjectCode, integrationObjectItemCode, and integrationObjectItemAttributeName
        Specified by:
        findItemAttributeName in interface IntegrationObjectService
        Parameters:
        integrationObjectCode - Integration object's code
        integrationObjectItemCode - Integration object item's code
        integrationObjectItemAttributeName - Integration object item attribute Name
        Returns:
        the name (qualifier) for the attribute as it is called in the Type System.
      • findItemTypeCode

        public java.lang.String findItemTypeCode​(java.lang.String integrationObjectCode,
                                                 java.lang.String integrationObjectItemCode)
        Description copied from interface: IntegrationObjectService
        Find the type system type code referenced by the given integrationObjectCode and integrationObjectItemCode.
        Specified by:
        findItemTypeCode in interface IntegrationObjectService
        Parameters:
        integrationObjectCode - Integration object's code
        integrationObjectItemCode - Integration object item's code
        Returns:
        typeCode of the integrationObjectItem or empty String if not found.
      • findIntegrationObjectItemByTypeCode

        public IntegrationObjectItemModel findIntegrationObjectItemByTypeCode​(java.lang.String integrationObjectCode,
                                                                              java.lang.String typeCode)
        Description copied from interface: IntegrationObjectService
        Find the integration object item's code referenced by the given integrationObjectCode and item type code.
        Specified by:
        findIntegrationObjectItemByTypeCode in interface IntegrationObjectService
        Parameters:
        integrationObjectCode - Integration object's code
        typeCode - typeCode of the itemModel the IntegrationObjectItem refers to.
        Returns:
        the integrationObjectItem
      • findIntegrationObjectItemByParentTypeCode

        public IntegrationObjectItemModel findIntegrationObjectItemByParentTypeCode​(java.lang.String integrationObjectCode,
                                                                                    java.lang.String typeCode)
        Description copied from interface: IntegrationObjectService
        Find the integration object item's code referenced by the given integrationObjectCode and item type code also searching by the parent of the type code.
        Specified by:
        findIntegrationObjectItemByParentTypeCode in interface IntegrationObjectService
        Parameters:
        integrationObjectCode - Integration object's code
        typeCode - typeCode of the itemModel the IntegrationObjectItem refers to.
        Returns:
        the integrationObjectItem
      • getIntegrationObjectItemModel

        protected IntegrationObjectItemModel getIntegrationObjectItemModel​(java.lang.String integrationObjectCode,
                                                                           java.lang.String queryString,
                                                                           java.util.Map<java.lang.String,​java.lang.Object> params)
      • findIntegrationObjectItem

        public java.util.Optional<IntegrationObjectItemModel> findIntegrationObjectItem​(java.lang.String integrationObjectCode,
                                                                                        java.lang.String integrationObjectItemCode)
        Description copied from interface: IntegrationObjectService
        Searches the integration object definitions for an item with the matching characteristics.
        Specified by:
        findIntegrationObjectItem in interface IntegrationObjectService
        Parameters:
        integrationObjectCode - code of the integration object that should contain the item.
        integrationObjectItemCode - code for an item withing the the specified integration object.
        Returns:
        an Optional containing the matching integration object item or an Optional.empty(), if the specified integration object does not exist or it exists but does not contain an item with the specified item code.
      • accumulateDependencyTypesFromAttributeDefinitions

        protected void accumulateDependencyTypesFromAttributeDefinitions​(java.lang.String integrationObjectCode,
                                                                         java.lang.String integrationObjectItemCode,
                                                                         java.util.Set<IntegrationObjectItemAttributeModel> attributeDefinitionModels,
                                                                         java.util.Set<IntegrationObjectItemModel> dependencyTypes)
      • accumulateAllDependencyTypes

        protected void accumulateAllDependencyTypes​(java.lang.String integrationObjectCode,
                                                    java.lang.String integrationObjectItemCode,
                                                    java.util.Set<IntegrationObjectItemModel> dependencyTypes)
      • isValidAttributeDescriptor

        protected boolean isValidAttributeDescriptor​(AttributeDescriptorModel attributeDescriptor)
      • isValidReturnIntegrationObjectItem

        protected boolean isValidReturnIntegrationObjectItem​(java.lang.String returnIntegrationObjectItemCode,
                                                             java.lang.String integrationObjectItemCode)
      • isValidIntegrationObjectItemCode

        protected boolean isValidIntegrationObjectItemCode​(java.lang.String integrationObjectItemCode)
      • setFlexibleSearchService

        public void setFlexibleSearchService​(FlexibleSearchService flexibleSearchService)
      • setTypeService

        public void setTypeService​(TypeService typeService)