1
14
15 package com.liferay.portal.service;
16
17 import com.liferay.portal.kernel.annotation.Isolation;
18 import com.liferay.portal.kernel.annotation.Propagation;
19 import com.liferay.portal.kernel.annotation.Transactional;
20 import com.liferay.portal.kernel.exception.PortalException;
21 import com.liferay.portal.kernel.exception.SystemException;
22
23
47 @Transactional(isolation = Isolation.PORTAL, rollbackFor = {
48 PortalException.class, SystemException.class})
49 public interface TeamLocalService {
50 public com.liferay.portal.model.Team addTeam(
51 com.liferay.portal.model.Team team)
52 throws com.liferay.portal.kernel.exception.SystemException;
53
54 public com.liferay.portal.model.Team createTeam(long teamId);
55
56 public void deleteTeam(long teamId)
57 throws com.liferay.portal.kernel.exception.PortalException,
58 com.liferay.portal.kernel.exception.SystemException;
59
60 public void deleteTeam(com.liferay.portal.model.Team team)
61 throws com.liferay.portal.kernel.exception.SystemException;
62
63 @SuppressWarnings("unchecked")
64 public java.util.List dynamicQuery(
65 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
66 throws com.liferay.portal.kernel.exception.SystemException;
67
68 @SuppressWarnings("unchecked")
69 public java.util.List dynamicQuery(
70 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
71 int end) throws com.liferay.portal.kernel.exception.SystemException;
72
73 @SuppressWarnings("unchecked")
74 public java.util.List dynamicQuery(
75 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
76 int end,
77 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
78 throws com.liferay.portal.kernel.exception.SystemException;
79
80 public long dynamicQueryCount(
81 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
82 throws com.liferay.portal.kernel.exception.SystemException;
83
84 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
85 public com.liferay.portal.model.Team getTeam(long teamId)
86 throws com.liferay.portal.kernel.exception.PortalException,
87 com.liferay.portal.kernel.exception.SystemException;
88
89 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
90 public java.util.List<com.liferay.portal.model.Team> getTeams(int start,
91 int end) throws com.liferay.portal.kernel.exception.SystemException;
92
93 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
94 public int getTeamsCount()
95 throws com.liferay.portal.kernel.exception.SystemException;
96
97 public com.liferay.portal.model.Team updateTeam(
98 com.liferay.portal.model.Team team)
99 throws com.liferay.portal.kernel.exception.SystemException;
100
101 public com.liferay.portal.model.Team updateTeam(
102 com.liferay.portal.model.Team team, boolean merge)
103 throws com.liferay.portal.kernel.exception.SystemException;
104
105 public com.liferay.portal.model.Team addTeam(long userId, long groupId,
106 java.lang.String name, java.lang.String description)
107 throws com.liferay.portal.kernel.exception.PortalException,
108 com.liferay.portal.kernel.exception.SystemException;
109
110 public void deleteTeams(long groupId)
111 throws com.liferay.portal.kernel.exception.PortalException,
112 com.liferay.portal.kernel.exception.SystemException;
113
114 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
115 public java.util.List<com.liferay.portal.model.Team> getGroupTeams(
116 long groupId)
117 throws com.liferay.portal.kernel.exception.SystemException;
118
119 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
120 public java.util.List<com.liferay.portal.model.Team> getUserTeams(
121 long userId) throws com.liferay.portal.kernel.exception.SystemException;
122
123 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
124 public java.util.List<com.liferay.portal.model.Team> getUserTeams(
125 long userId, long groupId)
126 throws com.liferay.portal.kernel.exception.SystemException;
127
128 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
129 public boolean hasUserTeam(long userId, long teamId)
130 throws com.liferay.portal.kernel.exception.SystemException;
131
132 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
133 public java.util.List<com.liferay.portal.model.Team> search(long groupId,
134 java.lang.String name, java.lang.String description,
135 java.util.LinkedHashMap<java.lang.String, java.lang.Object> params,
136 int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
137 throws com.liferay.portal.kernel.exception.SystemException;
138
139 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
140 public int searchCount(long groupId, java.lang.String name,
141 java.lang.String description,
142 java.util.LinkedHashMap<java.lang.String, java.lang.Object> params)
143 throws com.liferay.portal.kernel.exception.SystemException;
144
145 public com.liferay.portal.model.Team updateTeam(long teamId,
146 java.lang.String name, java.lang.String description)
147 throws com.liferay.portal.kernel.exception.PortalException,
148 com.liferay.portal.kernel.exception.SystemException;
149 }