use of org.eclipse.scout.rt.shared.security.ReadGlobalBookmarkPermission in project scout.rt by eclipse.
the class AbstractBookmarkStorageService method readBookmarks.
protected BookmarkData readBookmarks(Object userId) {
BookmarkData model = new BookmarkData();
// user
BookmarkFolder folder = readUserFolder(userId);
if (folder != null) {
model.setUserBookmarks(folder);
}
// global
if (ACCESS.check(new ReadGlobalBookmarkPermission())) {
folder = readGlobalFolder();
if (folder != null) {
model.setGlobalBookmarks(folder);
}
}
return model;
}
Aggregations