|
Liferay 6.0.4 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface RolePersistence
The persistence interface for the role service.
Never modify this interface directly. Modify service.xml and rerun ServiceBuilder to regnerate this interface.
RolePersistenceImpl,
RoleUtil| Method Summary | |
|---|---|
void |
addGroup(long pk,
Group group)
Adds an association between the role and the group. |
void |
addGroup(long pk,
long groupPK)
Adds an association between the role and the group. |
void |
addGroups(long pk,
List<Group> groups)
Adds an association between the role and the groups. |
void |
addGroups(long pk,
long[] groupPKs)
Adds an association between the role and the groups. |
void |
addPermission(long pk,
long permissionPK)
Adds an association between the role and the permission. |
void |
addPermission(long pk,
Permission permission)
Adds an association between the role and the permission. |
void |
addPermissions(long pk,
List<Permission> permissions)
Adds an association between the role and the permissions. |
void |
addPermissions(long pk,
long[] permissionPKs)
Adds an association between the role and the permissions. |
void |
addUser(long pk,
long userPK)
Adds an association between the role and the user. |
void |
addUser(long pk,
User user)
Adds an association between the role and the user. |
void |
addUsers(long pk,
List<User> users)
Adds an association between the role and the users. |
void |
addUsers(long pk,
long[] userPKs)
Adds an association between the role and the users. |
void |
cacheResult(List<Role> roles)
Caches the roles in the entity cache if it is enabled. |
void |
cacheResult(Role role)
Caches the role in the entity cache if it is enabled. |
void |
clearGroups(long pk)
Clears all associations between the role and its groups. |
void |
clearPermissions(long pk)
Clears all associations between the role and its permissions. |
void |
clearUsers(long pk)
Clears all associations between the role and its users. |
boolean |
containsGroup(long pk,
long groupPK)
Determines whether the group is associated with the role. |
boolean |
containsGroups(long pk)
Determines whether the role has any groups associated with it. |
boolean |
containsPermission(long pk,
long permissionPK)
Determines whether the permission is associated with the role. |
boolean |
containsPermissions(long pk)
Determines whether the role has any permissions associated with it. |
boolean |
containsUser(long pk,
long userPK)
Determines whether the user is associated with the role. |
boolean |
containsUsers(long pk)
Determines whether the role has any users associated with it. |
int |
countAll()
Counts all the roles. |
int |
countByC_C_C(long companyId,
long classNameId,
long classPK)
Counts all the roles where companyId = ? and classNameId = ? and classPK = ?. |
int |
countByC_N(long companyId,
String name)
Counts all the roles where companyId = ? and name = ?. |
int |
countByCompanyId(long companyId)
Counts all the roles where companyId = ?. |
int |
countBySubtype(String subtype)
Counts all the roles where subtype = ?. |
int |
countByT_S(int type,
String subtype)
Counts all the roles where type = ? and subtype = ?. |
Role |
create(long roleId)
Creates a new role with the primary key. |
Role |
fetchByC_C_C(long companyId,
long classNameId,
long classPK)
Finds the role where companyId = ? and classNameId = ? and classPK = ? or returns null if it could not be found. |
Role |
fetchByC_C_C(long companyId,
long classNameId,
long classPK,
boolean retrieveFromCache)
Finds the role where companyId = ? and classNameId = ? and classPK = ? or returns null if it could not be found, optionally using the finder cache. |
Role |
fetchByC_N(long companyId,
String name)
Finds the role where companyId = ? and name = ? or returns null if it could not be found. |
Role |
fetchByC_N(long companyId,
String name,
boolean retrieveFromCache)
Finds the role where companyId = ? and name = ? or returns null if it could not be found, optionally using the finder cache. |
Role |
fetchByPrimaryKey(long roleId)
Finds the role with the primary key or returns null if it could not be found. |
List<Role> |
findAll()
Finds all the roles. |
List<Role> |
findAll(int start,
int end)
Finds a range of all the roles. |
List<Role> |
findAll(int start,
int end,
OrderByComparator orderByComparator)
Finds an ordered range of all the roles. |
Role |
findByC_C_C(long companyId,
long classNameId,
long classPK)
Finds the role where companyId = ? and classNameId = ? and classPK = ? or throws a NoSuchRoleException if it could not be found. |
Role |
findByC_N(long companyId,
String name)
Finds the role where companyId = ? and name = ? or throws a NoSuchRoleException if it could not be found. |
Role |
findByCompanyId_First(long companyId,
OrderByComparator orderByComparator)
Finds the first role in the ordered set where companyId = ?. |
Role |
findByCompanyId_Last(long companyId,
OrderByComparator orderByComparator)
Finds the last role in the ordered set where companyId = ?. |
Role[] |
findByCompanyId_PrevAndNext(long roleId,
long companyId,
OrderByComparator orderByComparator)
Finds the roles before and after the current role in the ordered set where companyId = ?. |
List<Role> |
findByCompanyId(long companyId)
Finds all the roles where companyId = ?. |
List<Role> |
findByCompanyId(long companyId,
int start,
int end)
Finds a range of all the roles where companyId = ?. |
List<Role> |
findByCompanyId(long companyId,
int start,
int end,
OrderByComparator orderByComparator)
Finds an ordered range of all the roles where companyId = ?. |
Role |
findByPrimaryKey(long roleId)
Finds the role with the primary key or throws a NoSuchRoleException if it could not be found. |
Role |
findBySubtype_First(String subtype,
OrderByComparator orderByComparator)
Finds the first role in the ordered set where subtype = ?. |
Role |
findBySubtype_Last(String subtype,
OrderByComparator orderByComparator)
Finds the last role in the ordered set where subtype = ?. |
Role[] |
findBySubtype_PrevAndNext(long roleId,
String subtype,
OrderByComparator orderByComparator)
Finds the roles before and after the current role in the ordered set where subtype = ?. |
List<Role> |
findBySubtype(String subtype)
Finds all the roles where subtype = ?. |
List<Role> |
findBySubtype(String subtype,
int start,
int end)
Finds a range of all the roles where subtype = ?. |
List<Role> |
findBySubtype(String subtype,
int start,
int end,
OrderByComparator orderByComparator)
Finds an ordered range of all the roles where subtype = ?. |
Role |
findByT_S_First(int type,
String subtype,
OrderByComparator orderByComparator)
Finds the first role in the ordered set where type = ? and subtype = ?. |
Role |
findByT_S_Last(int type,
String subtype,
OrderByComparator orderByComparator)
Finds the last role in the ordered set where type = ? and subtype = ?. |
Role[] |
findByT_S_PrevAndNext(long roleId,
int type,
String subtype,
OrderByComparator orderByComparator)
Finds the roles before and after the current role in the ordered set where type = ? and subtype = ?. |
List<Role> |
findByT_S(int type,
String subtype)
Finds all the roles where type = ? and subtype = ?. |
List<Role> |
findByT_S(int type,
String subtype,
int start,
int end)
Finds a range of all the roles where type = ? and subtype = ?. |
List<Role> |
findByT_S(int type,
String subtype,
int start,
int end,
OrderByComparator orderByComparator)
Finds an ordered range of all the roles where type = ? and subtype = ?. |
List<Group> |
getGroups(long pk)
Gets all the groups associated with the role. |
List<Group> |
getGroups(long pk,
int start,
int end)
Gets a range of all the groups associated with the role. |
List<Group> |
getGroups(long pk,
int start,
int end,
OrderByComparator orderByComparator)
Gets an ordered range of all the groups associated with the role. |
int |
getGroupsSize(long pk)
Gets the number of groups associated with the role. |
List<Permission> |
getPermissions(long pk)
Gets all the permissions associated with the role. |
List<Permission> |
getPermissions(long pk,
int start,
int end)
Gets a range of all the permissions associated with the role. |
List<Permission> |
getPermissions(long pk,
int start,
int end,
OrderByComparator orderByComparator)
Gets an ordered range of all the permissions associated with the role. |
int |
getPermissionsSize(long pk)
Gets the number of permissions associated with the role. |
List<User> |
getUsers(long pk)
Gets all the users associated with the role. |
List<User> |
getUsers(long pk,
int start,
int end)
Gets a range of all the users associated with the role. |
List<User> |
getUsers(long pk,
int start,
int end,
OrderByComparator orderByComparator)
Gets an ordered range of all the users associated with the role. |
int |
getUsersSize(long pk)
Gets the number of users associated with the role. |
Role |
remove(long roleId)
Removes the role with the primary key from the database. |
void |
removeAll()
Removes all the roles from the database. |
void |
removeByC_C_C(long companyId,
long classNameId,
long classPK)
Removes the role where companyId = ? and classNameId = ? and classPK = ? from the database. |
void |
removeByC_N(long companyId,
String name)
Removes the role where companyId = ? and name = ? from the database. |
void |
removeByCompanyId(long companyId)
Removes all the roles where companyId = ? from the database. |
void |
removeBySubtype(String subtype)
Removes all the roles where subtype = ? from the database. |
void |
removeByT_S(int type,
String subtype)
Removes all the roles where type = ? and subtype = ? from the database. |
void |
removeGroup(long pk,
Group group)
Removes the association between the role and the group. |
void |
removeGroup(long pk,
long groupPK)
Removes the association between the role and the group. |
void |
removeGroups(long pk,
List<Group> groups)
Removes the association between the role and the groups. |
void |
removeGroups(long pk,
long[] groupPKs)
Removes the association between the role and the groups. |
void |
removePermission(long pk,
long permissionPK)
Removes the association between the role and the permission. |
void |
removePermission(long pk,
Permission permission)
Removes the association between the role and the permission. |
void |
removePermissions(long pk,
List<Permission> permissions)
Removes the association between the role and the permissions. |
void |
removePermissions(long pk,
long[] permissionPKs)
Removes the association between the role and the permissions. |
void |
removeUser(long pk,
long userPK)
Removes the association between the role and the user. |
void |
removeUser(long pk,
User user)
Removes the association between the role and the user. |
void |
removeUsers(long pk,
List<User> users)
Removes the association between the role and the users. |
void |
removeUsers(long pk,
long[] userPKs)
Removes the association between the role and the users. |
void |
setGroups(long pk,
List<Group> groups)
Sets the groups associated with the role, removing and adding associations as necessary. |
void |
setGroups(long pk,
long[] groupPKs)
Sets the groups associated with the role, removing and adding associations as necessary. |
void |
setPermissions(long pk,
List<Permission> permissions)
Sets the permissions associated with the role, removing and adding associations as necessary. |
void |
setPermissions(long pk,
long[] permissionPKs)
Sets the permissions associated with the role, removing and adding associations as necessary. |
void |
setUsers(long pk,
List<User> users)
Sets the users associated with the role, removing and adding associations as necessary. |
void |
setUsers(long pk,
long[] userPKs)
Sets the users associated with the role, removing and adding associations as necessary. |
Role |
updateImpl(Role role,
boolean merge)
|
| Methods inherited from interface com.liferay.portal.service.persistence.BasePersistence |
|---|
clearCache, clearCache, countWithDynamicQuery, fetchByPrimaryKey, findByPrimaryKey, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, getDataSource, getListeners, registerListener, remove, remove, setDataSource, unregisterListener, update, update |
| Method Detail |
|---|
void cacheResult(Role role)
role - the role to cachevoid cacheResult(List<Role> roles)
roles - the roles to cacheRole create(long roleId)
roleId - the primary key for the new role
Role remove(long roleId)
throws NoSuchRoleException,
SystemException
roleId - the primary key of the role to remove
NoSuchRoleException - if a role with the primary key could not be found
SystemException - if a system exception occurred
Role updateImpl(Role role,
boolean merge)
throws SystemException
SystemException
Role findByPrimaryKey(long roleId)
throws NoSuchRoleException,
SystemException
NoSuchRoleException if it could not be found.
roleId - the primary key of the role to find
NoSuchRoleException - if a role with the primary key could not be found
SystemException - if a system exception occurred
Role fetchByPrimaryKey(long roleId)
throws SystemException
null if it could not be found.
roleId - the primary key of the role to find
null if a role with the primary key could not be found
SystemException - if a system exception occurred
List<Role> findByCompanyId(long companyId)
throws SystemException
companyId - the company id to search with
SystemException - if a system exception occurred
List<Role> 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 id to search withstart - the lower bound of the range of roles to returnend - the upper bound of the range of roles to return (not inclusive)
SystemException - if a system exception occurred
List<Role> 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 id to search withstart - the lower bound of the range of roles to returnend - the upper bound of the range of roles to return (not inclusive)orderByComparator - the comparator to order the results by
SystemException - if a system exception occurred
Role findByCompanyId_First(long companyId,
OrderByComparator orderByComparator)
throws NoSuchRoleException,
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 id to search withorderByComparator - the comparator to order the set by
NoSuchRoleException - if a matching role could not be found
SystemException - if a system exception occurred
Role findByCompanyId_Last(long companyId,
OrderByComparator orderByComparator)
throws NoSuchRoleException,
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 id to search withorderByComparator - the comparator to order the set by
NoSuchRoleException - if a matching role could not be found
SystemException - if a system exception occurred
Role[] findByCompanyId_PrevAndNext(long roleId,
long companyId,
OrderByComparator orderByComparator)
throws NoSuchRoleException,
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.
roleId - the primary key of the current rolecompanyId - the company id to search withorderByComparator - the comparator to order the set by
NoSuchRoleException - if a role with the primary key could not be found
SystemException - if a system exception occurred
List<Role> findBySubtype(String subtype)
throws SystemException
subtype - the subtype to search with
SystemException - if a system exception occurred
List<Role> findBySubtype(String subtype,
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.
subtype - the subtype to search withstart - the lower bound of the range of roles to returnend - the upper bound of the range of roles to return (not inclusive)
SystemException - if a system exception occurred
List<Role> findBySubtype(String subtype,
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.
subtype - the subtype to search withstart - the lower bound of the range of roles to returnend - the upper bound of the range of roles to return (not inclusive)orderByComparator - the comparator to order the results by
SystemException - if a system exception occurred
Role findBySubtype_First(String subtype,
OrderByComparator orderByComparator)
throws NoSuchRoleException,
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.
subtype - the subtype to search withorderByComparator - the comparator to order the set by
NoSuchRoleException - if a matching role could not be found
SystemException - if a system exception occurred
Role findBySubtype_Last(String subtype,
OrderByComparator orderByComparator)
throws NoSuchRoleException,
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.
subtype - the subtype to search withorderByComparator - the comparator to order the set by
NoSuchRoleException - if a matching role could not be found
SystemException - if a system exception occurred
Role[] findBySubtype_PrevAndNext(long roleId,
String subtype,
OrderByComparator orderByComparator)
throws NoSuchRoleException,
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.
roleId - the primary key of the current rolesubtype - the subtype to search withorderByComparator - the comparator to order the set by
NoSuchRoleException - if a role with the primary key could not be found
SystemException - if a system exception occurred
Role findByC_N(long companyId,
String name)
throws NoSuchRoleException,
SystemException
NoSuchRoleException if it could not be found.
companyId - the company id to search withname - the name to search with
NoSuchRoleException - if a matching role could not be found
SystemException - if a system exception occurred
Role fetchByC_N(long companyId,
String name)
throws SystemException
null if it could not be found. Uses the finder cache.
companyId - the company id to search withname - the name to search with
null if a matching role could not be found
SystemException - if a system exception occurred
Role 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 id to search withname - the name to search with
null if a matching role could not be found
SystemException - if a system exception occurred
List<Role> findByT_S(int type,
String subtype)
throws SystemException
type - the type to search withsubtype - the subtype to search with
SystemException - if a system exception occurred
List<Role> findByT_S(int type,
String subtype,
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 type to search withsubtype - the subtype to search withstart - the lower bound of the range of roles to returnend - the upper bound of the range of roles to return (not inclusive)
SystemException - if a system exception occurred
List<Role> findByT_S(int type,
String subtype,
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 type to search withsubtype - the subtype to search withstart - the lower bound of the range of roles to returnend - the upper bound of the range of roles to return (not inclusive)orderByComparator - the comparator to order the results by
SystemException - if a system exception occurred
Role findByT_S_First(int type,
String subtype,
OrderByComparator orderByComparator)
throws NoSuchRoleException,
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 type to search withsubtype - the subtype to search withorderByComparator - the comparator to order the set by
NoSuchRoleException - if a matching role could not be found
SystemException - if a system exception occurred
Role findByT_S_Last(int type,
String subtype,
OrderByComparator orderByComparator)
throws NoSuchRoleException,
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 type to search withsubtype - the subtype to search withorderByComparator - the comparator to order the set by
NoSuchRoleException - if a matching role could not be found
SystemException - if a system exception occurred
Role[] findByT_S_PrevAndNext(long roleId,
int type,
String subtype,
OrderByComparator orderByComparator)
throws NoSuchRoleException,
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.
roleId - the primary key of the current roletype - the type to search withsubtype - the subtype to search withorderByComparator - the comparator to order the set by
NoSuchRoleException - if a role with the primary key could not be found
SystemException - if a system exception occurred
Role findByC_C_C(long companyId,
long classNameId,
long classPK)
throws NoSuchRoleException,
SystemException
NoSuchRoleException if it could not be found.
companyId - the company id to search withclassNameId - the class name id to search withclassPK - the class p k to search with
NoSuchRoleException - if a matching role could not be found
SystemException - if a system exception occurred
Role 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 id to search withclassNameId - the class name id to search withclassPK - the class p k to search with
null if a matching role could not be found
SystemException - if a system exception occurred
Role 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 id to search withclassNameId - the class name id to search withclassPK - the class p k to search with
null if a matching role could not be found
SystemException - if a system exception occurred
List<Role> findAll()
throws SystemException
SystemException - if a system exception occurred
List<Role> 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 roles to returnend - the upper bound of the range of roles to return (not inclusive)
SystemException - if a system exception occurred
List<Role> 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 roles to returnend - the upper bound of the range of roles to return (not inclusive)orderByComparator - the comparator to order the results by
SystemException - if a system exception occurred
void removeByCompanyId(long companyId)
throws SystemException
companyId - the company id to search with
SystemException - if a system exception occurred
void removeBySubtype(String subtype)
throws SystemException
subtype - the subtype to search with
SystemException - if a system exception occurred
void removeByC_N(long companyId,
String name)
throws NoSuchRoleException,
SystemException
companyId - the company id to search withname - the name to search with
SystemException - if a system exception occurred
NoSuchRoleException
void removeByT_S(int type,
String subtype)
throws SystemException
type - the type to search withsubtype - the subtype to search with
SystemException - if a system exception occurred
void removeByC_C_C(long companyId,
long classNameId,
long classPK)
throws NoSuchRoleException,
SystemException
companyId - the company id to search withclassNameId - the class name id to search withclassPK - the class p k to search with
SystemException - if a system exception occurred
NoSuchRoleException
void removeAll()
throws SystemException
SystemException - if a system exception occurred
int countByCompanyId(long companyId)
throws SystemException
companyId - the company id to search with
SystemException - if a system exception occurred
int countBySubtype(String subtype)
throws SystemException
subtype - the subtype to search with
SystemException - if a system exception occurred
int countByC_N(long companyId,
String name)
throws SystemException
companyId - the company id to search withname - the name to search with
SystemException - if a system exception occurred
int countByT_S(int type,
String subtype)
throws SystemException
type - the type to search withsubtype - the subtype to search with
SystemException - if a system exception occurred
int countByC_C_C(long companyId,
long classNameId,
long classPK)
throws SystemException
companyId - the company id to search withclassNameId - the class name id to search withclassPK - the class p k to search with
SystemException - if a system exception occurred
int countAll()
throws SystemException
SystemException - if a system exception occurred
List<Group> getGroups(long pk)
throws SystemException
pk - the primary key of the role to get the associated groups for
SystemException - if a system exception occurred
List<Group> getGroups(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 role to get the associated groups forstart - the lower bound of the range of roles to returnend - the upper bound of the range of roles to return (not inclusive)
SystemException - if a system exception occurred
List<Group> getGroups(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 role to get the associated groups forstart - the lower bound of the range of roles to returnend - the upper bound of the range of roles to return (not inclusive)orderByComparator - the comparator to order the results by
SystemException - if a system exception occurred
int getGroupsSize(long pk)
throws SystemException
pk - the primary key of the role to get the number of associated groups for
SystemException - if a system exception occurred
boolean containsGroup(long pk,
long groupPK)
throws SystemException
pk - the primary key of the rolegroupPK - the primary key of the group
SystemException - if a system exception occurred
boolean containsGroups(long pk)
throws SystemException
pk - the primary key of the role to check for associations with groups
SystemException - if a system exception occurred
void addGroup(long pk,
long groupPK)
throws SystemException
pk - the primary key of the rolegroupPK - the primary key of the group
SystemException - if a system exception occurred
void addGroup(long pk,
Group group)
throws SystemException
pk - the primary key of the rolegroup - the group
SystemException - if a system exception occurred
void addGroups(long pk,
long[] groupPKs)
throws SystemException
pk - the primary key of the rolegroupPKs - the primary keys of the groups
SystemException - if a system exception occurred
void addGroups(long pk,
List<Group> groups)
throws SystemException
pk - the primary key of the rolegroups - the groups
SystemException - if a system exception occurred
void clearGroups(long pk)
throws SystemException
pk - the primary key of the role to clear the associated groups from
SystemException - if a system exception occurred
void removeGroup(long pk,
long groupPK)
throws SystemException
pk - the primary key of the rolegroupPK - the primary key of the group
SystemException - if a system exception occurred
void removeGroup(long pk,
Group group)
throws SystemException
pk - the primary key of the rolegroup - the group
SystemException - if a system exception occurred
void removeGroups(long pk,
long[] groupPKs)
throws SystemException
pk - the primary key of the rolegroupPKs - the primary keys of the groups
SystemException - if a system exception occurred
void removeGroups(long pk,
List<Group> groups)
throws SystemException
pk - the primary key of the rolegroups - the groups
SystemException - if a system exception occurred
void setGroups(long pk,
long[] groupPKs)
throws SystemException
pk - the primary key of the role to set the associations forgroupPKs - the primary keys of the groups to be associated with the role
SystemException - if a system exception occurred
void setGroups(long pk,
List<Group> groups)
throws SystemException
pk - the primary key of the role to set the associations forgroups - the groups to be associated with the role
SystemException - if a system exception occurred
List<Permission> getPermissions(long pk)
throws SystemException
pk - the primary key of the role to get the associated permissions for
SystemException - if a system exception occurred
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 role to get the associated permissions forstart - the lower bound of the range of roles to returnend - the upper bound of the range of roles to return (not inclusive)
SystemException - if a system exception occurred
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 role to get the associated permissions forstart - the lower bound of the range of roles to returnend - the upper bound of the range of roles to return (not inclusive)orderByComparator - the comparator to order the results by
SystemException - if a system exception occurred
int getPermissionsSize(long pk)
throws SystemException
pk - the primary key of the role to get the number of associated permissions for
SystemException - if a system exception occurred
boolean containsPermission(long pk,
long permissionPK)
throws SystemException
pk - the primary key of the rolepermissionPK - the primary key of the permission
SystemException - if a system exception occurred
boolean containsPermissions(long pk)
throws SystemException
pk - the primary key of the role to check for associations with permissions
SystemException - if a system exception occurred
void addPermission(long pk,
long permissionPK)
throws SystemException
pk - the primary key of the rolepermissionPK - the primary key of the permission
SystemException - if a system exception occurred
void addPermission(long pk,
Permission permission)
throws SystemException
pk - the primary key of the rolepermission - the permission
SystemException - if a system exception occurred
void addPermissions(long pk,
long[] permissionPKs)
throws SystemException
pk - the primary key of the rolepermissionPKs - the primary keys of the permissions
SystemException - if a system exception occurred
void addPermissions(long pk,
List<Permission> permissions)
throws SystemException
pk - the primary key of the rolepermissions - the permissions
SystemException - if a system exception occurred
void clearPermissions(long pk)
throws SystemException
pk - the primary key of the role to clear the associated permissions from
SystemException - if a system exception occurred
void removePermission(long pk,
long permissionPK)
throws SystemException
pk - the primary key of the rolepermissionPK - the primary key of the permission
SystemException - if a system exception occurred
void removePermission(long pk,
Permission permission)
throws SystemException
pk - the primary key of the rolepermission - the permission
SystemException - if a system exception occurred
void removePermissions(long pk,
long[] permissionPKs)
throws SystemException
pk - the primary key of the rolepermissionPKs - the primary keys of the permissions
SystemException - if a system exception occurred
void removePermissions(long pk,
List<Permission> permissions)
throws SystemException
pk - the primary key of the rolepermissions - the permissions
SystemException - if a system exception occurred
void setPermissions(long pk,
long[] permissionPKs)
throws SystemException
pk - the primary key of the role to set the associations forpermissionPKs - the primary keys of the permissions to be associated with the role
SystemException - if a system exception occurred
void setPermissions(long pk,
List<Permission> permissions)
throws SystemException
pk - the primary key of the role to set the associations forpermissions - the permissions to be associated with the role
SystemException - if a system exception occurred
List<User> getUsers(long pk)
throws SystemException
pk - the primary key of the role to get the associated users for
SystemException - if a system exception occurred
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 role to get the associated users forstart - the lower bound of the range of roles to returnend - the upper bound of the range of roles to return (not inclusive)
SystemException - if a system exception occurred
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 role to get the associated users forstart - the lower bound of the range of roles to returnend - the upper bound of the range of roles to return (not inclusive)orderByComparator - the comparator to order the results by
SystemException - if a system exception occurred
int getUsersSize(long pk)
throws SystemException
pk - the primary key of the role to get the number of associated users for
SystemException - if a system exception occurred
boolean containsUser(long pk,
long userPK)
throws SystemException
pk - the primary key of the roleuserPK - the primary key of the user
SystemException - if a system exception occurred
boolean containsUsers(long pk)
throws SystemException
pk - the primary key of the role to check for associations with users
SystemException - if a system exception occurred
void addUser(long pk,
long userPK)
throws SystemException
pk - the primary key of the roleuserPK - the primary key of the user
SystemException - if a system exception occurred
void addUser(long pk,
User user)
throws SystemException
pk - the primary key of the roleuser - the user
SystemException - if a system exception occurred
void addUsers(long pk,
long[] userPKs)
throws SystemException
pk - the primary key of the roleuserPKs - the primary keys of the users
SystemException - if a system exception occurred
void addUsers(long pk,
List<User> users)
throws SystemException
pk - the primary key of the roleusers - the users
SystemException - if a system exception occurred
void clearUsers(long pk)
throws SystemException
pk - the primary key of the role to clear the associated users from
SystemException - if a system exception occurred
void removeUser(long pk,
long userPK)
throws SystemException
pk - the primary key of the roleuserPK - the primary key of the user
SystemException - if a system exception occurred
void removeUser(long pk,
User user)
throws SystemException
pk - the primary key of the roleuser - the user
SystemException - if a system exception occurred
void removeUsers(long pk,
long[] userPKs)
throws SystemException
pk - the primary key of the roleuserPKs - the primary keys of the users
SystemException - if a system exception occurred
void removeUsers(long pk,
List<User> users)
throws SystemException
pk - the primary key of the roleusers - the users
SystemException - if a system exception occurred
void setUsers(long pk,
long[] userPKs)
throws SystemException
pk - the primary key of the role to set the associations foruserPKs - the primary keys of the users to be associated with the role
SystemException - if a system exception occurred
void setUsers(long pk,
List<User> users)
throws SystemException
pk - the primary key of the role to set the associations forusers - the users to be associated with the role
SystemException - if a system exception occurred
|
Liferay 6.0.4 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||