Class DataExchangeModel

    • Constructor Detail

      • DataExchangeModel

        public DataExchangeModel​(MdObject mdObject,
                                 Configuration configuration,
                                 IModelEditingSupport modelEditingSupport)
        Creates a new instance.
        Parameters:
        mdObject - the md-object, cannot be null
        configuration - the configuration, cannot be null
        modelEditingSupport - the model editing support, cannot be null
    • Method Detail

      • canEdit

        protected boolean canEdit​(ExchangePlan exchangePlan)
        Checks is exchange plan can edit.
        Parameters:
        exchangePlan - the exchange plan, cannot be null
        Returns:
        true if can edit, false otherwise
      • getMdObject

        protected MdObject getMdObject()
        Returns exchange data md-object.
        Returns:
        the md-object, cannot be null
      • setContentItemAutoRecord

        protected void setContentItemAutoRecord​(ExchangePlan exchangePlan,
                                                AutoRegistrationChanges autoRecord)
        Sets autorecord to exchange plan md-object content item.
        Parameters:
        exchangePlan - the exchange plan, cannot be null
        autoRecord - the autorecord, cannot be null
      • setContentItemCheckState

        protected void setContentItemCheckState​(ExchangePlan exchangePlan,
                                                CheckState checkState)
        Sets check state to exchange plan md-object content item.
        Parameters:
        exchangePlan - the exchange plan, cannot be null
        checkState - the check state, can be null
      • createBmTask

        protected IBmTask<?> createBmTask​(ExchangePlan exchangePlan,
                                          CheckState checkState)
        Pre add md-object to exchange plan actions.
        Parameters:
        exchangePlan - the exchange plan, cannot be null
        checkState - the check state, can be null