public class OwnableUtil extends Object
Constructor and Description |
---|
OwnableUtil() |
Modifier and Type | Method and Description |
---|---|
static int |
setOwner(DbControl dc,
Item itemType,
Set<Integer> items,
User newOwner)
Change the owner of all specified items.
|
static int |
setOwner(DbControl dc,
Set<OwnedItem> items,
User newOwner)
Change the owner of all specified items.
|
public static int setOwner(DbControl dc, Item itemType, Set<Integer> items, User newOwner) throws BaseException
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 userBaseException
- If there is an errorpublic static int setOwner(DbControl dc, Set<OwnedItem> items, User newOwner)
dc
- The DbControl to use for database access.items
- A set with OwnedItem
.newOwner
- The new owner, or null to set the owner to the currently
logged in user.