com.liferay.portal.service.persistence
Class UserGroupRoleUtil
java.lang.Object
com.liferay.portal.service.persistence.UserGroupRoleUtil
public class UserGroupRoleUtil
- extends java.lang.Object
View Source
- Author:
- Brian Wing Shun Chan
Method Summary |
static int |
countAll()
|
static int |
countByG_R(long groupId,
long roleId)
|
static int |
countByGroupId(long groupId)
|
static int |
countByRoleId(long roleId)
|
static int |
countByU_G(long userId,
long groupId)
|
static int |
countByUserId(long userId)
|
static UserGroupRole |
create(UserGroupRolePK userGroupRolePK)
|
static UserGroupRole |
fetchByPrimaryKey(UserGroupRolePK userGroupRolePK)
|
static java.util.List<UserGroupRole> |
findAll()
|
static java.util.List<UserGroupRole> |
findAll(int start,
int end)
|
static java.util.List<UserGroupRole> |
findAll(int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
static UserGroupRole |
findByG_R_First(long groupId,
long roleId,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
static UserGroupRole |
findByG_R_Last(long groupId,
long roleId,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
static UserGroupRole[] |
findByG_R_PrevAndNext(UserGroupRolePK userGroupRolePK,
long groupId,
long roleId,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
static java.util.List<UserGroupRole> |
findByG_R(long groupId,
long roleId)
|
static java.util.List<UserGroupRole> |
findByG_R(long groupId,
long roleId,
int start,
int end)
|
static java.util.List<UserGroupRole> |
findByG_R(long groupId,
long roleId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
static UserGroupRole |
findByGroupId_First(long groupId,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
static UserGroupRole |
findByGroupId_Last(long groupId,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
static UserGroupRole[] |
findByGroupId_PrevAndNext(UserGroupRolePK userGroupRolePK,
long groupId,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
static java.util.List<UserGroupRole> |
findByGroupId(long groupId)
|
static java.util.List<UserGroupRole> |
findByGroupId(long groupId,
int start,
int end)
|
static java.util.List<UserGroupRole> |
findByGroupId(long groupId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
static UserGroupRole |
findByPrimaryKey(UserGroupRolePK userGroupRolePK)
|
static UserGroupRole |
findByRoleId_First(long roleId,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
static UserGroupRole |
findByRoleId_Last(long roleId,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
static UserGroupRole[] |
findByRoleId_PrevAndNext(UserGroupRolePK userGroupRolePK,
long roleId,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
static java.util.List<UserGroupRole> |
findByRoleId(long roleId)
|
static java.util.List<UserGroupRole> |
findByRoleId(long roleId,
int start,
int end)
|
static java.util.List<UserGroupRole> |
findByRoleId(long roleId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
static UserGroupRole |
findByU_G_First(long userId,
long groupId,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
static UserGroupRole |
findByU_G_Last(long userId,
long groupId,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
static UserGroupRole[] |
findByU_G_PrevAndNext(UserGroupRolePK userGroupRolePK,
long userId,
long groupId,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
static java.util.List<UserGroupRole> |
findByU_G(long userId,
long groupId)
|
static java.util.List<UserGroupRole> |
findByU_G(long userId,
long groupId,
int start,
int end)
|
static java.util.List<UserGroupRole> |
findByU_G(long userId,
long groupId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
static UserGroupRole |
findByUserId_First(long userId,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
static UserGroupRole |
findByUserId_Last(long userId,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
static UserGroupRole[] |
findByUserId_PrevAndNext(UserGroupRolePK userGroupRolePK,
long userId,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
static java.util.List<UserGroupRole> |
findByUserId(long userId)
|
static java.util.List<UserGroupRole> |
findByUserId(long userId,
int start,
int end)
|
static java.util.List<UserGroupRole> |
findByUserId(long userId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
static java.util.List<java.lang.Object> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
|
static java.util.List<java.lang.Object> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end)
|
static UserGroupRolePersistence |
getPersistence()
|
static UserGroupRole |
remove(UserGroupRole userGroupRole)
|
static UserGroupRole |
remove(UserGroupRolePK userGroupRolePK)
|
static void |
removeAll()
|
static void |
removeByG_R(long groupId,
long roleId)
|
static void |
removeByGroupId(long groupId)
|
static void |
removeByRoleId(long roleId)
|
static void |
removeByU_G(long userId,
long groupId)
|
static void |
removeByUserId(long userId)
|
void |
setPersistence(UserGroupRolePersistence persistence)
|
static UserGroupRole |
update(UserGroupRole userGroupRole)
Deprecated. Use update(UserGroupRole userGroupRole, boolean merge) . |
static UserGroupRole |
update(UserGroupRole userGroupRole,
boolean merge)
Add, update, or merge, the entity. |
static UserGroupRole |
updateImpl(UserGroupRole userGroupRole,
boolean merge)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
UserGroupRoleUtil
public UserGroupRoleUtil()
create
public static UserGroupRole create(UserGroupRolePK userGroupRolePK)
remove
public static UserGroupRole remove(UserGroupRolePK userGroupRolePK)
throws NoSuchUserGroupRoleException,
com.liferay.portal.SystemException
- Throws:
NoSuchUserGroupRoleException
com.liferay.portal.SystemException
remove
public static UserGroupRole remove(UserGroupRole userGroupRole)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
update
public static UserGroupRole update(UserGroupRole userGroupRole)
throws com.liferay.portal.SystemException
- Deprecated. Use
update(UserGroupRole userGroupRole, boolean merge)
.
- Throws:
com.liferay.portal.SystemException
update
public static UserGroupRole update(UserGroupRole userGroupRole,
boolean merge)
throws com.liferay.portal.SystemException
- Add, update, or merge, the entity. This method also calls the model
listeners to trigger the proper events associated with adding, deleting,
or updating an entity.
- Parameters:
userGroupRole
- the entity to add, update, or mergemerge
- boolean value for whether to merge the entity. The
default value is false. Setting merge to true is more
expensive and should only be true when userGroupRole is
transient. See LEP-5473 for a detailed discussion of this
method.
- Returns:
- true if the portlet can be displayed via Ajax
- Throws:
com.liferay.portal.SystemException
updateImpl
public static UserGroupRole updateImpl(UserGroupRole userGroupRole,
boolean merge)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findByPrimaryKey
public static UserGroupRole findByPrimaryKey(UserGroupRolePK userGroupRolePK)
throws NoSuchUserGroupRoleException,
com.liferay.portal.SystemException
- Throws:
NoSuchUserGroupRoleException
com.liferay.portal.SystemException
fetchByPrimaryKey
public static UserGroupRole fetchByPrimaryKey(UserGroupRolePK userGroupRolePK)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findByUserId
public static java.util.List<UserGroupRole> findByUserId(long userId)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findByUserId
public static java.util.List<UserGroupRole> findByUserId(long userId,
int start,
int end)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findByUserId
public static java.util.List<UserGroupRole> findByUserId(long userId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findByUserId_First
public static UserGroupRole findByUserId_First(long userId,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws NoSuchUserGroupRoleException,
com.liferay.portal.SystemException
- Throws:
NoSuchUserGroupRoleException
com.liferay.portal.SystemException
findByUserId_Last
public static UserGroupRole findByUserId_Last(long userId,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws NoSuchUserGroupRoleException,
com.liferay.portal.SystemException
- Throws:
NoSuchUserGroupRoleException
com.liferay.portal.SystemException
findByUserId_PrevAndNext
public static UserGroupRole[] findByUserId_PrevAndNext(UserGroupRolePK userGroupRolePK,
long userId,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws NoSuchUserGroupRoleException,
com.liferay.portal.SystemException
- Throws:
NoSuchUserGroupRoleException
com.liferay.portal.SystemException
findByGroupId
public static java.util.List<UserGroupRole> findByGroupId(long groupId)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findByGroupId
public static java.util.List<UserGroupRole> findByGroupId(long groupId,
int start,
int end)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findByGroupId
public static java.util.List<UserGroupRole> findByGroupId(long groupId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findByGroupId_First
public static UserGroupRole findByGroupId_First(long groupId,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws NoSuchUserGroupRoleException,
com.liferay.portal.SystemException
- Throws:
NoSuchUserGroupRoleException
com.liferay.portal.SystemException
findByGroupId_Last
public static UserGroupRole findByGroupId_Last(long groupId,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws NoSuchUserGroupRoleException,
com.liferay.portal.SystemException
- Throws:
NoSuchUserGroupRoleException
com.liferay.portal.SystemException
findByGroupId_PrevAndNext
public static UserGroupRole[] findByGroupId_PrevAndNext(UserGroupRolePK userGroupRolePK,
long groupId,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws NoSuchUserGroupRoleException,
com.liferay.portal.SystemException
- Throws:
NoSuchUserGroupRoleException
com.liferay.portal.SystemException
findByRoleId
public static java.util.List<UserGroupRole> findByRoleId(long roleId)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findByRoleId
public static java.util.List<UserGroupRole> findByRoleId(long roleId,
int start,
int end)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findByRoleId
public static java.util.List<UserGroupRole> findByRoleId(long roleId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findByRoleId_First
public static UserGroupRole findByRoleId_First(long roleId,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws NoSuchUserGroupRoleException,
com.liferay.portal.SystemException
- Throws:
NoSuchUserGroupRoleException
com.liferay.portal.SystemException
findByRoleId_Last
public static UserGroupRole findByRoleId_Last(long roleId,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws NoSuchUserGroupRoleException,
com.liferay.portal.SystemException
- Throws:
NoSuchUserGroupRoleException
com.liferay.portal.SystemException
findByRoleId_PrevAndNext
public static UserGroupRole[] findByRoleId_PrevAndNext(UserGroupRolePK userGroupRolePK,
long roleId,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws NoSuchUserGroupRoleException,
com.liferay.portal.SystemException
- Throws:
NoSuchUserGroupRoleException
com.liferay.portal.SystemException
findByU_G
public static java.util.List<UserGroupRole> findByU_G(long userId,
long groupId)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findByU_G
public static java.util.List<UserGroupRole> findByU_G(long userId,
long groupId,
int start,
int end)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findByU_G
public static java.util.List<UserGroupRole> findByU_G(long userId,
long groupId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findByU_G_First
public static UserGroupRole findByU_G_First(long userId,
long groupId,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws NoSuchUserGroupRoleException,
com.liferay.portal.SystemException
- Throws:
NoSuchUserGroupRoleException
com.liferay.portal.SystemException
findByU_G_Last
public static UserGroupRole findByU_G_Last(long userId,
long groupId,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws NoSuchUserGroupRoleException,
com.liferay.portal.SystemException
- Throws:
NoSuchUserGroupRoleException
com.liferay.portal.SystemException
findByU_G_PrevAndNext
public static UserGroupRole[] findByU_G_PrevAndNext(UserGroupRolePK userGroupRolePK,
long userId,
long groupId,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws NoSuchUserGroupRoleException,
com.liferay.portal.SystemException
- Throws:
NoSuchUserGroupRoleException
com.liferay.portal.SystemException
findByG_R
public static java.util.List<UserGroupRole> findByG_R(long groupId,
long roleId)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findByG_R
public static java.util.List<UserGroupRole> findByG_R(long groupId,
long roleId,
int start,
int end)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findByG_R
public static java.util.List<UserGroupRole> findByG_R(long groupId,
long roleId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findByG_R_First
public static UserGroupRole findByG_R_First(long groupId,
long roleId,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws NoSuchUserGroupRoleException,
com.liferay.portal.SystemException
- Throws:
NoSuchUserGroupRoleException
com.liferay.portal.SystemException
findByG_R_Last
public static UserGroupRole findByG_R_Last(long groupId,
long roleId,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws NoSuchUserGroupRoleException,
com.liferay.portal.SystemException
- Throws:
NoSuchUserGroupRoleException
com.liferay.portal.SystemException
findByG_R_PrevAndNext
public static UserGroupRole[] findByG_R_PrevAndNext(UserGroupRolePK userGroupRolePK,
long groupId,
long roleId,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws NoSuchUserGroupRoleException,
com.liferay.portal.SystemException
- Throws:
NoSuchUserGroupRoleException
com.liferay.portal.SystemException
findWithDynamicQuery
public static java.util.List<java.lang.Object> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findWithDynamicQuery
public static java.util.List<java.lang.Object> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findAll
public static java.util.List<UserGroupRole> findAll()
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findAll
public static java.util.List<UserGroupRole> findAll(int start,
int end)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findAll
public static java.util.List<UserGroupRole> findAll(int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
removeByUserId
public static void removeByUserId(long userId)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
removeByGroupId
public static void removeByGroupId(long groupId)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
removeByRoleId
public static void removeByRoleId(long roleId)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
removeByU_G
public static void removeByU_G(long userId,
long groupId)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
removeByG_R
public static void removeByG_R(long groupId,
long roleId)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
removeAll
public static void removeAll()
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
countByUserId
public static int countByUserId(long userId)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
countByGroupId
public static int countByGroupId(long groupId)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
countByRoleId
public static int countByRoleId(long roleId)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
countByU_G
public static int countByU_G(long userId,
long groupId)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
countByG_R
public static int countByG_R(long groupId,
long roleId)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
countAll
public static int countAll()
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
getPersistence
public static UserGroupRolePersistence getPersistence()
setPersistence
public void setPersistence(UserGroupRolePersistence persistence)