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
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
ConstructorDescriptionAnyVcsRepositoryViewer
(@NotNull AtlassianModule atlassianPlugin) Specifies a repository viewer of given type.AnyVcsRepositoryViewer
(@NotNull AtlassianModuleProperties atlassianPlugin) Specifies a repository viewer of given type.AnyVcsRepositoryViewer
(@NotNull String atlassianPlugin) Specifies a repository viewer of given type. -
Method Summary
Modifier and TypeMethodDescriptionprotected @NotNull AnyVcsRepositoryViewerProperties
build()
configuration
(@NotNull Map<String, Object> configuration) Set configuration for the repository viewer.
-
Constructor Details
-
AnyVcsRepositoryViewer
public AnyVcsRepositoryViewer(@NotNull @NotNull 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:
-
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:
-
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:
-
-
Method Details
-
configuration
public AnyVcsRepositoryViewer configuration(@NotNull @NotNull Map<String, Object> configuration) throws PropertiesValidationExceptionSet 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
-