001    /**
002     * Copyright (c) 2000-2011 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.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    /**
025     * The interface for the group remote service.
026     *
027     * <p>
028     * 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.
029     * </p>
030     *
031     * @author Brian Wing Shun Chan
032     * @see GroupServiceUtil
033     * @see com.liferay.portal.service.base.GroupServiceBaseImpl
034     * @see com.liferay.portal.service.impl.GroupServiceImpl
035     * @generated
036     */
037    @JSONWebService
038    @Transactional(isolation = Isolation.PORTAL, rollbackFor =  {
039            PortalException.class, SystemException.class})
040    public interface GroupService {
041            /*
042             * NOTE FOR DEVELOPERS:
043             *
044             * 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.
045             */
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    }