001/* 002 * (C) Copyright 2006-2012 Nuxeo SA (http://nuxeo.com/) and others. 003 * 004 * All rights reserved. This program and the accompanying materials 005 * are made available under the terms of the GNU Lesser General Public License 006 * (LGPL) version 2.1 which accompanies this distribution, and is available at 007 * http://www.gnu.org/licenses/lgpl-2.1.html 008 * 009 * This library is distributed in the hope that it will be useful, 010 * but WITHOUT ANY WARRANTY; without even the implied warranty of 011 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 012 * Lesser General Public License for more details. 013 * 014 * Contributors: 015 * Thomas Roger <troger@nuxeo.com> 016 */ 017 018package org.nuxeo.ecm.activity; 019 020import java.util.ArrayList; 021import java.util.List; 022 023import org.nuxeo.common.xmap.annotation.XNode; 024import org.nuxeo.common.xmap.annotation.XObject; 025 026/** 027 * An {@code ActivityVerb} stores the configuration for a given activity verb: 028 * <ul> 029 * <li>a label key</li> 030 * <li>an icon path</li> 031 * </ul> 032 * 033 * @author <a href="mailto:troger@nuxeo.com">Thomas Roger</a> 034 * @since 5.6 035 */ 036@XObject("activityVerb") 037public class ActivityVerb { 038 039 @XNode("@verb") 040 protected String verb; 041 042 @XNode("@labelKey") 043 protected String labelKey; 044 045 @XNode("@icon") 046 protected String icon; 047 048 public String getVerb() { 049 return verb; 050 } 051 052 public void setVerb(String verb) { 053 this.verb = verb; 054 } 055 056 public String getLabelKey() { 057 return labelKey; 058 } 059 060 public void setLabelKey(String labelKey) { 061 this.labelKey = labelKey; 062 } 063 064 public String getIcon() { 065 return icon; 066 } 067 068 public void setIcon(String icon) { 069 this.icon = icon; 070 } 071 072 @Override 073 public ActivityVerb clone() { 074 ActivityVerb clone = new ActivityVerb(); 075 clone.setVerb(getVerb()); 076 clone.setLabelKey(getLabelKey()); 077 clone.setIcon(getIcon()); 078 return clone; 079 } 080 081}