summaryrefslogtreecommitdiffstats
path: root/idrop-web/grails-app/services
diff options
context:
space:
mode:
authormconway <michael.c.conway@gmail.com>2012-12-13 14:01:07 (GMT)
committer mconway <michael.c.conway@gmail.com>2012-12-13 14:01:07 (GMT)
commita9f78fe1e328652202ceda04da6dd6b187f69a09 (patch)
treeeecc817c351972b41bbfd0a99c117fc433a27dff /idrop-web/grails-app/services
parentd32e73cce8bf3b1c0bd0652e9e400a6a66f8eaef (diff)
downloadQCG-Data-a9f78fe1e328652202ceda04da6dd6b187f69a09.zip
QCG-Data-a9f78fe1e328652202ceda04da6dd6b187f69a09.tar.gz
QCG-Data-a9f78fe1e328652202ceda04da6dd6b187f69a09.tar.bz2
[#984] listing of starred
Diffstat (limited to 'idrop-web/grails-app/services')
-rw-r--r--idrop-web/grails-app/services/org/irods/mydrop/service/StarringService.groovy18
1 files changed, 18 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 98467b6..fbc1c20 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
@@ -49,6 +49,24 @@ class StarringService {
}
+ List<IRODSStarredFileOrCollection> listStarredCollections(IRODSAccount irodsAccount, int pagingOffset) throws JargonException {
+ if (irodsAccount == null) {
+ throw new IllegalArgumentException("null irodsAccount");
+ }
+
+ IRODSStarringService irodsStarringService = new IRODSStarringServiceImpl(irodsAccessObjectFactory, irodsAccount)
+ return irodsStarringService.listStarredCollections(pagingOffset)
+ }
+
+ List<IRODSStarredFileOrCollection> listStarredDataObjects(IRODSAccount irodsAccount, int pagingOffset) throws JargonException {
+ if (irodsAccount == null) {
+ throw new IllegalArgumentException("null irodsAccount");
+ }
+
+ IRODSStarringService irodsStarringService = new IRODSStarringServiceImpl(irodsAccessObjectFactory, irodsAccount)
+ return irodsStarringService.listStarredDataObjects(pagingOffset)
+ }
+