includes.js.ConfluenceActions-4.0.js Maven / Gradle / Ivy
GP.ConfluenceActions=
{
refreshHeader: function(list){ new Ajax.Updater("greenpepper_header_display", list.params.ctx + "/ajax/greenpepper/GreenPepperHeader.action", this.query(list, {spaceKey:GP.View.getInnerValue('conf_spaceKey_display'+list.id), pageId:GP.View.getInnerValue('conf_pageId_display'+list.id), implemented:GP.View.getInnerValue('conf_implemented_display'+list.id), showList:GP.View.isVisible('conf_specificationList_display'+list.id)})); },
refreshChildren:function(list, allChildren){ new Ajax.Updater("conf"+list.id, list.params.ctx + "/ajax/greenpepper/RefreshChildren.action", this.query(list, {spaceKey:GP.View.getInnerValue('conf_spaceKey_display'+list.id), pageId:GP.View.getInnerValue('conf_pageId_display'+list.id), forcedSuts:GP.View.getInnerValue('conf_forcedSuts_display'+list.id), showList:GP.View.isVisible('conf_specificationList_display'+list.id), allChildren:allChildren, sortType:_prototype_$('sortType'+list.id).value, reverse:_prototype_$('reverse'+list.id).value})); },
refreshLabels:function(list){ new Ajax.Updater("conf"+list.id, list.params.ctx + "/ajax/greenpepper/RefreshLabels.action", this.query(list, {spaceKey:GP.View.getInnerValue('conf_spaceKey_display'+list.id), showList:GP.View.isVisible('conf_specificationList_display'+list.id), forcedSuts:GP.View.getInnerValue('conf_forcedSuts_display'+list.id), labels:GP.View.getInnerValue('conf_labels_display'+list.id), sortType:_prototype_$('sortType'+list.id).value, reverse:_prototype_$('reverse'+list.id).value, openInSameWindow:_prototype_$('openInSameWindow'+list.id).value})); },
updateExecuteChildren: function(specification){ new Ajax.Updater("conf_"+specification.params.bulkUID+"_"+specification.params.executionUID, specification.params.ctx + "/ajax/greenpepper/UpdateExecuteChildren.action", this.query(specification, {doExecuteChildren:_prototype_$('conf_childrenInput').checked})); },
setAsImplemented: function(specification){ new Ajax.Updater("greenpepper_header_display", specification.params.ctx + "/ajax/greenpepper/SetAsImplemented.action", this.query(specification)); },
revert: function(specification, implemented){ new Ajax.Updater("greenpepper_header_display", specification.params.ctx + "/ajax/greenpepper/Revert.action", this.query(specification, {implemented:implemented, retrieveBody:implemented})); },
retrieveHeader: function(specification, implemented){ new Ajax.Updater("greenpepper_header_display", specification.params.ctx + "/ajax/greenpepper/GreenPepperHeader.action", this.query(specification, {implemented:implemented, retrieveBody:true})); },
retrieveBody: function(specification, implemented){ new Ajax.Updater("body", specification.params.ctx + "/ajax/greenpepper/RetrieveBody.action", this.query(specification, {implemented:implemented})); },
editSelectedSut: function(specification){ new Ajax.Updater("conf_sut_display"+specification.id, specification.params.ctx + "/ajax/greenpepper/GetSutSelection.action", this.query(specification, {isEditMode:true, isSutEditable:true})); },
cancelEditSutSelection: function(specification){ new Ajax.Updater("conf_sut_display"+specification.id, specification.params.ctx + "/ajax/greenpepper/GetSutSelection.action", this.query(specification, {isEditMode:false, isSutEditable:true})); },
updateSelectedSut: function(specification){ new Ajax.Updater("conf_sut_display"+specification.id, specification.params.ctx + "/ajax/greenpepper/UpdateSelectedSut.action", this.query(specification, {refreshAll:true, isSutEditable:true, selectedSystemUnderTestInfo:$F('conf_suts_select'+specification.id), showList:GP.View.isVisible('conf_specificationList_display_'+specification.params.bulkUID + "_"+specification.params.executionUID)})); },
getConfiguration: function(specification){ new Ajax.Updater("conf_configPopup_display"+specification.id, specification.params.ctx + "/ajax/greenpepper/RetrieveSutConfiguration.action", this.query(specification)); },
addSpecSut: function(specification, sutProjectName, sutName){ new Ajax.Updater("conf_configPopup_display"+specification.id, specification.params.ctx + "/ajax/greenpepper/AddSpecSystemUnderTest.action", this.query(specification, {sutProjectName:sutProjectName, sutName:sutName, refreshAll:true})); },
removeSpecSut: function(specification, sutProjectName, sutName){ new Ajax.Updater("conf_configPopup_display"+specification.id, specification.params.ctx + "/ajax/greenpepper/RemoveSpecSystemUnderTest.action", this.query(specification, {sutProjectName:sutProjectName, sutName:sutName, refreshAll:true})); },
getReferenceList: function(specification, isEditMode){ new Ajax.Updater("conf_referenceList_display"+specification.id, specification.params.ctx + "/ajax/greenpepper/RetrieveReferenceList.action", this.query(specification, {isEditMode:isEditMode})); },
addReference: function(specification){ new Ajax.Updater("conf_referenceList_display"+specification.id, specification.params.ctx + "/ajax/greenpepper/AddReference.action", this.query(specification, {refreshAll:true, sutInfo:$F('sut_select'), repositoryUid:$F('repository_select'), requirementName:$F('reqName_field'), sections:$F('reqSections_field'), isEditMode:true})); },
removeReference: function(specification, sutProjectName, sutName, repositoryUid, requirementName, sections){ new Ajax.Updater("conf_referenceList_display"+specification.id, specification.params.ctx + "/ajax/greenpepper/RemoveReference.action", this.query(specification, {sutProjectName:sutProjectName, sutName:sutName, repositoryUid:repositoryUid, requirementName:requirementName, sections:sections})); },
run: function(specification, implemented){ new Ajax.Updater("conf_results"+specification.id, specification.params.ctx + "/ajax/greenpepper/Run.action", this.query(specification, {implemented:(implemented ? true : false), sutInfo:_prototype_$('conf_sutInfo_display'+specification.id).innerHTML})); },
query: function(obj, addParams)
{
return {method:'post', parameters:(addParams ? obj.params.merge(addParams) : obj.params).toQueryString(), onComplete:obj.notifyDoneWorking.bind(obj), onException:obj.notifyError.bind(obj), onFailure:obj.notifyError.bind(obj), evalScripts:true};
},
getLicensePane: function(params) { this.confQuery("license_display", "/ajax/greenpepper/GetLicensePane.action", params); },
uploadLicense: function(params){ this.confQuery("license_display", "/ajax/greenpepper/UploadLicense.action", params); },
getRunnersPane:function(params) { this.confQuery("runnersPane_display", "/ajax/greenpepper/GetRunnersPane.action", params); },
getRunner:function(params) { this.confQuery("runnersPane_display", "/ajax/greenpepper/GetRunnersPane.action", params); },
addRunner:function(params) { this.confQuery("runnersPane_display", "/ajax/greenpepper/AddRunner.action", params); },
removeRunner:function(params) { this.confQuery("runnersPane_display", "/ajax/greenpepper/RemoveRunner.action", params); },
editRunnerProperties:function(params) { this.confQuery("runnersPane_display", "/ajax/greenpepper/EditRunnerProperties.action", params); },
updateRunnerProperties:function(params) { this.confQuery("runnersPane_display", "/ajax/greenpepper/UpdateRunnerProperties.action", params); },
editRunnerClasspaths:function(params) { this.confQuery("runnersPane_display", "/ajax/greenpepper/EditRunnerClasspaths.action", params); },
editRunnerClasspath:function(params){ this.confQuery("runnersPane_display", "/ajax/greenpepper/EditRunnerClasspath.action", params); },
getRegistration:function(params) { this.confQuery("registrationPane_display", "/ajax/greenpepper/GetRegistration.action", params); },
editRegistration:function(params) { this.confQuery("registrationPane_display", "/ajax/greenpepper/EditRegistration.action", params); },
refreshRegistration:function(params) { this.confQuery("registrationPane_display", "/ajax/greenpepper/RefreshEditRegistration.action", params); },
register:function(params) { this.confQuery("registrationPane_display", "/ajax/greenpepper/Register.action", params); },
updateRegistration:function(params) { this.confQuery("registrationPane_display", "/ajax/greenpepper/UpdateRegistration.action", params); },
getFileSystemRegistration:function(params) { this.confQuery("fileSystemPane_display", "/ajax/greenpepper/GetFileSystemRegistration.action", params); },
editFileSystem:function(params) { this.confQuery("fileSystemPane_display", "/ajax/greenpepper/EditFileSystem.action", params); },
addFileSystem:function(params) { this.confQuery("fileSystemPane_display", "/ajax/greenpepper/AddFileSystem.action", params); },
removeFileSystem:function(params) { this.confQuery("fileSystemPane_display", "/ajax/greenpepper/RemoveFileSystem.action", params); },
getSutsPane:function(params) { this.confQuery("sutsPane_display", "/ajax/greenpepper/GetSutsPane.action", params); },
getSut:function(params) { this.confQuery("sutsPane_display", "/ajax/greenpepper/GetSutsPane.action", params); },
addSut:function(params) { this.confQuery("sutsPane_display", "/ajax/greenpepper/AddSystemUnderTest.action", params); },
removeSut:function(params) { this.confQuery("sutsPane_display", "/ajax/greenpepper/RemoveSystemUnderTest.action", params); },
editSutProperties:function(params) { this.confQuery("sutsPane_display", "/ajax/greenpepper/EditSutProperties.action", params); },
updateSutProperties:function(params) { this.confQuery("sutsPane_display", "/ajax/greenpepper/UpdateSystemUnderTest.action", params); },
editSutClasspaths:function(params) { this.confQuery("sutsPane_display", "/ajax/greenpepper/EditSutClasspaths.action", params); },
editSutClasspath:function(params){ this.confQuery("sutsPane_display", "/ajax/greenpepper/EditSutClasspath.action", params); },
editSutFixtures:function(params) { this.confQuery("sutsPane_display", "/ajax/greenpepper/EditSutFixtures.action", params); },
editSutFixture:function(params) { this.confQuery("sutsPane_display", "/ajax/greenpepper/EditSutFixture.action", params); },
setSutAsDefault:function(params){ this.confQuery("sutsPane_display", "/ajax/greenpepper/SetAsDefault.action", params); },
getGpProjectPane:function(params){this.confQuery("GpProjectPane_display", "/ajax/greenpepper/GetGpProjectPane.action", params);},
getInstallWizardPane:function(params){this.confQuery("dbmsConfigPane_display", "/ajax/greenpepper/GetDbmsPane.action", params); },
changeInstallationType:function(params){ this.confQuery("dbmsChoice_display", "/ajax/greenpepper/ChangeInstallType.action", params); },
updateDbmsConfiguration:function(params){ this.confQuery("dbmsConfigPane_display", "/ajax/greenpepper/EditDbmsConfiguration.action", params); },
testDbmsConnection:function(params){ this.confQuery("testConnection_display", "/ajax/greenpepper/TestDbmsConnection.action", params); },
getDemoPane:function(params) { this.confQuery("demoPane_display", "/ajax/greenpepper/GetDemoPane.action", params); },
createDemoSpace:function(params){ this.confQuery("demoPane_display", "/ajax/greenpepper/CreateDemoSpace.action", params); },
removeDemoSpace:function(params){ this.confQuery("demoPane_display", "/ajax/greenpepper/RemoveDemoSpace.action", params); },
confQuery: function(elementId, actionName, params)
{
if(params.id){ params = params.merge({spaceKey:params.id}); }
new Ajax.Updater(elementId, params.ctx + actionName, { method: 'post', parameters: params.toQueryString(), evalScripts: true });
}
};
© 2015 - 2025 Weber Informatics LLC | Privacy Policy