Package net.sf.basedb.util
Class ShareableUtil
- java.lang.Object
-
- net.sf.basedb.util.ShareableUtil
-
public class ShareableUtil extends Object
- Version:
- 2.0
- Author:
- Nicklas
- Last modified
- $Date: 2019-02-27 14:18:43 +0100 (ons, 27 feb. 2019) $
-
-
Constructor Summary
Constructors Constructor Description ShareableUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static MultiPermissions
getMultiPermissions(DbControl dc, Item itemType, Set<Integer> items)
static List<Nameable>
getSharedTo(DbControl dc, SharedItem item)
Gets a list with the projects, groups and users(in that order) that an item is shared to.
-
-
-
Method Detail
-
getMultiPermissions
public static MultiPermissions getMultiPermissions(DbControl dc, Item itemType, Set<Integer> items) throws BaseException
- Throws:
BaseException
-
getSharedTo
public static List<Nameable> getSharedTo(DbControl dc, SharedItem item)
Gets a list with the projects, groups and users(in that order) that an item is shared to.- Parameters:
dc
- DbControl to use when accessing the database.item
- The item that is shared- Returns:
- A
List
with items implementingNameable
- Since:
- 2.4
-
-