public interface MetadataStore
Modifier and Type | Method and Description |
---|---|
boolean |
buildResultExists(java.lang.String group,
java.lang.String label)
Check to see if a build result already exists
|
boolean |
collectionExists(java.lang.String collectionName)
Check to see if a collection by this name already exists
|
Collection |
copyCollection(Collection collection,
java.lang.String newName)
Copy a collection to a new collection with the new name
|
Collection |
copyCollection(java.lang.String collectionName,
java.lang.String newName)
Copy a collection to a new collection with the new name
|
BuildResult |
createBuildResult(java.lang.String group,
java.lang.String label)
Create a BuildResult in the metadata store
|
BuildResult |
createBuildResult(java.lang.String group,
java.lang.String label,
java.lang.String owner,
java.lang.String team,
int permission)
Create a BuildResult in the metadata store
|
Collection |
createCollection(java.lang.String collectionName)
Create a collection with the new name.
|
Collection |
createCollection(java.lang.String name,
java.lang.String owner,
java.lang.String team,
int permission)
Create a collection with the new name.
|
void |
deleteBuildResult(BuildResult buildResult)
Delete, from the metadata store, the build result represented by the
BuildResult . |
void |
deleteBuildResults(java.lang.String group)
Delete all build results in a build group.
|
void |
deleteCollection(Collection collection)
Delete a collection given the collection object
|
void |
deleteCollection(java.lang.String collectionName)
Delete a collection by a specific name.
|
BuildResult |
getBuildResult(java.lang.String group,
java.lang.String label)
Get a specific build result within a group with the unique label.
|
java.util.List<BuildResult> |
getBuildResults(java.util.Map<BuildResult.QueryParms,java.lang.String> queryParms)
Get a build result based on the query parameters specified (ie, Group,
state, status, etc).
|
java.util.List<BuildResult> |
getBuildResults(java.lang.String group)
Get a list of all of the build results in a build group.
|
Collection |
getCollection(java.lang.String name)
Get a collection by a specific name.
|
java.util.List<Collection> |
getCollections()
Returns a list of collections from the metadata store
|
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)
Get the latest build result within a group with the specified state and
status.
|
java.util.List<java.lang.String> |
listBuildResultGroups()
Get a list of all of the build result groups.
|
java.util.List<java.lang.String> |
listBuildResultLabels(java.lang.String group)
Get a list of all build result labels within a build group.
|
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
Collection createCollection(java.lang.String collectionName) throws BuildException
#collectionExits(String)
to check
for the existence before creating a new collection.collectionName
- The name of the new collectionBuildException
Collection createCollection(java.lang.String name, java.lang.String owner, java.lang.String team, int permission) throws BuildException
#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
boolean collectionExists(java.lang.String collectionName) throws BuildException
collectionName
- The name of the collectionBuildException
java.util.List<Collection> getCollections() throws BuildException
BuildException
Collection getCollection(java.lang.String name) throws BuildException
name
- Name of the collectionBuildException
void deleteCollection(java.lang.String collectionName) throws BuildException
collectionName
- Name of the collection to delete.BuildException
void deleteCollection(Collection collection) throws BuildException
collection
- Collection object representing the metadata store collection.BuildException
Collection copyCollection(Collection collection, java.lang.String newName) throws BuildException
collection
- Collection to be copiednewName
- Name of the new collectionBuildException
Collection copyCollection(java.lang.String collectionName, java.lang.String newName) throws BuildException
collectionName
- Name of collection to be copiednewName
- Name of the new collectionBuildException
BuildResult createBuildResult(java.lang.String group, java.lang.String label, java.lang.String owner, java.lang.String team, int permission) throws BuildException
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
BuildResult createBuildResult(java.lang.String group, java.lang.String label) throws BuildException
group
- The group associated with the new build resultlabel
- The unique label within the group for the new build result.BuildException
boolean buildResultExists(java.lang.String group, java.lang.String label) throws BuildException
group
- The build result grouplabel
- The label of the build resultBuildException
BuildResult getLastBuildResult(java.lang.String group, int state, int status) throws BuildException
group
- The build group for the build resultstate
- The state of the build resultstatus
- The status of the build resultBuildException
java.util.List<BuildResult> getBuildResults(java.util.Map<BuildResult.QueryParms,java.lang.String> queryParms) throws BuildException
queryParms
- Map of query parametersBuildException
java.util.List<BuildResult> getBuildResults(java.lang.String group) throws BuildException
group
- The name of the build groupBuildException
BuildResult getBuildResult(java.lang.String group, java.lang.String label) throws BuildException
group
- The build group of the build resultlabel
- The label of the build resultBuildException
java.util.List<java.lang.String> listBuildResultGroups() throws BuildException
BuildException
java.util.List<java.lang.String> listBuildResultLabels(java.lang.String group) throws BuildException
group
- Name of the build groupBuildException
void deleteBuildResults(java.lang.String group) throws BuildException
group
- The name of the build groupBuildException
void deleteBuildResult(BuildResult buildResult) throws BuildException
BuildResult
.buildResult
- build result object to delete.BuildException
<IBM Copyright © 2018 IBM Corp. All Rights Reserved.