001
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
040 @Transactional(isolation = Isolation.PORTAL, rollbackFor = {
041 PortalException.class, SystemException.class})
042 public interface TeamLocalService {
043 public com.liferay.portal.model.Team addTeam(
044 com.liferay.portal.model.Team team)
045 throws com.liferay.portal.kernel.exception.SystemException;
046
047 public com.liferay.portal.model.Team createTeam(long teamId);
048
049 public void deleteTeam(long teamId)
050 throws com.liferay.portal.kernel.exception.PortalException,
051 com.liferay.portal.kernel.exception.SystemException;
052
053 public void deleteTeam(com.liferay.portal.model.Team team)
054 throws com.liferay.portal.kernel.exception.SystemException;
055
056 @SuppressWarnings("unchecked")
057 public java.util.List dynamicQuery(
058 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
059 throws com.liferay.portal.kernel.exception.SystemException;
060
061 @SuppressWarnings("unchecked")
062 public java.util.List dynamicQuery(
063 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
064 int end) throws com.liferay.portal.kernel.exception.SystemException;
065
066 @SuppressWarnings("unchecked")
067 public java.util.List dynamicQuery(
068 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
069 int end,
070 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
071 throws com.liferay.portal.kernel.exception.SystemException;
072
073 public long dynamicQueryCount(
074 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
075 throws com.liferay.portal.kernel.exception.SystemException;
076
077 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
078 public com.liferay.portal.model.Team getTeam(long teamId)
079 throws com.liferay.portal.kernel.exception.PortalException,
080 com.liferay.portal.kernel.exception.SystemException;
081
082 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
083 public java.util.List<com.liferay.portal.model.Team> getTeams(int start,
084 int end) throws com.liferay.portal.kernel.exception.SystemException;
085
086 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
087 public int getTeamsCount()
088 throws com.liferay.portal.kernel.exception.SystemException;
089
090 public com.liferay.portal.model.Team updateTeam(
091 com.liferay.portal.model.Team team)
092 throws com.liferay.portal.kernel.exception.SystemException;
093
094 public com.liferay.portal.model.Team updateTeam(
095 com.liferay.portal.model.Team team, boolean merge)
096 throws com.liferay.portal.kernel.exception.SystemException;
097
098 public com.liferay.portal.model.Team addTeam(long userId, long groupId,
099 java.lang.String name, java.lang.String description)
100 throws com.liferay.portal.kernel.exception.PortalException,
101 com.liferay.portal.kernel.exception.SystemException;
102
103 public void deleteTeams(long groupId)
104 throws com.liferay.portal.kernel.exception.PortalException,
105 com.liferay.portal.kernel.exception.SystemException;
106
107 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
108 public java.util.List<com.liferay.portal.model.Team> getGroupTeams(
109 long groupId)
110 throws com.liferay.portal.kernel.exception.SystemException;
111
112 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
113 public java.util.List<com.liferay.portal.model.Team> getUserTeams(
114 long userId) throws com.liferay.portal.kernel.exception.SystemException;
115
116 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
117 public java.util.List<com.liferay.portal.model.Team> getUserTeams(
118 long userId, long groupId)
119 throws com.liferay.portal.kernel.exception.SystemException;
120
121 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
122 public boolean hasUserTeam(long userId, long teamId)
123 throws com.liferay.portal.kernel.exception.SystemException;
124
125 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
126 public java.util.List<com.liferay.portal.model.Team> search(long groupId,
127 java.lang.String name, java.lang.String description,
128 java.util.LinkedHashMap<java.lang.String, java.lang.Object> params,
129 int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
130 throws com.liferay.portal.kernel.exception.SystemException;
131
132 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
133 public int searchCount(long groupId, java.lang.String name,
134 java.lang.String description,
135 java.util.LinkedHashMap<java.lang.String, java.lang.Object> params)
136 throws com.liferay.portal.kernel.exception.SystemException;
137
138 public com.liferay.portal.model.Team updateTeam(long teamId,
139 java.lang.String name, java.lang.String description)
140 throws com.liferay.portal.kernel.exception.PortalException,
141 com.liferay.portal.kernel.exception.SystemException;
142 }