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 public static java.util.List<Object> dynamicQuery(
64 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
65 throws com.liferay.portal.kernel.exception.SystemException {
66 return getService().dynamicQuery(dynamicQuery);
67 }
68
69 public static java.util.List<Object> dynamicQuery(
70 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
71 int end) throws com.liferay.portal.kernel.exception.SystemException {
72 return getService().dynamicQuery(dynamicQuery, start, end);
73 }
74
75 public static java.util.List<Object> dynamicQuery(
76 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
77 int end,
78 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
79 throws com.liferay.portal.kernel.exception.SystemException {
80 return getService()
81 .dynamicQuery(dynamicQuery, start, end, orderByComparator);
82 }
83
84 public static int dynamicQueryCount(
85 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
86 throws com.liferay.portal.kernel.exception.SystemException {
87 return getService().dynamicQueryCount(dynamicQuery);
88 }
89
90 public static com.liferay.portal.model.LayoutSetPrototype getLayoutSetPrototype(
91 long layoutSetPrototypeId)
92 throws com.liferay.portal.kernel.exception.PortalException,
93 com.liferay.portal.kernel.exception.SystemException {
94 return getService().getLayoutSetPrototype(layoutSetPrototypeId);
95 }
96
97 public static java.util.List<com.liferay.portal.model.LayoutSetPrototype> getLayoutSetPrototypes(
98 int start, int end)
99 throws com.liferay.portal.kernel.exception.SystemException {
100 return getService().getLayoutSetPrototypes(start, end);
101 }
102
103 public static int getLayoutSetPrototypesCount()
104 throws com.liferay.portal.kernel.exception.SystemException {
105 return getService().getLayoutSetPrototypesCount();
106 }
107
108 public static com.liferay.portal.model.LayoutSetPrototype updateLayoutSetPrototype(
109 com.liferay.portal.model.LayoutSetPrototype layoutSetPrototype)
110 throws com.liferay.portal.kernel.exception.SystemException {
111 return getService().updateLayoutSetPrototype(layoutSetPrototype);
112 }
113
114 public static com.liferay.portal.model.LayoutSetPrototype updateLayoutSetPrototype(
115 com.liferay.portal.model.LayoutSetPrototype layoutSetPrototype,
116 boolean merge)
117 throws com.liferay.portal.kernel.exception.SystemException {
118 return getService().updateLayoutSetPrototype(layoutSetPrototype, merge);
119 }
120
121 public static com.liferay.portal.model.LayoutSetPrototype addLayoutSetPrototype(
122 long userId, long companyId,
123 java.util.Map<java.util.Locale, String> nameMap,
124 java.lang.String description, boolean active)
125 throws com.liferay.portal.kernel.exception.PortalException,
126 com.liferay.portal.kernel.exception.SystemException {
127 return getService()
128 .addLayoutSetPrototype(userId, companyId, nameMap,
129 description, active);
130 }
131
132 public static java.util.List<com.liferay.portal.model.LayoutSetPrototype> search(
133 long companyId, java.lang.Boolean active, int start, int end,
134 com.liferay.portal.kernel.util.OrderByComparator obc)
135 throws com.liferay.portal.kernel.exception.SystemException {
136 return getService().search(companyId, active, start, end, obc);
137 }
138
139 public static int searchCount(long companyId, java.lang.Boolean active)
140 throws com.liferay.portal.kernel.exception.SystemException {
141 return getService().searchCount(companyId, active);
142 }
143
144 public static com.liferay.portal.model.LayoutSetPrototype updateLayoutSetPrototype(
145 long layoutSetPrototypeId,
146 java.util.Map<java.util.Locale, String> nameMap,
147 java.lang.String description, boolean active)
148 throws com.liferay.portal.kernel.exception.PortalException,
149 com.liferay.portal.kernel.exception.SystemException {
150 return getService()
151 .updateLayoutSetPrototype(layoutSetPrototypeId, nameMap,
152 description, active);
153 }
154
155 public static LayoutSetPrototypeLocalService getService() {
156 if (_service == null) {
157 _service = (LayoutSetPrototypeLocalService)PortalBeanLocatorUtil.locate(LayoutSetPrototypeLocalService.class.getName());
158 }
159
160 return _service;
161 }
162
163 public void setService(LayoutSetPrototypeLocalService service) {
164 _service = service;
165 }
166
167 private static LayoutSetPrototypeLocalService _service;
168 }