1
14
15 package com.liferay.portal.service;
16
17 import com.liferay.portal.PortalException;
18 import com.liferay.portal.SystemException;
19 import com.liferay.portal.kernel.annotation.Isolation;
20 import com.liferay.portal.kernel.annotation.Propagation;
21 import com.liferay.portal.kernel.annotation.Transactional;
22
23
47 @Transactional(isolation = Isolation.PORTAL, rollbackFor = {
48 PortalException.class, SystemException.class})
49 public interface GroupService {
50 public com.liferay.portal.model.Group addGroup(java.lang.String name,
51 java.lang.String description, int type, java.lang.String friendlyURL,
52 boolean active)
53 throws java.rmi.RemoteException, com.liferay.portal.PortalException,
54 com.liferay.portal.SystemException;
55
56 public com.liferay.portal.model.Group addGroup(long liveGroupId,
57 java.lang.String name, java.lang.String description, int type,
58 java.lang.String friendlyURL, boolean active)
59 throws java.rmi.RemoteException, com.liferay.portal.PortalException,
60 com.liferay.portal.SystemException;
61
62 public void addRoleGroups(long roleId, long[] groupIds)
63 throws java.rmi.RemoteException, com.liferay.portal.PortalException,
64 com.liferay.portal.SystemException;
65
66 public void deleteGroup(long groupId)
67 throws java.rmi.RemoteException, com.liferay.portal.PortalException,
68 com.liferay.portal.SystemException;
69
70 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
71 public com.liferay.portal.model.Group getGroup(long groupId)
72 throws java.rmi.RemoteException, com.liferay.portal.PortalException,
73 com.liferay.portal.SystemException;
74
75 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
76 public com.liferay.portal.model.Group getGroup(long companyId,
77 java.lang.String name)
78 throws java.rmi.RemoteException, com.liferay.portal.PortalException,
79 com.liferay.portal.SystemException;
80
81 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
82 public java.util.List<com.liferay.portal.model.Group> getOrganizationsGroups(
83 java.util.List<com.liferay.portal.model.Organization> organizations)
84 throws java.rmi.RemoteException;
85
86 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
87 public java.util.List<com.liferay.portal.model.Group> getUserGroupsGroups(
88 java.util.List<com.liferay.portal.model.UserGroup> userGroups)
89 throws java.rmi.RemoteException;
90
91 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
92 public boolean hasUserGroup(long userId, long groupId)
93 throws java.rmi.RemoteException, com.liferay.portal.SystemException;
94
95 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
96 public java.util.List<com.liferay.portal.model.Group> search(
97 long companyId, java.lang.String name, java.lang.String description,
98 java.lang.String[] params, int start, int end)
99 throws java.rmi.RemoteException, com.liferay.portal.SystemException;
100
101 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
102 public int searchCount(long companyId, java.lang.String name,
103 java.lang.String description, java.lang.String[] params)
104 throws java.rmi.RemoteException, com.liferay.portal.SystemException;
105
106 public void setRoleGroups(long roleId, long[] groupIds)
107 throws java.rmi.RemoteException, com.liferay.portal.PortalException,
108 com.liferay.portal.SystemException;
109
110 public void unsetRoleGroups(long roleId, long[] groupIds)
111 throws java.rmi.RemoteException, com.liferay.portal.PortalException,
112 com.liferay.portal.SystemException;
113
114 public com.liferay.portal.model.Group updateFriendlyURL(long groupId,
115 java.lang.String friendlyURL)
116 throws java.rmi.RemoteException, com.liferay.portal.PortalException,
117 com.liferay.portal.SystemException;
118
119 public com.liferay.portal.model.Group updateGroup(long groupId,
120 java.lang.String name, java.lang.String description, int type,
121 java.lang.String friendlyURL, boolean active)
122 throws java.rmi.RemoteException, com.liferay.portal.PortalException,
123 com.liferay.portal.SystemException;
124
125 public com.liferay.portal.model.Group updateGroup(long groupId,
126 java.lang.String typeSettings)
127 throws java.rmi.RemoteException, com.liferay.portal.PortalException,
128 com.liferay.portal.SystemException;
129
130 public com.liferay.portal.model.Group updateWorkflow(long groupId,
131 boolean workflowEnabled, int workflowStages,
132 java.lang.String workflowRoleNames)
133 throws java.rmi.RemoteException, com.liferay.portal.PortalException,
134 com.liferay.portal.SystemException;
135 }