public interface MetadataStore
To access, create, or modify lower-level metadata objects, such as Collection
,
BuildResult
, or BuildMap
objects, first create or get a BuildGroup
using
this class. Then use the BuildGroup to access or create the lower level metadata objects
that it contains. See the BuildGroup
class for more information.
Modifier and Type | Method and Description |
---|---|
boolean |
buildGroupExists(java.lang.String group)
Check wheter a build group exists
|
boolean |
buildResultExists(java.lang.String group,
java.lang.String label)
Deprecated.
As of release 2.0.2, replaced by
BuildGroup.buildResultExists(String label) |
boolean |
collectionExists(java.lang.String collectionName)
Deprecated.
As of release 2.0.2, replaced by
BuildGroup.collectionExists(String name) |
BuildGroup |
copyBuildGroup(java.lang.String source,
java.lang.String newName,
boolean collections,
boolean buildResults,
boolean buildMaps)
Creates a new build group, copying all collections, build results, and/or
all build maps, as selected, to the new build group.
|
Collection |
copyCollection(Collection collection,
java.lang.String newName)
Deprecated.
As of release 2.0.2, replaced by
BuildGroup.copyCollection(String, String) and
BuildGroup.copyCollection(Collection, String) |
Collection |
copyCollection(java.lang.String collectionName,
java.lang.String newName)
Deprecated.
As of release 2.0.2, replaced by
BuildGroup.copyCollection(String, String) and
BuildGroup.copyCollection(Collection, String) |
BuildGroup |
createBuildGroup(java.lang.String group)
Creates a new build group
|
BuildResult |
createBuildResult(java.lang.String group,
java.lang.String label)
Deprecated.
As of release 2.0.2, replaced by
BuildGroup.createBuildResult(String) |
BuildResult |
createBuildResult(java.lang.String group,
java.lang.String label,
java.lang.String owner,
java.lang.String team,
int permission)
Deprecated.
As of release 2.0.2, replaced by
BuildGroup.createBuildResult(String,String,String,int) |
Collection |
createCollection(java.lang.String collectionName)
Deprecated.
As of release 2.0.2, replaced by
BuildGroup.createCollection(String) |
Collection |
createCollection(java.lang.String name,
java.lang.String owner,
java.lang.String team,
int permission)
Deprecated.
As of release 2.0.2, replaced by
BuildGroup.createCollection(String, String, String, int) |
BuildGroup |
createTopicBuildGroup(java.lang.String source,
java.lang.String newName)
Creates a new topic branch build group, copying all collections and the last
successful build result to the new build group.
|
void |
deleteBuildGroup(BuildGroup group)
Delete an existing build group
|
void |
deleteBuildGroup(java.lang.String group)
Delete an existing build group
|
void |
deleteBuildResult(BuildResult buildResult)
Deprecated.
As of release 2.0.2, replaced by
BuildGroup.deleteBuildResult(String) and
BuildGroup.deleteBuildResult(BuildResult) |
void |
deleteBuildResults(java.lang.String group)
Deprecated.
As of release 2.0.2, replaced by
BuildGroup#deleteBuildResults(String) |
void |
deleteCollection(Collection collection)
Deprecated.
As of release 2.0.2, replaced by
BuildGroup.deleteCollection(Collection) |
void |
deleteCollection(java.lang.String collectionName)
Deprecated.
As of release 2.0.2, replaced by
BuildGroup.deleteCollection(String) |
BuildGroup |
getBuildGroup(java.lang.String group)
Get a build group
|
java.util.List<java.lang.String> |
getBuildGroupNames()
Get a list of all build group names
|
java.util.List<BuildGroup> |
getBuildGroups()
Get a list of all build groups
|
BuildResult |
getBuildResult(java.lang.String group,
java.lang.String label)
Deprecated.
As of release 2.0.2, replaced by
BuildGroup.getBuildResult(String label) |
java.util.List<BuildResult> |
getBuildResults(java.util.Map<BuildResult.QueryParms,java.lang.String> queryParms)
Deprecated.
As of release 2.0.2, replaced by
BuildGroup.getBuildResult(String label) |
java.util.List<BuildResult> |
getBuildResults(java.lang.String group)
Deprecated.
As of release 2.0.2, replaced by
BuildGroup.getBuildResults() |
Collection |
getCollection(java.lang.String name)
Deprecated.
As of release 2.0.2, replaced by
BuildGroup.getCollection(String) |
java.util.List<Collection> |
getCollections()
Deprecated.
As of release 2.0.2, replaced by
BuildGroup.getCollections() |
java.util.List<Collection> |
getImpactedFiles(java.util.List<java.lang.String> collections,
java.util.List<LogicalDependency> lds)
Get a list of impacted files in a list of collections with dependencies
on a list of logical dependencies.
|
BuildResult |
getLastBuildResult(java.lang.String group,
int state,
int status)
Deprecated.
As of release 2.0.2, replaced by
BuildGroup.getLastBuildResult(int, int) |
java.util.List<java.lang.String> |
listBuildResultGroups()
Deprecated.
As of release 2.0.2, replaced by
getBuildGroupNames() |
java.util.List<java.lang.String> |
listBuildResultLabels(java.lang.String group)
Deprecated.
As of release 2.0.2, replaced by
BuildGroup.getBuildResultLabels() |
java.util.List<Collection> getImpactedFiles(java.util.List<java.lang.String> collections, java.util.List<LogicalDependency> lds) throws BuildException
collections
- List of collections to searchlds
- List of dependenciesMetadataStore.getCollection(String)
.BuildException
BuildGroup createBuildGroup(java.lang.String group) throws BuildException
group
- The new group nameBuildException
BuildGroup copyBuildGroup(java.lang.String source, java.lang.String newName, boolean collections, boolean buildResults, boolean buildMaps) throws BuildException
source
- The source build group namenewName
- The new build group namecollections
- Pass true to copy all collections; false to skipbuildResults
- Pass true to copy all build results; false to skipbuildMaps
- Pass true to copy all build maps; false to skipBuildException
BuildGroup createTopicBuildGroup(java.lang.String source, java.lang.String newName) throws BuildException
source
- The source build group namenewName
- The new topic branch build group nameBuildException
BuildGroup getBuildGroup(java.lang.String group) throws BuildException
group
- the group nameBuildException
void deleteBuildGroup(java.lang.String group) throws BuildException
Deletes all collections, build results, and build maps within this build group
group
- name of the build group to deleteBuildException
void deleteBuildGroup(BuildGroup group) throws BuildException
Deletes all collections, build results, and build maps within this build group
group
- the BuildGroup object to deleteBuildException
boolean buildGroupExists(java.lang.String group) throws BuildException
group
- the name of the build group to check existanceBuildException
java.util.List<BuildGroup> getBuildGroups() throws BuildException
BuildException
java.util.List<java.lang.String> getBuildGroupNames() throws BuildException
BuildException
@Deprecated Collection createCollection(java.lang.String collectionName) throws BuildException
BuildGroup.createCollection(String)
#collectionExits(String)
to
check for the existence before creating a new collection.collectionName
- The name of the new collectionBuildException
@Deprecated Collection createCollection(java.lang.String name, java.lang.String owner, java.lang.String team, int permission) throws BuildException
BuildGroup.createCollection(String, String, String, int)
#collectionExits(String)
to
check for the existence before creating a new collection.collectionName
- The name of the new collectionowner
- the userid of the owner of this object.team
- the team for this object.permission
- The owner, team, and other permissions for this object.BuildException
@Deprecated boolean collectionExists(java.lang.String collectionName) throws BuildException
BuildGroup.collectionExists(String name)
collectionName
- The name of the collectionBuildException
@Deprecated java.util.List<Collection> getCollections() throws BuildException
BuildGroup.getCollections()
BuildException
@Deprecated Collection getCollection(java.lang.String name) throws BuildException
BuildGroup.getCollection(String)
name
- Name of the collectionBuildException
@Deprecated void deleteCollection(java.lang.String collectionName) throws BuildException
BuildGroup.deleteCollection(String)
collectionName
- Name of the collection to delete.BuildException
@Deprecated void deleteCollection(Collection collection) throws BuildException
BuildGroup.deleteCollection(Collection)
collection
- Collection object representing the metadata store collection.BuildException
@Deprecated Collection copyCollection(Collection collection, java.lang.String newName) throws BuildException
BuildGroup.copyCollection(String, String)
and
BuildGroup.copyCollection(Collection, String)
collection
- Collection to be copiednewName
- Name of the new collectionBuildException
@Deprecated Collection copyCollection(java.lang.String collectionName, java.lang.String newName) throws BuildException
BuildGroup.copyCollection(String, String)
and
BuildGroup.copyCollection(Collection, String)
collectionName
- Name of collection to be copiednewName
- Name of the new collectionBuildException
@Deprecated BuildResult createBuildResult(java.lang.String group, java.lang.String label, java.lang.String owner, java.lang.String team, int permission) throws BuildException
BuildGroup.createBuildResult(String,String,String,int)
group
- The group associated with the new build resultlabel
- The unique label within the group for the new build result.owner
- the userid of the owner of this object.team
- the team for this object.permission
- The owner, team, and other permissions for this object.BuildException
@Deprecated BuildResult createBuildResult(java.lang.String group, java.lang.String label) throws BuildException
BuildGroup.createBuildResult(String)
group
- The group associated with the new build resultlabel
- The unique label within the group for the new build result.BuildException
@Deprecated boolean buildResultExists(java.lang.String group, java.lang.String label) throws BuildException
BuildGroup.buildResultExists(String label)
group
- The build result grouplabel
- The label of the build resultBuildException
@Deprecated BuildResult getLastBuildResult(java.lang.String group, int state, int status) throws BuildException
BuildGroup.getLastBuildResult(int, int)
group
- The build group for the build resultstate
- The state of the build resultstatus
- The status of the build resultBuildException
@Deprecated java.util.List<BuildResult> getBuildResults(java.util.Map<BuildResult.QueryParms,java.lang.String> queryParms) throws BuildException
BuildGroup.getBuildResult(String label)
queryParms
- Map of query parametersBuildException
@Deprecated java.util.List<BuildResult> getBuildResults(java.lang.String group) throws BuildException
BuildGroup.getBuildResults()
group
- The name of the build groupBuildException
@Deprecated BuildResult getBuildResult(java.lang.String group, java.lang.String label) throws BuildException
BuildGroup.getBuildResult(String label)
group
- The build group of the build resultlabel
- The label of the build resultBuildException
@Deprecated java.util.List<java.lang.String> listBuildResultGroups() throws BuildException
getBuildGroupNames()
BuildException
@Deprecated java.util.List<java.lang.String> listBuildResultLabels(java.lang.String group) throws BuildException
BuildGroup.getBuildResultLabels()
group
- Name of the build groupBuildException
@Deprecated void deleteBuildResults(java.lang.String group) throws BuildException
BuildGroup#deleteBuildResults(String)
group
- The name of the build groupBuildException
@Deprecated void deleteBuildResult(BuildResult buildResult) throws BuildException
BuildGroup.deleteBuildResult(String)
and
BuildGroup.deleteBuildResult(BuildResult)
BuildResult
.buildResult
- build result object to delete.BuildException
<IBM Copyright © 2018 IBM Corp. All Rights Reserved.