|
Liferay 6.1.2-ce-ga3 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.liferay.portal.service.persistence.GroupUtil
public class GroupUtil
The persistence utility for the group service. This utility wraps GroupPersistenceImpl
and provides direct access to the database for CRUD operations. This utility should only be used by the service layer, as it must operate within a transaction. Never access this utility in a JSP, controller, model, or other front-end class.
Caching information and settings can be found in portal.properties
GroupPersistence
,
GroupPersistenceImpl
Constructor Summary | |
---|---|
GroupUtil()
|
Method Summary | |
---|---|
static void |
addOrganization(long pk,
long organizationPK)
Adds an association between the group and the organization. |
static void |
addOrganization(long pk,
Organization organization)
Adds an association between the group and the organization. |
static void |
addOrganizations(long pk,
List<Organization> organizations)
Adds an association between the group and the organizations. |
static void |
addOrganizations(long pk,
long[] organizationPKs)
Adds an association between the group and the organizations. |
static void |
addPermission(long pk,
long permissionPK)
Adds an association between the group and the permission. |
static void |
addPermission(long pk,
Permission permission)
Adds an association between the group and the permission. |
static void |
addPermissions(long pk,
List<Permission> permissions)
Adds an association between the group and the permissions. |
static void |
addPermissions(long pk,
long[] permissionPKs)
Adds an association between the group and the permissions. |
static void |
addRole(long pk,
long rolePK)
Adds an association between the group and the role. |
static void |
addRole(long pk,
Role role)
Adds an association between the group and the role. |
static void |
addRoles(long pk,
List<Role> roles)
Adds an association between the group and the roles. |
static void |
addRoles(long pk,
long[] rolePKs)
Adds an association between the group and the roles. |
static void |
addUser(long pk,
long userPK)
Adds an association between the group and the user. |
static void |
addUser(long pk,
User user)
Adds an association between the group and the user. |
static void |
addUserGroup(long pk,
long userGroupPK)
Adds an association between the group and the user group. |
static void |
addUserGroup(long pk,
UserGroup userGroup)
Adds an association between the group and the user group. |
static void |
addUserGroups(long pk,
List<UserGroup> userGroups)
Adds an association between the group and the user groups. |
static void |
addUserGroups(long pk,
long[] userGroupPKs)
Adds an association between the group and the user groups. |
static void |
addUsers(long pk,
List<User> users)
Adds an association between the group and the users. |
static void |
addUsers(long pk,
long[] userPKs)
Adds an association between the group and the users. |
static void |
cacheResult(Group group)
Caches the group in the entity cache if it is enabled. |
static void |
cacheResult(List<Group> groups)
Caches the groups in the entity cache if it is enabled. |
static void |
clearCache()
|
static void |
clearCache(Group group)
|
static void |
clearOrganizations(long pk)
Clears all associations between the group and its organizations. |
static void |
clearPermissions(long pk)
Clears all associations between the group and its permissions. |
static void |
clearRoles(long pk)
Clears all associations between the group and its roles. |
static void |
clearUserGroups(long pk)
Clears all associations between the group and its user groups. |
static void |
clearUsers(long pk)
Clears all associations between the group and its users. |
static boolean |
containsOrganization(long pk,
long organizationPK)
Returns true if the organization is associated with the group. |
static boolean |
containsOrganizations(long pk)
Returns true if the group has any organizations associated with it. |
static boolean |
containsPermission(long pk,
long permissionPK)
Returns true if the permission is associated with the group. |
static boolean |
containsPermissions(long pk)
Returns true if the group has any permissions associated with it. |
static boolean |
containsRole(long pk,
long rolePK)
Returns true if the role is associated with the group. |
static boolean |
containsRoles(long pk)
Returns true if the group has any roles associated with it. |
static boolean |
containsUser(long pk,
long userPK)
Returns true if the user is associated with the group. |
static boolean |
containsUserGroup(long pk,
long userGroupPK)
Returns true if the user group is associated with the group. |
static boolean |
containsUserGroups(long pk)
Returns true if the group has any user groups associated with it. |
static boolean |
containsUsers(long pk)
Returns true if the group has any users associated with it. |
static int |
countAll()
Returns the number of groups. |
static int |
countByC_C_C(long companyId,
long classNameId,
long classPK)
Returns the number of groups where companyId = ? and classNameId = ? and classPK = ?. |
static int |
countByC_C_L_N(long companyId,
long classNameId,
long liveGroupId,
String name)
Returns the number of groups where companyId = ? and classNameId = ? and liveGroupId = ? and name = ?. |
static int |
countByC_F(long companyId,
String friendlyURL)
Returns the number of groups where companyId = ? and friendlyURL = ?. |
static int |
countByC_L_N(long companyId,
long liveGroupId,
String name)
Returns the number of groups where companyId = ? and liveGroupId = ? and name = ?. |
static int |
countByC_N(long companyId,
String name)
Returns the number of groups where companyId = ? and name = ?. |
static int |
countByCompanyId(long companyId)
Returns the number of groups where companyId = ?. |
static int |
countByLiveGroupId(long liveGroupId)
Returns the number of groups where liveGroupId = ?. |
static int |
countByT_A(int type,
boolean active)
Returns the number of groups where type = ? and active = ?. |
long |
countWithDynamicQuery(DynamicQuery dynamicQuery)
|
static Group |
create(long groupId)
Creates a new group with the primary key. |
static Group |
fetchByC_C_C(long companyId,
long classNameId,
long classPK)
Returns the group where companyId = ? and classNameId = ? and classPK = ? or returns null if it could not be found. |
static Group |
fetchByC_C_C(long companyId,
long classNameId,
long classPK,
boolean retrieveFromCache)
Returns the group where companyId = ? and classNameId = ? and classPK = ? or returns null if it could not be found, optionally using the finder cache. |
static Group |
fetchByC_C_L_N(long companyId,
long classNameId,
long liveGroupId,
String name)
Returns the group where companyId = ? and classNameId = ? and liveGroupId = ? and name = ? or returns null if it could not be found. |
static Group |
fetchByC_C_L_N(long companyId,
long classNameId,
long liveGroupId,
String name,
boolean retrieveFromCache)
Returns the group where companyId = ? and classNameId = ? and liveGroupId = ? and name = ? or returns null if it could not be found, optionally using the finder cache. |
static Group |
fetchByC_F(long companyId,
String friendlyURL)
Returns the group where companyId = ? and friendlyURL = ? or returns null if it could not be found. |
static Group |
fetchByC_F(long companyId,
String friendlyURL,
boolean retrieveFromCache)
Returns the group where companyId = ? and friendlyURL = ? or returns null if it could not be found, optionally using the finder cache. |
static Group |
fetchByC_L_N(long companyId,
long liveGroupId,
String name)
Returns the group where companyId = ? and liveGroupId = ? and name = ? or returns null if it could not be found. |
static Group |
fetchByC_L_N(long companyId,
long liveGroupId,
String name,
boolean retrieveFromCache)
Returns the group where companyId = ? and liveGroupId = ? and name = ? or returns null if it could not be found, optionally using the finder cache. |
static Group |
fetchByC_N(long companyId,
String name)
Returns the group where companyId = ? and name = ? or returns null if it could not be found. |
static Group |
fetchByC_N(long companyId,
String name,
boolean retrieveFromCache)
Returns the group where companyId = ? and name = ? or returns null if it could not be found, optionally using the finder cache. |
static Group |
fetchByCompanyId_First(long companyId,
OrderByComparator orderByComparator)
Returns the first group in the ordered set where companyId = ?. |
static Group |
fetchByCompanyId_Last(long companyId,
OrderByComparator orderByComparator)
Returns the last group in the ordered set where companyId = ?. |
static Group |
fetchByLiveGroupId(long liveGroupId)
Returns the group where liveGroupId = ? or returns null if it could not be found. |
static Group |
fetchByLiveGroupId(long liveGroupId,
boolean retrieveFromCache)
Returns the group where liveGroupId = ? or returns null if it could not be found, optionally using the finder cache. |
static Group |
fetchByPrimaryKey(long groupId)
Returns the group with the primary key or returns null if it could not be found. |
static Group |
fetchByT_A_First(int type,
boolean active,
OrderByComparator orderByComparator)
Returns the first group in the ordered set where type = ? and active = ?. |
static Group |
fetchByT_A_Last(int type,
boolean active,
OrderByComparator orderByComparator)
Returns the last group in the ordered set where type = ? and active = ?. |
static List<Group> |
findAll()
Returns all the groups. |
static List<Group> |
findAll(int start,
int end)
Returns a range of all the groups. |
static List<Group> |
findAll(int start,
int end,
OrderByComparator orderByComparator)
Returns an ordered range of all the groups. |
static Group |
findByC_C_C(long companyId,
long classNameId,
long classPK)
Returns the group where companyId = ? and classNameId = ? and classPK = ? or throws a NoSuchGroupException if it could not be found. |
static Group |
findByC_C_L_N(long companyId,
long classNameId,
long liveGroupId,
String name)
Returns the group where companyId = ? and classNameId = ? and liveGroupId = ? and name = ? or throws a NoSuchGroupException if it could not be found. |
static Group |
findByC_F(long companyId,
String friendlyURL)
Returns the group where companyId = ? and friendlyURL = ? or throws a NoSuchGroupException if it could not be found. |
static Group |
findByC_L_N(long companyId,
long liveGroupId,
String name)
Returns the group where companyId = ? and liveGroupId = ? and name = ? or throws a NoSuchGroupException if it could not be found. |
static Group |
findByC_N(long companyId,
String name)
Returns the group where companyId = ? and name = ? or throws a NoSuchGroupException if it could not be found. |
static Group |
findByCompanyId_First(long companyId,
OrderByComparator orderByComparator)
Returns the first group in the ordered set where companyId = ?. |
static Group |
findByCompanyId_Last(long companyId,
OrderByComparator orderByComparator)
Returns the last group in the ordered set where companyId = ?. |
static Group[] |
findByCompanyId_PrevAndNext(long groupId,
long companyId,
OrderByComparator orderByComparator)
Returns the groups before and after the current group in the ordered set where companyId = ?. |
static List<Group> |
findByCompanyId(long companyId)
Returns all the groups where companyId = ?. |
static List<Group> |
findByCompanyId(long companyId,
int start,
int end)
Returns a range of all the groups where companyId = ?. |
static List<Group> |
findByCompanyId(long companyId,
int start,
int end,
OrderByComparator orderByComparator)
Returns an ordered range of all the groups where companyId = ?. |
static Group |
findByLiveGroupId(long liveGroupId)
Returns the group where liveGroupId = ? or throws a NoSuchGroupException if it could not be found. |
static Group |
findByPrimaryKey(long groupId)
Returns the group with the primary key or throws a NoSuchGroupException if it could not be found. |
static Group |
findByT_A_First(int type,
boolean active,
OrderByComparator orderByComparator)
Returns the first group in the ordered set where type = ? and active = ?. |
static Group |
findByT_A_Last(int type,
boolean active,
OrderByComparator orderByComparator)
Returns the last group in the ordered set where type = ? and active = ?. |
static Group[] |
findByT_A_PrevAndNext(long groupId,
int type,
boolean active,
OrderByComparator orderByComparator)
Returns the groups before and after the current group in the ordered set where type = ? and active = ?. |
static List<Group> |
findByT_A(int type,
boolean active)
Returns all the groups where type = ? and active = ?. |
static List<Group> |
findByT_A(int type,
boolean active,
int start,
int end)
Returns a range of all the groups where type = ? and active = ?. |
static List<Group> |
findByT_A(int type,
boolean active,
int start,
int end,
OrderByComparator orderByComparator)
Returns an ordered range of all the groups where type = ? and active = ?. |
static List<Group> |
findWithDynamicQuery(DynamicQuery dynamicQuery)
|
static List<Group> |
findWithDynamicQuery(DynamicQuery dynamicQuery,
int start,
int end)
|
static List<Group> |
findWithDynamicQuery(DynamicQuery dynamicQuery,
int start,
int end,
OrderByComparator orderByComparator)
|
static List<Organization> |
getOrganizations(long pk)
Returns all the organizations associated with the group. |
static List<Organization> |
getOrganizations(long pk,
int start,
int end)
Returns a range of all the organizations associated with the group. |
static List<Organization> |
getOrganizations(long pk,
int start,
int end,
OrderByComparator orderByComparator)
Returns an ordered range of all the organizations associated with the group. |
static int |
getOrganizationsSize(long pk)
Returns the number of organizations associated with the group. |
static List<Permission> |
getPermissions(long pk)
Returns all the permissions associated with the group. |
static List<Permission> |
getPermissions(long pk,
int start,
int end)
Returns a range of all the permissions associated with the group. |
static List<Permission> |
getPermissions(long pk,
int start,
int end,
OrderByComparator orderByComparator)
Returns an ordered range of all the permissions associated with the group. |
static int |
getPermissionsSize(long pk)
Returns the number of permissions associated with the group. |
static GroupPersistence |
getPersistence()
|
static List<Role> |
getRoles(long pk)
Returns all the roles associated with the group. |
static List<Role> |
getRoles(long pk,
int start,
int end)
Returns a range of all the roles associated with the group. |
static List<Role> |
getRoles(long pk,
int start,
int end,
OrderByComparator orderByComparator)
Returns an ordered range of all the roles associated with the group. |
static int |
getRolesSize(long pk)
Returns the number of roles associated with the group. |
static List<UserGroup> |
getUserGroups(long pk)
Returns all the user groups associated with the group. |
static List<UserGroup> |
getUserGroups(long pk,
int start,
int end)
Returns a range of all the user groups associated with the group. |
static List<UserGroup> |
getUserGroups(long pk,
int start,
int end,
OrderByComparator orderByComparator)
Returns an ordered range of all the user groups associated with the group. |
static int |
getUserGroupsSize(long pk)
Returns the number of user groups associated with the group. |
static List<User> |
getUsers(long pk)
Returns all the users associated with the group. |
static List<User> |
getUsers(long pk,
int start,
int end)
Returns a range of all the users associated with the group. |
static List<User> |
getUsers(long pk,
int start,
int end,
OrderByComparator orderByComparator)
Returns an ordered range of all the users associated with the group. |
static int |
getUsersSize(long pk)
Returns the number of users associated with the group. |
static Group |
remove(long groupId)
Removes the group with the primary key from the database. |
static void |
removeAll()
Removes all the groups from the database. |
static Group |
removeByC_C_C(long companyId,
long classNameId,
long classPK)
Removes the group where companyId = ? and classNameId = ? and classPK = ? from the database. |
static Group |
removeByC_C_L_N(long companyId,
long classNameId,
long liveGroupId,
String name)
Removes the group where companyId = ? and classNameId = ? and liveGroupId = ? and name = ? from the database. |
static Group |
removeByC_F(long companyId,
String friendlyURL)
Removes the group where companyId = ? and friendlyURL = ? from the database. |
static Group |
removeByC_L_N(long companyId,
long liveGroupId,
String name)
Removes the group where companyId = ? and liveGroupId = ? and name = ? from the database. |
static Group |
removeByC_N(long companyId,
String name)
Removes the group where companyId = ? and name = ? from the database. |
static void |
removeByCompanyId(long companyId)
Removes all the groups where companyId = ? from the database. |
static Group |
removeByLiveGroupId(long liveGroupId)
Removes the group where liveGroupId = ? from the database. |
static void |
removeByT_A(int type,
boolean active)
Removes all the groups where type = ? and active = ? from the database. |
static void |
removeOrganization(long pk,
long organizationPK)
Removes the association between the group and the organization. |
static void |
removeOrganization(long pk,
Organization organization)
Removes the association between the group and the organization. |
static void |
removeOrganizations(long pk,
List<Organization> organizations)
Removes the association between the group and the organizations. |
static void |
removeOrganizations(long pk,
long[] organizationPKs)
Removes the association between the group and the organizations. |
static void |
removePermission(long pk,
long permissionPK)
Removes the association between the group and the permission. |
static void |
removePermission(long pk,
Permission permission)
Removes the association between the group and the permission. |
static void |
removePermissions(long pk,
List<Permission> permissions)
Removes the association between the group and the permissions. |
static void |
removePermissions(long pk,
long[] permissionPKs)
Removes the association between the group and the permissions. |
static void |
removeRole(long pk,
long rolePK)
Removes the association between the group and the role. |
static void |
removeRole(long pk,
Role role)
Removes the association between the group and the role. |
static void |
removeRoles(long pk,
List<Role> roles)
Removes the association between the group and the roles. |
static void |
removeRoles(long pk,
long[] rolePKs)
Removes the association between the group and the roles. |
static void |
removeUser(long pk,
long userPK)
Removes the association between the group and the user. |
static void |
removeUser(long pk,
User user)
Removes the association between the group and the user. |
static void |
removeUserGroup(long pk,
long userGroupPK)
Removes the association between the group and the user group. |
static void |
removeUserGroup(long pk,
UserGroup userGroup)
Removes the association between the group and the user group. |
static void |
removeUserGroups(long pk,
List<UserGroup> userGroups)
Removes the association between the group and the user groups. |
static void |
removeUserGroups(long pk,
long[] userGroupPKs)
Removes the association between the group and the user groups. |
static void |
removeUsers(long pk,
List<User> users)
Removes the association between the group and the users. |
static void |
removeUsers(long pk,
long[] userPKs)
Removes the association between the group and the users. |
static void |
setOrganizations(long pk,
List<Organization> organizations)
Sets the organizations associated with the group, removing and adding associations as necessary. |
static void |
setOrganizations(long pk,
long[] organizationPKs)
Sets the organizations associated with the group, removing and adding associations as necessary. |
static void |
setPermissions(long pk,
List<Permission> permissions)
Sets the permissions associated with the group, removing and adding associations as necessary. |
static void |
setPermissions(long pk,
long[] permissionPKs)
Sets the permissions associated with the group, removing and adding associations as necessary. |
void |
setPersistence(GroupPersistence persistence)
Deprecated. |
static void |
setRoles(long pk,
List<Role> roles)
Sets the roles associated with the group, removing and adding associations as necessary. |
static void |
setRoles(long pk,
long[] rolePKs)
Sets the roles associated with the group, removing and adding associations as necessary. |
static void |
setUserGroups(long pk,
List<UserGroup> userGroups)
Sets the user groups associated with the group, removing and adding associations as necessary. |
static void |
setUserGroups(long pk,
long[] userGroupPKs)
Sets the user groups associated with the group, removing and adding associations as necessary. |
static void |
setUsers(long pk,
List<User> users)
Sets the users associated with the group, removing and adding associations as necessary. |
static void |
setUsers(long pk,
long[] userPKs)
Sets the users associated with the group, removing and adding associations as necessary. |
static Group |
update(Group group,
boolean merge)
|
static Group |
update(Group group,
boolean merge,
ServiceContext serviceContext)
|
static Group |
updateImpl(Group group,
boolean merge)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public GroupUtil()
Method Detail |
---|
public static void clearCache()
BasePersistence.clearCache()
public static void clearCache(Group group)
BasePersistence.clearCache(com.liferay.portal.model.BaseModel)
public long countWithDynamicQuery(DynamicQuery dynamicQuery) throws SystemException
SystemException
BasePersistence.countWithDynamicQuery(DynamicQuery)
public static List<Group> findWithDynamicQuery(DynamicQuery dynamicQuery) throws SystemException
SystemException
BasePersistence.findWithDynamicQuery(DynamicQuery)
public static List<Group> findWithDynamicQuery(DynamicQuery dynamicQuery, int start, int end) throws SystemException
SystemException
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int)
public static List<Group> findWithDynamicQuery(DynamicQuery dynamicQuery, int start, int end, OrderByComparator orderByComparator) throws SystemException
SystemException
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)
public static Group update(Group group, boolean merge) throws SystemException
SystemException
BasePersistence.update(com.liferay.portal.model.BaseModel, boolean)
public static Group update(Group group, boolean merge, ServiceContext serviceContext) throws SystemException
SystemException
BasePersistence.update(com.liferay.portal.model.BaseModel, boolean, ServiceContext)
public static void cacheResult(Group group)
group
- the grouppublic static void cacheResult(List<Group> groups)
groups
- the groupspublic static Group create(long groupId)
groupId
- the primary key for the new group
public static Group remove(long groupId) throws NoSuchGroupException, SystemException
groupId
- the primary key of the group
NoSuchGroupException
- if a group with the primary key could not be found
SystemException
- if a system exception occurredpublic static Group updateImpl(Group group, boolean merge) throws SystemException
SystemException
public static Group findByPrimaryKey(long groupId) throws NoSuchGroupException, SystemException
NoSuchGroupException
if it could not be found.
groupId
- the primary key of the group
NoSuchGroupException
- if a group with the primary key could not be found
SystemException
- if a system exception occurredpublic static Group fetchByPrimaryKey(long groupId) throws SystemException
null
if it could not be found.
groupId
- the primary key of the group
null
if a group with the primary key could not be found
SystemException
- if a system exception occurredpublic static List<Group> findByCompanyId(long companyId) throws SystemException
companyId
- the company ID
SystemException
- if a system exception occurredpublic static List<Group> findByCompanyId(long companyId, int start, int end) throws SystemException
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.
companyId
- the company IDstart
- the lower bound of the range of groupsend
- the upper bound of the range of groups (not inclusive)
SystemException
- if a system exception occurredpublic static List<Group> findByCompanyId(long companyId, int start, int end, OrderByComparator orderByComparator) throws SystemException
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.
companyId
- the company IDstart
- the lower bound of the range of groupsend
- the upper bound of the range of groups (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)
SystemException
- if a system exception occurredpublic static Group findByCompanyId_First(long companyId, OrderByComparator orderByComparator) throws NoSuchGroupException, SystemException
companyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)
NoSuchGroupException
- if a matching group could not be found
SystemException
- if a system exception occurredpublic static Group fetchByCompanyId_First(long companyId, OrderByComparator orderByComparator) throws SystemException
companyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)
null
if a matching group could not be found
SystemException
- if a system exception occurredpublic static Group findByCompanyId_Last(long companyId, OrderByComparator orderByComparator) throws NoSuchGroupException, SystemException
companyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)
NoSuchGroupException
- if a matching group could not be found
SystemException
- if a system exception occurredpublic static Group fetchByCompanyId_Last(long companyId, OrderByComparator orderByComparator) throws SystemException
companyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)
null
if a matching group could not be found
SystemException
- if a system exception occurredpublic static Group[] findByCompanyId_PrevAndNext(long groupId, long companyId, OrderByComparator orderByComparator) throws NoSuchGroupException, SystemException
groupId
- the primary key of the current groupcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)
NoSuchGroupException
- if a group with the primary key could not be found
SystemException
- if a system exception occurredpublic static Group findByLiveGroupId(long liveGroupId) throws NoSuchGroupException, SystemException
NoSuchGroupException
if it could not be found.
liveGroupId
- the live group ID
NoSuchGroupException
- if a matching group could not be found
SystemException
- if a system exception occurredpublic static Group fetchByLiveGroupId(long liveGroupId) throws SystemException
null
if it could not be found. Uses the finder cache.
liveGroupId
- the live group ID
null
if a matching group could not be found
SystemException
- if a system exception occurredpublic static Group fetchByLiveGroupId(long liveGroupId, boolean retrieveFromCache) throws SystemException
null
if it could not be found, optionally using the finder cache.
liveGroupId
- the live group IDretrieveFromCache
- whether to use the finder cache
null
if a matching group could not be found
SystemException
- if a system exception occurredpublic static Group findByC_N(long companyId, String name) throws NoSuchGroupException, SystemException
NoSuchGroupException
if it could not be found.
companyId
- the company IDname
- the name
NoSuchGroupException
- if a matching group could not be found
SystemException
- if a system exception occurredpublic static Group fetchByC_N(long companyId, String name) throws SystemException
null
if it could not be found. Uses the finder cache.
companyId
- the company IDname
- the name
null
if a matching group could not be found
SystemException
- if a system exception occurredpublic static Group fetchByC_N(long companyId, String name, boolean retrieveFromCache) throws SystemException
null
if it could not be found, optionally using the finder cache.
companyId
- the company IDname
- the nameretrieveFromCache
- whether to use the finder cache
null
if a matching group could not be found
SystemException
- if a system exception occurredpublic static Group findByC_F(long companyId, String friendlyURL) throws NoSuchGroupException, SystemException
NoSuchGroupException
if it could not be found.
companyId
- the company IDfriendlyURL
- the friendly u r l
NoSuchGroupException
- if a matching group could not be found
SystemException
- if a system exception occurredpublic static Group fetchByC_F(long companyId, String friendlyURL) throws SystemException
null
if it could not be found. Uses the finder cache.
companyId
- the company IDfriendlyURL
- the friendly u r l
null
if a matching group could not be found
SystemException
- if a system exception occurredpublic static Group fetchByC_F(long companyId, String friendlyURL, boolean retrieveFromCache) throws SystemException
null
if it could not be found, optionally using the finder cache.
companyId
- the company IDfriendlyURL
- the friendly u r lretrieveFromCache
- whether to use the finder cache
null
if a matching group could not be found
SystemException
- if a system exception occurredpublic static List<Group> findByT_A(int type, boolean active) throws SystemException
type
- the typeactive
- the active
SystemException
- if a system exception occurredpublic static List<Group> findByT_A(int type, boolean active, int start, int end) throws SystemException
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.
type
- the typeactive
- the activestart
- the lower bound of the range of groupsend
- the upper bound of the range of groups (not inclusive)
SystemException
- if a system exception occurredpublic static List<Group> findByT_A(int type, boolean active, int start, int end, OrderByComparator orderByComparator) throws SystemException
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.
type
- the typeactive
- the activestart
- the lower bound of the range of groupsend
- the upper bound of the range of groups (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)
SystemException
- if a system exception occurredpublic static Group findByT_A_First(int type, boolean active, OrderByComparator orderByComparator) throws NoSuchGroupException, SystemException
type
- the typeactive
- the activeorderByComparator
- the comparator to order the set by (optionally null
)
NoSuchGroupException
- if a matching group could not be found
SystemException
- if a system exception occurredpublic static Group fetchByT_A_First(int type, boolean active, OrderByComparator orderByComparator) throws SystemException
type
- the typeactive
- the activeorderByComparator
- the comparator to order the set by (optionally null
)
null
if a matching group could not be found
SystemException
- if a system exception occurredpublic static Group findByT_A_Last(int type, boolean active, OrderByComparator orderByComparator) throws NoSuchGroupException, SystemException
type
- the typeactive
- the activeorderByComparator
- the comparator to order the set by (optionally null
)
NoSuchGroupException
- if a matching group could not be found
SystemException
- if a system exception occurredpublic static Group fetchByT_A_Last(int type, boolean active, OrderByComparator orderByComparator) throws SystemException
type
- the typeactive
- the activeorderByComparator
- the comparator to order the set by (optionally null
)
null
if a matching group could not be found
SystemException
- if a system exception occurredpublic static Group[] findByT_A_PrevAndNext(long groupId, int type, boolean active, OrderByComparator orderByComparator) throws NoSuchGroupException, SystemException
groupId
- the primary key of the current grouptype
- the typeactive
- the activeorderByComparator
- the comparator to order the set by (optionally null
)
NoSuchGroupException
- if a group with the primary key could not be found
SystemException
- if a system exception occurredpublic static Group findByC_C_C(long companyId, long classNameId, long classPK) throws NoSuchGroupException, SystemException
NoSuchGroupException
if it could not be found.
companyId
- the company IDclassNameId
- the class name IDclassPK
- the class p k
NoSuchGroupException
- if a matching group could not be found
SystemException
- if a system exception occurredpublic static Group fetchByC_C_C(long companyId, long classNameId, long classPK) throws SystemException
null
if it could not be found. Uses the finder cache.
companyId
- the company IDclassNameId
- the class name IDclassPK
- the class p k
null
if a matching group could not be found
SystemException
- if a system exception occurredpublic static Group fetchByC_C_C(long companyId, long classNameId, long classPK, boolean retrieveFromCache) throws SystemException
null
if it could not be found, optionally using the finder cache.
companyId
- the company IDclassNameId
- the class name IDclassPK
- the class p kretrieveFromCache
- whether to use the finder cache
null
if a matching group could not be found
SystemException
- if a system exception occurredpublic static Group findByC_L_N(long companyId, long liveGroupId, String name) throws NoSuchGroupException, SystemException
NoSuchGroupException
if it could not be found.
companyId
- the company IDliveGroupId
- the live group IDname
- the name
NoSuchGroupException
- if a matching group could not be found
SystemException
- if a system exception occurredpublic static Group fetchByC_L_N(long companyId, long liveGroupId, String name) throws SystemException
null
if it could not be found. Uses the finder cache.
companyId
- the company IDliveGroupId
- the live group IDname
- the name
null
if a matching group could not be found
SystemException
- if a system exception occurredpublic static Group fetchByC_L_N(long companyId, long liveGroupId, String name, boolean retrieveFromCache) throws SystemException
null
if it could not be found, optionally using the finder cache.
companyId
- the company IDliveGroupId
- the live group IDname
- the nameretrieveFromCache
- whether to use the finder cache
null
if a matching group could not be found
SystemException
- if a system exception occurredpublic static Group findByC_C_L_N(long companyId, long classNameId, long liveGroupId, String name) throws NoSuchGroupException, SystemException
NoSuchGroupException
if it could not be found.
companyId
- the company IDclassNameId
- the class name IDliveGroupId
- the live group IDname
- the name
NoSuchGroupException
- if a matching group could not be found
SystemException
- if a system exception occurredpublic static Group fetchByC_C_L_N(long companyId, long classNameId, long liveGroupId, String name) throws SystemException
null
if it could not be found. Uses the finder cache.
companyId
- the company IDclassNameId
- the class name IDliveGroupId
- the live group IDname
- the name
null
if a matching group could not be found
SystemException
- if a system exception occurredpublic static Group fetchByC_C_L_N(long companyId, long classNameId, long liveGroupId, String name, boolean retrieveFromCache) throws SystemException
null
if it could not be found, optionally using the finder cache.
companyId
- the company IDclassNameId
- the class name IDliveGroupId
- the live group IDname
- the nameretrieveFromCache
- whether to use the finder cache
null
if a matching group could not be found
SystemException
- if a system exception occurredpublic static List<Group> findAll() throws SystemException
SystemException
- if a system exception occurredpublic static List<Group> findAll(int start, int end) throws SystemException
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.
start
- the lower bound of the range of groupsend
- the upper bound of the range of groups (not inclusive)
SystemException
- if a system exception occurredpublic static List<Group> findAll(int start, int end, OrderByComparator orderByComparator) throws SystemException
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.
start
- the lower bound of the range of groupsend
- the upper bound of the range of groups (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)
SystemException
- if a system exception occurredpublic static void removeByCompanyId(long companyId) throws SystemException
companyId
- the company ID
SystemException
- if a system exception occurredpublic static Group removeByLiveGroupId(long liveGroupId) throws NoSuchGroupException, SystemException
liveGroupId
- the live group ID
SystemException
- if a system exception occurred
NoSuchGroupException
public static Group removeByC_N(long companyId, String name) throws NoSuchGroupException, SystemException
companyId
- the company IDname
- the name
SystemException
- if a system exception occurred
NoSuchGroupException
public static Group removeByC_F(long companyId, String friendlyURL) throws NoSuchGroupException, SystemException
companyId
- the company IDfriendlyURL
- the friendly u r l
SystemException
- if a system exception occurred
NoSuchGroupException
public static void removeByT_A(int type, boolean active) throws SystemException
type
- the typeactive
- the active
SystemException
- if a system exception occurredpublic static Group removeByC_C_C(long companyId, long classNameId, long classPK) throws NoSuchGroupException, SystemException
companyId
- the company IDclassNameId
- the class name IDclassPK
- the class p k
SystemException
- if a system exception occurred
NoSuchGroupException
public static Group removeByC_L_N(long companyId, long liveGroupId, String name) throws NoSuchGroupException, SystemException
companyId
- the company IDliveGroupId
- the live group IDname
- the name
SystemException
- if a system exception occurred
NoSuchGroupException
public static Group removeByC_C_L_N(long companyId, long classNameId, long liveGroupId, String name) throws NoSuchGroupException, SystemException
companyId
- the company IDclassNameId
- the class name IDliveGroupId
- the live group IDname
- the name
SystemException
- if a system exception occurred
NoSuchGroupException
public static void removeAll() throws SystemException
SystemException
- if a system exception occurredpublic static int countByCompanyId(long companyId) throws SystemException
companyId
- the company ID
SystemException
- if a system exception occurredpublic static int countByLiveGroupId(long liveGroupId) throws SystemException
liveGroupId
- the live group ID
SystemException
- if a system exception occurredpublic static int countByC_N(long companyId, String name) throws SystemException
companyId
- the company IDname
- the name
SystemException
- if a system exception occurredpublic static int countByC_F(long companyId, String friendlyURL) throws SystemException
companyId
- the company IDfriendlyURL
- the friendly u r l
SystemException
- if a system exception occurredpublic static int countByT_A(int type, boolean active) throws SystemException
type
- the typeactive
- the active
SystemException
- if a system exception occurredpublic static int countByC_C_C(long companyId, long classNameId, long classPK) throws SystemException
companyId
- the company IDclassNameId
- the class name IDclassPK
- the class p k
SystemException
- if a system exception occurredpublic static int countByC_L_N(long companyId, long liveGroupId, String name) throws SystemException
companyId
- the company IDliveGroupId
- the live group IDname
- the name
SystemException
- if a system exception occurredpublic static int countByC_C_L_N(long companyId, long classNameId, long liveGroupId, String name) throws SystemException
companyId
- the company IDclassNameId
- the class name IDliveGroupId
- the live group IDname
- the name
SystemException
- if a system exception occurredpublic static int countAll() throws SystemException
SystemException
- if a system exception occurredpublic static List<Organization> getOrganizations(long pk) throws SystemException
pk
- the primary key of the group
SystemException
- if a system exception occurredpublic static List<Organization> getOrganizations(long pk, int start, int end) throws SystemException
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.
pk
- the primary key of the groupstart
- the lower bound of the range of groupsend
- the upper bound of the range of groups (not inclusive)
SystemException
- if a system exception occurredpublic static List<Organization> getOrganizations(long pk, int start, int end, OrderByComparator orderByComparator) throws SystemException
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.
pk
- the primary key of the groupstart
- the lower bound of the range of groupsend
- the upper bound of the range of groups (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)
SystemException
- if a system exception occurredpublic static int getOrganizationsSize(long pk) throws SystemException
pk
- the primary key of the group
SystemException
- if a system exception occurredpublic static boolean containsOrganization(long pk, long organizationPK) throws SystemException
true
if the organization is associated with the group.
pk
- the primary key of the grouporganizationPK
- the primary key of the organization
true
if the organization is associated with the group; false
otherwise
SystemException
- if a system exception occurredpublic static boolean containsOrganizations(long pk) throws SystemException
true
if the group has any organizations associated with it.
pk
- the primary key of the group to check for associations with organizations
true
if the group has any organizations associated with it; false
otherwise
SystemException
- if a system exception occurredpublic static void addOrganization(long pk, long organizationPK) throws SystemException
pk
- the primary key of the grouporganizationPK
- the primary key of the organization
SystemException
- if a system exception occurredpublic static void addOrganization(long pk, Organization organization) throws SystemException
pk
- the primary key of the grouporganization
- the organization
SystemException
- if a system exception occurredpublic static void addOrganizations(long pk, long[] organizationPKs) throws SystemException
pk
- the primary key of the grouporganizationPKs
- the primary keys of the organizations
SystemException
- if a system exception occurredpublic static void addOrganizations(long pk, List<Organization> organizations) throws SystemException
pk
- the primary key of the grouporganizations
- the organizations
SystemException
- if a system exception occurredpublic static void clearOrganizations(long pk) throws SystemException
pk
- the primary key of the group to clear the associated organizations from
SystemException
- if a system exception occurredpublic static void removeOrganization(long pk, long organizationPK) throws SystemException
pk
- the primary key of the grouporganizationPK
- the primary key of the organization
SystemException
- if a system exception occurredpublic static void removeOrganization(long pk, Organization organization) throws SystemException
pk
- the primary key of the grouporganization
- the organization
SystemException
- if a system exception occurredpublic static void removeOrganizations(long pk, long[] organizationPKs) throws SystemException
pk
- the primary key of the grouporganizationPKs
- the primary keys of the organizations
SystemException
- if a system exception occurredpublic static void removeOrganizations(long pk, List<Organization> organizations) throws SystemException
pk
- the primary key of the grouporganizations
- the organizations
SystemException
- if a system exception occurredpublic static void setOrganizations(long pk, long[] organizationPKs) throws SystemException
pk
- the primary key of the grouporganizationPKs
- the primary keys of the organizations to be associated with the group
SystemException
- if a system exception occurredpublic static void setOrganizations(long pk, List<Organization> organizations) throws SystemException
pk
- the primary key of the grouporganizations
- the organizations to be associated with the group
SystemException
- if a system exception occurredpublic static List<Permission> getPermissions(long pk) throws SystemException
pk
- the primary key of the group
SystemException
- if a system exception occurredpublic static List<Permission> getPermissions(long pk, int start, int end) throws SystemException
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.
pk
- the primary key of the groupstart
- the lower bound of the range of groupsend
- the upper bound of the range of groups (not inclusive)
SystemException
- if a system exception occurredpublic static List<Permission> getPermissions(long pk, int start, int end, OrderByComparator orderByComparator) throws SystemException
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.
pk
- the primary key of the groupstart
- the lower bound of the range of groupsend
- the upper bound of the range of groups (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)
SystemException
- if a system exception occurredpublic static int getPermissionsSize(long pk) throws SystemException
pk
- the primary key of the group
SystemException
- if a system exception occurredpublic static boolean containsPermission(long pk, long permissionPK) throws SystemException
true
if the permission is associated with the group.
pk
- the primary key of the grouppermissionPK
- the primary key of the permission
true
if the permission is associated with the group; false
otherwise
SystemException
- if a system exception occurredpublic static boolean containsPermissions(long pk) throws SystemException
true
if the group has any permissions associated with it.
pk
- the primary key of the group to check for associations with permissions
true
if the group has any permissions associated with it; false
otherwise
SystemException
- if a system exception occurredpublic static void addPermission(long pk, long permissionPK) throws SystemException
pk
- the primary key of the grouppermissionPK
- the primary key of the permission
SystemException
- if a system exception occurredpublic static void addPermission(long pk, Permission permission) throws SystemException
pk
- the primary key of the grouppermission
- the permission
SystemException
- if a system exception occurredpublic static void addPermissions(long pk, long[] permissionPKs) throws SystemException
pk
- the primary key of the grouppermissionPKs
- the primary keys of the permissions
SystemException
- if a system exception occurredpublic static void addPermissions(long pk, List<Permission> permissions) throws SystemException
pk
- the primary key of the grouppermissions
- the permissions
SystemException
- if a system exception occurredpublic static void clearPermissions(long pk) throws SystemException
pk
- the primary key of the group to clear the associated permissions from
SystemException
- if a system exception occurredpublic static void removePermission(long pk, long permissionPK) throws SystemException
pk
- the primary key of the grouppermissionPK
- the primary key of the permission
SystemException
- if a system exception occurredpublic static void removePermission(long pk, Permission permission) throws SystemException
pk
- the primary key of the grouppermission
- the permission
SystemException
- if a system exception occurredpublic static void removePermissions(long pk, long[] permissionPKs) throws SystemException
pk
- the primary key of the grouppermissionPKs
- the primary keys of the permissions
SystemException
- if a system exception occurredpublic static void removePermissions(long pk, List<Permission> permissions) throws SystemException
pk
- the primary key of the grouppermissions
- the permissions
SystemException
- if a system exception occurredpublic static void setPermissions(long pk, long[] permissionPKs) throws SystemException
pk
- the primary key of the grouppermissionPKs
- the primary keys of the permissions to be associated with the group
SystemException
- if a system exception occurredpublic static void setPermissions(long pk, List<Permission> permissions) throws SystemException
pk
- the primary key of the grouppermissions
- the permissions to be associated with the group
SystemException
- if a system exception occurredpublic static List<Role> getRoles(long pk) throws SystemException
pk
- the primary key of the group
SystemException
- if a system exception occurredpublic static List<Role> getRoles(long pk, int start, int end) throws SystemException
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.
pk
- the primary key of the groupstart
- the lower bound of the range of groupsend
- the upper bound of the range of groups (not inclusive)
SystemException
- if a system exception occurredpublic static List<Role> getRoles(long pk, int start, int end, OrderByComparator orderByComparator) throws SystemException
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.
pk
- the primary key of the groupstart
- the lower bound of the range of groupsend
- the upper bound of the range of groups (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)
SystemException
- if a system exception occurredpublic static int getRolesSize(long pk) throws SystemException
pk
- the primary key of the group
SystemException
- if a system exception occurredpublic static boolean containsRole(long pk, long rolePK) throws SystemException
true
if the role is associated with the group.
pk
- the primary key of the grouprolePK
- the primary key of the role
true
if the role is associated with the group; false
otherwise
SystemException
- if a system exception occurredpublic static boolean containsRoles(long pk) throws SystemException
true
if the group has any roles associated with it.
pk
- the primary key of the group to check for associations with roles
true
if the group has any roles associated with it; false
otherwise
SystemException
- if a system exception occurredpublic static void addRole(long pk, long rolePK) throws SystemException
pk
- the primary key of the grouprolePK
- the primary key of the role
SystemException
- if a system exception occurredpublic static void addRole(long pk, Role role) throws SystemException
pk
- the primary key of the grouprole
- the role
SystemException
- if a system exception occurredpublic static void addRoles(long pk, long[] rolePKs) throws SystemException
pk
- the primary key of the grouprolePKs
- the primary keys of the roles
SystemException
- if a system exception occurredpublic static void addRoles(long pk, List<Role> roles) throws SystemException
pk
- the primary key of the grouproles
- the roles
SystemException
- if a system exception occurredpublic static void clearRoles(long pk) throws SystemException
pk
- the primary key of the group to clear the associated roles from
SystemException
- if a system exception occurredpublic static void removeRole(long pk, long rolePK) throws SystemException
pk
- the primary key of the grouprolePK
- the primary key of the role
SystemException
- if a system exception occurredpublic static void removeRole(long pk, Role role) throws SystemException
pk
- the primary key of the grouprole
- the role
SystemException
- if a system exception occurredpublic static void removeRoles(long pk, long[] rolePKs) throws SystemException
pk
- the primary key of the grouprolePKs
- the primary keys of the roles
SystemException
- if a system exception occurredpublic static void removeRoles(long pk, List<Role> roles) throws SystemException
pk
- the primary key of the grouproles
- the roles
SystemException
- if a system exception occurredpublic static void setRoles(long pk, long[] rolePKs) throws SystemException
pk
- the primary key of the grouprolePKs
- the primary keys of the roles to be associated with the group
SystemException
- if a system exception occurredpublic static void setRoles(long pk, List<Role> roles) throws SystemException
pk
- the primary key of the grouproles
- the roles to be associated with the group
SystemException
- if a system exception occurredpublic static List<UserGroup> getUserGroups(long pk) throws SystemException
pk
- the primary key of the group
SystemException
- if a system exception occurredpublic static List<UserGroup> getUserGroups(long pk, int start, int end) throws SystemException
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.
pk
- the primary key of the groupstart
- the lower bound of the range of groupsend
- the upper bound of the range of groups (not inclusive)
SystemException
- if a system exception occurredpublic static List<UserGroup> getUserGroups(long pk, int start, int end, OrderByComparator orderByComparator) throws SystemException
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.
pk
- the primary key of the groupstart
- the lower bound of the range of groupsend
- the upper bound of the range of groups (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)
SystemException
- if a system exception occurredpublic static int getUserGroupsSize(long pk) throws SystemException
pk
- the primary key of the group
SystemException
- if a system exception occurredpublic static boolean containsUserGroup(long pk, long userGroupPK) throws SystemException
true
if the user group is associated with the group.
pk
- the primary key of the groupuserGroupPK
- the primary key of the user group
true
if the user group is associated with the group; false
otherwise
SystemException
- if a system exception occurredpublic static boolean containsUserGroups(long pk) throws SystemException
true
if the group has any user groups associated with it.
pk
- the primary key of the group to check for associations with user groups
true
if the group has any user groups associated with it; false
otherwise
SystemException
- if a system exception occurredpublic static void addUserGroup(long pk, long userGroupPK) throws SystemException
pk
- the primary key of the groupuserGroupPK
- the primary key of the user group
SystemException
- if a system exception occurredpublic static void addUserGroup(long pk, UserGroup userGroup) throws SystemException
pk
- the primary key of the groupuserGroup
- the user group
SystemException
- if a system exception occurredpublic static void addUserGroups(long pk, long[] userGroupPKs) throws SystemException
pk
- the primary key of the groupuserGroupPKs
- the primary keys of the user groups
SystemException
- if a system exception occurredpublic static void addUserGroups(long pk, List<UserGroup> userGroups) throws SystemException
pk
- the primary key of the groupuserGroups
- the user groups
SystemException
- if a system exception occurredpublic static void clearUserGroups(long pk) throws SystemException
pk
- the primary key of the group to clear the associated user groups from
SystemException
- if a system exception occurredpublic static void removeUserGroup(long pk, long userGroupPK) throws SystemException
pk
- the primary key of the groupuserGroupPK
- the primary key of the user group
SystemException
- if a system exception occurredpublic static void removeUserGroup(long pk, UserGroup userGroup) throws SystemException
pk
- the primary key of the groupuserGroup
- the user group
SystemException
- if a system exception occurredpublic static void removeUserGroups(long pk, long[] userGroupPKs) throws SystemException
pk
- the primary key of the groupuserGroupPKs
- the primary keys of the user groups
SystemException
- if a system exception occurredpublic static void removeUserGroups(long pk, List<UserGroup> userGroups) throws SystemException
pk
- the primary key of the groupuserGroups
- the user groups
SystemException
- if a system exception occurredpublic static void setUserGroups(long pk, long[] userGroupPKs) throws SystemException
pk
- the primary key of the groupuserGroupPKs
- the primary keys of the user groups to be associated with the group
SystemException
- if a system exception occurredpublic static void setUserGroups(long pk, List<UserGroup> userGroups) throws SystemException
pk
- the primary key of the groupuserGroups
- the user groups to be associated with the group
SystemException
- if a system exception occurredpublic static List<User> getUsers(long pk) throws SystemException
pk
- the primary key of the group
SystemException
- if a system exception occurredpublic static List<User> getUsers(long pk, int start, int end) throws SystemException
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.
pk
- the primary key of the groupstart
- the lower bound of the range of groupsend
- the upper bound of the range of groups (not inclusive)
SystemException
- if a system exception occurredpublic static List<User> getUsers(long pk, int start, int end, OrderByComparator orderByComparator) throws SystemException
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.
pk
- the primary key of the groupstart
- the lower bound of the range of groupsend
- the upper bound of the range of groups (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)
SystemException
- if a system exception occurredpublic static int getUsersSize(long pk) throws SystemException
pk
- the primary key of the group
SystemException
- if a system exception occurredpublic static boolean containsUser(long pk, long userPK) throws SystemException
true
if the user is associated with the group.
pk
- the primary key of the groupuserPK
- the primary key of the user
true
if the user is associated with the group; false
otherwise
SystemException
- if a system exception occurredpublic static boolean containsUsers(long pk) throws SystemException
true
if the group has any users associated with it.
pk
- the primary key of the group to check for associations with users
true
if the group has any users associated with it; false
otherwise
SystemException
- if a system exception occurredpublic static void addUser(long pk, long userPK) throws SystemException
pk
- the primary key of the groupuserPK
- the primary key of the user
SystemException
- if a system exception occurredpublic static void addUser(long pk, User user) throws SystemException
pk
- the primary key of the groupuser
- the user
SystemException
- if a system exception occurredpublic static void addUsers(long pk, long[] userPKs) throws SystemException
pk
- the primary key of the groupuserPKs
- the primary keys of the users
SystemException
- if a system exception occurredpublic static void addUsers(long pk, List<User> users) throws SystemException
pk
- the primary key of the groupusers
- the users
SystemException
- if a system exception occurredpublic static void clearUsers(long pk) throws SystemException
pk
- the primary key of the group to clear the associated users from
SystemException
- if a system exception occurredpublic static void removeUser(long pk, long userPK) throws SystemException
pk
- the primary key of the groupuserPK
- the primary key of the user
SystemException
- if a system exception occurredpublic static void removeUser(long pk, User user) throws SystemException
pk
- the primary key of the groupuser
- the user
SystemException
- if a system exception occurredpublic static void removeUsers(long pk, long[] userPKs) throws SystemException
pk
- the primary key of the groupuserPKs
- the primary keys of the users
SystemException
- if a system exception occurredpublic static void removeUsers(long pk, List<User> users) throws SystemException
pk
- the primary key of the groupusers
- the users
SystemException
- if a system exception occurredpublic static void setUsers(long pk, long[] userPKs) throws SystemException
pk
- the primary key of the groupuserPKs
- the primary keys of the users to be associated with the group
SystemException
- if a system exception occurredpublic static void setUsers(long pk, List<User> users) throws SystemException
pk
- the primary key of the groupusers
- the users to be associated with the group
SystemException
- if a system exception occurredpublic static GroupPersistence getPersistence()
public void setPersistence(GroupPersistence persistence)
|
Liferay 6.1.2-ce-ga3 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |