1   /**
2    * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
3    *
4    * The contents of this file are subject to the terms of the Liferay Enterprise
5    * Subscription License ("License"). You may not use this file except in
6    * compliance with the License. You can obtain a copy of the License by
7    * contacting Liferay, Inc. See the License for the specific language governing
8    * permissions and limitations under the License, including but not limited to
9    * distribution rights of the Software.
10   *
11   *
12   *
13   */
14  
15  package com.liferay.portal.kernel.bean;
16  
17  import javax.servlet.http.HttpServletRequest;
18  
19  /**
20   * <a href="BeanProperties.java.html"><b><i>View Source</i></b></a>
21   *
22   * @author Brian Wing Shun Chan
23   */
24  public interface BeanProperties {
25  
26      public void copyProperties(Object source, Object target);
27  
28      public void copyProperties(Object source, Object target, Class<?> editable);
29  
30      public void copyProperties(
31          Object source, Object target, String[] ignoreProperties);
32  
33      public boolean getBoolean(Object bean, String param);
34  
35      public boolean getBoolean(Object bean, String param, boolean defaultValue);
36  
37      public double getDouble(Object bean, String param);
38  
39      public double getDouble(Object bean, String param, double defaultValue);
40  
41      public int getInteger(Object bean, String param);
42  
43      public int getInteger(Object bean, String param, int defaultValue);
44  
45      public long getLong(Object bean, String param);
46  
47      public long getLong(Object bean, String param, long defaultValue);
48  
49      public Object getObject(Object bean, String param);
50  
51      public Object getObject(Object bean, String param, Object defaultValue);
52  
53      public String getString(Object bean, String param);
54  
55      public String getString(Object bean, String param, String defaultValue);
56  
57      public void setProperties(Object bean, HttpServletRequest request);
58  
59      public void setProperty(Object bean, String param, Object value);
60  
61  }