001
014
015 package com.liferay.portal.service;
016
017
026 public class GroupServiceWrapper implements GroupService {
027 public GroupServiceWrapper(GroupService groupService) {
028 _groupService = groupService;
029 }
030
031 public com.liferay.portal.model.Group addGroup(java.lang.String name,
032 java.lang.String description, int type, java.lang.String friendlyURL,
033 boolean active, com.liferay.portal.service.ServiceContext serviceContext)
034 throws com.liferay.portal.kernel.exception.PortalException,
035 com.liferay.portal.kernel.exception.SystemException {
036 return _groupService.addGroup(name, description, type, friendlyURL,
037 active, serviceContext);
038 }
039
040 public com.liferay.portal.model.Group addGroup(long liveGroupId,
041 java.lang.String name, java.lang.String description, int type,
042 java.lang.String friendlyURL, boolean active,
043 com.liferay.portal.service.ServiceContext serviceContext)
044 throws com.liferay.portal.kernel.exception.PortalException,
045 com.liferay.portal.kernel.exception.SystemException {
046 return _groupService.addGroup(liveGroupId, name, description, type,
047 friendlyURL, active, serviceContext);
048 }
049
050 public void addRoleGroups(long roleId, long[] groupIds)
051 throws com.liferay.portal.kernel.exception.PortalException,
052 com.liferay.portal.kernel.exception.SystemException {
053 _groupService.addRoleGroups(roleId, groupIds);
054 }
055
056 public void deleteGroup(long groupId)
057 throws com.liferay.portal.kernel.exception.PortalException,
058 com.liferay.portal.kernel.exception.SystemException {
059 _groupService.deleteGroup(groupId);
060 }
061
062 public com.liferay.portal.model.Group getGroup(long groupId)
063 throws com.liferay.portal.kernel.exception.PortalException,
064 com.liferay.portal.kernel.exception.SystemException {
065 return _groupService.getGroup(groupId);
066 }
067
068 public com.liferay.portal.model.Group getGroup(long companyId,
069 java.lang.String name)
070 throws com.liferay.portal.kernel.exception.PortalException,
071 com.liferay.portal.kernel.exception.SystemException {
072 return _groupService.getGroup(companyId, name);
073 }
074
075 public java.util.List<com.liferay.portal.model.Group> getManageableGroups(
076 java.lang.String actionId, int max)
077 throws com.liferay.portal.kernel.exception.PortalException,
078 com.liferay.portal.kernel.exception.SystemException {
079 return _groupService.getManageableGroups(actionId, max);
080 }
081
082 public java.util.List<com.liferay.portal.model.Group> getOrganizationsGroups(
083 java.util.List<com.liferay.portal.model.Organization> organizations) {
084 return _groupService.getOrganizationsGroups(organizations);
085 }
086
087 public com.liferay.portal.model.Group getUserGroup(long companyId,
088 long userId)
089 throws com.liferay.portal.kernel.exception.PortalException,
090 com.liferay.portal.kernel.exception.SystemException {
091 return _groupService.getUserGroup(companyId, userId);
092 }
093
094 public java.util.List<com.liferay.portal.model.Group> getUserGroupsGroups(
095 java.util.List<com.liferay.portal.model.UserGroup> userGroups)
096 throws com.liferay.portal.kernel.exception.PortalException,
097 com.liferay.portal.kernel.exception.SystemException {
098 return _groupService.getUserGroupsGroups(userGroups);
099 }
100
101 public java.util.List<com.liferay.portal.model.Group> getUserOrganizationsGroups(
102 long userId, int start, int end)
103 throws com.liferay.portal.kernel.exception.PortalException,
104 com.liferay.portal.kernel.exception.SystemException {
105 return _groupService.getUserOrganizationsGroups(userId, start, end);
106 }
107
108 public boolean hasUserGroup(long userId, long groupId)
109 throws com.liferay.portal.kernel.exception.SystemException {
110 return _groupService.hasUserGroup(userId, groupId);
111 }
112
113 public java.util.List<com.liferay.portal.model.Group> search(
114 long companyId, java.lang.String name, java.lang.String description,
115 java.lang.String[] params, int start, int end)
116 throws com.liferay.portal.kernel.exception.SystemException {
117 return _groupService.search(companyId, name, description, params,
118 start, end);
119 }
120
121 public int searchCount(long companyId, java.lang.String name,
122 java.lang.String description, java.lang.String[] params)
123 throws com.liferay.portal.kernel.exception.SystemException {
124 return _groupService.searchCount(companyId, name, description, params);
125 }
126
127 public void setRoleGroups(long roleId, long[] groupIds)
128 throws com.liferay.portal.kernel.exception.PortalException,
129 com.liferay.portal.kernel.exception.SystemException {
130 _groupService.setRoleGroups(roleId, groupIds);
131 }
132
133 public void unsetRoleGroups(long roleId, long[] groupIds)
134 throws com.liferay.portal.kernel.exception.PortalException,
135 com.liferay.portal.kernel.exception.SystemException {
136 _groupService.unsetRoleGroups(roleId, groupIds);
137 }
138
139 public com.liferay.portal.model.Group updateFriendlyURL(long groupId,
140 java.lang.String friendlyURL)
141 throws com.liferay.portal.kernel.exception.PortalException,
142 com.liferay.portal.kernel.exception.SystemException {
143 return _groupService.updateFriendlyURL(groupId, friendlyURL);
144 }
145
146 public com.liferay.portal.model.Group updateGroup(long groupId,
147 java.lang.String name, java.lang.String description, int type,
148 java.lang.String friendlyURL, boolean active,
149 com.liferay.portal.service.ServiceContext serviceContext)
150 throws com.liferay.portal.kernel.exception.PortalException,
151 com.liferay.portal.kernel.exception.SystemException {
152 return _groupService.updateGroup(groupId, name, description, type,
153 friendlyURL, active, serviceContext);
154 }
155
156 public com.liferay.portal.model.Group updateGroup(long groupId,
157 java.lang.String typeSettings)
158 throws com.liferay.portal.kernel.exception.PortalException,
159 com.liferay.portal.kernel.exception.SystemException {
160 return _groupService.updateGroup(groupId, typeSettings);
161 }
162
163 public com.liferay.portal.model.Group updateWorkflow(long groupId,
164 boolean workflowEnabled, int workflowStages,
165 java.lang.String workflowRoleNames)
166 throws com.liferay.portal.kernel.exception.PortalException,
167 com.liferay.portal.kernel.exception.SystemException {
168 return _groupService.updateWorkflow(groupId, workflowEnabled,
169 workflowStages, workflowRoleNames);
170 }
171
172 public GroupService getWrappedGroupService() {
173 return _groupService;
174 }
175
176 private GroupService _groupService;
177 }