summaryrefslogtreecommitdiffstats
path: root/idrop-web/grails-app/services
diff options
context:
space:
mode:
authormconway <michael_conway@unc.edu>2013-10-25 18:05:12 (GMT)
committer mconway <michael_conway@unc.edu>2013-10-25 18:05:12 (GMT)
commit7cbf926255fbf93f31eeacf6b9c78672f79256fe (patch)
tree9341986803bd8618d6db35886b28908e69eb98e2 /idrop-web/grails-app/services
parent96097f863f1271d6c519c6fe32bfa1ef704305fc (diff)
downloadQCG-Data-7cbf926255fbf93f31eeacf6b9c78672f79256fe.zip
QCG-Data-7cbf926255fbf93f31eeacf6b9c78672f79256fe.tar.gz
QCG-Data-7cbf926255fbf93f31eeacf6b9c78672f79256fe.tar.bz2
[#1458] add/delete parms
Diffstat (limited to 'idrop-web/grails-app/services')
-rw-r--r--idrop-web/grails-app/services/org/irods/mydrop/service/RuleProcessingService.groovy12
1 files changed, 12 insertions, 0 deletions
diff --git a/idrop-web/grails-app/services/org/irods/mydrop/service/RuleProcessingService.groovy b/idrop-web/grails-app/services/org/irods/mydrop/service/RuleProcessingService.groovy
index bd5fcb6..7a1ea35 100644
--- a/idrop-web/grails-app/services/org/irods/mydrop/service/RuleProcessingService.groovy
+++ b/idrop-web/grails-app/services/org/irods/mydrop/service/RuleProcessingService.groovy
@@ -65,4 +65,16 @@ class RuleProcessingService {
RuleCompositionService ruleService = new RuleCompositionServiceImpl(irodsAccessObjectFactory, irodsAccount)
return ruleService.deleteInputParameterFromRule(absPath, parameter)
}
+
+ def addRuleInputParam(IRODSAccount irodsAccount, String absPath, String parameterName, String parameterValue) {
+ log.info("addInputParam")
+ RuleCompositionService ruleService = new RuleCompositionServiceImpl(irodsAccessObjectFactory, irodsAccount)
+ return ruleService.addInputParameterToRule(absPath, parameterName, parameterValue)
+ }
+
+ def addRuleOutputParam(IRODSAccount irodsAccount, String absPath, String parameterName) {
+ log.info("addOutputParam")
+ RuleCompositionService ruleService = new RuleCompositionServiceImpl(irodsAccessObjectFactory, irodsAccount)
+ return ruleService.addOutputParameterToRule(absPath, parameterName)
+ }
}