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 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 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) throws PortalException; 105 106 /** 107 * @throws PortalException 108 */ 109 @Override 110 public com.liferay.portal.model.PersistedModel deletePersistedModel( 111 com.liferay.portal.model.PersistedModel persistedModel) 112 throws PortalException; 113 114 @com.liferay.portal.kernel.systemevent.SystemEvent(action = SystemEventConstants.ACTION_SKIP, type = SystemEventConstants.TYPE_DELETE) 115 public void deleteRuleGroupInstance( 116 com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance ruleGroupInstance); 117 118 public void deleteRuleGroupInstance(long ruleGroupInstanceId); 119 120 public void deleteRuleGroupInstances(long ruleGroupId); 121 122 public com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery(); 123 124 /** 125 * Performs a dynamic query on the database and returns the matching rows. 126 * 127 * @param dynamicQuery the dynamic query 128 * @return the matching rows 129 */ 130 public <T> java.util.List<T> dynamicQuery( 131 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery); 132 133 /** 134 * Performs a dynamic query on the database and returns a range of the matching rows. 135 * 136 * <p> 137 * 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. 138 * </p> 139 * 140 * @param dynamicQuery the dynamic query 141 * @param start the lower bound of the range of model instances 142 * @param end the upper bound of the range of model instances (not inclusive) 143 * @return the range of matching rows 144 */ 145 public <T> java.util.List<T> dynamicQuery( 146 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, 147 int end); 148 149 /** 150 * Performs a dynamic query on the database and returns an ordered range of the matching rows. 151 * 152 * <p> 153 * 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. 154 * </p> 155 * 156 * @param dynamicQuery the dynamic query 157 * @param start the lower bound of the range of model instances 158 * @param end the upper bound of the range of model instances (not inclusive) 159 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 160 * @return the ordered range of matching rows 161 */ 162 public <T> java.util.List<T> dynamicQuery( 163 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, 164 int end, 165 com.liferay.portal.kernel.util.OrderByComparator<T> orderByComparator); 166 167 /** 168 * Returns the number of rows matching the dynamic query. 169 * 170 * @param dynamicQuery the dynamic query 171 * @return the number of rows matching the dynamic query 172 */ 173 public long dynamicQueryCount( 174 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery); 175 176 /** 177 * Returns the number of rows matching the dynamic query. 178 * 179 * @param dynamicQuery the dynamic query 180 * @param projection the projection to apply to the query 181 * @return the number of rows matching the dynamic query 182 */ 183 public long dynamicQueryCount( 184 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, 185 com.liferay.portal.kernel.dao.orm.Projection projection); 186 187 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true) 188 public com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance fetchMDRRuleGroupInstance( 189 long ruleGroupInstanceId); 190 191 /** 192 * Returns the m d r rule group instance matching the UUID and group. 193 * 194 * @param uuid the m d r rule group instance's UUID 195 * @param groupId the primary key of the group 196 * @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 197 */ 198 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true) 199 public com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance fetchMDRRuleGroupInstanceByUuidAndGroupId( 200 java.lang.String uuid, long groupId); 201 202 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true) 203 public com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance fetchRuleGroupInstance( 204 java.lang.String className, long classPK, long ruleGroupId); 205 206 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true) 207 public com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance fetchRuleGroupInstance( 208 long ruleGroupInstanceId); 209 210 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true) 211 public com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery getActionableDynamicQuery(); 212 213 /** 214 * Returns the Spring bean ID for this bean. 215 * 216 * @return the Spring bean ID for this bean 217 */ 218 public java.lang.String getBeanIdentifier(); 219 220 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true) 221 public com.liferay.portal.kernel.dao.orm.ExportActionableDynamicQuery getExportActionableDynamicQuery( 222 com.liferay.portlet.exportimport.lar.PortletDataContext portletDataContext); 223 224 /** 225 * Returns the m d r rule group instance with the primary key. 226 * 227 * @param ruleGroupInstanceId the primary key of the m d r rule group instance 228 * @return the m d r rule group instance 229 * @throws PortalException if a m d r rule group instance with the primary key could not be found 230 */ 231 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true) 232 public com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance getMDRRuleGroupInstance( 233 long ruleGroupInstanceId) throws PortalException; 234 235 /** 236 * Returns the m d r rule group instance matching the UUID and group. 237 * 238 * @param uuid the m d r rule group instance's UUID 239 * @param groupId the primary key of the group 240 * @return the matching m d r rule group instance 241 * @throws PortalException if a matching m d r rule group instance could not be found 242 */ 243 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true) 244 public com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance getMDRRuleGroupInstanceByUuidAndGroupId( 245 java.lang.String uuid, long groupId) throws PortalException; 246 247 /** 248 * Returns a range of all the m d r rule group instances. 249 * 250 * <p> 251 * 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. 252 * </p> 253 * 254 * @param start the lower bound of the range of m d r rule group instances 255 * @param end the upper bound of the range of m d r rule group instances (not inclusive) 256 * @return the range of m d r rule group instances 257 */ 258 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true) 259 public java.util.List<com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance> getMDRRuleGroupInstances( 260 int start, int end); 261 262 /** 263 * Returns all the m d r rule group instances matching the UUID and company. 264 * 265 * @param uuid the UUID of the m d r rule group instances 266 * @param companyId the primary key of the company 267 * @return the matching m d r rule group instances, or an empty list if no matches were found 268 */ 269 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true) 270 public java.util.List<com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance> getMDRRuleGroupInstancesByUuidAndCompanyId( 271 java.lang.String uuid, long companyId); 272 273 /** 274 * Returns a range of m d r rule group instances matching the UUID and company. 275 * 276 * @param uuid the UUID of the m d r rule group instances 277 * @param companyId the primary key of the company 278 * @param start the lower bound of the range of m d r rule group instances 279 * @param end the upper bound of the range of m d r rule group instances (not inclusive) 280 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 281 * @return the range of matching m d r rule group instances, or an empty list if no matches were found 282 */ 283 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true) 284 public java.util.List<com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance> getMDRRuleGroupInstancesByUuidAndCompanyId( 285 java.lang.String uuid, long companyId, int start, int end, 286 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance> orderByComparator); 287 288 /** 289 * Returns the number of m d r rule group instances. 290 * 291 * @return the number of m d r rule group instances 292 */ 293 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true) 294 public int getMDRRuleGroupInstancesCount(); 295 296 @Override 297 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true) 298 public com.liferay.portal.model.PersistedModel getPersistedModel( 299 java.io.Serializable primaryKeyObj) throws PortalException; 300 301 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true) 302 public com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance getRuleGroupInstance( 303 java.lang.String className, long classPK, long ruleGroupId) 304 throws PortalException; 305 306 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true) 307 public com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance getRuleGroupInstance( 308 long ruleGroupInstanceId) throws PortalException; 309 310 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true) 311 public java.util.List<com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance> getRuleGroupInstances( 312 java.lang.String className, long classPK); 313 314 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true) 315 public java.util.List<com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance> getRuleGroupInstances( 316 java.lang.String className, long classPK, int start, int end, 317 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance> orderByComparator); 318 319 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true) 320 public java.util.List<com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance> getRuleGroupInstances( 321 long ruleGroupId); 322 323 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true) 324 public java.util.List<com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance> getRuleGroupInstances( 325 long ruleGroupId, int start, int end); 326 327 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true) 328 public int getRuleGroupInstancesCount(java.lang.String className, 329 long classPK); 330 331 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true) 332 public int getRuleGroupInstancesCount(long ruleGroupId); 333 334 /** 335 * Sets the Spring bean ID for this bean. 336 * 337 * @param beanIdentifier the Spring bean ID for this bean 338 */ 339 public void setBeanIdentifier(java.lang.String beanIdentifier); 340 341 /** 342 * 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. 343 * 344 * @param mdrRuleGroupInstance the m d r rule group instance 345 * @return the m d r rule group instance that was updated 346 */ 347 @com.liferay.portal.kernel.search.Indexable(type = IndexableType.REINDEX) 348 public com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance updateMDRRuleGroupInstance( 349 com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance mdrRuleGroupInstance); 350 351 public com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance updateRuleGroupInstance( 352 long ruleGroupInstanceId, int priority) throws PortalException; 353 }