Interface LVcsRootInstance

    • Method Detail

      • isCurrentVersionExpensive

        boolean isCurrentVersionExpensive()
        Since:
        8.0
      • getParentId

        long getParentId()
        Returns:
        id of the parent VCS root object which unresolved parameters were used to construct this instance.
      • getVersionDisplayName

        @NotNull
        String getVersionDisplayName​(@NotNull
                                     String version)
                              throws VcsException
        Creates human-readable revision representation, it's likely to make this method unused by reporting all data strait from VCS plugins
        Parameters:
        version - version to represent
        Returns:
        version display name for given version
        Throws:
        VcsException - in case of any error
        Since:
        8.0
      • getService

        @NotNull
        <T extends VcsService> T getService​(@NotNull
                                            Class<T> serviceClass)
                                     throws VcsException
        Return Vcs service specified by a class passed to the method.
        Parameters:
        serviceClass - VCS service class, for services which do not use checkout rules, see VcsService
        Returns:
        see above
        Throws:
        VcsException - if service cannot be found/created
        Since:
        8.0
        See Also:
        findService(Class,CheckoutRules)
      • getService

        <T extends VcsService> T getService​(@NotNull
                                            Class<T> serviceClass,
                                            @NotNull
                                            CheckoutRules checkoutRules)
                                     throws VcsException
        Return Vcs service specified by a class passed to the method.
        Parameters:
        serviceClass - VCS service class, for services which do not use checkout rules, see VcsService
        checkoutRules - checkout rules
        Returns:
        see above
        Throws:
        VcsException - if service cannot be found/created
        Since:
        8.0, 8.1
        See Also:
        findService(Class,CheckoutRules)
      • findService

        @Nullable
        <T extends VcsService> T findService​(@NotNull
                                             Class<T> serviceClass,
                                             @NotNull
                                             CheckoutRules checkoutRules)
        Return Vcs service specified by a class passed to the method, or null if the service is not available to the VCS Root instance.
        Parameters:
        serviceClass - VCS service class, for services which do not use checkout rules, see VcsService
        checkoutRules - Checkout rules which should be passed to the service.
        Returns:
        see above
        Since:
        8.0
        See Also:
        getService(Class)
      • getStatus

        @NotNull
        VcsRootStatus getStatus()
        Returns:
        VcsRootInstance status
        Since:
        10.0