View Javadoc
1   /*
2    * Copyright (C) 2003-2012 eXo Platform SAS.
3    *
4    * This program is free software: you can redistribute it and/or modify
5    * it under the terms of the GNU Affero General Public License as published by
6    * the Free Software Foundation, either version 3 of the License, or
7    * (at your option) any later version.
8    *
9    * This program is distributed in the hope that it will be useful,
10   * but WITHOUT ANY WARRANTY; without even the implied warranty of
11   * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12   * GNU Affero General Public License for more details.
13   *
14   * You should have received a copy of the GNU Affero General Public License
15   * along with this program. If not, see <http://www.gnu.org/licenses/>.
16   */
17  package org.exoplatform.wiki.mock;
18  
19  import java.util.Locale;
20  import java.util.Map;
21  
22  import org.exoplatform.portal.mop.Described.State;
23  import org.exoplatform.portal.mop.description.DescriptionService;
24  
25  public class MockDescriptionService implements DescriptionService {
26  
27    /* (non-Javadoc)
28     * @see org.exoplatform.portal.mop.description.DescriptionService#resolveDescription(java.lang.String, java.util.Locale)
29     */
30    @Override
31    public State resolveDescription(String id, Locale locale) throws NullPointerException {
32      return null;
33    }
34  
35    /* (non-Javadoc)
36     * @see org.exoplatform.portal.mop.description.DescriptionService#resolveDescription(java.lang.String, java.util.Locale, java.util.Locale)
37     */
38    @Override
39    public State resolveDescription(String id, Locale locale2, Locale locale1) throws NullPointerException {
40      return null;
41    }
42  
43    /* (non-Javadoc)
44     * @see org.exoplatform.portal.mop.description.DescriptionService#getDescription(java.lang.String)
45     */
46    @Override
47    public State getDescription(String id) throws NullPointerException {
48      return null;
49    }
50  
51    /* (non-Javadoc)
52     * @see org.exoplatform.portal.mop.description.DescriptionService#setDescription(java.lang.String, org.exoplatform.portal.mop.Described.State)
53     */
54    @Override
55    public void setDescription(String id, State description) throws NullPointerException {
56  
57    }
58  
59    /* (non-Javadoc)
60     * @see org.exoplatform.portal.mop.description.DescriptionService#getDescription(java.lang.String, java.util.Locale)
61     */
62    @Override
63    public State getDescription(String id, Locale locale) throws NullPointerException {
64      return null;
65    }
66  
67    /* (non-Javadoc)
68     * @see org.exoplatform.portal.mop.description.DescriptionService#setDescription(java.lang.String, java.util.Locale, org.exoplatform.portal.mop.Described.State)
69     */
70    @Override
71    public void setDescription(String id, Locale locale, State description) throws NullPointerException, IllegalArgumentException {
72  
73    }
74  
75    /* (non-Javadoc)
76     * @see org.exoplatform.portal.mop.description.DescriptionService#getDescriptions(java.lang.String)
77     */
78    @Override
79    public Map<Locale, State> getDescriptions(String id) throws NullPointerException {
80      return null;
81    }
82  
83    /* (non-Javadoc)
84     * @see org.exoplatform.portal.mop.description.DescriptionService#setDescriptions(java.lang.String, java.util.Map)
85     */
86    @Override
87    public void setDescriptions(String id, Map<Locale, State> descriptions) throws NullPointerException, IllegalArgumentException {
88  
89    }
90  
91  }