Class AnyVcsRepositoryViewer
- java.lang.Object
-
- com.atlassian.bamboo.specs.api.builders.EntityPropertiesBuilder<VcsRepositoryViewerProperties>
-
- com.atlassian.bamboo.specs.api.builders.repository.viewer.VcsRepositoryViewer
-
- com.atlassian.bamboo.specs.api.builders.repository.viewer.AnyVcsRepositoryViewer
-
public class AnyVcsRepositoryViewer extends VcsRepositoryViewer
Represents a vcs repository viewer of any type.Since knowledge of internal representation of plugin data is required to properly construct this object, this class should only be used if the specialised implementation of a given credential type is not available.
-
-
Constructor Summary
Constructors Constructor Description AnyVcsRepositoryViewer(@NotNull AtlassianModule atlassianPlugin)
Specifies a repository viewer of given type.AnyVcsRepositoryViewer(@NotNull AtlassianModuleProperties atlassianPlugin)
Specifies a repository viewer of given type.AnyVcsRepositoryViewer(@NotNull java.lang.String atlassianPlugin)
Specifies a repository viewer of given type.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected @NotNull AnyVcsRepositoryViewerProperties
build()
AnyVcsRepositoryViewer
configuration(@NotNull java.util.Map<java.lang.String,java.lang.Object> configuration)
Set configuration for the repository viewer.
-
-
-
Constructor Detail
-
AnyVcsRepositoryViewer
public AnyVcsRepositoryViewer(@NotNull @NotNull java.lang.String atlassianPlugin) throws PropertiesValidationException
Specifies a repository viewer of given type.- Parameters:
atlassianPlugin
- type of the viewer identified by its plugin module key- Throws:
PropertiesValidationException
- See Also:
AtlassianModule
-
AnyVcsRepositoryViewer
public AnyVcsRepositoryViewer(@NotNull @NotNull AtlassianModule atlassianPlugin) throws PropertiesValidationException
Specifies a repository viewer of given type.- Parameters:
atlassianPlugin
- type of the viewer identified by its plugin module key- Throws:
PropertiesValidationException
- See Also:
AtlassianModule
-
AnyVcsRepositoryViewer
public AnyVcsRepositoryViewer(@NotNull @NotNull AtlassianModuleProperties atlassianPlugin) throws PropertiesValidationException
Specifies a repository viewer of given type.- Parameters:
atlassianPlugin
- type of the viewer identified by its plugin module key- Throws:
PropertiesValidationException
- See Also:
AtlassianModule
-
-
Method Detail
-
configuration
public AnyVcsRepositoryViewer configuration(@NotNull @NotNull java.util.Map<java.lang.String,java.lang.Object> configuration) throws PropertiesValidationException
Set configuration for the repository viewer.The configuration should be in the format used by respective plugin. No syntactical nor semantic validation is performed on the source data. The configuration is stored 'as is' in the Bamboo DB.
- Throws:
PropertiesValidationException
-
build
@NotNull protected @NotNull AnyVcsRepositoryViewerProperties build() throws PropertiesValidationException
- Specified by:
build
in classVcsRepositoryViewer
- Throws:
PropertiesValidationException
-
-