2.17.2: 2011-06-17

net.sf.basedb.util
Class ShareableUtil

java.lang.Object
  extended by net.sf.basedb.util.ShareableUtil

public class ShareableUtil
extends Object

Version:
2.0
Author:
Nicklas
Last modified
$Date: 2009-04-06 14:52:39 +0200 (Mon, 06 Apr 2009) $

Constructor Summary
ShareableUtil()
           
 
Method Summary
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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ShareableUtil

public ShareableUtil()
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 implementing Nameable
Since:
2.4

2.17.2: 2011-06-17