net.sf.basedb.util
Class OwnableUtil
java.lang.Object
net.sf.basedb.util.OwnableUtil
public class OwnableUtil
- extends Object
- Version:
- 2.2
- Author:
- Nicklas
- Last modified
- $Date: 2008-09-05 17:16:27 +0200 (Fri, 05 Sep 2008) $
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
OwnableUtil
public OwnableUtil()
setOwner
public static int setOwner(DbControl dc,
Item itemType,
Set<Integer> items,
User newOwner)
throws BaseException
- Change the owner of all specified items.
- Parameters:
dc
- The DbControl to use for database accessitemType
- The type of itemsitems
- A set with the ID:s of all itemsnewOwner
- The new owner, or null to set the owner to the
currently logged in user
- Returns:
- The number of items the owner could be changed on
- Throws:
BaseException
- If there is an error