001
014
015 package com.liferay.portal.service;
016
017 import com.liferay.portal.kernel.exception.PortalException;
018 import com.liferay.portal.kernel.exception.SystemException;
019 import com.liferay.portal.kernel.jsonwebservice.JSONWebService;
020 import com.liferay.portal.kernel.transaction.Isolation;
021 import com.liferay.portal.kernel.transaction.Propagation;
022 import com.liferay.portal.kernel.transaction.Transactional;
023
024
037 @JSONWebService
038 @Transactional(isolation = Isolation.PORTAL, rollbackFor = {
039 PortalException.class, SystemException.class})
040 public interface GroupService {
041
046 public com.liferay.portal.model.Group addGroup(long liveGroupId,
047 java.lang.String name, java.lang.String description, int type,
048 java.lang.String friendlyURL, boolean active,
049 com.liferay.portal.service.ServiceContext serviceContext)
050 throws com.liferay.portal.kernel.exception.PortalException,
051 com.liferay.portal.kernel.exception.SystemException;
052
053 public com.liferay.portal.model.Group addGroup(java.lang.String name,
054 java.lang.String description, int type, java.lang.String friendlyURL,
055 boolean active, com.liferay.portal.service.ServiceContext serviceContext)
056 throws com.liferay.portal.kernel.exception.PortalException,
057 com.liferay.portal.kernel.exception.SystemException;
058
059 public void addRoleGroups(long roleId, long[] groupIds)
060 throws com.liferay.portal.kernel.exception.PortalException,
061 com.liferay.portal.kernel.exception.SystemException;
062
063 public void deleteGroup(long groupId)
064 throws com.liferay.portal.kernel.exception.PortalException,
065 com.liferay.portal.kernel.exception.SystemException;
066
067 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
068 public com.liferay.portal.model.Group getGroup(long groupId)
069 throws com.liferay.portal.kernel.exception.PortalException,
070 com.liferay.portal.kernel.exception.SystemException;
071
072 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
073 public com.liferay.portal.model.Group getGroup(long companyId,
074 java.lang.String name)
075 throws com.liferay.portal.kernel.exception.PortalException,
076 com.liferay.portal.kernel.exception.SystemException;
077
078 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
079 public java.util.List<com.liferay.portal.model.Group> getManageableGroups(
080 java.lang.String actionId, int max)
081 throws com.liferay.portal.kernel.exception.PortalException,
082 com.liferay.portal.kernel.exception.SystemException;
083
084 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
085 public java.util.List<com.liferay.portal.model.Group> getOrganizationsGroups(
086 java.util.List<com.liferay.portal.model.Organization> organizations);
087
088 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
089 public com.liferay.portal.model.Group getUserGroup(long companyId,
090 long userId)
091 throws com.liferay.portal.kernel.exception.PortalException,
092 com.liferay.portal.kernel.exception.SystemException;
093
094 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
095 public java.util.List<com.liferay.portal.model.Group> getUserGroupsGroups(
096 java.util.List<com.liferay.portal.model.UserGroup> userGroups)
097 throws com.liferay.portal.kernel.exception.PortalException,
098 com.liferay.portal.kernel.exception.SystemException;
099
100 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
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
106 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
107 public boolean hasUserGroup(long userId, long groupId)
108 throws com.liferay.portal.kernel.exception.SystemException;
109
110 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
111 public java.util.List<com.liferay.portal.model.Group> search(
112 long companyId, java.lang.String name, java.lang.String description,
113 java.lang.String[] params, int start, int end)
114 throws com.liferay.portal.kernel.exception.SystemException;
115
116 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
117 public int searchCount(long companyId, java.lang.String name,
118 java.lang.String description, java.lang.String[] params)
119 throws com.liferay.portal.kernel.exception.SystemException;
120
121 public void setRoleGroups(long roleId, long[] groupIds)
122 throws com.liferay.portal.kernel.exception.PortalException,
123 com.liferay.portal.kernel.exception.SystemException;
124
125 public void unsetRoleGroups(long roleId, long[] groupIds)
126 throws com.liferay.portal.kernel.exception.PortalException,
127 com.liferay.portal.kernel.exception.SystemException;
128
129 public com.liferay.portal.model.Group updateFriendlyURL(long groupId,
130 java.lang.String friendlyURL)
131 throws com.liferay.portal.kernel.exception.PortalException,
132 com.liferay.portal.kernel.exception.SystemException;
133
134 public com.liferay.portal.model.Group updateGroup(long groupId,
135 java.lang.String typeSettings)
136 throws com.liferay.portal.kernel.exception.PortalException,
137 com.liferay.portal.kernel.exception.SystemException;
138
139 public com.liferay.portal.model.Group updateGroup(long groupId,
140 java.lang.String name, java.lang.String description, int type,
141 java.lang.String friendlyURL, boolean active,
142 com.liferay.portal.service.ServiceContext serviceContext)
143 throws com.liferay.portal.kernel.exception.PortalException,
144 com.liferay.portal.kernel.exception.SystemException;
145
146 public com.liferay.portal.model.Group updateWorkflow(long groupId,
147 boolean workflowEnabled, int workflowStages,
148 java.lang.String workflowRoleNames)
149 throws com.liferay.portal.kernel.exception.PortalException,
150 com.liferay.portal.kernel.exception.SystemException;
151 }