/portal-service/src/com/liferay/portal/service/UserGroupGroupRoleLocalService.java

https://github.com/linyuqun/liferay-portal-1 · Java · 296 lines · 113 code · 34 blank · 149 comment · 0 complexity · 7ca2cb1715aa16f4463a1db9c362acf1 MD5 · raw file

  1. /**
  2. * Copyright (c) 2000-2011 Liferay, Inc. All rights reserved.
  3. *
  4. * This library is free software; you can redistribute it and/or modify it under
  5. * the terms of the GNU Lesser General Public License as published by the Free
  6. * Software Foundation; either version 2.1 of the License, or (at your option)
  7. * any later version.
  8. *
  9. * This library is distributed in the hope that it will be useful, but WITHOUT
  10. * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
  11. * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
  12. * details.
  13. */
  14. package com.liferay.portal.service;
  15. import com.liferay.portal.kernel.exception.PortalException;
  16. import com.liferay.portal.kernel.exception.SystemException;
  17. import com.liferay.portal.kernel.transaction.Isolation;
  18. import com.liferay.portal.kernel.transaction.Propagation;
  19. import com.liferay.portal.kernel.transaction.Transactional;
  20. /**
  21. * The interface for the user group group role local service.
  22. *
  23. * <p>
  24. * This is a local service. Methods of this service will not have security checks based on the propagated JAAS credentials because this service can only be accessed from within the same VM.
  25. * </p>
  26. *
  27. * @author Brian Wing Shun Chan
  28. * @see UserGroupGroupRoleLocalServiceUtil
  29. * @see com.liferay.portal.service.base.UserGroupGroupRoleLocalServiceBaseImpl
  30. * @see com.liferay.portal.service.impl.UserGroupGroupRoleLocalServiceImpl
  31. * @generated
  32. */
  33. @Transactional(isolation = Isolation.PORTAL, rollbackFor = {
  34. PortalException.class, SystemException.class})
  35. public interface UserGroupGroupRoleLocalService
  36. extends PersistedModelLocalService {
  37. /*
  38. * NOTE FOR DEVELOPERS:
  39. *
  40. * Never modify or reference this interface directly. Always use {@link UserGroupGroupRoleLocalServiceUtil} to access the user group group role local service. Add custom service methods to {@link com.liferay.portal.service.impl.UserGroupGroupRoleLocalServiceImpl} and rerun ServiceBuilder to automatically copy the method declarations to this interface.
  41. */
  42. /**
  43. * Adds the user group group role to the database. Also notifies the appropriate model listeners.
  44. *
  45. * @param userGroupGroupRole the user group group role
  46. * @return the user group group role that was added
  47. * @throws SystemException if a system exception occurred
  48. */
  49. public com.liferay.portal.model.UserGroupGroupRole addUserGroupGroupRole(
  50. com.liferay.portal.model.UserGroupGroupRole userGroupGroupRole)
  51. throws com.liferay.portal.kernel.exception.SystemException;
  52. /**
  53. * Creates a new user group group role with the primary key. Does not add the user group group role to the database.
  54. *
  55. * @param userGroupGroupRolePK the primary key for the new user group group role
  56. * @return the new user group group role
  57. */
  58. public com.liferay.portal.model.UserGroupGroupRole createUserGroupGroupRole(
  59. com.liferay.portal.service.persistence.UserGroupGroupRolePK userGroupGroupRolePK);
  60. /**
  61. * Deletes the user group group role with the primary key from the database. Also notifies the appropriate model listeners.
  62. *
  63. * @param userGroupGroupRolePK the primary key of the user group group role
  64. * @throws PortalException if a user group group role with the primary key could not be found
  65. * @throws SystemException if a system exception occurred
  66. */
  67. public void deleteUserGroupGroupRole(
  68. com.liferay.portal.service.persistence.UserGroupGroupRolePK userGroupGroupRolePK)
  69. throws com.liferay.portal.kernel.exception.PortalException,
  70. com.liferay.portal.kernel.exception.SystemException;
  71. /**
  72. * Deletes the user group group role from the database. Also notifies the appropriate model listeners.
  73. *
  74. * @param userGroupGroupRole the user group group role
  75. * @throws SystemException if a system exception occurred
  76. */
  77. public void deleteUserGroupGroupRole(
  78. com.liferay.portal.model.UserGroupGroupRole userGroupGroupRole)
  79. throws com.liferay.portal.kernel.exception.SystemException;
  80. /**
  81. * Performs a dynamic query on the database and returns the matching rows.
  82. *
  83. * @param dynamicQuery the dynamic query
  84. * @return the matching rows
  85. * @throws SystemException if a system exception occurred
  86. */
  87. @SuppressWarnings("rawtypes")
  88. public java.util.List dynamicQuery(
  89. com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
  90. throws com.liferay.portal.kernel.exception.SystemException;
  91. /**
  92. * Performs a dynamic query on the database and returns a range of the matching rows.
  93. *
  94. * <p>
  95. * 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.
  96. * </p>
  97. *
  98. * @param dynamicQuery the dynamic query
  99. * @param start the lower bound of the range of model instances
  100. * @param end the upper bound of the range of model instances (not inclusive)
  101. * @return the range of matching rows
  102. * @throws SystemException if a system exception occurred
  103. */
  104. @SuppressWarnings("rawtypes")
  105. public java.util.List dynamicQuery(
  106. com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
  107. int end) throws com.liferay.portal.kernel.exception.SystemException;
  108. /**
  109. * Performs a dynamic query on the database and returns an ordered range of the matching rows.
  110. *
  111. * <p>
  112. * 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.
  113. * </p>
  114. *
  115. * @param dynamicQuery the dynamic query
  116. * @param start the lower bound of the range of model instances
  117. * @param end the upper bound of the range of model instances (not inclusive)
  118. * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
  119. * @return the ordered range of matching rows
  120. * @throws SystemException if a system exception occurred
  121. */
  122. @SuppressWarnings("rawtypes")
  123. public java.util.List dynamicQuery(
  124. com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
  125. int end,
  126. com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
  127. throws com.liferay.portal.kernel.exception.SystemException;
  128. /**
  129. * Returns the number of rows that match the dynamic query.
  130. *
  131. * @param dynamicQuery the dynamic query
  132. * @return the number of rows that match the dynamic query
  133. * @throws SystemException if a system exception occurred
  134. */
  135. public long dynamicQueryCount(
  136. com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
  137. throws com.liferay.portal.kernel.exception.SystemException;
  138. @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
  139. public com.liferay.portal.model.UserGroupGroupRole fetchUserGroupGroupRole(
  140. com.liferay.portal.service.persistence.UserGroupGroupRolePK userGroupGroupRolePK)
  141. throws com.liferay.portal.kernel.exception.SystemException;
  142. /**
  143. * Returns the user group group role with the primary key.
  144. *
  145. * @param userGroupGroupRolePK the primary key of the user group group role
  146. * @return the user group group role
  147. * @throws PortalException if a user group group role with the primary key could not be found
  148. * @throws SystemException if a system exception occurred
  149. */
  150. @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
  151. public com.liferay.portal.model.UserGroupGroupRole getUserGroupGroupRole(
  152. com.liferay.portal.service.persistence.UserGroupGroupRolePK userGroupGroupRolePK)
  153. throws com.liferay.portal.kernel.exception.PortalException,
  154. com.liferay.portal.kernel.exception.SystemException;
  155. @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
  156. public com.liferay.portal.model.PersistedModel getPersistedModel(
  157. java.io.Serializable primaryKeyObj)
  158. throws com.liferay.portal.kernel.exception.PortalException,
  159. com.liferay.portal.kernel.exception.SystemException;
  160. /**
  161. * Returns a range of all the user group group roles.
  162. *
  163. * <p>
  164. * 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.
  165. * </p>
  166. *
  167. * @param start the lower bound of the range of user group group roles
  168. * @param end the upper bound of the range of user group group roles (not inclusive)
  169. * @return the range of user group group roles
  170. * @throws SystemException if a system exception occurred
  171. */
  172. @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
  173. public java.util.List<com.liferay.portal.model.UserGroupGroupRole> getUserGroupGroupRoles(
  174. int start, int end)
  175. throws com.liferay.portal.kernel.exception.SystemException;
  176. /**
  177. * Returns the number of user group group roles.
  178. *
  179. * @return the number of user group group roles
  180. * @throws SystemException if a system exception occurred
  181. */
  182. @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
  183. public int getUserGroupGroupRolesCount()
  184. throws com.liferay.portal.kernel.exception.SystemException;
  185. /**
  186. * Updates the user group group role in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
  187. *
  188. * @param userGroupGroupRole the user group group role
  189. * @return the user group group role that was updated
  190. * @throws SystemException if a system exception occurred
  191. */
  192. public com.liferay.portal.model.UserGroupGroupRole updateUserGroupGroupRole(
  193. com.liferay.portal.model.UserGroupGroupRole userGroupGroupRole)
  194. throws com.liferay.portal.kernel.exception.SystemException;
  195. /**
  196. * Updates the user group group role in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
  197. *
  198. * @param userGroupGroupRole the user group group role
  199. * @param merge whether to merge the user group group role with the current session. See {@link com.liferay.portal.service.persistence.BatchSession#update(com.liferay.portal.kernel.dao.orm.Session, com.liferay.portal.model.BaseModel, boolean)} for an explanation.
  200. * @return the user group group role that was updated
  201. * @throws SystemException if a system exception occurred
  202. */
  203. public com.liferay.portal.model.UserGroupGroupRole updateUserGroupGroupRole(
  204. com.liferay.portal.model.UserGroupGroupRole userGroupGroupRole,
  205. boolean merge)
  206. throws com.liferay.portal.kernel.exception.SystemException;
  207. /**
  208. * Returns the Spring bean ID for this bean.
  209. *
  210. * @return the Spring bean ID for this bean
  211. */
  212. public java.lang.String getBeanIdentifier();
  213. /**
  214. * Sets the Spring bean ID for this bean.
  215. *
  216. * @param beanIdentifier the Spring bean ID for this bean
  217. */
  218. public void setBeanIdentifier(java.lang.String beanIdentifier);
  219. public void addUserGroupGroupRoles(long userGroupId, long groupId,
  220. long[] roleIds)
  221. throws com.liferay.portal.kernel.exception.PortalException,
  222. com.liferay.portal.kernel.exception.SystemException;
  223. public void addUserGroupGroupRoles(long[] userGroupIds, long groupId,
  224. long roleId)
  225. throws com.liferay.portal.kernel.exception.PortalException,
  226. com.liferay.portal.kernel.exception.SystemException;
  227. public void deleteUserGroupGroupRoles(long userGroupId, long groupId,
  228. long[] roleIds)
  229. throws com.liferay.portal.kernel.exception.SystemException;
  230. public void deleteUserGroupGroupRoles(long userGroupId, long[] groupIds)
  231. throws com.liferay.portal.kernel.exception.SystemException;
  232. public void deleteUserGroupGroupRoles(long[] userGroupIds, long groupId)
  233. throws com.liferay.portal.kernel.exception.SystemException;
  234. public void deleteUserGroupGroupRoles(long[] userGroupIds, long groupId,
  235. long roleId) throws com.liferay.portal.kernel.exception.SystemException;
  236. public void deleteUserGroupGroupRolesByGroupId(long groupId)
  237. throws com.liferay.portal.kernel.exception.SystemException;
  238. public void deleteUserGroupGroupRolesByRoleId(long roleId)
  239. throws com.liferay.portal.kernel.exception.SystemException;
  240. public void deleteUserGroupGroupRolesByUserGroupId(long userGroupId)
  241. throws com.liferay.portal.kernel.exception.SystemException;
  242. @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
  243. public java.util.List<com.liferay.portal.model.UserGroupGroupRole> getUserGroupGroupRoles(
  244. long userGroupId)
  245. throws com.liferay.portal.kernel.exception.SystemException;
  246. @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
  247. public java.util.List<com.liferay.portal.model.UserGroupGroupRole> getUserGroupGroupRoles(
  248. long userGroupId, long groupId)
  249. throws com.liferay.portal.kernel.exception.SystemException;
  250. @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
  251. public java.util.List<com.liferay.portal.model.UserGroupGroupRole> getUserGroupGroupRolesByGroupAndRole(
  252. long groupId, long roleId)
  253. throws com.liferay.portal.kernel.exception.SystemException;
  254. @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
  255. public boolean hasUserGroupGroupRole(long userGroupId, long groupId,
  256. long roleId) throws com.liferay.portal.kernel.exception.SystemException;
  257. @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
  258. public boolean hasUserGroupGroupRole(long userGroupId, long groupId,
  259. java.lang.String roleName)
  260. throws com.liferay.portal.kernel.exception.PortalException,
  261. com.liferay.portal.kernel.exception.SystemException;
  262. }