1
14
15 package com.liferay.portal.service;
16
17 import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
18
19
39 public class ReleaseLocalServiceUtil {
40 public static com.liferay.portal.model.Release addRelease(
41 com.liferay.portal.model.Release release)
42 throws com.liferay.portal.SystemException {
43 return getService().addRelease(release);
44 }
45
46 public static com.liferay.portal.model.Release createRelease(long releaseId) {
47 return getService().createRelease(releaseId);
48 }
49
50 public static void deleteRelease(long releaseId)
51 throws com.liferay.portal.PortalException,
52 com.liferay.portal.SystemException {
53 getService().deleteRelease(releaseId);
54 }
55
56 public static void deleteRelease(com.liferay.portal.model.Release release)
57 throws com.liferay.portal.SystemException {
58 getService().deleteRelease(release);
59 }
60
61 public static java.util.List<Object> dynamicQuery(
62 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
63 throws com.liferay.portal.SystemException {
64 return getService().dynamicQuery(dynamicQuery);
65 }
66
67 public static java.util.List<Object> dynamicQuery(
68 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
69 int end) throws com.liferay.portal.SystemException {
70 return getService().dynamicQuery(dynamicQuery, start, end);
71 }
72
73 public static java.util.List<Object> dynamicQuery(
74 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
75 int end,
76 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
77 throws com.liferay.portal.SystemException {
78 return getService()
79 .dynamicQuery(dynamicQuery, start, end, orderByComparator);
80 }
81
82 public static int dynamicQueryCount(
83 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
84 throws com.liferay.portal.SystemException {
85 return getService().dynamicQueryCount(dynamicQuery);
86 }
87
88 public static com.liferay.portal.model.Release getRelease(long releaseId)
89 throws com.liferay.portal.PortalException,
90 com.liferay.portal.SystemException {
91 return getService().getRelease(releaseId);
92 }
93
94 public static java.util.List<com.liferay.portal.model.Release> getReleases(
95 int start, int end) throws com.liferay.portal.SystemException {
96 return getService().getReleases(start, end);
97 }
98
99 public static int getReleasesCount()
100 throws com.liferay.portal.SystemException {
101 return getService().getReleasesCount();
102 }
103
104 public static com.liferay.portal.model.Release updateRelease(
105 com.liferay.portal.model.Release release)
106 throws com.liferay.portal.SystemException {
107 return getService().updateRelease(release);
108 }
109
110 public static com.liferay.portal.model.Release updateRelease(
111 com.liferay.portal.model.Release release, boolean merge)
112 throws com.liferay.portal.SystemException {
113 return getService().updateRelease(release, merge);
114 }
115
116 public static com.liferay.portal.model.Release addRelease(
117 java.lang.String servletContextName, int buildNumber)
118 throws com.liferay.portal.SystemException {
119 return getService().addRelease(servletContextName, buildNumber);
120 }
121
122 public static void createTablesAndPopulate()
123 throws com.liferay.portal.SystemException {
124 getService().createTablesAndPopulate();
125 }
126
127 public static int getBuildNumberOrCreate()
128 throws com.liferay.portal.PortalException,
129 com.liferay.portal.SystemException {
130 return getService().getBuildNumberOrCreate();
131 }
132
133 public static com.liferay.portal.model.Release getRelease(
134 java.lang.String servletContextName, int buildNumber)
135 throws com.liferay.portal.PortalException,
136 com.liferay.portal.SystemException {
137 return getService().getRelease(servletContextName, buildNumber);
138 }
139
140 public static com.liferay.portal.model.Release updateRelease(
141 long releaseId, int buildNumber, java.util.Date buildDate,
142 boolean verified)
143 throws com.liferay.portal.PortalException,
144 com.liferay.portal.SystemException {
145 return getService()
146 .updateRelease(releaseId, buildNumber, buildDate, verified);
147 }
148
149 public static ReleaseLocalService getService() {
150 if (_service == null) {
151 _service = (ReleaseLocalService)PortalBeanLocatorUtil.locate(ReleaseLocalService.class.getName());
152 }
153
154 return _service;
155 }
156
157 public void setService(ReleaseLocalService service) {
158 _service = service;
159 }
160
161 private static ReleaseLocalService _service;
162 }