001    /**
002     * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
003     *
004     * The contents of this file are subject to the terms of the Liferay Enterprise
005     * Subscription License ("License"). You may not use this file except in
006     * compliance with the License. You can obtain a copy of the License by
007     * contacting Liferay, Inc. See the License for the specific language governing
008     * permissions and limitations under the License, including but not limited to
009     * distribution rights of the Software.
010     *
011     *
012     *
013     */
014    
015    package com.liferay.portal.service;
016    
017    import com.liferay.portal.kernel.annotation.Isolation;
018    import com.liferay.portal.kernel.annotation.Propagation;
019    import com.liferay.portal.kernel.annotation.Transactional;
020    import com.liferay.portal.kernel.exception.PortalException;
021    import com.liferay.portal.kernel.exception.SystemException;
022    
023    /**
024     * The interface for the group remote service.
025     *
026     * <p>
027     * Never modify or reference this interface directly. Always use {@link GroupServiceUtil} to access the group remote service. Add custom service methods to {@link com.liferay.portal.service.impl.GroupServiceImpl} and rerun ServiceBuilder to automatically copy the method declarations to this interface.
028     * </p>
029     *
030     * <p>
031     * This is a remote service. Methods of this service are expected to have security checks based on the propagated JAAS credentials because this service can be accessed remotely.
032     * </p>
033     *
034     * @author Brian Wing Shun Chan
035     * @see GroupServiceUtil
036     * @see com.liferay.portal.service.base.GroupServiceBaseImpl
037     * @see com.liferay.portal.service.impl.GroupServiceImpl
038     * @generated
039     */
040    @Transactional(isolation = Isolation.PORTAL, rollbackFor =  {
041            PortalException.class, SystemException.class})
042    public interface GroupService {
043            public com.liferay.portal.model.Group addGroup(java.lang.String name,
044                    java.lang.String description, int type, java.lang.String friendlyURL,
045                    boolean active, com.liferay.portal.service.ServiceContext serviceContext)
046                    throws com.liferay.portal.kernel.exception.PortalException,
047                            com.liferay.portal.kernel.exception.SystemException;
048    
049            public com.liferay.portal.model.Group addGroup(long liveGroupId,
050                    java.lang.String name, java.lang.String description, int type,
051                    java.lang.String friendlyURL, boolean active,
052                    com.liferay.portal.service.ServiceContext serviceContext)
053                    throws com.liferay.portal.kernel.exception.PortalException,
054                            com.liferay.portal.kernel.exception.SystemException;
055    
056            public void addRoleGroups(long roleId, long[] groupIds)
057                    throws com.liferay.portal.kernel.exception.PortalException,
058                            com.liferay.portal.kernel.exception.SystemException;
059    
060            public void deleteGroup(long groupId)
061                    throws com.liferay.portal.kernel.exception.PortalException,
062                            com.liferay.portal.kernel.exception.SystemException;
063    
064            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
065            public com.liferay.portal.model.Group getGroup(long groupId)
066                    throws com.liferay.portal.kernel.exception.PortalException,
067                            com.liferay.portal.kernel.exception.SystemException;
068    
069            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
070            public com.liferay.portal.model.Group getGroup(long companyId,
071                    java.lang.String name)
072                    throws com.liferay.portal.kernel.exception.PortalException,
073                            com.liferay.portal.kernel.exception.SystemException;
074    
075            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
076            public java.util.List<com.liferay.portal.model.Group> getManageableGroups(
077                    java.lang.String actionId, int max)
078                    throws com.liferay.portal.kernel.exception.PortalException,
079                            com.liferay.portal.kernel.exception.SystemException;
080    
081            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
082            public java.util.List<com.liferay.portal.model.Group> getOrganizationsGroups(
083                    java.util.List<com.liferay.portal.model.Organization> organizations);
084    
085            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
086            public com.liferay.portal.model.Group getUserGroup(long companyId,
087                    long userId)
088                    throws com.liferay.portal.kernel.exception.PortalException,
089                            com.liferay.portal.kernel.exception.SystemException;
090    
091            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
092            public java.util.List<com.liferay.portal.model.Group> getUserGroupsGroups(
093                    java.util.List<com.liferay.portal.model.UserGroup> userGroups)
094                    throws com.liferay.portal.kernel.exception.PortalException,
095                            com.liferay.portal.kernel.exception.SystemException;
096    
097            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
098            public java.util.List<com.liferay.portal.model.Group> getUserOrganizationsGroups(
099                    long userId, int start, int end)
100                    throws com.liferay.portal.kernel.exception.PortalException,
101                            com.liferay.portal.kernel.exception.SystemException;
102    
103            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
104            public boolean hasUserGroup(long userId, long groupId)
105                    throws com.liferay.portal.kernel.exception.SystemException;
106    
107            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
108            public java.util.List<com.liferay.portal.model.Group> search(
109                    long companyId, java.lang.String name, java.lang.String description,
110                    java.lang.String[] params, int start, int end)
111                    throws com.liferay.portal.kernel.exception.SystemException;
112    
113            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
114            public int searchCount(long companyId, java.lang.String name,
115                    java.lang.String description, java.lang.String[] params)
116                    throws com.liferay.portal.kernel.exception.SystemException;
117    
118            public void setRoleGroups(long roleId, long[] groupIds)
119                    throws com.liferay.portal.kernel.exception.PortalException,
120                            com.liferay.portal.kernel.exception.SystemException;
121    
122            public void unsetRoleGroups(long roleId, long[] groupIds)
123                    throws com.liferay.portal.kernel.exception.PortalException,
124                            com.liferay.portal.kernel.exception.SystemException;
125    
126            public com.liferay.portal.model.Group updateFriendlyURL(long groupId,
127                    java.lang.String friendlyURL)
128                    throws com.liferay.portal.kernel.exception.PortalException,
129                            com.liferay.portal.kernel.exception.SystemException;
130    
131            public com.liferay.portal.model.Group updateGroup(long groupId,
132                    java.lang.String name, java.lang.String description, int type,
133                    java.lang.String friendlyURL, boolean active,
134                    com.liferay.portal.service.ServiceContext serviceContext)
135                    throws com.liferay.portal.kernel.exception.PortalException,
136                            com.liferay.portal.kernel.exception.SystemException;
137    
138            public com.liferay.portal.model.Group updateGroup(long groupId,
139                    java.lang.String typeSettings)
140                    throws com.liferay.portal.kernel.exception.PortalException,
141                            com.liferay.portal.kernel.exception.SystemException;
142    
143            public com.liferay.portal.model.Group updateWorkflow(long groupId,
144                    boolean workflowEnabled, int workflowStages,
145                    java.lang.String workflowRoleNames)
146                    throws com.liferay.portal.kernel.exception.PortalException,
147                            com.liferay.portal.kernel.exception.SystemException;
148    }