1
14
15 package com.liferay.portal.service;
16
17 import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
18
19
39 public class LayoutSetPrototypeLocalServiceUtil {
40 public static com.liferay.portal.model.LayoutSetPrototype addLayoutSetPrototype(
41 com.liferay.portal.model.LayoutSetPrototype layoutSetPrototype)
42 throws com.liferay.portal.kernel.exception.SystemException {
43 return getService().addLayoutSetPrototype(layoutSetPrototype);
44 }
45
46 public static com.liferay.portal.model.LayoutSetPrototype createLayoutSetPrototype(
47 long layoutSetPrototypeId) {
48 return getService().createLayoutSetPrototype(layoutSetPrototypeId);
49 }
50
51 public static void deleteLayoutSetPrototype(long layoutSetPrototypeId)
52 throws com.liferay.portal.kernel.exception.PortalException,
53 com.liferay.portal.kernel.exception.SystemException {
54 getService().deleteLayoutSetPrototype(layoutSetPrototypeId);
55 }
56
57 public static void deleteLayoutSetPrototype(
58 com.liferay.portal.model.LayoutSetPrototype layoutSetPrototype)
59 throws com.liferay.portal.kernel.exception.SystemException {
60 getService().deleteLayoutSetPrototype(layoutSetPrototype);
61 }
62
63 @SuppressWarnings("unchecked")
64 public static java.util.List dynamicQuery(
65 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
66 throws com.liferay.portal.kernel.exception.SystemException {
67 return getService().dynamicQuery(dynamicQuery);
68 }
69
70 @SuppressWarnings("unchecked")
71 public static java.util.List dynamicQuery(
72 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
73 int end) throws com.liferay.portal.kernel.exception.SystemException {
74 return getService().dynamicQuery(dynamicQuery, start, end);
75 }
76
77 @SuppressWarnings("unchecked")
78 public static java.util.List dynamicQuery(
79 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
80 int end,
81 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
82 throws com.liferay.portal.kernel.exception.SystemException {
83 return getService()
84 .dynamicQuery(dynamicQuery, start, end, orderByComparator);
85 }
86
87 public static long dynamicQueryCount(
88 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
89 throws com.liferay.portal.kernel.exception.SystemException {
90 return getService().dynamicQueryCount(dynamicQuery);
91 }
92
93 public static com.liferay.portal.model.LayoutSetPrototype getLayoutSetPrototype(
94 long layoutSetPrototypeId)
95 throws com.liferay.portal.kernel.exception.PortalException,
96 com.liferay.portal.kernel.exception.SystemException {
97 return getService().getLayoutSetPrototype(layoutSetPrototypeId);
98 }
99
100 public static java.util.List<com.liferay.portal.model.LayoutSetPrototype> getLayoutSetPrototypes(
101 int start, int end)
102 throws com.liferay.portal.kernel.exception.SystemException {
103 return getService().getLayoutSetPrototypes(start, end);
104 }
105
106 public static int getLayoutSetPrototypesCount()
107 throws com.liferay.portal.kernel.exception.SystemException {
108 return getService().getLayoutSetPrototypesCount();
109 }
110
111 public static com.liferay.portal.model.LayoutSetPrototype updateLayoutSetPrototype(
112 com.liferay.portal.model.LayoutSetPrototype layoutSetPrototype)
113 throws com.liferay.portal.kernel.exception.SystemException {
114 return getService().updateLayoutSetPrototype(layoutSetPrototype);
115 }
116
117 public static com.liferay.portal.model.LayoutSetPrototype updateLayoutSetPrototype(
118 com.liferay.portal.model.LayoutSetPrototype layoutSetPrototype,
119 boolean merge)
120 throws com.liferay.portal.kernel.exception.SystemException {
121 return getService().updateLayoutSetPrototype(layoutSetPrototype, merge);
122 }
123
124 public static com.liferay.portal.model.LayoutSetPrototype addLayoutSetPrototype(
125 long userId, long companyId,
126 java.util.Map<java.util.Locale, java.lang.String> nameMap,
127 java.lang.String description, boolean active)
128 throws com.liferay.portal.kernel.exception.PortalException,
129 com.liferay.portal.kernel.exception.SystemException {
130 return getService()
131 .addLayoutSetPrototype(userId, companyId, nameMap,
132 description, active);
133 }
134
135 public static java.util.List<com.liferay.portal.model.LayoutSetPrototype> search(
136 long companyId, java.lang.Boolean active, int start, int end,
137 com.liferay.portal.kernel.util.OrderByComparator obc)
138 throws com.liferay.portal.kernel.exception.SystemException {
139 return getService().search(companyId, active, start, end, obc);
140 }
141
142 public static int searchCount(long companyId, java.lang.Boolean active)
143 throws com.liferay.portal.kernel.exception.SystemException {
144 return getService().searchCount(companyId, active);
145 }
146
147 public static com.liferay.portal.model.LayoutSetPrototype updateLayoutSetPrototype(
148 long layoutSetPrototypeId,
149 java.util.Map<java.util.Locale, java.lang.String> nameMap,
150 java.lang.String description, boolean active)
151 throws com.liferay.portal.kernel.exception.PortalException,
152 com.liferay.portal.kernel.exception.SystemException {
153 return getService()
154 .updateLayoutSetPrototype(layoutSetPrototypeId, nameMap,
155 description, active);
156 }
157
158 public static LayoutSetPrototypeLocalService getService() {
159 if (_service == null) {
160 _service = (LayoutSetPrototypeLocalService)PortalBeanLocatorUtil.locate(LayoutSetPrototypeLocalService.class.getName());
161 }
162
163 return _service;
164 }
165
166 public void setService(LayoutSetPrototypeLocalService service) {
167 _service = service;
168 }
169
170 private static LayoutSetPrototypeLocalService _service;
171 }