summaryrefslogtreecommitdiffstats
path: root/idrop-web/grails-app/services
diff options
context:
space:
mode:
authormconway <michael.c.conway@gmail.com>2012-12-12 23:51:32 (GMT)
committer mconway <michael.c.conway@gmail.com>2012-12-12 23:51:32 (GMT)
commitd32e73cce8bf3b1c0bd0652e9e400a6a66f8eaef (patch)
tree382c5d4c6bea5e5f3712fe7a8f3c196617e794f3 /idrop-web/grails-app/services
parenta8470fb469d9b367973be75e2375b8ddaa47bc11 (diff)
downloadQCG-Data-d32e73cce8bf3b1c0bd0652e9e400a6a66f8eaef.zip
QCG-Data-d32e73cce8bf3b1c0bd0652e9e400a6a66f8eaef.tar.gz
QCG-Data-d32e73cce8bf3b1c0bd0652e9e400a6a66f8eaef.tar.bz2
[#984] support for uploads
Diffstat (limited to 'idrop-web/grails-app/services')
-rw-r--r--idrop-web/grails-app/services/org/irods/mydrop/service/StarringService.groovy24
1 files changed, 24 insertions, 0 deletions
diff --git a/idrop-web/grails-app/services/org/irods/mydrop/service/StarringService.groovy b/idrop-web/grails-app/services/org/irods/mydrop/service/StarringService.groovy
index 13f8f1d..98467b6 100644
--- a/idrop-web/grails-app/services/org/irods/mydrop/service/StarringService.groovy
+++ b/idrop-web/grails-app/services/org/irods/mydrop/service/StarringService.groovy
@@ -28,5 +28,29 @@ class StarringService {
return irodsStarringService.findStarredForAbsolutePath(irodsAbsolutePath)
}
+
+ void star(IRODSAccount irodsAccount, String irodsAbsolutePath, String description) throws FileNotFoundException, JargonException {
+ if (irodsAccount == null) {
+ throw new IllegalArgumentException("null irodsAccount");
+ }
+
+ IRODSStarringService irodsStarringService = new IRODSStarringServiceImpl(irodsAccessObjectFactory, irodsAccount)
+ irodsStarringService.starFileOrCollection(irodsAbsolutePath, description)
+
+ }
+
+ void unStar(IRODSAccount irodsAccount, String irodsAbsolutePath) throws FileNotFoundException, JargonException {
+ if (irodsAccount == null) {
+ throw new IllegalArgumentException("null irodsAccount");
+ }
+
+ IRODSStarringService irodsStarringService = new IRODSStarringServiceImpl(irodsAccessObjectFactory, irodsAccount)
+ irodsStarringService.unstarFileOrCollection(irodsAbsolutePath)
+
+ }
+
+
+
+
}
\ No newline at end of file