|
Liferay 7.0-ce-b4 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.liferay.portal.service.TeamLocalServiceUtil
@ProviderType public class TeamLocalServiceUtil
Provides the local service utility for Team. This utility wraps
TeamLocalServiceImpl and is the
primary access point for service operations in application layer code running
on the local server. Methods of this service will not have security checks
based on the propagated JAAS credentials because this service can only be
accessed from within the same VM.
TeamLocalService,
TeamLocalServiceBaseImpl,
TeamLocalServiceImpl| Constructor Summary | |
|---|---|
TeamLocalServiceUtil()
|
|
| Method Summary | ||
|---|---|---|
static Team |
addTeam(long userId,
long groupId,
String name,
String description)
Deprecated. As of 7.0.0, replaced by addTeam(long, long, String,
String, ServiceContext) |
|
static Team |
addTeam(long userId,
long groupId,
String name,
String description,
ServiceContext serviceContext)
|
|
static Team |
addTeam(Team team)
Adds the team to the database. |
|
static void |
addUserGroupTeam(long userGroupId,
long teamId)
|
|
static void |
addUserGroupTeam(long userGroupId,
Team team)
|
|
static void |
addUserGroupTeams(long userGroupId,
List<Team> Teams)
|
|
static void |
addUserGroupTeams(long userGroupId,
long[] teamIds)
|
|
static void |
addUserTeam(long userId,
long teamId)
|
|
static void |
addUserTeam(long userId,
Team team)
|
|
static void |
addUserTeams(long userId,
List<Team> Teams)
|
|
static void |
addUserTeams(long userId,
long[] teamIds)
|
|
static void |
clearUserGroupTeams(long userGroupId)
|
|
static void |
clearUserTeams(long userId)
|
|
static Team |
createTeam(long teamId)
Creates a new team with the primary key. |
|
static PersistedModel |
deletePersistedModel(PersistedModel persistedModel)
|
|
static Team |
deleteTeam(long teamId)
Deletes the team with the primary key from the database. |
|
static Team |
deleteTeam(Team team)
Deletes the team from the database. |
|
static void |
deleteTeams(long groupId)
|
|
static void |
deleteUserGroupTeam(long userGroupId,
long teamId)
|
|
static void |
deleteUserGroupTeam(long userGroupId,
Team team)
|
|
static void |
deleteUserGroupTeams(long userGroupId,
List<Team> Teams)
|
|
static void |
deleteUserGroupTeams(long userGroupId,
long[] teamIds)
|
|
static void |
deleteUserTeam(long userId,
long teamId)
|
|
static void |
deleteUserTeam(long userId,
Team team)
|
|
static void |
deleteUserTeams(long userId,
List<Team> Teams)
|
|
static void |
deleteUserTeams(long userId,
long[] teamIds)
|
|
static DynamicQuery |
dynamicQuery()
|
|
static
|
dynamicQuery(DynamicQuery dynamicQuery)
Performs a dynamic query on the database and returns the matching rows. |
|
static
|
dynamicQuery(DynamicQuery dynamicQuery,
int start,
int end)
Performs a dynamic query on the database and returns a range of the matching rows. |
|
static
|
dynamicQuery(DynamicQuery dynamicQuery,
int start,
int end,
OrderByComparator<T> orderByComparator)
Performs a dynamic query on the database and returns an ordered range of the matching rows. |
|
static long |
dynamicQueryCount(DynamicQuery dynamicQuery)
Returns the number of rows matching the dynamic query. |
|
static long |
dynamicQueryCount(DynamicQuery dynamicQuery,
Projection projection)
Returns the number of rows matching the dynamic query. |
|
static Team |
fetchTeam(long teamId)
|
|
static Team |
fetchTeam(long groupId,
String name)
|
|
static Team |
fetchTeamByUuidAndGroupId(String uuid,
long groupId)
Returns the team matching the UUID and group. |
|
static ActionableDynamicQuery |
getActionableDynamicQuery()
|
|
static ExportActionableDynamicQuery |
getExportActionableDynamicQuery(PortletDataContext portletDataContext)
|
|
static List<Team> |
getGroupTeams(long groupId)
|
|
static IndexableActionableDynamicQuery |
getIndexableActionableDynamicQuery()
|
|
static String |
getOSGiServiceIdentifier()
Returns the OSGi service identifier. |
|
static PersistedModel |
getPersistedModel(Serializable primaryKeyObj)
|
|
static TeamLocalService |
getService()
|
|
static Team |
getTeam(long teamId)
Returns the team with the primary key. |
|
static Team |
getTeam(long groupId,
String name)
|
|
static Team |
getTeamByUuidAndGroupId(String uuid,
long groupId)
Returns the team matching the UUID and group. |
|
static List<Team> |
getTeams(int start,
int end)
Returns a range of all the teams. |
|
static List<Team> |
getTeamsByUuidAndCompanyId(String uuid,
long companyId)
Returns all the teams matching the UUID and company. |
|
static List<Team> |
getTeamsByUuidAndCompanyId(String uuid,
long companyId,
int start,
int end,
OrderByComparator<Team> orderByComparator)
Returns a range of teams matching the UUID and company. |
|
static int |
getTeamsCount()
Returns the number of teams. |
|
static long[] |
getUserGroupPrimaryKeys(long teamId)
Returns the userGroupIds of the user groups associated with the team. |
|
static List<Team> |
getUserGroupTeams(long userGroupId)
|
|
static List<Team> |
getUserGroupTeams(long userGroupId,
int start,
int end)
|
|
static List<Team> |
getUserGroupTeams(long userGroupId,
int start,
int end,
OrderByComparator<Team> orderByComparator)
|
|
static int |
getUserGroupTeamsCount(long userGroupId)
|
|
static List<Team> |
getUserOrUserGroupTeams(long groupId,
long userId)
|
|
static long[] |
getUserPrimaryKeys(long teamId)
Returns the userIds of the users associated with the team. |
|
static List<Team> |
getUserTeams(long userId)
|
|
static List<Team> |
getUserTeams(long userId,
int start,
int end)
|
|
static List<Team> |
getUserTeams(long userId,
int start,
int end,
OrderByComparator<Team> orderByComparator)
|
|
static List<Team> |
getUserTeams(long userId,
long groupId)
|
|
static int |
getUserTeamsCount(long userId)
|
|
static boolean |
hasUserGroupTeam(long userGroupId,
long teamId)
|
|
static boolean |
hasUserGroupTeams(long userGroupId)
|
|
static boolean |
hasUserTeam(long userId,
long teamId)
|
|
static boolean |
hasUserTeams(long userId)
|
|
static List<Team> |
search(long groupId,
String name,
String description,
LinkedHashMap<String,Object> params,
int start,
int end,
OrderByComparator<Team> obc)
|
|
static int |
searchCount(long groupId,
String name,
String description,
LinkedHashMap<String,Object> params)
|
|
static void |
setUserGroupTeams(long userGroupId,
long[] teamIds)
|
|
static void |
setUserTeams(long userId,
long[] teamIds)
|
|
static Team |
updateTeam(long teamId,
String name,
String description)
|
|
static Team |
updateTeam(Team team)
Updates the team in the database or adds it if it does not yet exist. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TeamLocalServiceUtil()
| Method Detail |
|---|
public static Team addTeam(Team team)
team - the team
@Deprecated
public static Team addTeam(long userId,
long groupId,
String name,
String description)
throws PortalException
addTeam(long, long, String,
String, ServiceContext)
PortalException
public static Team addTeam(long userId,
long groupId,
String name,
String description,
ServiceContext serviceContext)
throws PortalException
PortalException
public static void addUserGroupTeam(long userGroupId,
Team team)
public static void addUserGroupTeam(long userGroupId,
long teamId)
public static void addUserGroupTeams(long userGroupId,
List<Team> Teams)
public static void addUserGroupTeams(long userGroupId,
long[] teamIds)
public static void addUserTeam(long userId,
Team team)
public static void addUserTeam(long userId,
long teamId)
public static void addUserTeams(long userId,
List<Team> Teams)
public static void addUserTeams(long userId,
long[] teamIds)
public static void clearUserGroupTeams(long userGroupId)
public static void clearUserTeams(long userId)
public static Team createTeam(long teamId)
teamId - the primary key for the new team
public static PersistedModel deletePersistedModel(PersistedModel persistedModel)
throws PortalException
PortalException
public static Team deleteTeam(Team team)
throws PortalException
team - the team
PortalException
public static Team deleteTeam(long teamId)
throws PortalException
teamId - the primary key of the team
PortalException - if a team with the primary key could not be found
public static void deleteTeams(long groupId)
throws PortalException
PortalException
public static void deleteUserGroupTeam(long userGroupId,
Team team)
public static void deleteUserGroupTeam(long userGroupId,
long teamId)
public static void deleteUserGroupTeams(long userGroupId,
List<Team> Teams)
public static void deleteUserGroupTeams(long userGroupId,
long[] teamIds)
public static void deleteUserTeam(long userId,
Team team)
public static void deleteUserTeam(long userId,
long teamId)
public static void deleteUserTeams(long userId,
List<Team> Teams)
public static void deleteUserTeams(long userId,
long[] teamIds)
public static DynamicQuery dynamicQuery()
public static <T> List<T> dynamicQuery(DynamicQuery dynamicQuery)
dynamicQuery - the dynamic query
public static <T> List<T> dynamicQuery(DynamicQuery dynamicQuery,
int start,
int end)
Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from TeamModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
dynamicQuery - the dynamic querystart - the lower bound of the range of model instancesend - the upper bound of the range of model instances (not inclusive)
public static <T> List<T> dynamicQuery(DynamicQuery dynamicQuery,
int start,
int end,
OrderByComparator<T> orderByComparator)
Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from TeamModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
dynamicQuery - the dynamic querystart - the lower bound of the range of model instancesend - the upper bound of the range of model instances (not inclusive)orderByComparator - the comparator to order the results by (optionally null)
public static long dynamicQueryCount(DynamicQuery dynamicQuery)
dynamicQuery - the dynamic query
public static long dynamicQueryCount(DynamicQuery dynamicQuery,
Projection projection)
dynamicQuery - the dynamic queryprojection - the projection to apply to the query
public static Team fetchTeam(long groupId,
String name)
public static Team fetchTeam(long teamId)
public static Team fetchTeamByUuidAndGroupId(String uuid,
long groupId)
uuid - the team's UUIDgroupId - the primary key of the group
null if a matching team could not be foundpublic static ActionableDynamicQuery getActionableDynamicQuery()
public static ExportActionableDynamicQuery getExportActionableDynamicQuery(PortletDataContext portletDataContext)
public static List<Team> getGroupTeams(long groupId)
public static IndexableActionableDynamicQuery getIndexableActionableDynamicQuery()
public static String getOSGiServiceIdentifier()
public static PersistedModel getPersistedModel(Serializable primaryKeyObj)
throws PortalException
PortalException
public static Team getTeam(long groupId,
String name)
throws PortalException
PortalException
public static Team getTeam(long teamId)
throws PortalException
teamId - the primary key of the team
PortalException - if a team with the primary key could not be found
public static Team getTeamByUuidAndGroupId(String uuid,
long groupId)
throws PortalException
uuid - the team's UUIDgroupId - the primary key of the group
PortalException - if a matching team could not be found
public static List<Team> getTeams(int start,
int end)
Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from TeamModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
start - the lower bound of the range of teamsend - the upper bound of the range of teams (not inclusive)
public static List<Team> getTeamsByUuidAndCompanyId(String uuid,
long companyId)
uuid - the UUID of the teamscompanyId - the primary key of the company
public static List<Team> getTeamsByUuidAndCompanyId(String uuid,
long companyId,
int start,
int end,
OrderByComparator<Team> orderByComparator)
uuid - the UUID of the teamscompanyId - the primary key of the companystart - the lower bound of the range of teamsend - the upper bound of the range of teams (not inclusive)orderByComparator - the comparator to order the results by (optionally null)
public static int getTeamsCount()
public static long[] getUserGroupPrimaryKeys(long teamId)
teamId - the teamId of the team
public static List<Team> getUserGroupTeams(long userGroupId)
public static List<Team> getUserGroupTeams(long userGroupId,
int start,
int end)
public static List<Team> getUserGroupTeams(long userGroupId,
int start,
int end,
OrderByComparator<Team> orderByComparator)
public static int getUserGroupTeamsCount(long userGroupId)
public static List<Team> getUserOrUserGroupTeams(long groupId,
long userId)
public static long[] getUserPrimaryKeys(long teamId)
teamId - the teamId of the team
public static List<Team> getUserTeams(long userId)
public static List<Team> getUserTeams(long userId,
long groupId)
public static List<Team> getUserTeams(long userId,
int start,
int end)
public static List<Team> getUserTeams(long userId,
int start,
int end,
OrderByComparator<Team> orderByComparator)
public static int getUserTeamsCount(long userId)
public static boolean hasUserGroupTeam(long userGroupId,
long teamId)
public static boolean hasUserGroupTeams(long userGroupId)
public static boolean hasUserTeam(long userId,
long teamId)
public static boolean hasUserTeams(long userId)
public static List<Team> search(long groupId,
String name,
String description,
LinkedHashMap<String,Object> params,
int start,
int end,
OrderByComparator<Team> obc)
public static int searchCount(long groupId,
String name,
String description,
LinkedHashMap<String,Object> params)
public static void setUserGroupTeams(long userGroupId,
long[] teamIds)
public static void setUserTeams(long userId,
long[] teamIds)
public static Team updateTeam(Team team)
team - the team
public static Team updateTeam(long teamId,
String name,
String description)
throws PortalException
PortalExceptionpublic static TeamLocalService getService()
|
Liferay 7.0-ce-b4 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||