@Deprecated public class ListUtil extends Object
Constructor and Description |
---|
ListUtil()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
static <S extends BioMaterial> |
addToList(ItemList list,
Collection<? extends S> sources,
CollectionTransformer<S,? extends BioMaterial> transformer)
Deprecated.
In 3.5, no replacement
|
static CollectionTransformer |
createTransformer(DbControl dc,
Item sourceItem,
Item destinationItem,
boolean sameType)
Deprecated.
|
static ItemQuery<? extends BioMaterial> |
getQuery(Item biomaterialType)
Deprecated.
In 3.5, use
Item.getQuery() instead |
@Deprecated public static ItemQuery<? extends BioMaterial> getQuery(Item biomaterialType) throws BaseException
Item.getQuery()
insteadBioSource.getQuery()
, etc. depending on the
member type of the list.ItemQuery
objectBaseException
- If the query could not be created and configured.@Deprecated public static <S extends BioMaterial> int addToList(ItemList list, Collection<? extends S> sources, CollectionTransformer<S,? extends BioMaterial> transformer) throws InvalidDataException, PermissionDeniedException
ItemList.getMemberType()
for the list.list
- The list to add items tosources
- The source collection of biomaterialstransformer
- An optional transformerInvalidDataException
- If an item is not of the correct
member typePermissionDeniedException
- If the logged in user doesn't have
write permission for the list@Deprecated public static CollectionTransformer createTransformer(DbControl dc, Item sourceItem, Item destinationItem, boolean sameType)
ListableUtil.getTransformerFactory(Item)
and
SourceItemTransformerFactory.create(Item, net.sf.basedb.core.SyncFilter.SourceItemTransform)
insteadsourceItem
:s into a collection with destinationItem
:s
by following parent/child paths. Both the source and destination must be
one of Item.BIOSOURCE
, Item.SAMPLE
or Item.EXTRACT
.dc
- The DbControl the transformers should use for loading
items from the databasesourceItem
- The type of source itemsdestinationItem
- The type of destination itemssameType
- If children/parents of the same type should be considered or not