View Javadoc
1   /*
2    * This file is part of ***  M y C o R e  ***
3    * See http://www.mycore.de/ for details.
4    *
5    * MyCoRe is free software: you can redistribute it and/or modify
6    * it under the terms of the GNU General Public License as published by
7    * the Free Software Foundation, either version 3 of the License, or
8    * (at your option) any later version.
9    *
10   * MyCoRe is distributed in the hope that it will be useful,
11   * but WITHOUT ANY WARRANTY; without even the implied warranty of
12   * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13   * GNU General Public License for more details.
14   *
15   * You should have received a copy of the GNU General Public License
16   * along with MyCoRe.  If not, see <http://www.gnu.org/licenses/>.
17   */
18  
19  package org.mycore.frontend.classeditor.wrapper;
20  
21  import java.util.List;
22  import java.util.Map;
23  
24  import org.mycore.datamodel.classifications2.MCRCategory;
25  import org.mycore.datamodel.classifications2.MCRCategoryID;
26  
27  public class MCRCategoryListWrapper {
28  
29      private List<MCRCategory> categList;
30  
31      private Map<MCRCategoryID, Boolean> linkMap = null;
32  
33      public MCRCategoryListWrapper(List<MCRCategory> categList) {
34          this.categList = categList;
35      }
36  
37      public MCRCategoryListWrapper(List<MCRCategory> categList, Map<MCRCategoryID, Boolean> linkMap) {
38          this.categList = categList;
39          this.linkMap = linkMap;
40      }
41  
42      public List<MCRCategory> getList() {
43          return categList;
44      }
45  
46      public Map<MCRCategoryID, Boolean> getLinkMap() {
47          return linkMap;
48      }
49  }