Beispiel #1
0
        public List <Role> AllRolesByUserName(string userName)
        {
            var user =
                _caller.GetFormat <User>("/app/rest/users/username:{0}", userName);

            return(user.Roles.Role);
        }
Beispiel #2
0
        public List <Build> ByBuildLocator(BuildLocator locator)
        {
            var buildWrapper = _caller.GetFormat <BuildWrapper>("/app/rest/builds?locator={0}", locator);

            if (int.Parse(buildWrapper.Count) > 0)
            {
                return(buildWrapper.Build);
            }
            return(new List <Build>());
        }
Beispiel #3
0
        public List <Change> ByChangeLocator(ChangeLocator locator)
        {
            var buildWrapper = _caller.GetFormat <ChangeWrapper>("/app/rest/changes?locator={0}", locator);

            // Some builds might not have any changes associated to it
            if (buildWrapper.Change != null && buildWrapper.Change.Count > 0)
            {
                return(buildWrapper.Change);
            }
            return(new List <Change>());
        }
Beispiel #4
0
        public BuildConfig ByConfigurationName(string buildConfigName)
        {
            var build = _caller.GetFormat <BuildConfig>("/app/rest/buildTypes/name:{0}", buildConfigName);

            return(build);
        }
Beispiel #5
0
        public List <TestOccurrence> ByBuildId(string buildId, int count)
        {
            var testOccurenceWrapper = _caller.GetFormat <TestOccurrenceWrapper>("/app/rest/testOccurrences?locator=build:{0},count:{1}", buildId, count);

            return(testOccurenceWrapper.TestOccurrence);
        }
Beispiel #6
0
        public Project ProjectByName(string projectLocatorName)
        {
            var project = _caller.GetFormat <Project>("/app/rest/projects/name:{0}", projectLocatorName);

            return(project);
        }
Beispiel #7
0
        public Change ByChangeId(string id)
        {
            var change = _caller.GetFormat <Change>("/app/rest/changes/id:{0}", id);

            return(change);
        }
Beispiel #8
0
 public List <Property> GetByBuildId(string buildId)
 {
     return(_caller.GetFormat <Properties>("/app/rest/builds/id:{0}/statistics", buildId).Property);
 }
Beispiel #9
0
        public VcsRoot ById(string vcsRootId)
        {
            var vcsRoot = _caller.GetFormat <VcsRoot>("/app/rest/vcs-roots/id:{0}", vcsRootId);

            return(vcsRoot);
        }
Beispiel #10
0
        public Build ByBuildInternalId(string buildInternalId)
        {
            var build = _caller.GetFormat <Build>("/app/rest/builds/id:{0}", buildInternalId);

            return(build);
        }