1
14
15 package com.liferay.portal.service;
16
17 import com.liferay.portal.kernel.annotation.Isolation;
18 import com.liferay.portal.kernel.annotation.Propagation;
19 import com.liferay.portal.kernel.annotation.Transactional;
20 import com.liferay.portal.kernel.exception.PortalException;
21 import com.liferay.portal.kernel.exception.SystemException;
22
23
47 @Transactional(isolation = Isolation.PORTAL, rollbackFor = {
48 PortalException.class, SystemException.class})
49 public interface UserGroupLocalService {
50 public com.liferay.portal.model.UserGroup addUserGroup(
51 com.liferay.portal.model.UserGroup userGroup)
52 throws com.liferay.portal.kernel.exception.SystemException;
53
54 public com.liferay.portal.model.UserGroup createUserGroup(long userGroupId);
55
56 public void deleteUserGroup(long userGroupId)
57 throws com.liferay.portal.kernel.exception.PortalException,
58 com.liferay.portal.kernel.exception.SystemException;
59
60 public void deleteUserGroup(com.liferay.portal.model.UserGroup userGroup)
61 throws com.liferay.portal.kernel.exception.SystemException;
62
63 public java.util.List<Object> dynamicQuery(
64 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
65 throws com.liferay.portal.kernel.exception.SystemException;
66
67 public java.util.List<Object> dynamicQuery(
68 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
69 int end) throws com.liferay.portal.kernel.exception.SystemException;
70
71 public java.util.List<Object> dynamicQuery(
72 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
73 int end,
74 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
75 throws com.liferay.portal.kernel.exception.SystemException;
76
77 public int dynamicQueryCount(
78 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
79 throws com.liferay.portal.kernel.exception.SystemException;
80
81 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
82 public com.liferay.portal.model.UserGroup getUserGroup(long userGroupId)
83 throws com.liferay.portal.kernel.exception.PortalException,
84 com.liferay.portal.kernel.exception.SystemException;
85
86 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
87 public java.util.List<com.liferay.portal.model.UserGroup> getUserGroups(
88 int start, int end)
89 throws com.liferay.portal.kernel.exception.SystemException;
90
91 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
92 public int getUserGroupsCount()
93 throws com.liferay.portal.kernel.exception.SystemException;
94
95 public com.liferay.portal.model.UserGroup updateUserGroup(
96 com.liferay.portal.model.UserGroup userGroup)
97 throws com.liferay.portal.kernel.exception.SystemException;
98
99 public com.liferay.portal.model.UserGroup updateUserGroup(
100 com.liferay.portal.model.UserGroup userGroup, boolean merge)
101 throws com.liferay.portal.kernel.exception.SystemException;
102
103 public void addGroupUserGroups(long groupId, long[] userGroupIds)
104 throws com.liferay.portal.kernel.exception.SystemException;
105
106 public com.liferay.portal.model.UserGroup addUserGroup(long userId,
107 long companyId, java.lang.String name, java.lang.String description)
108 throws com.liferay.portal.kernel.exception.PortalException,
109 com.liferay.portal.kernel.exception.SystemException;
110
111 public void clearUserUserGroups(long userId)
112 throws com.liferay.portal.kernel.exception.SystemException;
113
114 public void copyUserGroupLayouts(long userGroupId, long[] userIds)
115 throws com.liferay.portal.kernel.exception.PortalException,
116 com.liferay.portal.kernel.exception.SystemException;
117
118 public void copyUserGroupLayouts(long[] userGroupIds, long userId)
119 throws com.liferay.portal.kernel.exception.PortalException,
120 com.liferay.portal.kernel.exception.SystemException;
121
122 public void copyUserGroupLayouts(long userGroupId, long userId)
123 throws com.liferay.portal.kernel.exception.PortalException,
124 com.liferay.portal.kernel.exception.SystemException;
125
126 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
127 public com.liferay.portal.model.UserGroup getUserGroup(long companyId,
128 java.lang.String name)
129 throws com.liferay.portal.kernel.exception.PortalException,
130 com.liferay.portal.kernel.exception.SystemException;
131
132 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
133 public java.util.List<com.liferay.portal.model.UserGroup> getUserGroups(
134 long companyId)
135 throws com.liferay.portal.kernel.exception.SystemException;
136
137 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
138 public java.util.List<com.liferay.portal.model.UserGroup> getUserGroups(
139 long[] userGroupIds)
140 throws com.liferay.portal.kernel.exception.PortalException,
141 com.liferay.portal.kernel.exception.SystemException;
142
143 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
144 public java.util.List<com.liferay.portal.model.UserGroup> getUserUserGroups(
145 long userId) throws com.liferay.portal.kernel.exception.SystemException;
146
147 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
148 public boolean hasGroupUserGroup(long groupId, long userGroupId)
149 throws com.liferay.portal.kernel.exception.SystemException;
150
151 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
152 public java.util.List<com.liferay.portal.model.UserGroup> search(
153 long companyId, java.lang.String name, java.lang.String description,
154 java.util.LinkedHashMap<String, Object> params, int start, int end,
155 com.liferay.portal.kernel.util.OrderByComparator obc)
156 throws com.liferay.portal.kernel.exception.SystemException;
157
158 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
159 public int searchCount(long companyId, java.lang.String name,
160 java.lang.String description,
161 java.util.LinkedHashMap<String, Object> params)
162 throws com.liferay.portal.kernel.exception.SystemException;
163
164 public void setUserUserGroups(long userId, long[] userGroupIds)
165 throws com.liferay.portal.kernel.exception.PortalException,
166 com.liferay.portal.kernel.exception.SystemException;
167
168 public void unsetGroupUserGroups(long groupId, long[] userGroupIds)
169 throws com.liferay.portal.kernel.exception.SystemException;
170
171 public com.liferay.portal.model.UserGroup updateUserGroup(long companyId,
172 long userGroupId, java.lang.String name, java.lang.String description)
173 throws com.liferay.portal.kernel.exception.PortalException,
174 com.liferay.portal.kernel.exception.SystemException;
175 }