Exemple #1
0
        public int QueryNumberOfGroups(IServicesMgr servicesMgr)
        {
            int numberOfGroups;

            numberOfGroups = RsapiHelper.QueryNumberOfGroups(servicesMgr);

            return(numberOfGroups);
        }
Exemple #2
0
        public int QueryNumberOfWorkspaces(IServicesMgr servicesMgr)
        {
            int numberOfWorkspaces;

            numberOfWorkspaces = RsapiHelper.QueryNumberOfWorkspaces(servicesMgr);

            return(numberOfWorkspaces);
        }
Exemple #3
0
        public Choice RetrieveMetricChoice(IServicesMgr servicesMgr, int workspaceArtifactId, int choiceArtifactId)
        {
            Choice metricChoice = null;

            metricChoice = RsapiHelper.RetrieveMetricChoice(servicesMgr, workspaceArtifactId, choiceArtifactId);

            return(metricChoice);
        }
Exemple #4
0
        public RDO RetrieveJob(IServicesMgr servicesMgr, int workspaceArtifactId, int jobArtifactId)
        {
            RDO jobRdo = null;

            jobRdo = RsapiHelper.RetrieveJob(servicesMgr, workspaceArtifactId, jobArtifactId);

            return(jobRdo);
        }
Exemple #5
0
 public void UpdateJobField(IServicesMgr servicesMgr, int workspaceArtifactId, int jobArtifactId, Guid fieldGuid, object fieldValue)
 {
     if (_apiType.Equals(Constants.ApiType.Rsapi))
     {
         RsapiHelper.UpdateJobField(servicesMgr, workspaceArtifactId, jobArtifactId, fieldGuid, fieldValue);
     }
     else if (_apiType.Equals(Constants.ApiType.Gravity))
     {
     }
     else
     {
         throw new Exception(Constants.ErrorMessages.INVALID_API_TYPE_ERROR);
     }
 }
Exemple #6
0
        public List <int> RetrieveJobsInWorkspaceWithStatus(IServicesMgr servicesMgr, int workspaceArtifactId, string status)
        {
            List <int> jobsList;

            if (_apiType.Equals(Constants.ApiType.Rsapi))
            {
                jobsList = RsapiHelper.RetrieveJobsInWorkspaceWithStatus(servicesMgr, workspaceArtifactId, status);
            }
            else if (_apiType.Equals(Constants.ApiType.Gravity))
            {
                jobsList = new List <int>();
            }
            else
            {
                throw new Exception(Constants.ErrorMessages.INVALID_API_TYPE_ERROR);
            }

            return(jobsList);
        }