Merge branch 'develop' into remoting-4.0
[taxeditor.git] / eu.etaxonomy.taxeditor.store / src / main / java / eu / etaxonomy / taxeditor / util / OperationsUtil.java
1 // $Id$
2 /**
3 * Copyright (C) 2015 EDIT
4 * European Distributed Institute of Taxonomy
5 * http://www.e-taxonomy.eu
6 *
7 * The contents of this file are subject to the Mozilla Public License Version 1.1
8 * See LICENSE.TXT at the top of this package for the full license terms.
9 */
10 package eu.etaxonomy.taxeditor.util;
11
12 import java.util.ArrayList;
13 import java.util.List;
14 import java.util.UUID;
15
16 import eu.etaxonomy.cdm.model.common.CdmBase;
17
18 /**
19 * @author cmathew
20 * @date 29 Jun 2015
21 *
22 */
23 public class OperationsUtil {
24
25 public static List<UUID> convertToUuidList(List<CdmBase> cdmBaseList) {
26 List<UUID> uuids = new ArrayList<UUID>();
27 for(CdmBase cdmBase : cdmBaseList) {
28 if(cdmBase == null) {
29 uuids.add(null);
30 } else {
31 uuids.add(cdmBase.getUuid());
32 }
33 }
34 return uuids;
35 }
36 }