public int QueryNumberOfGroups(IServicesMgr servicesMgr) { int numberOfGroups; numberOfGroups = RsapiHelper.QueryNumberOfGroups(servicesMgr); return(numberOfGroups); }
public int QueryNumberOfWorkspaces(IServicesMgr servicesMgr) { int numberOfWorkspaces; numberOfWorkspaces = RsapiHelper.QueryNumberOfWorkspaces(servicesMgr); return(numberOfWorkspaces); }
public Choice RetrieveMetricChoice(IServicesMgr servicesMgr, int workspaceArtifactId, int choiceArtifactId) { Choice metricChoice = null; metricChoice = RsapiHelper.RetrieveMetricChoice(servicesMgr, workspaceArtifactId, choiceArtifactId); return(metricChoice); }
public RDO RetrieveJob(IServicesMgr servicesMgr, int workspaceArtifactId, int jobArtifactId) { RDO jobRdo = null; jobRdo = RsapiHelper.RetrieveJob(servicesMgr, workspaceArtifactId, jobArtifactId); return(jobRdo); }
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); } }
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); }