001 /** 002 * Copyright (c) 2000-present Liferay, Inc. All rights reserved. 003 * 004 * This library is free software; you can redistribute it and/or modify it under 005 * the terms of the GNU Lesser General Public License as published by the Free 006 * Software Foundation; either version 2.1 of the License, or (at your option) 007 * any later version. 008 * 009 * This library is distributed in the hope that it will be useful, but WITHOUT 010 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS 011 * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more 012 * details. 013 */ 014 015 package com.liferay.portlet.mobiledevicerules.service; 016 017 import aQute.bnd.annotation.ProviderType; 018 019 import com.liferay.portal.kernel.exception.PortalException; 020 import com.liferay.portal.kernel.exception.SystemException; 021 import com.liferay.portal.kernel.search.IndexableType; 022 import com.liferay.portal.kernel.transaction.Isolation; 023 import com.liferay.portal.kernel.transaction.Propagation; 024 import com.liferay.portal.kernel.transaction.Transactional; 025 import com.liferay.portal.model.SystemEventConstants; 026 import com.liferay.portal.service.BaseLocalService; 027 import com.liferay.portal.service.PersistedModelLocalService; 028 029 /** 030 * Provides the local service interface for MDRRuleGroupInstance. Methods of this 031 * service will not have security checks based on the propagated JAAS 032 * credentials because this service can only be accessed from within the same 033 * VM. 034 * 035 * @author Edward C. Han 036 * @see MDRRuleGroupInstanceLocalServiceUtil 037 * @see com.liferay.portlet.mobiledevicerules.service.base.MDRRuleGroupInstanceLocalServiceBaseImpl 038 * @see com.liferay.portlet.mobiledevicerules.service.impl.MDRRuleGroupInstanceLocalServiceImpl 039 * @generated 040 */ 041 @ProviderType 042 @Transactional(isolation = Isolation.PORTAL, rollbackFor = { 043 PortalException.class, SystemException.class}) 044 public interface MDRRuleGroupInstanceLocalService extends BaseLocalService, 045 PersistedModelLocalService { 046 /* 047 * NOTE FOR DEVELOPERS: 048 * 049 * Never modify or reference this interface directly. Always use {@link MDRRuleGroupInstanceLocalServiceUtil} to access the m d r rule group instance local service. Add custom service methods to {@link com.liferay.portlet.mobiledevicerules.service.impl.MDRRuleGroupInstanceLocalServiceImpl} and rerun ServiceBuilder to automatically copy the method declarations to this interface. 050 */ 051 052 /** 053 * Adds the m d r rule group instance to the database. Also notifies the appropriate model listeners. 054 * 055 * @param mdrRuleGroupInstance the m d r rule group instance 056 * @return the m d r rule group instance that was added 057 */ 058 @com.liferay.portal.kernel.search.Indexable(type = IndexableType.REINDEX) 059 public com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance addMDRRuleGroupInstance( 060 com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance mdrRuleGroupInstance); 061 062 public com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance addRuleGroupInstance( 063 long groupId, java.lang.String className, long classPK, 064 long ruleGroupId, int priority, 065 com.liferay.portal.service.ServiceContext serviceContext) 066 throws com.liferay.portal.kernel.exception.PortalException; 067 068 public com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance addRuleGroupInstance( 069 long groupId, java.lang.String className, long classPK, 070 long ruleGroupId, 071 com.liferay.portal.service.ServiceContext serviceContext) 072 throws com.liferay.portal.kernel.exception.PortalException; 073 074 /** 075 * Creates a new m d r rule group instance with the primary key. Does not add the m d r rule group instance to the database. 076 * 077 * @param ruleGroupInstanceId the primary key for the new m d r rule group instance 078 * @return the new m d r rule group instance 079 */ 080 public com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance createMDRRuleGroupInstance( 081 long ruleGroupInstanceId); 082 083 public void deleteGroupRuleGroupInstances(long groupId); 084 085 /** 086 * Deletes the m d r rule group instance from the database. Also notifies the appropriate model listeners. 087 * 088 * @param mdrRuleGroupInstance the m d r rule group instance 089 * @return the m d r rule group instance that was removed 090 */ 091 @com.liferay.portal.kernel.search.Indexable(type = IndexableType.DELETE) 092 public com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance deleteMDRRuleGroupInstance( 093 com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance mdrRuleGroupInstance); 094 095 /** 096 * Deletes the m d r rule group instance with the primary key from the database. Also notifies the appropriate model listeners. 097 * 098 * @param ruleGroupInstanceId the primary key of the m d r rule group instance 099 * @return the m d r rule group instance that was removed 100 * @throws PortalException if a m d r rule group instance with the primary key could not be found 101 */ 102 @com.liferay.portal.kernel.search.Indexable(type = IndexableType.DELETE) 103 public com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance deleteMDRRuleGroupInstance( 104 long ruleGroupInstanceId) 105 throws com.liferay.portal.kernel.exception.PortalException; 106 107 /** 108 * @throws PortalException 109 */ 110 @Override 111 public com.liferay.portal.model.PersistedModel deletePersistedModel( 112 com.liferay.portal.model.PersistedModel persistedModel) 113 throws com.liferay.portal.kernel.exception.PortalException; 114 115 @com.liferay.portal.kernel.systemevent.SystemEvent(action = SystemEventConstants.ACTION_SKIP, type = SystemEventConstants.TYPE_DELETE) 116 public void deleteRuleGroupInstance( 117 com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance ruleGroupInstance); 118 119 public void deleteRuleGroupInstance(long ruleGroupInstanceId); 120 121 public void deleteRuleGroupInstances(long ruleGroupId); 122 123 public com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery(); 124 125 /** 126 * Performs a dynamic query on the database and returns the matching rows. 127 * 128 * @param dynamicQuery the dynamic query 129 * @return the matching rows 130 */ 131 public <T> java.util.List<T> dynamicQuery( 132 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery); 133 134 /** 135 * Performs a dynamic query on the database and returns a range of the matching rows. 136 * 137 * <p> 138 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.mobiledevicerules.model.impl.MDRRuleGroupInstanceModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. 139 * </p> 140 * 141 * @param dynamicQuery the dynamic query 142 * @param start the lower bound of the range of model instances 143 * @param end the upper bound of the range of model instances (not inclusive) 144 * @return the range of matching rows 145 */ 146 public <T> java.util.List<T> dynamicQuery( 147 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, 148 int end); 149 150 /** 151 * Performs a dynamic query on the database and returns an ordered range of the matching rows. 152 * 153 * <p> 154 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.mobiledevicerules.model.impl.MDRRuleGroupInstanceModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. 155 * </p> 156 * 157 * @param dynamicQuery the dynamic query 158 * @param start the lower bound of the range of model instances 159 * @param end the upper bound of the range of model instances (not inclusive) 160 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 161 * @return the ordered range of matching rows 162 */ 163 public <T> java.util.List<T> dynamicQuery( 164 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, 165 int end, 166 com.liferay.portal.kernel.util.OrderByComparator<T> orderByComparator); 167 168 /** 169 * Returns the number of rows matching the dynamic query. 170 * 171 * @param dynamicQuery the dynamic query 172 * @return the number of rows matching the dynamic query 173 */ 174 public long dynamicQueryCount( 175 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery); 176 177 /** 178 * Returns the number of rows matching the dynamic query. 179 * 180 * @param dynamicQuery the dynamic query 181 * @param projection the projection to apply to the query 182 * @return the number of rows matching the dynamic query 183 */ 184 public long dynamicQueryCount( 185 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, 186 com.liferay.portal.kernel.dao.orm.Projection projection); 187 188 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true) 189 public com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance fetchMDRRuleGroupInstance( 190 long ruleGroupInstanceId); 191 192 /** 193 * Returns the m d r rule group instance matching the UUID and group. 194 * 195 * @param uuid the m d r rule group instance's UUID 196 * @param groupId the primary key of the group 197 * @return the matching m d r rule group instance, or <code>null</code> if a matching m d r rule group instance could not be found 198 */ 199 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true) 200 public com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance fetchMDRRuleGroupInstanceByUuidAndGroupId( 201 java.lang.String uuid, long groupId); 202 203 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true) 204 public com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance fetchRuleGroupInstance( 205 java.lang.String className, long classPK, long ruleGroupId); 206 207 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true) 208 public com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance fetchRuleGroupInstance( 209 long ruleGroupInstanceId); 210 211 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true) 212 public com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery getActionableDynamicQuery(); 213 214 /** 215 * Returns the Spring bean ID for this bean. 216 * 217 * @return the Spring bean ID for this bean 218 */ 219 public java.lang.String getBeanIdentifier(); 220 221 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true) 222 public com.liferay.portal.kernel.dao.orm.ExportActionableDynamicQuery getExportActionableDynamicQuery( 223 com.liferay.portal.kernel.lar.PortletDataContext portletDataContext); 224 225 /** 226 * Returns the m d r rule group instance with the primary key. 227 * 228 * @param ruleGroupInstanceId the primary key of the m d r rule group instance 229 * @return the m d r rule group instance 230 * @throws PortalException if a m d r rule group instance with the primary key could not be found 231 */ 232 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true) 233 public com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance getMDRRuleGroupInstance( 234 long ruleGroupInstanceId) 235 throws com.liferay.portal.kernel.exception.PortalException; 236 237 /** 238 * Returns the m d r rule group instance matching the UUID and group. 239 * 240 * @param uuid the m d r rule group instance's UUID 241 * @param groupId the primary key of the group 242 * @return the matching m d r rule group instance 243 * @throws PortalException if a matching m d r rule group instance could not be found 244 */ 245 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true) 246 public com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance getMDRRuleGroupInstanceByUuidAndGroupId( 247 java.lang.String uuid, long groupId) 248 throws com.liferay.portal.kernel.exception.PortalException; 249 250 /** 251 * Returns a range of all the m d r rule group instances. 252 * 253 * <p> 254 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.mobiledevicerules.model.impl.MDRRuleGroupInstanceModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. 255 * </p> 256 * 257 * @param start the lower bound of the range of m d r rule group instances 258 * @param end the upper bound of the range of m d r rule group instances (not inclusive) 259 * @return the range of m d r rule group instances 260 */ 261 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true) 262 public java.util.List<com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance> getMDRRuleGroupInstances( 263 int start, int end); 264 265 /** 266 * Returns all the m d r rule group instances matching the UUID and company. 267 * 268 * @param uuid the UUID of the m d r rule group instances 269 * @param companyId the primary key of the company 270 * @return the matching m d r rule group instances, or an empty list if no matches were found 271 */ 272 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true) 273 public java.util.List<com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance> getMDRRuleGroupInstancesByUuidAndCompanyId( 274 java.lang.String uuid, long companyId); 275 276 /** 277 * Returns a range of m d r rule group instances matching the UUID and company. 278 * 279 * @param uuid the UUID of the m d r rule group instances 280 * @param companyId the primary key of the company 281 * @param start the lower bound of the range of m d r rule group instances 282 * @param end the upper bound of the range of m d r rule group instances (not inclusive) 283 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 284 * @return the range of matching m d r rule group instances, or an empty list if no matches were found 285 */ 286 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true) 287 public java.util.List<com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance> getMDRRuleGroupInstancesByUuidAndCompanyId( 288 java.lang.String uuid, long companyId, int start, int end, 289 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance> orderByComparator); 290 291 /** 292 * Returns the number of m d r rule group instances. 293 * 294 * @return the number of m d r rule group instances 295 */ 296 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true) 297 public int getMDRRuleGroupInstancesCount(); 298 299 @Override 300 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true) 301 public com.liferay.portal.model.PersistedModel getPersistedModel( 302 java.io.Serializable primaryKeyObj) 303 throws com.liferay.portal.kernel.exception.PortalException; 304 305 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true) 306 public com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance getRuleGroupInstance( 307 java.lang.String className, long classPK, long ruleGroupId) 308 throws com.liferay.portal.kernel.exception.PortalException; 309 310 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true) 311 public com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance getRuleGroupInstance( 312 long ruleGroupInstanceId) 313 throws com.liferay.portal.kernel.exception.PortalException; 314 315 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true) 316 public java.util.List<com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance> getRuleGroupInstances( 317 java.lang.String className, long classPK); 318 319 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true) 320 public java.util.List<com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance> getRuleGroupInstances( 321 java.lang.String className, long classPK, int start, int end, 322 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance> orderByComparator); 323 324 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true) 325 public java.util.List<com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance> getRuleGroupInstances( 326 long ruleGroupId); 327 328 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true) 329 public java.util.List<com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance> getRuleGroupInstances( 330 long ruleGroupId, int start, int end); 331 332 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true) 333 public int getRuleGroupInstancesCount(java.lang.String className, 334 long classPK); 335 336 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true) 337 public int getRuleGroupInstancesCount(long ruleGroupId); 338 339 /** 340 * Sets the Spring bean ID for this bean. 341 * 342 * @param beanIdentifier the Spring bean ID for this bean 343 */ 344 public void setBeanIdentifier(java.lang.String beanIdentifier); 345 346 /** 347 * Updates the m d r rule group instance in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners. 348 * 349 * @param mdrRuleGroupInstance the m d r rule group instance 350 * @return the m d r rule group instance that was updated 351 */ 352 @com.liferay.portal.kernel.search.Indexable(type = IndexableType.REINDEX) 353 public com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance updateMDRRuleGroupInstance( 354 com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance mdrRuleGroupInstance); 355 356 public com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance updateRuleGroupInstance( 357 long ruleGroupInstanceId, int priority) 358 throws com.liferay.portal.kernel.exception.PortalException; 359 }