Search in sources :

Example 1 with ReadGlobalBookmarkPermission

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;
}
Also used : BookmarkData(org.eclipse.scout.rt.shared.services.common.bookmark.BookmarkData) BookmarkFolder(org.eclipse.scout.rt.shared.services.common.bookmark.BookmarkFolder) ReadGlobalBookmarkPermission(org.eclipse.scout.rt.shared.security.ReadGlobalBookmarkPermission)

Aggregations

ReadGlobalBookmarkPermission (org.eclipse.scout.rt.shared.security.ReadGlobalBookmarkPermission)1 BookmarkData (org.eclipse.scout.rt.shared.services.common.bookmark.BookmarkData)1 BookmarkFolder (org.eclipse.scout.rt.shared.services.common.bookmark.BookmarkFolder)1