1   /**
2    * Copyright (c) 2000-2009 Liferay, Inc. All rights reserved.
3    *
4    * Permission is hereby granted, free of charge, to any person obtaining a copy
5    * of this software and associated documentation files (the "Software"), to deal
6    * in the Software without restriction, including without limitation the rights
7    * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8    * copies of the Software, and to permit persons to whom the Software is
9    * furnished to do so, subject to the following conditions:
10   *
11   * The above copyright notice and this permission notice shall be included in
12   * all copies or substantial portions of the Software.
13   *
14   * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15   * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16   * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17   * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18   * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19   * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
20   * SOFTWARE.
21   */
22  
23  /**
24   * The contents of this file are subject to the terms of the Common Development
25   * and Distribution License (the License). You may not use this file except in
26   * compliance with the License.
27   *
28   * You can obtain a copy of the License at http://www.sun.com/cddl/cddl.html and
29   * legal/CDDLv1.0.txt. See the License for the specific language governing
30   * permission and limitations under the License.
31   *
32   * When distributing Covered Code, include this CDDL Header Notice in each file
33   * and include the License file at legal/CDDLv1.0.txt.
34   *
35   * If applicable, add the following below the CDDL Header, with the fields
36   * enclosed by brackets [] replaced by your own identifying information:
37   * "Portions Copyrighted [year] [name of copyright owner]"
38   *
39   * Copyright 2009 Sun Microsystems Inc. All rights reserved.
40   */
41  
42  package com.liferay.portal.mirage.custom;
43  
44  import com.sun.portal.cms.mirage.model.custom.Category;
45  import com.sun.portal.cms.mirage.model.custom.ContentType;
46  import com.sun.portal.cms.mirage.model.custom.OptionalCriteria;
47  import com.sun.portal.cms.mirage.model.custom.Template;
48  import com.sun.portal.cms.mirage.model.custom.UpdateCriteria;
49  import com.sun.portal.cms.mirage.model.search.SearchCriteria;
50  import com.sun.portal.cms.mirage.service.custom.ContentTypeService;
51  
52  import java.util.List;
53  
54  /**
55   * <a href="ContentTypeServiceImpl.java.html"><b><i>View Source</i></b></a>
56   *
57   * @author Jorge Ferrer
58   * @author Prakash Reddy
59   * @author Karthik Sudarshan
60   *
61   */
62  public class ContentTypeServiceImpl implements ContentTypeService {
63  
64      public void addTemplateToContentType(
65          Template template, ContentType contentType) {
66  
67          throw new UnsupportedOperationException();
68      }
69  
70      public void assignDefaultTemplate(
71          ContentType contentType, Template template) {
72  
73          throw new UnsupportedOperationException();
74      }
75  
76      public boolean checkContentTypeExists(String contentTypeUUID) {
77          throw new UnsupportedOperationException();
78      }
79  
80      public void checkOutTemplate(Template template, ContentType contentType) {
81          throw new UnsupportedOperationException();
82      }
83  
84      public int contentTypeSearchCount(
85          Category category, SearchCriteria searchCriteria) {
86  
87          throw new UnsupportedOperationException();
88      }
89  
90      public void createContentType(ContentType contentType) {
91          throw new UnsupportedOperationException();
92      }
93  
94      public void deleteContentType(ContentType contentType) {
95          throw new UnsupportedOperationException();
96      }
97  
98      public void deleteTemplateOfContentType(
99          ContentType contentType, Template template) {
100 
101         throw new UnsupportedOperationException();
102     }
103 
104     public void deleteTemplatesOfContentType(
105         ContentType contentType, Template[] templatesToBeDeleted) {
106 
107         throw new UnsupportedOperationException();
108     }
109 
110     public List<Template> getAllVersionsOfTemplate(
111         Template template, ContentType contentType) {
112 
113         throw new UnsupportedOperationException();
114     }
115 
116     public List<String> getAvailableContentTypeNames(Category category) {
117         throw new UnsupportedOperationException();
118     }
119 
120     public List<ContentType> getAvailableContentTypes(Category category) {
121         throw new UnsupportedOperationException();
122     }
123 
124     public ContentType getContentType(ContentType contentType) {
125         throw new UnsupportedOperationException();
126     }
127 
128     public ContentType getContentType(
129         ContentType contentType, OptionalCriteria optionalCriteria) {
130 
131         throw new UnsupportedOperationException();
132     }
133 
134     public ContentType getContentTypeByNameAndCategory(
135         String contentTypeName, Category category) {
136 
137         throw new UnsupportedOperationException();
138     }
139 
140     public ContentType getContentTypeByUUID(String contentTypeUUID) {
141         throw new UnsupportedOperationException();
142     }
143 
144     public Template getLatestVersionOfTemplate(
145         Template template, ContentType contentType) {
146 
147         throw new UnsupportedOperationException();
148     }
149 
150     public Template getTemplate(Template template, OptionalCriteria criteria) {
151         throw new UnsupportedOperationException();
152     }
153 
154     public List<Template> getTemplates(
155         ContentType contentType, Template template, OptionalCriteria criteria) {
156 
157         throw new UnsupportedOperationException();
158     }
159 
160     public int getTemplatesCount(
161         ContentType contentType, Template template, OptionalCriteria criteria) {
162 
163         throw new UnsupportedOperationException();
164     }
165 
166     public Template getTemplateWithUUID(String templateUUID) {
167         throw new UnsupportedOperationException();
168     }
169 
170     public boolean isContentTypeEditable(String contentTypeUUID) {
171         throw new UnsupportedOperationException();
172     }
173 
174     public void revertChangesTemplateForTemplate(
175         Template template, ContentType contentType) {
176 
177         throw new UnsupportedOperationException();
178     }
179 
180     public void saveNewVersionOfTemplate(
181         Template template, ContentType contentType) {
182 
183         throw new UnsupportedOperationException();
184     }
185 
186     public List<ContentType> searchContentTypes(SearchCriteria searchCriteria) {
187         throw new UnsupportedOperationException();
188     }
189 
190     public List<ContentType> searchContentTypesByCategory(
191         Category category, SearchCriteria searchCriteria) {
192 
193         throw new UnsupportedOperationException();
194     }
195 
196     public List<Template> searchTemplates(SearchCriteria searchCriteria) {
197         throw new UnsupportedOperationException();
198     }
199 
200     public int searchTemplatesCount(SearchCriteria searchCriteria) {
201         throw new UnsupportedOperationException();
202     }
203 
204     public List<Template> searchTemplatesOfContentType(
205         ContentType contentType, SearchCriteria criteria) {
206 
207         throw new UnsupportedOperationException();
208     }
209 
210     public void unassignDefaultTemplate(ContentType contentType) {
211         throw new UnsupportedOperationException();
212     }
213 
214     public void updateCategoryOfContentType(ContentType contentType) {
215         throw new UnsupportedOperationException();
216     }
217 
218     public void updateContentType(ContentType contentType) {
219         throw new UnsupportedOperationException();
220     }
221 
222     public void updateContentType(
223         ContentType contentType, UpdateCriteria updateCriteria) {
224 
225         throw new UnsupportedOperationException();
226     }
227 
228     public void updateTemplateOfContentType(
229         Template template, ContentType contentType) {
230 
231         throw new UnsupportedOperationException();
232     }
233 
234     public void updateTemplateOfContentType(
235         Template template, ContentType contentType, UpdateCriteria criteria) {
236 
237         throw new UnsupportedOperationException();
238     }
239 
240     public boolean validateTemplate(
241         Template template, ContentType contentType) {
242 
243         throw new UnsupportedOperationException();
244     }
245 
246 }