Class InfobaseAssociationSettings


  • public final class InfobaseAssociationSettings
    extends Object
    The infobase association settings.
    • Constructor Detail

      • InfobaseAssociationSettings

        public InfobaseAssociationSettings​(boolean isSynchronized,
                                           boolean isForced)
        Creates an instance of InfobaseAssociationSettings.
        Parameters:
        isSynchronized - whether the infobase is synchronized with project
        isForced - whether need to force association process
      • InfobaseAssociationSettings

        public InfobaseAssociationSettings​(boolean isSynchronized,
                                           boolean isForced,
                                           InfobaseAssociationContext context)
        Creates an instance of InfobaseAssociationSettings.
        Parameters:
        isSynchronized - whether the infobase is synchronized with project
        isForced - whether need to force association process
        context - the infobase association context, cannot be null
    • Method Detail

      • alreadySynchronized

        public static InfobaseAssociationSettings alreadySynchronized()
        Returns an instance of InfobaseAssociationSettings that represents already synchronized infobase settings.
        Returns:
        an instance of InfobaseAssociationSettings that represents already synchronized infobase settings, never null
      • alreadySynchronized

        public static InfobaseAssociationSettings alreadySynchronized​(InfobaseAssociationContext context)
        Returns an instance of InfobaseAssociationSettings that represents already synchronized infobase settings.
        Parameters:
        context - the infobase association context, cannot be null
        Returns:
        an instance of InfobaseAssociationSettings that represents already synchronized infobase settings, never null
      • notSynchronized

        public static InfobaseAssociationSettings notSynchronized()
        Returns an instance of InfobaseAssociationSettings that represents not synchronized (initial) infobase settings.
        Returns:
        an instance of InfobaseAssociationSettings that represents not synchronized (initial) infobase settings, never null
      • notSynchronized

        public static InfobaseAssociationSettings notSynchronized​(InfobaseAssociationContext context)
        Returns an instance of InfobaseAssociationSettings that represents not synchronized (initial) infobase settings.
        Parameters:
        context - the infobase association context, cannot be null
        Returns:
        an instance of InfobaseAssociationSettings that represents not synchronized (initial) infobase settings, never null
      • copyStateOf

        public static InfobaseAssociationSettings copyStateOf​(InfobaseAssociationContext context,
                                                              InfobaseAssociationContext copyOfContext,
                                                              InfobaseReference copyOfInfobase)
        Returns an instance of InfobaseAssociationSettings that represents an infobase association settings with synchronization state that will be created as copy of the provided. For example, if provided infobase and context are synchronized than creating context and state will be synchronized.
        Parameters:
        context - the infobase association context, cannot be null
        copyOfContext - the infobase association context to copy state of, cannot be null
        copyOfInfobase - the infobase to copy state of, cannot be null
        Returns:
        an instance of InfobaseAssociationSettings that represents an infobase association settings with synchronization state that will be created as copy of the provided
      • isSynchronized

        public boolean isSynchronized()
        Returns whether the infobase is synchronized with project.
        Returns:
        whether the infobase is synchronized with project
      • isForced

        public boolean isForced()
        Returns whether need to force association process.
        Returns:
        whether need to force association process
      • isCopyingStateSettings

        public boolean isCopyingStateSettings()
        Returns whether infobase association is creating with synchronization state as copy of the some other infobase asscoation context.
        Returns:
        whether infobase association is creating with synchronization state as copy of the some other infobase asscoation context
      • getCopyingInfobase

        public InfobaseReference getCopyingInfobase()
        Returns copying infobase association infobase.
        Returns:
        copying infobase association infobase, never null
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object