com.liferay.portal.service
Class TeamLocalServiceUtil
java.lang.Object
com.liferay.portal.service.TeamLocalServiceUtil
public class TeamLocalServiceUtil
- extends Object
This class provides static methods for the
TeamLocalService bean. The static methods of
this class calls the same methods of the bean instance. It's convenient to be
able to just write one line to call a method on a bean instead of writing a
lookup call and a method call.
- See Also:
TeamLocalService- ServiceBuilder generated this class. Modifications in this class will be overwritten the next time is generated.
|
Method Summary |
static Team |
addTeam(long userId,
long groupId,
String name,
String description)
|
static Team |
addTeam(Team team)
|
static Team |
createTeam(long teamId)
|
static void |
deleteTeam(long teamId)
|
static void |
deleteTeam(Team team)
|
static void |
deleteTeams(long groupId)
|
static List |
dynamicQuery(DynamicQuery dynamicQuery)
|
static List |
dynamicQuery(DynamicQuery dynamicQuery,
int start,
int end)
|
static List |
dynamicQuery(DynamicQuery dynamicQuery,
int start,
int end,
OrderByComparator orderByComparator)
|
static long |
dynamicQueryCount(DynamicQuery dynamicQuery)
|
static List<Team> |
getGroupTeams(long groupId)
|
static TeamLocalService |
getService()
|
static Team |
getTeam(long teamId)
|
static List<Team> |
getTeams(int start,
int end)
|
static int |
getTeamsCount()
|
static List<Team> |
getUserTeams(long userId)
|
static List<Team> |
getUserTeams(long userId,
long groupId)
|
static boolean |
hasUserTeam(long userId,
long teamId)
|
static List<Team> |
search(long groupId,
String name,
String description,
LinkedHashMap<String,Object> params,
int start,
int end,
OrderByComparator obc)
|
static int |
searchCount(long groupId,
String name,
String description,
LinkedHashMap<String,Object> params)
|
void |
setService(TeamLocalService service)
|
static Team |
updateTeam(long teamId,
String name,
String description)
|
static Team |
updateTeam(Team team)
|
static Team |
updateTeam(Team team,
boolean merge)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TeamLocalServiceUtil
public TeamLocalServiceUtil()
addTeam
public static Team addTeam(Team team)
throws SystemException
- Throws:
SystemException
createTeam
public static Team createTeam(long teamId)
deleteTeam
public static void deleteTeam(long teamId)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
deleteTeam
public static void deleteTeam(Team team)
throws SystemException
- Throws:
SystemException
dynamicQuery
public static List dynamicQuery(DynamicQuery dynamicQuery)
throws SystemException
- Throws:
SystemException
dynamicQuery
public static List dynamicQuery(DynamicQuery dynamicQuery,
int start,
int end)
throws SystemException
- Throws:
SystemException
dynamicQuery
public static List dynamicQuery(DynamicQuery dynamicQuery,
int start,
int end,
OrderByComparator orderByComparator)
throws SystemException
- Throws:
SystemException
dynamicQueryCount
public static long dynamicQueryCount(DynamicQuery dynamicQuery)
throws SystemException
- Throws:
SystemException
getTeam
public static Team getTeam(long teamId)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
getTeams
public static List<Team> getTeams(int start,
int end)
throws SystemException
- Throws:
SystemException
getTeamsCount
public static int getTeamsCount()
throws SystemException
- Throws:
SystemException
updateTeam
public static Team updateTeam(Team team)
throws SystemException
- Throws:
SystemException
updateTeam
public static Team updateTeam(Team team,
boolean merge)
throws SystemException
- Throws:
SystemException
addTeam
public static Team addTeam(long userId,
long groupId,
String name,
String description)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
deleteTeams
public static void deleteTeams(long groupId)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
getGroupTeams
public static List<Team> getGroupTeams(long groupId)
throws SystemException
- Throws:
SystemException
getUserTeams
public static List<Team> getUserTeams(long userId)
throws SystemException
- Throws:
SystemException
getUserTeams
public static List<Team> getUserTeams(long userId,
long groupId)
throws SystemException
- Throws:
SystemException
hasUserTeam
public static boolean hasUserTeam(long userId,
long teamId)
throws SystemException
- Throws:
SystemException
search
public static List<Team> search(long groupId,
String name,
String description,
LinkedHashMap<String,Object> params,
int start,
int end,
OrderByComparator obc)
throws SystemException
- Throws:
SystemException
searchCount
public static int searchCount(long groupId,
String name,
String description,
LinkedHashMap<String,Object> params)
throws SystemException
- Throws:
SystemException
updateTeam
public static Team updateTeam(long teamId,
String name,
String description)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
getService
public static TeamLocalService getService()
setService
public void setService(TeamLocalService service)