Class VcsUsernamePropertyKey


  • public class VcsUsernamePropertyKey
    extends PluginPropertyKey
    Represents VCS username property from the user profile
    • Constructor Detail

      • VcsUsernamePropertyKey

        public VcsUsernamePropertyKey​(@NotNull
                                      VcsRoot vcsRoot)
        Constructor
        Parameters:
        vcsRoot - VCS root to associate username with
      • VcsUsernamePropertyKey

        public VcsUsernamePropertyKey​(@NotNull
                                      VcsSupportConfig vcsSupport)
        Constructor
        Parameters:
        vcsSupport - VCS plugin to associate username with
      • VcsUsernamePropertyKey

        public VcsUsernamePropertyKey()
        Constructor for default VCS username
      • VcsUsernamePropertyKey

        public VcsUsernamePropertyKey​(@NotNull
                                      String propertyKey)
        Constructor
        Parameters:
        propertyKey - property key from database
    • Method Detail

      • getVcsRootId

        public long getVcsRootId()
        Returns VCS root id from the property or -1 if this property corresponds to any VCS root
        Returns:
        VCS root id or -1
      • getVcsName

        public String getVcsName()
        Returns name of VCS plugin
        Returns:
        name of VCS plugin
      • isVcsUsernamePropertyKey

        public static boolean isVcsUsernamePropertyKey​(@NotNull
                                                       String propertyKey)
        Returns true if the specified string representation of the property key represents VCS property key
        Parameters:
        propertyKey - property key
        Returns:
        true if property key is VCS property key
      • extractVcsRootIdFromKey

        @Nullable
        public static String extractVcsRootIdFromKey​(String key)
        Returns VCS root id from the property key or null if this key corresponds to any VCS root
        Since:
        9.0