1   /**
2    * Copyright (c) 2000-2008 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  package com.liferay.portal.mirage.custom;
24  
25  import com.sun.portal.cms.mirage.exception.CMSException;
26  import com.sun.portal.cms.mirage.exception.TemplateNotFoundException;
27  import com.sun.portal.cms.mirage.exception.ValidationException;
28  import com.sun.portal.cms.mirage.model.core.User;
29  import com.sun.portal.cms.mirage.model.custom.Category;
30  import com.sun.portal.cms.mirage.model.custom.ContentType;
31  import com.sun.portal.cms.mirage.model.custom.Template;
32  import com.sun.portal.cms.mirage.service.custom.ContentTypeService;
33  
34  import java.util.List;
35  
36  /**
37   * <a href="ContentTypeServiceImpl.java.html"><b><i>View Source</i></b></a>
38   *
39   * @author Jorge Ferrer
40   *
41   */
42  public class ContentTypeServiceImpl implements ContentTypeService {
43  
44      public void addTemplateToContentType(
45          Template template, ContentType contentType, User user)
46          throws CMSException, ValidationException {
47      }
48  
49      public void assignDefaultTemplate(
50          ContentType contentType, Template template) throws CMSException {
51      }
52  
53      public boolean checkContentTypeExists(String contentTypeUUID)
54          throws CMSException {
55  
56          return false;
57      }
58  
59      public void checkOutTemplate(
60              Template template, ContentType contentType, User user)
61          throws CMSException {
62      }
63      public void createContentType(ContentType contentType) throws CMSException {
64  
65      }
66  
67      public void deleteContentType(ContentType contentType) throws CMSException {
68      }
69  
70      public void deleteTemplateOfContentType(
71              ContentType contentType, Template template)
72          throws CMSException, TemplateNotFoundException {
73      }
74  
75      public void deleteTemplatesOfContentType(
76              ContentType contentType, Template[] templatesToBeDeleted)
77          throws CMSException, TemplateNotFoundException {
78      }
79  
80      public List<Template> getAllVersionsOfTemplate(
81          Template template, ContentType contentType) throws CMSException {
82  
83          return null;
84      }
85  
86      public List<String> getAvailableContentTypeNames(Category category)
87          throws CMSException {
88  
89          return null;
90      }
91  
92      public List<ContentType> getAvailableContentTypes(
93          Category category, User user) throws CMSException {
94  
95          return null;
96      }
97  
98      public ContentType getContentTypeByUUID(String contentTypeUUID, User user)
99          throws CMSException {
100 
101         return null;
102     }
103 
104     public Template getLatestVersionOfTemplate(
105         Template template, ContentType contentType) throws CMSException {
106 
107         return null;
108     }
109 
110     public Template getTemplateWithUUID(String templateUUID)
111         throws TemplateNotFoundException {
112 
113         return null;
114     }
115 
116     public boolean isContentTypeEditable(String contentTypeUUID)
117         throws CMSException {
118 
119         return false;
120     }
121 
122     public void revertChangesTemplateForTemplate(
123         Template checkedOutTemplate, ContentType contentType, User user)
124         throws CMSException {
125     }
126 
127     public void saveNewVersionOfTemplate(
128         Template newTemplate, ContentType contentType, User user)
129         throws CMSException, ValidationException {
130     }
131 
132     public void unassignDefaultTemplate(ContentType contentType)
133         throws CMSException {
134     }
135 
136     public void updateCategoryOfContentType(ContentType contentType)
137         throws CMSException {
138     }
139 
140     public void updateContentType(ContentType contentType) throws CMSException {
141     }
142 
143     public void updateTemplateOfContentType(
144             Template template, ContentType contentType, User user)
145         throws CMSException, ValidationException {
146     }
147 
148     public boolean validateTemplate(
149             Template template, ContentType testContentType)
150         throws ValidationException {
151 
152         return false;
153     }
154 
155 }