summaryrefslogtreecommitdiffstats
path: root/idrop-web/grails-app/services
diff options
context:
space:
mode:
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)
+ }
+