|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.liferay.portal.service.persistence.impl.BasePersistenceImpl<com.liferay.portal.model.Role>
com.liferay.portal.service.persistence.RolePersistenceImpl
public class RolePersistenceImpl
The persistence implementation for the role service.
Caching information and settings can be found in portal.properties
RolePersistence,
RoleUtil| Nested Class Summary | |
|---|---|
protected class |
RolePersistenceImpl.AddGroup
|
protected class |
RolePersistenceImpl.AddPermission
|
protected class |
RolePersistenceImpl.AddUser
|
protected class |
RolePersistenceImpl.ClearGroups
|
protected class |
RolePersistenceImpl.ClearPermissions
|
protected class |
RolePersistenceImpl.ClearUsers
|
protected class |
RolePersistenceImpl.ContainsGroup
|
protected class |
RolePersistenceImpl.ContainsPermission
|
protected class |
RolePersistenceImpl.ContainsUser
|
protected class |
RolePersistenceImpl.RemoveGroup
|
protected class |
RolePersistenceImpl.RemovePermission
|
protected class |
RolePersistenceImpl.RemoveUser
|
| Field Summary | |
|---|---|
protected com.liferay.portal.service.persistence.AccountPersistence |
accountPersistence
|
protected RolePersistenceImpl.AddGroup |
addGroup
|
protected RolePersistenceImpl.AddPermission |
addPermission
|
protected com.liferay.portal.service.persistence.AddressPersistence |
addressPersistence
|
protected RolePersistenceImpl.AddUser |
addUser
|
protected com.liferay.portal.service.persistence.BrowserTrackerPersistence |
browserTrackerPersistence
|
protected com.liferay.portal.service.persistence.ClassNamePersistence |
classNamePersistence
|
protected RolePersistenceImpl.ClearGroups |
clearGroups
|
protected RolePersistenceImpl.ClearPermissions |
clearPermissions
|
protected RolePersistenceImpl.ClearUsers |
clearUsers
|
protected com.liferay.portal.service.persistence.ClusterGroupPersistence |
clusterGroupPersistence
|
protected com.liferay.portal.service.persistence.CompanyPersistence |
companyPersistence
|
protected com.liferay.portal.service.persistence.ContactPersistence |
contactPersistence
|
protected RolePersistenceImpl.ContainsGroup |
containsGroup
|
protected RolePersistenceImpl.ContainsPermission |
containsPermission
|
protected RolePersistenceImpl.ContainsUser |
containsUser
|
protected com.liferay.portal.service.persistence.CountryPersistence |
countryPersistence
|
protected com.liferay.portal.service.persistence.EmailAddressPersistence |
emailAddressPersistence
|
static java.lang.String |
FINDER_CLASS_NAME_ENTITY
|
static java.lang.String |
FINDER_CLASS_NAME_LIST_WITH_PAGINATION
|
static java.lang.String |
FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION
|
static com.liferay.portal.kernel.dao.orm.FinderPath |
FINDER_PATH_CONTAINS_GROUP
|
static com.liferay.portal.kernel.dao.orm.FinderPath |
FINDER_PATH_CONTAINS_PERMISSION
|
static com.liferay.portal.kernel.dao.orm.FinderPath |
FINDER_PATH_CONTAINS_USER
|
static com.liferay.portal.kernel.dao.orm.FinderPath |
FINDER_PATH_COUNT_ALL
|
static com.liferay.portal.kernel.dao.orm.FinderPath |
FINDER_PATH_COUNT_BY_C_C_C
|
static com.liferay.portal.kernel.dao.orm.FinderPath |
FINDER_PATH_COUNT_BY_C_N
|
static com.liferay.portal.kernel.dao.orm.FinderPath |
FINDER_PATH_COUNT_BY_COMPANYID
|
static com.liferay.portal.kernel.dao.orm.FinderPath |
FINDER_PATH_COUNT_BY_NAME
|
static com.liferay.portal.kernel.dao.orm.FinderPath |
FINDER_PATH_COUNT_BY_SUBTYPE
|
static com.liferay.portal.kernel.dao.orm.FinderPath |
FINDER_PATH_COUNT_BY_T_S
|
static com.liferay.portal.kernel.dao.orm.FinderPath |
FINDER_PATH_FETCH_BY_C_C_C
|
static com.liferay.portal.kernel.dao.orm.FinderPath |
FINDER_PATH_FETCH_BY_C_N
|
static com.liferay.portal.kernel.dao.orm.FinderPath |
FINDER_PATH_GET_GROUPS
|
static com.liferay.portal.kernel.dao.orm.FinderPath |
FINDER_PATH_GET_GROUPS_SIZE
|
static com.liferay.portal.kernel.dao.orm.FinderPath |
FINDER_PATH_GET_PERMISSIONS
|
static com.liferay.portal.kernel.dao.orm.FinderPath |
FINDER_PATH_GET_PERMISSIONS_SIZE
|
static com.liferay.portal.kernel.dao.orm.FinderPath |
FINDER_PATH_GET_USERS
|
static com.liferay.portal.kernel.dao.orm.FinderPath |
FINDER_PATH_GET_USERS_SIZE
|
static com.liferay.portal.kernel.dao.orm.FinderPath |
FINDER_PATH_WITH_PAGINATION_FIND_ALL
|
static com.liferay.portal.kernel.dao.orm.FinderPath |
FINDER_PATH_WITH_PAGINATION_FIND_BY_COMPANYID
|
static com.liferay.portal.kernel.dao.orm.FinderPath |
FINDER_PATH_WITH_PAGINATION_FIND_BY_NAME
|
static com.liferay.portal.kernel.dao.orm.FinderPath |
FINDER_PATH_WITH_PAGINATION_FIND_BY_SUBTYPE
|
static com.liferay.portal.kernel.dao.orm.FinderPath |
FINDER_PATH_WITH_PAGINATION_FIND_BY_T_S
|
static com.liferay.portal.kernel.dao.orm.FinderPath |
FINDER_PATH_WITHOUT_PAGINATION_FIND_ALL
|
static com.liferay.portal.kernel.dao.orm.FinderPath |
FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_COMPANYID
|
static com.liferay.portal.kernel.dao.orm.FinderPath |
FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_NAME
|
static com.liferay.portal.kernel.dao.orm.FinderPath |
FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_SUBTYPE
|
static com.liferay.portal.kernel.dao.orm.FinderPath |
FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_T_S
|
protected com.liferay.portal.service.persistence.GroupPersistence |
groupPersistence
|
protected com.liferay.portal.service.persistence.ImagePersistence |
imagePersistence
|
protected com.liferay.portal.service.persistence.LayoutBranchPersistence |
layoutBranchPersistence
|
protected com.liferay.portal.service.persistence.LayoutPersistence |
layoutPersistence
|
protected com.liferay.portal.service.persistence.LayoutPrototypePersistence |
layoutPrototypePersistence
|
protected com.liferay.portal.service.persistence.LayoutRevisionPersistence |
layoutRevisionPersistence
|
protected com.liferay.portal.service.persistence.LayoutSetBranchPersistence |
layoutSetBranchPersistence
|
protected com.liferay.portal.service.persistence.LayoutSetPersistence |
layoutSetPersistence
|
protected com.liferay.portal.service.persistence.LayoutSetPrototypePersistence |
layoutSetPrototypePersistence
|
protected com.liferay.portal.service.persistence.ListTypePersistence |
listTypePersistence
|
protected com.liferay.portal.service.persistence.LockPersistence |
lockPersistence
|
protected com.liferay.portal.service.persistence.MembershipRequestPersistence |
membershipRequestPersistence
|
protected com.liferay.portal.service.persistence.OrganizationPersistence |
organizationPersistence
|
protected com.liferay.portal.service.persistence.OrgGroupPermissionPersistence |
orgGroupPermissionPersistence
|
protected com.liferay.portal.service.persistence.OrgGroupRolePersistence |
orgGroupRolePersistence
|
protected com.liferay.portal.service.persistence.OrgLaborPersistence |
orgLaborPersistence
|
protected com.liferay.portal.service.persistence.PasswordPolicyPersistence |
passwordPolicyPersistence
|
protected com.liferay.portal.service.persistence.PasswordPolicyRelPersistence |
passwordPolicyRelPersistence
|
protected com.liferay.portal.service.persistence.PasswordTrackerPersistence |
passwordTrackerPersistence
|
protected com.liferay.portal.service.persistence.PermissionPersistence |
permissionPersistence
|
protected com.liferay.portal.service.persistence.PhonePersistence |
phonePersistence
|
protected com.liferay.portal.service.persistence.PluginSettingPersistence |
pluginSettingPersistence
|
protected com.liferay.portal.service.persistence.PortalPreferencesPersistence |
portalPreferencesPersistence
|
protected com.liferay.portal.service.persistence.PortletItemPersistence |
portletItemPersistence
|
protected com.liferay.portal.service.persistence.PortletPersistence |
portletPersistence
|
protected com.liferay.portal.service.persistence.PortletPreferencesPersistence |
portletPreferencesPersistence
|
protected com.liferay.portal.service.persistence.RegionPersistence |
regionPersistence
|
protected com.liferay.portal.service.persistence.ReleasePersistence |
releasePersistence
|
protected RolePersistenceImpl.RemoveGroup |
removeGroup
|
protected RolePersistenceImpl.RemovePermission |
removePermission
|
protected RolePersistenceImpl.RemoveUser |
removeUser
|
protected com.liferay.portal.service.persistence.RepositoryEntryPersistence |
repositoryEntryPersistence
|
protected com.liferay.portal.service.persistence.RepositoryPersistence |
repositoryPersistence
|
protected com.liferay.portal.service.persistence.ResourceActionPersistence |
resourceActionPersistence
|
protected com.liferay.portal.service.persistence.ResourceBlockPermissionPersistence |
resourceBlockPermissionPersistence
|
protected com.liferay.portal.service.persistence.ResourceBlockPersistence |
resourceBlockPersistence
|
protected com.liferay.portal.service.persistence.ResourceCodePersistence |
resourceCodePersistence
|
protected com.liferay.portal.service.persistence.ResourcePermissionPersistence |
resourcePermissionPersistence
|
protected com.liferay.portal.service.persistence.ResourcePersistence |
resourcePersistence
|
protected com.liferay.portal.service.persistence.ResourceTypePermissionPersistence |
resourceTypePermissionPersistence
|
protected com.liferay.portal.service.persistence.RolePersistence |
rolePersistence
|
protected com.liferay.portal.service.persistence.ServiceComponentPersistence |
serviceComponentPersistence
|
protected com.liferay.portal.service.persistence.ShardPersistence |
shardPersistence
|
protected com.liferay.portal.service.persistence.SubscriptionPersistence |
subscriptionPersistence
|
protected com.liferay.portal.service.persistence.TeamPersistence |
teamPersistence
|
protected com.liferay.portal.service.persistence.TicketPersistence |
ticketPersistence
|
protected com.liferay.portal.service.persistence.UserGroupGroupRolePersistence |
userGroupGroupRolePersistence
|
protected com.liferay.portal.service.persistence.UserGroupPersistence |
userGroupPersistence
|
protected com.liferay.portal.service.persistence.UserGroupRolePersistence |
userGroupRolePersistence
|
protected com.liferay.portal.service.persistence.UserIdMapperPersistence |
userIdMapperPersistence
|
protected com.liferay.portal.service.persistence.UserNotificationEventPersistence |
userNotificationEventPersistence
|
protected com.liferay.portal.service.persistence.UserPersistence |
userPersistence
|
protected com.liferay.portal.service.persistence.UserTrackerPathPersistence |
userTrackerPathPersistence
|
protected com.liferay.portal.service.persistence.UserTrackerPersistence |
userTrackerPersistence
|
protected com.liferay.portal.service.persistence.VirtualHostPersistence |
virtualHostPersistence
|
protected com.liferay.portal.service.persistence.WebDAVPropsPersistence |
webDAVPropsPersistence
|
protected com.liferay.portal.service.persistence.WebsitePersistence |
websitePersistence
|
protected com.liferay.portal.service.persistence.WorkflowDefinitionLinkPersistence |
workflowDefinitionLinkPersistence
|
protected com.liferay.portal.service.persistence.WorkflowInstanceLinkPersistence |
workflowInstanceLinkPersistence
|
| Fields inherited from class com.liferay.portal.service.persistence.impl.BasePersistenceImpl |
|---|
COUNT_COLUMN_NAME, FINDER_ARGS_EMPTY, listeners, ORDER_BY_ASC, ORDER_BY_ASC_HAS_NEXT, ORDER_BY_CLAUSE, ORDER_BY_DESC, ORDER_BY_DESC_HAS_NEXT, WHERE_AND, WHERE_GREATER_THAN, WHERE_GREATER_THAN_HAS_NEXT, WHERE_LESSER_THAN, WHERE_LESSER_THAN_HAS_NEXT, WHERE_OR |
| Constructor Summary | |
|---|---|
RolePersistenceImpl()
|
|
| Method Summary | |
|---|---|
void |
addGroup(long pk,
com.liferay.portal.model.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,
java.util.List<com.liferay.portal.model.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,
com.liferay.portal.model.Permission permission)
Adds an association between the role and the permission. |
void |
addPermissions(long pk,
java.util.List<com.liferay.portal.model.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,
com.liferay.portal.model.User user)
Adds an association between the role and the user. |
void |
addUsers(long pk,
java.util.List<com.liferay.portal.model.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 |
afterPropertiesSet()
Initializes the role persistence. |
void |
cacheResult(java.util.List<com.liferay.portal.model.Role> roles)
Caches the roles in the entity cache if it is enabled. |
void |
cacheResult(com.liferay.portal.model.Role role)
Caches the role in the entity cache if it is enabled. |
void |
clearCache()
Clears the cache for all roles. |
void |
clearCache(java.util.List<com.liferay.portal.model.Role> roles)
|
void |
clearCache(com.liferay.portal.model.Role role)
Clears the cache for the role. |
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. |
protected void |
clearUniqueFindersCache(com.liferay.portal.model.Role role)
|
void |
clearUsers(long pk)
Clears all associations between the role and its users. |
boolean |
containsGroup(long pk,
long groupPK)
Returns true if the group is associated with the role. |
boolean |
containsGroups(long pk)
Returns true if the role has any groups associated with it. |
boolean |
containsPermission(long pk,
long permissionPK)
Returns true if the permission is associated with the role. |
boolean |
containsPermissions(long pk)
Returns true if the role has any permissions associated with it. |
boolean |
containsUser(long pk,
long userPK)
Returns true if the user is associated with the role. |
boolean |
containsUsers(long pk)
Returns true if the role has any users associated with it. |
int |
countAll()
Returns the number of roles. |
int |
countByC_C_C(long companyId,
long classNameId,
long classPK)
Returns the number of roles where companyId = ? and classNameId = ? and classPK = ?. |
int |
countByC_N(long companyId,
java.lang.String name)
Returns the number of roles where companyId = ? and name = ?. |
int |
countByCompanyId(long companyId)
Returns the number of roles where companyId = ?. |
int |
countByName(java.lang.String name)
Returns the number of roles where name = ?. |
int |
countBySubtype(java.lang.String subtype)
Returns the number of roles where subtype = ?. |
int |
countByT_S(int type,
java.lang.String subtype)
Returns the number of roles where type = ? and subtype = ?. |
com.liferay.portal.model.Role |
create(long roleId)
Creates a new role with the primary key. |
void |
destroy()
|
com.liferay.portal.model.Role |
fetchByC_C_C(long companyId,
long classNameId,
long classPK)
Returns the role where companyId = ? and classNameId = ? and classPK = ? or returns null if it could not be found. |
com.liferay.portal.model.Role |
fetchByC_C_C(long companyId,
long classNameId,
long classPK,
boolean retrieveFromCache)
Returns the role where companyId = ? and classNameId = ? and classPK = ? or returns null if it could not be found, optionally using the finder cache. |
com.liferay.portal.model.Role |
fetchByC_N(long companyId,
java.lang.String name)
Returns the role where companyId = ? and name = ? or returns null if it could not be found. |
com.liferay.portal.model.Role |
fetchByC_N(long companyId,
java.lang.String name,
boolean retrieveFromCache)
Returns the role where companyId = ? and name = ? or returns null if it could not be found, optionally using the finder cache. |
com.liferay.portal.model.Role |
fetchByPrimaryKey(long roleId)
Returns the role with the primary key or returns null if it could not be found. |
com.liferay.portal.model.Role |
fetchByPrimaryKey(java.io.Serializable primaryKey)
Returns the role with the primary key or returns null if it could not be found. |
int |
filterCountByCompanyId(long companyId)
Returns the number of roles that the user has permission to view where companyId = ?. |
int |
filterCountByName(java.lang.String name)
Returns the number of roles that the user has permission to view where name = ?. |
int |
filterCountBySubtype(java.lang.String subtype)
Returns the number of roles that the user has permission to view where subtype = ?. |
int |
filterCountByT_S(int type,
java.lang.String subtype)
Returns the number of roles that the user has permission to view where type = ? and subtype = ?. |
com.liferay.portal.model.Role[] |
filterFindByCompanyId_PrevAndNext(long roleId,
long companyId,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
Returns the roles before and after the current role in the ordered set of roles that the user has permission to view where companyId = ?. |
java.util.List<com.liferay.portal.model.Role> |
filterFindByCompanyId(long companyId)
Returns all the roles that the user has permission to view where companyId = ?. |
java.util.List<com.liferay.portal.model.Role> |
filterFindByCompanyId(long companyId,
int start,
int end)
Returns a range of all the roles that the user has permission to view where companyId = ?. |
java.util.List<com.liferay.portal.model.Role> |
filterFindByCompanyId(long companyId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
Returns an ordered range of all the roles that the user has permissions to view where companyId = ?. |
com.liferay.portal.model.Role[] |
filterFindByName_PrevAndNext(long roleId,
java.lang.String name,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
Returns the roles before and after the current role in the ordered set of roles that the user has permission to view where name = ?. |
java.util.List<com.liferay.portal.model.Role> |
filterFindByName(java.lang.String name)
Returns all the roles that the user has permission to view where name = ?. |
java.util.List<com.liferay.portal.model.Role> |
filterFindByName(java.lang.String name,
int start,
int end)
Returns a range of all the roles that the user has permission to view where name = ?. |
java.util.List<com.liferay.portal.model.Role> |
filterFindByName(java.lang.String name,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
Returns an ordered range of all the roles that the user has permissions to view where name = ?. |
com.liferay.portal.model.Role[] |
filterFindBySubtype_PrevAndNext(long roleId,
java.lang.String subtype,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
Returns the roles before and after the current role in the ordered set of roles that the user has permission to view where subtype = ?. |
java.util.List<com.liferay.portal.model.Role> |
filterFindBySubtype(java.lang.String subtype)
Returns all the roles that the user has permission to view where subtype = ?. |
java.util.List<com.liferay.portal.model.Role> |
filterFindBySubtype(java.lang.String subtype,
int start,
int end)
Returns a range of all the roles that the user has permission to view where subtype = ?. |
java.util.List<com.liferay.portal.model.Role> |
filterFindBySubtype(java.lang.String subtype,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
Returns an ordered range of all the roles that the user has permissions to view where subtype = ?. |
com.liferay.portal.model.Role[] |
filterFindByT_S_PrevAndNext(long roleId,
int type,
java.lang.String subtype,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
Returns the roles before and after the current role in the ordered set of roles that the user has permission to view where type = ? and subtype = ?. |
java.util.List<com.liferay.portal.model.Role> |
filterFindByT_S(int type,
java.lang.String subtype)
Returns all the roles that the user has permission to view where type = ? and subtype = ?. |
java.util.List<com.liferay.portal.model.Role> |
filterFindByT_S(int type,
java.lang.String subtype,
int start,
int end)
Returns a range of all the roles that the user has permission to view where type = ? and subtype = ?. |
java.util.List<com.liferay.portal.model.Role> |
filterFindByT_S(int type,
java.lang.String subtype,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
Returns an ordered range of all the roles that the user has permissions to view where type = ? and subtype = ?. |
protected com.liferay.portal.model.Role |
filterGetByCompanyId_PrevAndNext(com.liferay.portal.kernel.dao.orm.Session session,
com.liferay.portal.model.Role role,
long companyId,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator,
boolean previous)
|
protected com.liferay.portal.model.Role |
filterGetByName_PrevAndNext(com.liferay.portal.kernel.dao.orm.Session session,
com.liferay.portal.model.Role role,
java.lang.String name,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator,
boolean previous)
|
protected com.liferay.portal.model.Role |
filterGetBySubtype_PrevAndNext(com.liferay.portal.kernel.dao.orm.Session session,
com.liferay.portal.model.Role role,
java.lang.String subtype,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator,
boolean previous)
|
protected com.liferay.portal.model.Role |
filterGetByT_S_PrevAndNext(com.liferay.portal.kernel.dao.orm.Session session,
com.liferay.portal.model.Role role,
int type,
java.lang.String subtype,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator,
boolean previous)
|
java.util.List<com.liferay.portal.model.Role> |
findAll()
Returns all the roles. |
java.util.List<com.liferay.portal.model.Role> |
findAll(int start,
int end)
Returns a range of all the roles. |
java.util.List<com.liferay.portal.model.Role> |
findAll(int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
Returns an ordered range of all the roles. |
com.liferay.portal.model.Role |
findByC_C_C(long companyId,
long classNameId,
long classPK)
Returns the role where companyId = ? and classNameId = ? and classPK = ? or throws a NoSuchRoleException if it could not be found. |
com.liferay.portal.model.Role |
findByC_N(long companyId,
java.lang.String name)
Returns the role where companyId = ? and name = ? or throws a NoSuchRoleException if it could not be found. |
com.liferay.portal.model.Role |
findByCompanyId_First(long companyId,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
Returns the first role in the ordered set where companyId = ?. |
com.liferay.portal.model.Role |
findByCompanyId_Last(long companyId,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
Returns the last role in the ordered set where companyId = ?. |
com.liferay.portal.model.Role[] |
findByCompanyId_PrevAndNext(long roleId,
long companyId,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
Returns the roles before and after the current role in the ordered set where companyId = ?. |
java.util.List<com.liferay.portal.model.Role> |
findByCompanyId(long companyId)
Returns all the roles where companyId = ?. |
java.util.List<com.liferay.portal.model.Role> |
findByCompanyId(long companyId,
int start,
int end)
Returns a range of all the roles where companyId = ?. |
java.util.List<com.liferay.portal.model.Role> |
findByCompanyId(long companyId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
Returns an ordered range of all the roles where companyId = ?. |
com.liferay.portal.model.Role |
findByName_First(java.lang.String name,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
Returns the first role in the ordered set where name = ?. |
com.liferay.portal.model.Role |
findByName_Last(java.lang.String name,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
Returns the last role in the ordered set where name = ?. |
com.liferay.portal.model.Role[] |
findByName_PrevAndNext(long roleId,
java.lang.String name,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
Returns the roles before and after the current role in the ordered set where name = ?. |
java.util.List<com.liferay.portal.model.Role> |
findByName(java.lang.String name)
Returns all the roles where name = ?. |
java.util.List<com.liferay.portal.model.Role> |
findByName(java.lang.String name,
int start,
int end)
Returns a range of all the roles where name = ?. |
java.util.List<com.liferay.portal.model.Role> |
findByName(java.lang.String name,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
Returns an ordered range of all the roles where name = ?. |
com.liferay.portal.model.Role |
findByPrimaryKey(long roleId)
Returns the role with the primary key or throws a NoSuchRoleException if it could not be found. |
com.liferay.portal.model.Role |
findByPrimaryKey(java.io.Serializable primaryKey)
Returns the role with the primary key or throws a NoSuchModelException if it could not be found. |
com.liferay.portal.model.Role |
findBySubtype_First(java.lang.String subtype,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
Returns the first role in the ordered set where subtype = ?. |
com.liferay.portal.model.Role |
findBySubtype_Last(java.lang.String subtype,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
Returns the last role in the ordered set where subtype = ?. |
com.liferay.portal.model.Role[] |
findBySubtype_PrevAndNext(long roleId,
java.lang.String subtype,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
Returns the roles before and after the current role in the ordered set where subtype = ?. |
java.util.List<com.liferay.portal.model.Role> |
findBySubtype(java.lang.String subtype)
Returns all the roles where subtype = ?. |
java.util.List<com.liferay.portal.model.Role> |
findBySubtype(java.lang.String subtype,
int start,
int end)
Returns a range of all the roles where subtype = ?. |
java.util.List<com.liferay.portal.model.Role> |
findBySubtype(java.lang.String subtype,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
Returns an ordered range of all the roles where subtype = ?. |
com.liferay.portal.model.Role |
findByT_S_First(int type,
java.lang.String subtype,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
Returns the first role in the ordered set where type = ? and subtype = ?. |
com.liferay.portal.model.Role |
findByT_S_Last(int type,
java.lang.String subtype,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
Returns the last role in the ordered set where type = ? and subtype = ?. |
com.liferay.portal.model.Role[] |
findByT_S_PrevAndNext(long roleId,
int type,
java.lang.String subtype,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
Returns the roles before and after the current role in the ordered set where type = ? and subtype = ?. |
java.util.List<com.liferay.portal.model.Role> |
findByT_S(int type,
java.lang.String subtype)
Returns all the roles where type = ? and subtype = ?. |
java.util.List<com.liferay.portal.model.Role> |
findByT_S(int type,
java.lang.String subtype,
int start,
int end)
Returns a range of all the roles where type = ? and subtype = ?. |
java.util.List<com.liferay.portal.model.Role> |
findByT_S(int type,
java.lang.String subtype,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
Returns an ordered range of all the roles where type = ? and subtype = ?. |
protected com.liferay.portal.model.Role |
getByCompanyId_PrevAndNext(com.liferay.portal.kernel.dao.orm.Session session,
com.liferay.portal.model.Role role,
long companyId,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator,
boolean previous)
|
protected com.liferay.portal.model.Role |
getByName_PrevAndNext(com.liferay.portal.kernel.dao.orm.Session session,
com.liferay.portal.model.Role role,
java.lang.String name,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator,
boolean previous)
|
protected com.liferay.portal.model.Role |
getBySubtype_PrevAndNext(com.liferay.portal.kernel.dao.orm.Session session,
com.liferay.portal.model.Role role,
java.lang.String subtype,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator,
boolean previous)
|
protected com.liferay.portal.model.Role |
getByT_S_PrevAndNext(com.liferay.portal.kernel.dao.orm.Session session,
com.liferay.portal.model.Role role,
int type,
java.lang.String subtype,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator,
boolean previous)
|
java.util.List<com.liferay.portal.model.Group> |
getGroups(long pk)
Returns all the groups associated with the role. |
java.util.List<com.liferay.portal.model.Group> |
getGroups(long pk,
int start,
int end)
Returns a range of all the groups associated with the role. |
java.util.List<com.liferay.portal.model.Group> |
getGroups(long pk,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
Returns an ordered range of all the groups associated with the role. |
int |
getGroupsSize(long pk)
Returns the number of groups associated with the role. |
java.util.List<com.liferay.portal.model.Permission> |
getPermissions(long pk)
Returns all the permissions associated with the role. |
java.util.List<com.liferay.portal.model.Permission> |
getPermissions(long pk,
int start,
int end)
Returns a range of all the permissions associated with the role. |
java.util.List<com.liferay.portal.model.Permission> |
getPermissions(long pk,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
Returns an ordered range of all the permissions associated with the role. |
int |
getPermissionsSize(long pk)
Returns the number of permissions associated with the role. |
java.util.List<com.liferay.portal.model.User> |
getUsers(long pk)
Returns all the users associated with the role. |
java.util.List<com.liferay.portal.model.User> |
getUsers(long pk,
int start,
int end)
Returns a range of all the users associated with the role. |
java.util.List<com.liferay.portal.model.User> |
getUsers(long pk,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
Returns an ordered range of all the users associated with the role. |
int |
getUsersSize(long pk)
Returns the number of users associated with the role. |
com.liferay.portal.model.Role |
remove(long roleId)
Removes the role with the primary key from the database. |
com.liferay.portal.model.Role |
remove(java.io.Serializable primaryKey)
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,
java.lang.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 |
removeByName(java.lang.String name)
Removes all the roles where name = ? from the database. |
void |
removeBySubtype(java.lang.String subtype)
Removes all the roles where subtype = ? from the database. |
void |
removeByT_S(int type,
java.lang.String subtype)
Removes all the roles where type = ? and subtype = ? from the database. |
void |
removeGroup(long pk,
com.liferay.portal.model.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,
java.util.List<com.liferay.portal.model.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. |
protected com.liferay.portal.model.Role |
removeImpl(com.liferay.portal.model.Role role)
|
void |
removePermission(long pk,
long permissionPK)
Removes the association between the role and the permission. |
void |
removePermission(long pk,
com.liferay.portal.model.Permission permission)
Removes the association between the role and the permission. |
void |
removePermissions(long pk,
java.util.List<com.liferay.portal.model.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,
com.liferay.portal.model.User user)
Removes the association between the role and the user. |
void |
removeUsers(long pk,
java.util.List<com.liferay.portal.model.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,
java.util.List<com.liferay.portal.model.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,
java.util.List<com.liferay.portal.model.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,
java.util.List<com.liferay.portal.model.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. |
protected com.liferay.portal.model.Role |
toUnwrappedModel(com.liferay.portal.model.Role role)
|
com.liferay.portal.model.Role |
updateImpl(com.liferay.portal.model.Role role,
boolean merge)
|
| Methods inherited from class com.liferay.portal.service.persistence.impl.BasePersistenceImpl |
|---|
appendOrderByComparator, closeSession, countWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, getDataSource, getDB, getDialect, getListeners, openNewSession, openSession, processException, registerListener, remove, setDataSource, setSessionFactory, unregisterListener, update, update |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface com.liferay.portal.service.persistence.BasePersistence |
|---|
closeSession, countWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, getDataSource, getListeners, openSession, processException, registerListener, remove, setDataSource, unregisterListener, update, update |
| Field Detail |
|---|
public static final java.lang.String FINDER_CLASS_NAME_ENTITY
public static final java.lang.String FINDER_CLASS_NAME_LIST_WITH_PAGINATION
public static final java.lang.String FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION
public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_COMPANYID
public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_COMPANYID
public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_COUNT_BY_COMPANYID
public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_NAME
public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_NAME
public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_COUNT_BY_NAME
public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_SUBTYPE
public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_SUBTYPE
public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_COUNT_BY_SUBTYPE
public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_FETCH_BY_C_N
public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_COUNT_BY_C_N
public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_T_S
public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_T_S
public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_COUNT_BY_T_S
public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_FETCH_BY_C_C_C
public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_COUNT_BY_C_C_C
public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_WITH_PAGINATION_FIND_ALL
public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_ALL
public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_COUNT_ALL
public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_GET_GROUPS
public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_GET_GROUPS_SIZE
public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_CONTAINS_GROUP
public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_GET_PERMISSIONS
public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_GET_PERMISSIONS_SIZE
public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_CONTAINS_PERMISSION
public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_GET_USERS
public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_GET_USERS_SIZE
public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_CONTAINS_USER
@BeanReference(type=com.liferay.portal.service.persistence.AccountPersistence.class) protected com.liferay.portal.service.persistence.AccountPersistence accountPersistence
@BeanReference(type=com.liferay.portal.service.persistence.AddressPersistence.class) protected com.liferay.portal.service.persistence.AddressPersistence addressPersistence
@BeanReference(type=com.liferay.portal.service.persistence.BrowserTrackerPersistence.class) protected com.liferay.portal.service.persistence.BrowserTrackerPersistence browserTrackerPersistence
@BeanReference(type=com.liferay.portal.service.persistence.ClassNamePersistence.class) protected com.liferay.portal.service.persistence.ClassNamePersistence classNamePersistence
@BeanReference(type=com.liferay.portal.service.persistence.ClusterGroupPersistence.class) protected com.liferay.portal.service.persistence.ClusterGroupPersistence clusterGroupPersistence
@BeanReference(type=com.liferay.portal.service.persistence.CompanyPersistence.class) protected com.liferay.portal.service.persistence.CompanyPersistence companyPersistence
@BeanReference(type=com.liferay.portal.service.persistence.ContactPersistence.class) protected com.liferay.portal.service.persistence.ContactPersistence contactPersistence
@BeanReference(type=com.liferay.portal.service.persistence.CountryPersistence.class) protected com.liferay.portal.service.persistence.CountryPersistence countryPersistence
@BeanReference(type=com.liferay.portal.service.persistence.EmailAddressPersistence.class) protected com.liferay.portal.service.persistence.EmailAddressPersistence emailAddressPersistence
@BeanReference(type=com.liferay.portal.service.persistence.GroupPersistence.class) protected com.liferay.portal.service.persistence.GroupPersistence groupPersistence
@BeanReference(type=com.liferay.portal.service.persistence.ImagePersistence.class) protected com.liferay.portal.service.persistence.ImagePersistence imagePersistence
@BeanReference(type=com.liferay.portal.service.persistence.LayoutPersistence.class) protected com.liferay.portal.service.persistence.LayoutPersistence layoutPersistence
@BeanReference(type=com.liferay.portal.service.persistence.LayoutBranchPersistence.class) protected com.liferay.portal.service.persistence.LayoutBranchPersistence layoutBranchPersistence
@BeanReference(type=com.liferay.portal.service.persistence.LayoutPrototypePersistence.class) protected com.liferay.portal.service.persistence.LayoutPrototypePersistence layoutPrototypePersistence
@BeanReference(type=com.liferay.portal.service.persistence.LayoutRevisionPersistence.class) protected com.liferay.portal.service.persistence.LayoutRevisionPersistence layoutRevisionPersistence
@BeanReference(type=com.liferay.portal.service.persistence.LayoutSetPersistence.class) protected com.liferay.portal.service.persistence.LayoutSetPersistence layoutSetPersistence
@BeanReference(type=com.liferay.portal.service.persistence.LayoutSetBranchPersistence.class) protected com.liferay.portal.service.persistence.LayoutSetBranchPersistence layoutSetBranchPersistence
@BeanReference(type=com.liferay.portal.service.persistence.LayoutSetPrototypePersistence.class) protected com.liferay.portal.service.persistence.LayoutSetPrototypePersistence layoutSetPrototypePersistence
@BeanReference(type=com.liferay.portal.service.persistence.ListTypePersistence.class) protected com.liferay.portal.service.persistence.ListTypePersistence listTypePersistence
@BeanReference(type=com.liferay.portal.service.persistence.LockPersistence.class) protected com.liferay.portal.service.persistence.LockPersistence lockPersistence
@BeanReference(type=com.liferay.portal.service.persistence.MembershipRequestPersistence.class) protected com.liferay.portal.service.persistence.MembershipRequestPersistence membershipRequestPersistence
@BeanReference(type=com.liferay.portal.service.persistence.OrganizationPersistence.class) protected com.liferay.portal.service.persistence.OrganizationPersistence organizationPersistence
@BeanReference(type=com.liferay.portal.service.persistence.OrgGroupPermissionPersistence.class) protected com.liferay.portal.service.persistence.OrgGroupPermissionPersistence orgGroupPermissionPersistence
@BeanReference(type=com.liferay.portal.service.persistence.OrgGroupRolePersistence.class) protected com.liferay.portal.service.persistence.OrgGroupRolePersistence orgGroupRolePersistence
@BeanReference(type=com.liferay.portal.service.persistence.OrgLaborPersistence.class) protected com.liferay.portal.service.persistence.OrgLaborPersistence orgLaborPersistence
@BeanReference(type=com.liferay.portal.service.persistence.PasswordPolicyPersistence.class) protected com.liferay.portal.service.persistence.PasswordPolicyPersistence passwordPolicyPersistence
@BeanReference(type=com.liferay.portal.service.persistence.PasswordPolicyRelPersistence.class) protected com.liferay.portal.service.persistence.PasswordPolicyRelPersistence passwordPolicyRelPersistence
@BeanReference(type=com.liferay.portal.service.persistence.PasswordTrackerPersistence.class) protected com.liferay.portal.service.persistence.PasswordTrackerPersistence passwordTrackerPersistence
@BeanReference(type=com.liferay.portal.service.persistence.PermissionPersistence.class) protected com.liferay.portal.service.persistence.PermissionPersistence permissionPersistence
@BeanReference(type=com.liferay.portal.service.persistence.PhonePersistence.class) protected com.liferay.portal.service.persistence.PhonePersistence phonePersistence
@BeanReference(type=com.liferay.portal.service.persistence.PluginSettingPersistence.class) protected com.liferay.portal.service.persistence.PluginSettingPersistence pluginSettingPersistence
@BeanReference(type=com.liferay.portal.service.persistence.PortalPreferencesPersistence.class) protected com.liferay.portal.service.persistence.PortalPreferencesPersistence portalPreferencesPersistence
@BeanReference(type=com.liferay.portal.service.persistence.PortletPersistence.class) protected com.liferay.portal.service.persistence.PortletPersistence portletPersistence
@BeanReference(type=com.liferay.portal.service.persistence.PortletItemPersistence.class) protected com.liferay.portal.service.persistence.PortletItemPersistence portletItemPersistence
@BeanReference(type=com.liferay.portal.service.persistence.PortletPreferencesPersistence.class) protected com.liferay.portal.service.persistence.PortletPreferencesPersistence portletPreferencesPersistence
@BeanReference(type=com.liferay.portal.service.persistence.RegionPersistence.class) protected com.liferay.portal.service.persistence.RegionPersistence regionPersistence
@BeanReference(type=com.liferay.portal.service.persistence.ReleasePersistence.class) protected com.liferay.portal.service.persistence.ReleasePersistence releasePersistence
@BeanReference(type=com.liferay.portal.service.persistence.RepositoryPersistence.class) protected com.liferay.portal.service.persistence.RepositoryPersistence repositoryPersistence
@BeanReference(type=com.liferay.portal.service.persistence.RepositoryEntryPersistence.class) protected com.liferay.portal.service.persistence.RepositoryEntryPersistence repositoryEntryPersistence
@BeanReference(type=com.liferay.portal.service.persistence.ResourcePersistence.class) protected com.liferay.portal.service.persistence.ResourcePersistence resourcePersistence
@BeanReference(type=com.liferay.portal.service.persistence.ResourceActionPersistence.class) protected com.liferay.portal.service.persistence.ResourceActionPersistence resourceActionPersistence
@BeanReference(type=com.liferay.portal.service.persistence.ResourceBlockPersistence.class) protected com.liferay.portal.service.persistence.ResourceBlockPersistence resourceBlockPersistence
@BeanReference(type=com.liferay.portal.service.persistence.ResourceBlockPermissionPersistence.class) protected com.liferay.portal.service.persistence.ResourceBlockPermissionPersistence resourceBlockPermissionPersistence
@BeanReference(type=com.liferay.portal.service.persistence.ResourceCodePersistence.class) protected com.liferay.portal.service.persistence.ResourceCodePersistence resourceCodePersistence
@BeanReference(type=com.liferay.portal.service.persistence.ResourcePermissionPersistence.class) protected com.liferay.portal.service.persistence.ResourcePermissionPersistence resourcePermissionPersistence
@BeanReference(type=com.liferay.portal.service.persistence.ResourceTypePermissionPersistence.class) protected com.liferay.portal.service.persistence.ResourceTypePermissionPersistence resourceTypePermissionPersistence
@BeanReference(type=com.liferay.portal.service.persistence.RolePersistence.class) protected com.liferay.portal.service.persistence.RolePersistence rolePersistence
@BeanReference(type=com.liferay.portal.service.persistence.ServiceComponentPersistence.class) protected com.liferay.portal.service.persistence.ServiceComponentPersistence serviceComponentPersistence
@BeanReference(type=com.liferay.portal.service.persistence.ShardPersistence.class) protected com.liferay.portal.service.persistence.ShardPersistence shardPersistence
@BeanReference(type=com.liferay.portal.service.persistence.SubscriptionPersistence.class) protected com.liferay.portal.service.persistence.SubscriptionPersistence subscriptionPersistence
@BeanReference(type=com.liferay.portal.service.persistence.TeamPersistence.class) protected com.liferay.portal.service.persistence.TeamPersistence teamPersistence
@BeanReference(type=com.liferay.portal.service.persistence.TicketPersistence.class) protected com.liferay.portal.service.persistence.TicketPersistence ticketPersistence
@BeanReference(type=com.liferay.portal.service.persistence.UserPersistence.class) protected com.liferay.portal.service.persistence.UserPersistence userPersistence
@BeanReference(type=com.liferay.portal.service.persistence.UserGroupPersistence.class) protected com.liferay.portal.service.persistence.UserGroupPersistence userGroupPersistence
@BeanReference(type=com.liferay.portal.service.persistence.UserGroupGroupRolePersistence.class) protected com.liferay.portal.service.persistence.UserGroupGroupRolePersistence userGroupGroupRolePersistence
@BeanReference(type=com.liferay.portal.service.persistence.UserGroupRolePersistence.class) protected com.liferay.portal.service.persistence.UserGroupRolePersistence userGroupRolePersistence
@BeanReference(type=com.liferay.portal.service.persistence.UserIdMapperPersistence.class) protected com.liferay.portal.service.persistence.UserIdMapperPersistence userIdMapperPersistence
@BeanReference(type=com.liferay.portal.service.persistence.UserNotificationEventPersistence.class) protected com.liferay.portal.service.persistence.UserNotificationEventPersistence userNotificationEventPersistence
@BeanReference(type=com.liferay.portal.service.persistence.UserTrackerPersistence.class) protected com.liferay.portal.service.persistence.UserTrackerPersistence userTrackerPersistence
@BeanReference(type=com.liferay.portal.service.persistence.UserTrackerPathPersistence.class) protected com.liferay.portal.service.persistence.UserTrackerPathPersistence userTrackerPathPersistence
@BeanReference(type=com.liferay.portal.service.persistence.VirtualHostPersistence.class) protected com.liferay.portal.service.persistence.VirtualHostPersistence virtualHostPersistence
@BeanReference(type=com.liferay.portal.service.persistence.WebDAVPropsPersistence.class) protected com.liferay.portal.service.persistence.WebDAVPropsPersistence webDAVPropsPersistence
@BeanReference(type=com.liferay.portal.service.persistence.WebsitePersistence.class) protected com.liferay.portal.service.persistence.WebsitePersistence websitePersistence
@BeanReference(type=com.liferay.portal.service.persistence.WorkflowDefinitionLinkPersistence.class) protected com.liferay.portal.service.persistence.WorkflowDefinitionLinkPersistence workflowDefinitionLinkPersistence
@BeanReference(type=com.liferay.portal.service.persistence.WorkflowInstanceLinkPersistence.class) protected com.liferay.portal.service.persistence.WorkflowInstanceLinkPersistence workflowInstanceLinkPersistence
protected RolePersistenceImpl.ContainsGroup containsGroup
protected RolePersistenceImpl.AddGroup addGroup
protected RolePersistenceImpl.ClearGroups clearGroups
protected RolePersistenceImpl.RemoveGroup removeGroup
protected RolePersistenceImpl.ContainsPermission containsPermission
protected RolePersistenceImpl.AddPermission addPermission
protected RolePersistenceImpl.ClearPermissions clearPermissions
protected RolePersistenceImpl.RemovePermission removePermission
protected RolePersistenceImpl.ContainsUser containsUser
protected RolePersistenceImpl.AddUser addUser
protected RolePersistenceImpl.ClearUsers clearUsers
protected RolePersistenceImpl.RemoveUser removeUser
| Constructor Detail |
|---|
public RolePersistenceImpl()
| Method Detail |
|---|
public void cacheResult(com.liferay.portal.model.Role role)
cacheResult in interface com.liferay.portal.service.persistence.RolePersistencerole - the rolepublic void cacheResult(java.util.List<com.liferay.portal.model.Role> roles)
cacheResult in interface com.liferay.portal.service.persistence.RolePersistenceroles - the rolespublic void clearCache()
The EntityCache and FinderCache are both cleared by this method.
clearCache in interface com.liferay.portal.service.persistence.BasePersistence<com.liferay.portal.model.Role>clearCache in class com.liferay.portal.service.persistence.impl.BasePersistenceImpl<com.liferay.portal.model.Role>public void clearCache(com.liferay.portal.model.Role role)
The EntityCache and FinderCache are both cleared by this method.
clearCache in interface com.liferay.portal.service.persistence.BasePersistence<com.liferay.portal.model.Role>clearCache in class com.liferay.portal.service.persistence.impl.BasePersistenceImpl<com.liferay.portal.model.Role>public void clearCache(java.util.List<com.liferay.portal.model.Role> roles)
clearCache in interface com.liferay.portal.service.persistence.BasePersistence<com.liferay.portal.model.Role>clearCache in class com.liferay.portal.service.persistence.impl.BasePersistenceImpl<com.liferay.portal.model.Role>protected void clearUniqueFindersCache(com.liferay.portal.model.Role role)
public com.liferay.portal.model.Role create(long roleId)
create in interface com.liferay.portal.service.persistence.RolePersistenceroleId - the primary key for the new role
public com.liferay.portal.model.Role remove(long roleId)
throws com.liferay.portal.NoSuchRoleException,
com.liferay.portal.kernel.exception.SystemException
remove in interface com.liferay.portal.service.persistence.RolePersistenceroleId - the primary key of the role
com.liferay.portal.NoSuchRoleException - if a role with the primary key could not be found
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred
public com.liferay.portal.model.Role remove(java.io.Serializable primaryKey)
throws com.liferay.portal.NoSuchRoleException,
com.liferay.portal.kernel.exception.SystemException
remove in interface com.liferay.portal.service.persistence.BasePersistence<com.liferay.portal.model.Role>remove in class com.liferay.portal.service.persistence.impl.BasePersistenceImpl<com.liferay.portal.model.Role>primaryKey - the primary key of the role
com.liferay.portal.NoSuchRoleException - if a role with the primary key could not be found
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred
protected com.liferay.portal.model.Role removeImpl(com.liferay.portal.model.Role role)
throws com.liferay.portal.kernel.exception.SystemException
removeImpl in class com.liferay.portal.service.persistence.impl.BasePersistenceImpl<com.liferay.portal.model.Role>com.liferay.portal.kernel.exception.SystemException
public com.liferay.portal.model.Role updateImpl(com.liferay.portal.model.Role role,
boolean merge)
throws com.liferay.portal.kernel.exception.SystemException
updateImpl in interface com.liferay.portal.service.persistence.RolePersistenceupdateImpl in class com.liferay.portal.service.persistence.impl.BasePersistenceImpl<com.liferay.portal.model.Role>com.liferay.portal.kernel.exception.SystemExceptionprotected com.liferay.portal.model.Role toUnwrappedModel(com.liferay.portal.model.Role role)
public com.liferay.portal.model.Role findByPrimaryKey(java.io.Serializable primaryKey)
throws com.liferay.portal.NoSuchModelException,
com.liferay.portal.kernel.exception.SystemException
NoSuchModelException if it could not be found.
findByPrimaryKey in interface com.liferay.portal.service.persistence.BasePersistence<com.liferay.portal.model.Role>findByPrimaryKey in class com.liferay.portal.service.persistence.impl.BasePersistenceImpl<com.liferay.portal.model.Role>primaryKey - the primary key of the role
com.liferay.portal.NoSuchModelException - if a role with the primary key could not be found
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred
public com.liferay.portal.model.Role findByPrimaryKey(long roleId)
throws com.liferay.portal.NoSuchRoleException,
com.liferay.portal.kernel.exception.SystemException
NoSuchRoleException if it could not be found.
findByPrimaryKey in interface com.liferay.portal.service.persistence.RolePersistenceroleId - the primary key of the role
com.liferay.portal.NoSuchRoleException - if a role with the primary key could not be found
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred
public com.liferay.portal.model.Role fetchByPrimaryKey(java.io.Serializable primaryKey)
throws com.liferay.portal.kernel.exception.SystemException
null if it could not be found.
fetchByPrimaryKey in interface com.liferay.portal.service.persistence.BasePersistence<com.liferay.portal.model.Role>fetchByPrimaryKey in class com.liferay.portal.service.persistence.impl.BasePersistenceImpl<com.liferay.portal.model.Role>primaryKey - the primary key of the role
null if a role with the primary key could not be found
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred
public com.liferay.portal.model.Role fetchByPrimaryKey(long roleId)
throws com.liferay.portal.kernel.exception.SystemException
null if it could not be found.
fetchByPrimaryKey in interface com.liferay.portal.service.persistence.RolePersistenceroleId - the primary key of the role
null if a role with the primary key could not be found
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred
public java.util.List<com.liferay.portal.model.Role> findByCompanyId(long companyId)
throws com.liferay.portal.kernel.exception.SystemException
findByCompanyId in interface com.liferay.portal.service.persistence.RolePersistencecompanyId - the company ID
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred
public java.util.List<com.liferay.portal.model.Role> findByCompanyId(long companyId,
int start,
int end)
throws com.liferay.portal.kernel.exception.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.
findByCompanyId in interface com.liferay.portal.service.persistence.RolePersistencecompanyId - the company IDstart - the lower bound of the range of rolesend - the upper bound of the range of roles (not inclusive)
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred
public java.util.List<com.liferay.portal.model.Role> findByCompanyId(long companyId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
throws com.liferay.portal.kernel.exception.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.
findByCompanyId in interface com.liferay.portal.service.persistence.RolePersistencecompanyId - the company IDstart - the lower bound of the range of rolesend - the upper bound of the range of roles (not inclusive)orderByComparator - the comparator to order the results by (optionally null)
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred
public com.liferay.portal.model.Role findByCompanyId_First(long companyId,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
throws com.liferay.portal.NoSuchRoleException,
com.liferay.portal.kernel.exception.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.
findByCompanyId_First in interface com.liferay.portal.service.persistence.RolePersistencecompanyId - the company IDorderByComparator - the comparator to order the set by (optionally null)
com.liferay.portal.NoSuchRoleException - if a matching role could not be found
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred
public com.liferay.portal.model.Role findByCompanyId_Last(long companyId,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
throws com.liferay.portal.NoSuchRoleException,
com.liferay.portal.kernel.exception.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.
findByCompanyId_Last in interface com.liferay.portal.service.persistence.RolePersistencecompanyId - the company IDorderByComparator - the comparator to order the set by (optionally null)
com.liferay.portal.NoSuchRoleException - if a matching role could not be found
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred
public com.liferay.portal.model.Role[] findByCompanyId_PrevAndNext(long roleId,
long companyId,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
throws com.liferay.portal.NoSuchRoleException,
com.liferay.portal.kernel.exception.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.
findByCompanyId_PrevAndNext in interface com.liferay.portal.service.persistence.RolePersistenceroleId - the primary key of the current rolecompanyId - the company IDorderByComparator - the comparator to order the set by (optionally null)
com.liferay.portal.NoSuchRoleException - if a role with the primary key could not be found
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred
protected com.liferay.portal.model.Role getByCompanyId_PrevAndNext(com.liferay.portal.kernel.dao.orm.Session session,
com.liferay.portal.model.Role role,
long companyId,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator,
boolean previous)
public java.util.List<com.liferay.portal.model.Role> filterFindByCompanyId(long companyId)
throws com.liferay.portal.kernel.exception.SystemException
filterFindByCompanyId in interface com.liferay.portal.service.persistence.RolePersistencecompanyId - the company ID
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred
public java.util.List<com.liferay.portal.model.Role> filterFindByCompanyId(long companyId,
int start,
int end)
throws com.liferay.portal.kernel.exception.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.
filterFindByCompanyId in interface com.liferay.portal.service.persistence.RolePersistencecompanyId - the company IDstart - the lower bound of the range of rolesend - the upper bound of the range of roles (not inclusive)
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred
public java.util.List<com.liferay.portal.model.Role> filterFindByCompanyId(long companyId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
throws com.liferay.portal.kernel.exception.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.
filterFindByCompanyId in interface com.liferay.portal.service.persistence.RolePersistencecompanyId - the company IDstart - the lower bound of the range of rolesend - the upper bound of the range of roles (not inclusive)orderByComparator - the comparator to order the results by (optionally null)
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred
public com.liferay.portal.model.Role[] filterFindByCompanyId_PrevAndNext(long roleId,
long companyId,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
throws com.liferay.portal.NoSuchRoleException,
com.liferay.portal.kernel.exception.SystemException
filterFindByCompanyId_PrevAndNext in interface com.liferay.portal.service.persistence.RolePersistenceroleId - the primary key of the current rolecompanyId - the company IDorderByComparator - the comparator to order the set by (optionally null)
com.liferay.portal.NoSuchRoleException - if a role with the primary key could not be found
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred
protected com.liferay.portal.model.Role filterGetByCompanyId_PrevAndNext(com.liferay.portal.kernel.dao.orm.Session session,
com.liferay.portal.model.Role role,
long companyId,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator,
boolean previous)
public java.util.List<com.liferay.portal.model.Role> findByName(java.lang.String name)
throws com.liferay.portal.kernel.exception.SystemException
findByName in interface com.liferay.portal.service.persistence.RolePersistencename - the name
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred
public java.util.List<com.liferay.portal.model.Role> findByName(java.lang.String name,
int start,
int end)
throws com.liferay.portal.kernel.exception.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.
findByName in interface com.liferay.portal.service.persistence.RolePersistencename - the namestart - the lower bound of the range of rolesend - the upper bound of the range of roles (not inclusive)
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred
public java.util.List<com.liferay.portal.model.Role> findByName(java.lang.String name,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
throws com.liferay.portal.kernel.exception.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.
findByName in interface com.liferay.portal.service.persistence.RolePersistencename - the namestart - the lower bound of the range of rolesend - the upper bound of the range of roles (not inclusive)orderByComparator - the comparator to order the results by (optionally null)
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred
public com.liferay.portal.model.Role findByName_First(java.lang.String name,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
throws com.liferay.portal.NoSuchRoleException,
com.liferay.portal.kernel.exception.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.
findByName_First in interface com.liferay.portal.service.persistence.RolePersistencename - the nameorderByComparator - the comparator to order the set by (optionally null)
com.liferay.portal.NoSuchRoleException - if a matching role could not be found
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred
public com.liferay.portal.model.Role findByName_Last(java.lang.String name,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
throws com.liferay.portal.NoSuchRoleException,
com.liferay.portal.kernel.exception.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.
findByName_Last in interface com.liferay.portal.service.persistence.RolePersistencename - the nameorderByComparator - the comparator to order the set by (optionally null)
com.liferay.portal.NoSuchRoleException - if a matching role could not be found
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred
public com.liferay.portal.model.Role[] findByName_PrevAndNext(long roleId,
java.lang.String name,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
throws com.liferay.portal.NoSuchRoleException,
com.liferay.portal.kernel.exception.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.
findByName_PrevAndNext in interface com.liferay.portal.service.persistence.RolePersistenceroleId - the primary key of the current rolename - the nameorderByComparator - the comparator to order the set by (optionally null)
com.liferay.portal.NoSuchRoleException - if a role with the primary key could not be found
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred
protected com.liferay.portal.model.Role getByName_PrevAndNext(com.liferay.portal.kernel.dao.orm.Session session,
com.liferay.portal.model.Role role,
java.lang.String name,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator,
boolean previous)
public java.util.List<com.liferay.portal.model.Role> filterFindByName(java.lang.String name)
throws com.liferay.portal.kernel.exception.SystemException
filterFindByName in interface com.liferay.portal.service.persistence.RolePersistencename - the name
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred
public java.util.List<com.liferay.portal.model.Role> filterFindByName(java.lang.String name,
int start,
int end)
throws com.liferay.portal.kernel.exception.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.
filterFindByName in interface com.liferay.portal.service.persistence.RolePersistencename - the namestart - the lower bound of the range of rolesend - the upper bound of the range of roles (not inclusive)
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred
public java.util.List<com.liferay.portal.model.Role> filterFindByName(java.lang.String name,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
throws com.liferay.portal.kernel.exception.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.
filterFindByName in interface com.liferay.portal.service.persistence.RolePersistencename - the namestart - the lower bound of the range of rolesend - the upper bound of the range of roles (not inclusive)orderByComparator - the comparator to order the results by (optionally null)
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred
public com.liferay.portal.model.Role[] filterFindByName_PrevAndNext(long roleId,
java.lang.String name,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
throws com.liferay.portal.NoSuchRoleException,
com.liferay.portal.kernel.exception.SystemException
filterFindByName_PrevAndNext in interface com.liferay.portal.service.persistence.RolePersistenceroleId - the primary key of the current rolename - the nameorderByComparator - the comparator to order the set by (optionally null)
com.liferay.portal.NoSuchRoleException - if a role with the primary key could not be found
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred
protected com.liferay.portal.model.Role filterGetByName_PrevAndNext(com.liferay.portal.kernel.dao.orm.Session session,
com.liferay.portal.model.Role role,
java.lang.String name,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator,
boolean previous)
public java.util.List<com.liferay.portal.model.Role> findBySubtype(java.lang.String subtype)
throws com.liferay.portal.kernel.exception.SystemException
findBySubtype in interface com.liferay.portal.service.persistence.RolePersistencesubtype - the subtype
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred
public java.util.List<com.liferay.portal.model.Role> findBySubtype(java.lang.String subtype,
int start,
int end)
throws com.liferay.portal.kernel.exception.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.
findBySubtype in interface com.liferay.portal.service.persistence.RolePersistencesubtype - the subtypestart - the lower bound of the range of rolesend - the upper bound of the range of roles (not inclusive)
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred
public java.util.List<com.liferay.portal.model.Role> findBySubtype(java.lang.String subtype,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
throws com.liferay.portal.kernel.exception.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.
findBySubtype in interface com.liferay.portal.service.persistence.RolePersistencesubtype - the subtypestart - the lower bound of the range of rolesend - the upper bound of the range of roles (not inclusive)orderByComparator - the comparator to order the results by (optionally null)
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred
public com.liferay.portal.model.Role findBySubtype_First(java.lang.String subtype,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
throws com.liferay.portal.NoSuchRoleException,
com.liferay.portal.kernel.exception.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.
findBySubtype_First in interface com.liferay.portal.service.persistence.RolePersistencesubtype - the subtypeorderByComparator - the comparator to order the set by (optionally null)
com.liferay.portal.NoSuchRoleException - if a matching role could not be found
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred
public com.liferay.portal.model.Role findBySubtype_Last(java.lang.String subtype,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
throws com.liferay.portal.NoSuchRoleException,
com.liferay.portal.kernel.exception.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.
findBySubtype_Last in interface com.liferay.portal.service.persistence.RolePersistencesubtype - the subtypeorderByComparator - the comparator to order the set by (optionally null)
com.liferay.portal.NoSuchRoleException - if a matching role could not be found
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred
public com.liferay.portal.model.Role[] findBySubtype_PrevAndNext(long roleId,
java.lang.String subtype,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
throws com.liferay.portal.NoSuchRoleException,
com.liferay.portal.kernel.exception.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.
findBySubtype_PrevAndNext in interface com.liferay.portal.service.persistence.RolePersistenceroleId - the primary key of the current rolesubtype - the subtypeorderByComparator - the comparator to order the set by (optionally null)
com.liferay.portal.NoSuchRoleException - if a role with the primary key could not be found
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred
protected com.liferay.portal.model.Role getBySubtype_PrevAndNext(com.liferay.portal.kernel.dao.orm.Session session,
com.liferay.portal.model.Role role,
java.lang.String subtype,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator,
boolean previous)
public java.util.List<com.liferay.portal.model.Role> filterFindBySubtype(java.lang.String subtype)
throws com.liferay.portal.kernel.exception.SystemException
filterFindBySubtype in interface com.liferay.portal.service.persistence.RolePersistencesubtype - the subtype
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred
public java.util.List<com.liferay.portal.model.Role> filterFindBySubtype(java.lang.String subtype,
int start,
int end)
throws com.liferay.portal.kernel.exception.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.
filterFindBySubtype in interface com.liferay.portal.service.persistence.RolePersistencesubtype - the subtypestart - the lower bound of the range of rolesend - the upper bound of the range of roles (not inclusive)
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred
public java.util.List<com.liferay.portal.model.Role> filterFindBySubtype(java.lang.String subtype,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
throws com.liferay.portal.kernel.exception.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.
filterFindBySubtype in interface com.liferay.portal.service.persistence.RolePersistencesubtype - the subtypestart - the lower bound of the range of rolesend - the upper bound of the range of roles (not inclusive)orderByComparator - the comparator to order the results by (optionally null)
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred
public com.liferay.portal.model.Role[] filterFindBySubtype_PrevAndNext(long roleId,
java.lang.String subtype,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
throws com.liferay.portal.NoSuchRoleException,
com.liferay.portal.kernel.exception.SystemException
filterFindBySubtype_PrevAndNext in interface com.liferay.portal.service.persistence.RolePersistenceroleId - the primary key of the current rolesubtype - the subtypeorderByComparator - the comparator to order the set by (optionally null)
com.liferay.portal.NoSuchRoleException - if a role with the primary key could not be found
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred
protected com.liferay.portal.model.Role filterGetBySubtype_PrevAndNext(com.liferay.portal.kernel.dao.orm.Session session,
com.liferay.portal.model.Role role,
java.lang.String subtype,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator,
boolean previous)
public com.liferay.portal.model.Role findByC_N(long companyId,
java.lang.String name)
throws com.liferay.portal.NoSuchRoleException,
com.liferay.portal.kernel.exception.SystemException
NoSuchRoleException if it could not be found.
findByC_N in interface com.liferay.portal.service.persistence.RolePersistencecompanyId - the company IDname - the name
com.liferay.portal.NoSuchRoleException - if a matching role could not be found
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred
public com.liferay.portal.model.Role fetchByC_N(long companyId,
java.lang.String name)
throws com.liferay.portal.kernel.exception.SystemException
null if it could not be found. Uses the finder cache.
fetchByC_N in interface com.liferay.portal.service.persistence.RolePersistencecompanyId - the company IDname - the name
null if a matching role could not be found
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred
public com.liferay.portal.model.Role fetchByC_N(long companyId,
java.lang.String name,
boolean retrieveFromCache)
throws com.liferay.portal.kernel.exception.SystemException
null if it could not be found, optionally using the finder cache.
fetchByC_N in interface com.liferay.portal.service.persistence.RolePersistencecompanyId - the company IDname - the nameretrieveFromCache - whether to use the finder cache
null if a matching role could not be found
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred
public java.util.List<com.liferay.portal.model.Role> findByT_S(int type,
java.lang.String subtype)
throws com.liferay.portal.kernel.exception.SystemException
findByT_S in interface com.liferay.portal.service.persistence.RolePersistencetype - the typesubtype - the subtype
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred
public java.util.List<com.liferay.portal.model.Role> findByT_S(int type,
java.lang.String subtype,
int start,
int end)
throws com.liferay.portal.kernel.exception.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.
findByT_S in interface com.liferay.portal.service.persistence.RolePersistencetype - the typesubtype - the subtypestart - the lower bound of the range of rolesend - the upper bound of the range of roles (not inclusive)
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred
public java.util.List<com.liferay.portal.model.Role> findByT_S(int type,
java.lang.String subtype,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
throws com.liferay.portal.kernel.exception.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.
findByT_S in interface com.liferay.portal.service.persistence.RolePersistencetype - the typesubtype - the subtypestart - the lower bound of the range of rolesend - the upper bound of the range of roles (not inclusive)orderByComparator - the comparator to order the results by (optionally null)
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred
public com.liferay.portal.model.Role findByT_S_First(int type,
java.lang.String subtype,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
throws com.liferay.portal.NoSuchRoleException,
com.liferay.portal.kernel.exception.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.
findByT_S_First in interface com.liferay.portal.service.persistence.RolePersistencetype - the typesubtype - the subtypeorderByComparator - the comparator to order the set by (optionally null)
com.liferay.portal.NoSuchRoleException - if a matching role could not be found
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred
public com.liferay.portal.model.Role findByT_S_Last(int type,
java.lang.String subtype,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
throws com.liferay.portal.NoSuchRoleException,
com.liferay.portal.kernel.exception.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.
findByT_S_Last in interface com.liferay.portal.service.persistence.RolePersistencetype - the typesubtype - the subtypeorderByComparator - the comparator to order the set by (optionally null)
com.liferay.portal.NoSuchRoleException - if a matching role could not be found
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred
public com.liferay.portal.model.Role[] findByT_S_PrevAndNext(long roleId,
int type,
java.lang.String subtype,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
throws com.liferay.portal.NoSuchRoleException,
com.liferay.portal.kernel.exception.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.
findByT_S_PrevAndNext in interface com.liferay.portal.service.persistence.RolePersistenceroleId - the primary key of the current roletype - the typesubtype - the subtypeorderByComparator - the comparator to order the set by (optionally null)
com.liferay.portal.NoSuchRoleException - if a role with the primary key could not be found
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred
protected com.liferay.portal.model.Role getByT_S_PrevAndNext(com.liferay.portal.kernel.dao.orm.Session session,
com.liferay.portal.model.Role role,
int type,
java.lang.String subtype,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator,
boolean previous)
public java.util.List<com.liferay.portal.model.Role> filterFindByT_S(int type,
java.lang.String subtype)
throws com.liferay.portal.kernel.exception.SystemException
filterFindByT_S in interface com.liferay.portal.service.persistence.RolePersistencetype - the typesubtype - the subtype
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred
public java.util.List<com.liferay.portal.model.Role> filterFindByT_S(int type,
java.lang.String subtype,
int start,
int end)
throws com.liferay.portal.kernel.exception.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.
filterFindByT_S in interface com.liferay.portal.service.persistence.RolePersistencetype - the typesubtype - the subtypestart - the lower bound of the range of rolesend - the upper bound of the range of roles (not inclusive)
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred
public java.util.List<com.liferay.portal.model.Role> filterFindByT_S(int type,
java.lang.String subtype,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
throws com.liferay.portal.kernel.exception.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.
filterFindByT_S in interface com.liferay.portal.service.persistence.RolePersistencetype - the typesubtype - the subtypestart - the lower bound of the range of rolesend - the upper bound of the range of roles (not inclusive)orderByComparator - the comparator to order the results by (optionally null)
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred
public com.liferay.portal.model.Role[] filterFindByT_S_PrevAndNext(long roleId,
int type,
java.lang.String subtype,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
throws com.liferay.portal.NoSuchRoleException,
com.liferay.portal.kernel.exception.SystemException
filterFindByT_S_PrevAndNext in interface com.liferay.portal.service.persistence.RolePersistenceroleId - the primary key of the current roletype - the typesubtype - the subtypeorderByComparator - the comparator to order the set by (optionally null)
com.liferay.portal.NoSuchRoleException - if a role with the primary key could not be found
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred
protected com.liferay.portal.model.Role filterGetByT_S_PrevAndNext(com.liferay.portal.kernel.dao.orm.Session session,
com.liferay.portal.model.Role role,
int type,
java.lang.String subtype,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator,
boolean previous)
public com.liferay.portal.model.Role findByC_C_C(long companyId,
long classNameId,
long classPK)
throws com.liferay.portal.NoSuchRoleException,
com.liferay.portal.kernel.exception.SystemException
NoSuchRoleException if it could not be found.
findByC_C_C in interface com.liferay.portal.service.persistence.RolePersistencecompanyId - the company IDclassNameId - the class name IDclassPK - the class p k
com.liferay.portal.NoSuchRoleException - if a matching role could not be found
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred
public com.liferay.portal.model.Role fetchByC_C_C(long companyId,
long classNameId,
long classPK)
throws com.liferay.portal.kernel.exception.SystemException
null if it could not be found. Uses the finder cache.
fetchByC_C_C in interface com.liferay.portal.service.persistence.RolePersistencecompanyId - the company IDclassNameId - the class name IDclassPK - the class p k
null if a matching role could not be found
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred
public com.liferay.portal.model.Role fetchByC_C_C(long companyId,
long classNameId,
long classPK,
boolean retrieveFromCache)
throws com.liferay.portal.kernel.exception.SystemException
null if it could not be found, optionally using the finder cache.
fetchByC_C_C in interface com.liferay.portal.service.persistence.RolePersistencecompanyId - the company IDclassNameId - the class name IDclassPK - the class p kretrieveFromCache - whether to use the finder cache
null if a matching role could not be found
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred
public java.util.List<com.liferay.portal.model.Role> findAll()
throws com.liferay.portal.kernel.exception.SystemException
findAll in interface com.liferay.portal.service.persistence.RolePersistencecom.liferay.portal.kernel.exception.SystemException - if a system exception occurred
public java.util.List<com.liferay.portal.model.Role> findAll(int start,
int end)
throws com.liferay.portal.kernel.exception.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.
findAll in interface com.liferay.portal.service.persistence.RolePersistencestart - the lower bound of the range of rolesend - the upper bound of the range of roles (not inclusive)
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred
public java.util.List<com.liferay.portal.model.Role> findAll(int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
throws com.liferay.portal.kernel.exception.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.
findAll in interface com.liferay.portal.service.persistence.RolePersistencestart - the lower bound of the range of rolesend - the upper bound of the range of roles (not inclusive)orderByComparator - the comparator to order the results by (optionally null)
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred
public void removeByCompanyId(long companyId)
throws com.liferay.portal.kernel.exception.SystemException
removeByCompanyId in interface com.liferay.portal.service.persistence.RolePersistencecompanyId - the company ID
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred
public void removeByName(java.lang.String name)
throws com.liferay.portal.kernel.exception.SystemException
removeByName in interface com.liferay.portal.service.persistence.RolePersistencename - the name
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred
public void removeBySubtype(java.lang.String subtype)
throws com.liferay.portal.kernel.exception.SystemException
removeBySubtype in interface com.liferay.portal.service.persistence.RolePersistencesubtype - the subtype
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred
public void removeByC_N(long companyId,
java.lang.String name)
throws com.liferay.portal.NoSuchRoleException,
com.liferay.portal.kernel.exception.SystemException
removeByC_N in interface com.liferay.portal.service.persistence.RolePersistencecompanyId - the company IDname - the name
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred
com.liferay.portal.NoSuchRoleException
public void removeByT_S(int type,
java.lang.String subtype)
throws com.liferay.portal.kernel.exception.SystemException
removeByT_S in interface com.liferay.portal.service.persistence.RolePersistencetype - the typesubtype - the subtype
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred
public void removeByC_C_C(long companyId,
long classNameId,
long classPK)
throws com.liferay.portal.NoSuchRoleException,
com.liferay.portal.kernel.exception.SystemException
removeByC_C_C in interface com.liferay.portal.service.persistence.RolePersistencecompanyId - the company IDclassNameId - the class name IDclassPK - the class p k
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred
com.liferay.portal.NoSuchRoleException
public void removeAll()
throws com.liferay.portal.kernel.exception.SystemException
removeAll in interface com.liferay.portal.service.persistence.RolePersistencecom.liferay.portal.kernel.exception.SystemException - if a system exception occurred
public int countByCompanyId(long companyId)
throws com.liferay.portal.kernel.exception.SystemException
countByCompanyId in interface com.liferay.portal.service.persistence.RolePersistencecompanyId - the company ID
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred
public int filterCountByCompanyId(long companyId)
throws com.liferay.portal.kernel.exception.SystemException
filterCountByCompanyId in interface com.liferay.portal.service.persistence.RolePersistencecompanyId - the company ID
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred
public int countByName(java.lang.String name)
throws com.liferay.portal.kernel.exception.SystemException
countByName in interface com.liferay.portal.service.persistence.RolePersistencename - the name
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred
public int filterCountByName(java.lang.String name)
throws com.liferay.portal.kernel.exception.SystemException
filterCountByName in interface com.liferay.portal.service.persistence.RolePersistencename - the name
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred
public int countBySubtype(java.lang.String subtype)
throws com.liferay.portal.kernel.exception.SystemException
countBySubtype in interface com.liferay.portal.service.persistence.RolePersistencesubtype - the subtype
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred
public int filterCountBySubtype(java.lang.String subtype)
throws com.liferay.portal.kernel.exception.SystemException
filterCountBySubtype in interface com.liferay.portal.service.persistence.RolePersistencesubtype - the subtype
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred
public int countByC_N(long companyId,
java.lang.String name)
throws com.liferay.portal.kernel.exception.SystemException
countByC_N in interface com.liferay.portal.service.persistence.RolePersistencecompanyId - the company IDname - the name
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred
public int countByT_S(int type,
java.lang.String subtype)
throws com.liferay.portal.kernel.exception.SystemException
countByT_S in interface com.liferay.portal.service.persistence.RolePersistencetype - the typesubtype - the subtype
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred
public int filterCountByT_S(int type,
java.lang.String subtype)
throws com.liferay.portal.kernel.exception.SystemException
filterCountByT_S in interface com.liferay.portal.service.persistence.RolePersistencetype - the typesubtype - the subtype
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred
public int countByC_C_C(long companyId,
long classNameId,
long classPK)
throws com.liferay.portal.kernel.exception.SystemException
countByC_C_C in interface com.liferay.portal.service.persistence.RolePersistencecompanyId - the company IDclassNameId - the class name IDclassPK - the class p k
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred
public int countAll()
throws com.liferay.portal.kernel.exception.SystemException
countAll in interface com.liferay.portal.service.persistence.RolePersistencecom.liferay.portal.kernel.exception.SystemException - if a system exception occurred
public java.util.List<com.liferay.portal.model.Group> getGroups(long pk)
throws com.liferay.portal.kernel.exception.SystemException
getGroups in interface com.liferay.portal.service.persistence.RolePersistencepk - the primary key of the role
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred
public java.util.List<com.liferay.portal.model.Group> getGroups(long pk,
int start,
int end)
throws com.liferay.portal.kernel.exception.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.
getGroups in interface com.liferay.portal.service.persistence.RolePersistencepk - the primary key of the rolestart - the lower bound of the range of rolesend - the upper bound of the range of roles (not inclusive)
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred
public java.util.List<com.liferay.portal.model.Group> getGroups(long pk,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
throws com.liferay.portal.kernel.exception.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.
getGroups in interface com.liferay.portal.service.persistence.RolePersistencepk - the primary key of the rolestart - the lower bound of the range of rolesend - the upper bound of the range of roles (not inclusive)orderByComparator - the comparator to order the results by (optionally null)
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred
public int getGroupsSize(long pk)
throws com.liferay.portal.kernel.exception.SystemException
getGroupsSize in interface com.liferay.portal.service.persistence.RolePersistencepk - the primary key of the role
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred
public boolean containsGroup(long pk,
long groupPK)
throws com.liferay.portal.kernel.exception.SystemException
true if the group is associated with the role.
containsGroup in interface com.liferay.portal.service.persistence.RolePersistencepk - the primary key of the rolegroupPK - the primary key of the group
true if the group is associated with the role; false otherwise
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred
public boolean containsGroups(long pk)
throws com.liferay.portal.kernel.exception.SystemException
true if the role has any groups associated with it.
containsGroups in interface com.liferay.portal.service.persistence.RolePersistencepk - the primary key of the role to check for associations with groups
true if the role has any groups associated with it; false otherwise
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred
public void addGroup(long pk,
long groupPK)
throws com.liferay.portal.kernel.exception.SystemException
addGroup in interface com.liferay.portal.service.persistence.RolePersistencepk - the primary key of the rolegroupPK - the primary key of the group
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred
public void addGroup(long pk,
com.liferay.portal.model.Group group)
throws com.liferay.portal.kernel.exception.SystemException
addGroup in interface com.liferay.portal.service.persistence.RolePersistencepk - the primary key of the rolegroup - the group
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred
public void addGroups(long pk,
long[] groupPKs)
throws com.liferay.portal.kernel.exception.SystemException
addGroups in interface com.liferay.portal.service.persistence.RolePersistencepk - the primary key of the rolegroupPKs - the primary keys of the groups
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred
public void addGroups(long pk,
java.util.List<com.liferay.portal.model.Group> groups)
throws com.liferay.portal.kernel.exception.SystemException
addGroups in interface com.liferay.portal.service.persistence.RolePersistencepk - the primary key of the rolegroups - the groups
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred
public void clearGroups(long pk)
throws com.liferay.portal.kernel.exception.SystemException
clearGroups in interface com.liferay.portal.service.persistence.RolePersistencepk - the primary key of the role to clear the associated groups from
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred
public void removeGroup(long pk,
long groupPK)
throws com.liferay.portal.kernel.exception.SystemException
removeGroup in interface com.liferay.portal.service.persistence.RolePersistencepk - the primary key of the rolegroupPK - the primary key of the group
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred
public void removeGroup(long pk,
com.liferay.portal.model.Group group)
throws com.liferay.portal.kernel.exception.SystemException
removeGroup in interface com.liferay.portal.service.persistence.RolePersistencepk - the primary key of the rolegroup - the group
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred
public void removeGroups(long pk,
long[] groupPKs)
throws com.liferay.portal.kernel.exception.SystemException
removeGroups in interface com.liferay.portal.service.persistence.RolePersistencepk - the primary key of the rolegroupPKs - the primary keys of the groups
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred
public void removeGroups(long pk,
java.util.List<com.liferay.portal.model.Group> groups)
throws com.liferay.portal.kernel.exception.SystemException
removeGroups in interface com.liferay.portal.service.persistence.RolePersistencepk - the primary key of the rolegroups - the groups
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred
public void setGroups(long pk,
long[] groupPKs)
throws com.liferay.portal.kernel.exception.SystemException
setGroups in interface com.liferay.portal.service.persistence.RolePersistencepk - the primary key of the rolegroupPKs - the primary keys of the groups to be associated with the role
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred
public void setGroups(long pk,
java.util.List<com.liferay.portal.model.Group> groups)
throws com.liferay.portal.kernel.exception.SystemException
setGroups in interface com.liferay.portal.service.persistence.RolePersistencepk - the primary key of the rolegroups - the groups to be associated with the role
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred
public java.util.List<com.liferay.portal.model.Permission> getPermissions(long pk)
throws com.liferay.portal.kernel.exception.SystemException
getPermissions in interface com.liferay.portal.service.persistence.RolePersistencepk - the primary key of the role
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred
public java.util.List<com.liferay.portal.model.Permission> getPermissions(long pk,
int start,
int end)
throws com.liferay.portal.kernel.exception.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.
getPermissions in interface com.liferay.portal.service.persistence.RolePersistencepk - the primary key of the rolestart - the lower bound of the range of rolesend - the upper bound of the range of roles (not inclusive)
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred
public java.util.List<com.liferay.portal.model.Permission> getPermissions(long pk,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
throws com.liferay.portal.kernel.exception.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.
getPermissions in interface com.liferay.portal.service.persistence.RolePersistencepk - the primary key of the rolestart - the lower bound of the range of rolesend - the upper bound of the range of roles (not inclusive)orderByComparator - the comparator to order the results by (optionally null)
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred
public int getPermissionsSize(long pk)
throws com.liferay.portal.kernel.exception.SystemException
getPermissionsSize in interface com.liferay.portal.service.persistence.RolePersistencepk - the primary key of the role
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred
public boolean containsPermission(long pk,
long permissionPK)
throws com.liferay.portal.kernel.exception.SystemException
true if the permission is associated with the role.
containsPermission in interface com.liferay.portal.service.persistence.RolePersistencepk - the primary key of the rolepermissionPK - the primary key of the permission
true if the permission is associated with the role; false otherwise
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred
public boolean containsPermissions(long pk)
throws com.liferay.portal.kernel.exception.SystemException
true if the role has any permissions associated with it.
containsPermissions in interface com.liferay.portal.service.persistence.RolePersistencepk - the primary key of the role to check for associations with permissions
true if the role has any permissions associated with it; false otherwise
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred
public void addPermission(long pk,
long permissionPK)
throws com.liferay.portal.kernel.exception.SystemException
addPermission in interface com.liferay.portal.service.persistence.RolePersistencepk - the primary key of the rolepermissionPK - the primary key of the permission
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred
public void addPermission(long pk,
com.liferay.portal.model.Permission permission)
throws com.liferay.portal.kernel.exception.SystemException
addPermission in interface com.liferay.portal.service.persistence.RolePersistencepk - the primary key of the rolepermission - the permission
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred
public void addPermissions(long pk,
long[] permissionPKs)
throws com.liferay.portal.kernel.exception.SystemException
addPermissions in interface com.liferay.portal.service.persistence.RolePersistencepk - the primary key of the rolepermissionPKs - the primary keys of the permissions
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred
public void addPermissions(long pk,
java.util.List<com.liferay.portal.model.Permission> permissions)
throws com.liferay.portal.kernel.exception.SystemException
addPermissions in interface com.liferay.portal.service.persistence.RolePersistencepk - the primary key of the rolepermissions - the permissions
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred
public void clearPermissions(long pk)
throws com.liferay.portal.kernel.exception.SystemException
clearPermissions in interface com.liferay.portal.service.persistence.RolePersistencepk - the primary key of the role to clear the associated permissions from
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred
public void removePermission(long pk,
long permissionPK)
throws com.liferay.portal.kernel.exception.SystemException
removePermission in interface com.liferay.portal.service.persistence.RolePersistencepk - the primary key of the rolepermissionPK - the primary key of the permission
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred
public void removePermission(long pk,
com.liferay.portal.model.Permission permission)
throws com.liferay.portal.kernel.exception.SystemException
removePermission in interface com.liferay.portal.service.persistence.RolePersistencepk - the primary key of the rolepermission - the permission
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred
public void removePermissions(long pk,
long[] permissionPKs)
throws com.liferay.portal.kernel.exception.SystemException
removePermissions in interface com.liferay.portal.service.persistence.RolePersistencepk - the primary key of the rolepermissionPKs - the primary keys of the permissions
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred
public void removePermissions(long pk,
java.util.List<com.liferay.portal.model.Permission> permissions)
throws com.liferay.portal.kernel.exception.SystemException
removePermissions in interface com.liferay.portal.service.persistence.RolePersistencepk - the primary key of the rolepermissions - the permissions
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred
public void setPermissions(long pk,
long[] permissionPKs)
throws com.liferay.portal.kernel.exception.SystemException
setPermissions in interface com.liferay.portal.service.persistence.RolePersistencepk - the primary key of the rolepermissionPKs - the primary keys of the permissions to be associated with the role
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred
public void setPermissions(long pk,
java.util.List<com.liferay.portal.model.Permission> permissions)
throws com.liferay.portal.kernel.exception.SystemException
setPermissions in interface com.liferay.portal.service.persistence.RolePersistencepk - the primary key of the rolepermissions - the permissions to be associated with the role
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred
public java.util.List<com.liferay.portal.model.User> getUsers(long pk)
throws com.liferay.portal.kernel.exception.SystemException
getUsers in interface com.liferay.portal.service.persistence.RolePersistencepk - the primary key of the role
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred
public java.util.List<com.liferay.portal.model.User> getUsers(long pk,
int start,
int end)
throws com.liferay.portal.kernel.exception.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.
getUsers in interface com.liferay.portal.service.persistence.RolePersistencepk - the primary key of the rolestart - the lower bound of the range of rolesend - the upper bound of the range of roles (not inclusive)
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred
public java.util.List<com.liferay.portal.model.User> getUsers(long pk,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
throws com.liferay.portal.kernel.exception.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.
getUsers in interface com.liferay.portal.service.persistence.RolePersistencepk - the primary key of the rolestart - the lower bound of the range of rolesend - the upper bound of the range of roles (not inclusive)orderByComparator - the comparator to order the results by (optionally null)
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred
public int getUsersSize(long pk)
throws com.liferay.portal.kernel.exception.SystemException
getUsersSize in interface com.liferay.portal.service.persistence.RolePersistencepk - the primary key of the role
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred
public boolean containsUser(long pk,
long userPK)
throws com.liferay.portal.kernel.exception.SystemException
true if the user is associated with the role.
containsUser in interface com.liferay.portal.service.persistence.RolePersistencepk - the primary key of the roleuserPK - the primary key of the user
true if the user is associated with the role; false otherwise
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred
public boolean containsUsers(long pk)
throws com.liferay.portal.kernel.exception.SystemException
true if the role has any users associated with it.
containsUsers in interface com.liferay.portal.service.persistence.RolePersistencepk - the primary key of the role to check for associations with users
true if the role has any users associated with it; false otherwise
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred
public void addUser(long pk,
long userPK)
throws com.liferay.portal.kernel.exception.SystemException
addUser in interface com.liferay.portal.service.persistence.RolePersistencepk - the primary key of the roleuserPK - the primary key of the user
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred
public void addUser(long pk,
com.liferay.portal.model.User user)
throws com.liferay.portal.kernel.exception.SystemException
addUser in interface com.liferay.portal.service.persistence.RolePersistencepk - the primary key of the roleuser - the user
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred
public void addUsers(long pk,
long[] userPKs)
throws com.liferay.portal.kernel.exception.SystemException
addUsers in interface com.liferay.portal.service.persistence.RolePersistencepk - the primary key of the roleuserPKs - the primary keys of the users
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred
public void addUsers(long pk,
java.util.List<com.liferay.portal.model.User> users)
throws com.liferay.portal.kernel.exception.SystemException
addUsers in interface com.liferay.portal.service.persistence.RolePersistencepk - the primary key of the roleusers - the users
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred
public void clearUsers(long pk)
throws com.liferay.portal.kernel.exception.SystemException
clearUsers in interface com.liferay.portal.service.persistence.RolePersistencepk - the primary key of the role to clear the associated users from
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred
public void removeUser(long pk,
long userPK)
throws com.liferay.portal.kernel.exception.SystemException
removeUser in interface com.liferay.portal.service.persistence.RolePersistencepk - the primary key of the roleuserPK - the primary key of the user
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred
public void removeUser(long pk,
com.liferay.portal.model.User user)
throws com.liferay.portal.kernel.exception.SystemException
removeUser in interface com.liferay.portal.service.persistence.RolePersistencepk - the primary key of the roleuser - the user
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred
public void removeUsers(long pk,
long[] userPKs)
throws com.liferay.portal.kernel.exception.SystemException
removeUsers in interface com.liferay.portal.service.persistence.RolePersistencepk - the primary key of the roleuserPKs - the primary keys of the users
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred
public void removeUsers(long pk,
java.util.List<com.liferay.portal.model.User> users)
throws com.liferay.portal.kernel.exception.SystemException
removeUsers in interface com.liferay.portal.service.persistence.RolePersistencepk - the primary key of the roleusers - the users
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred
public void setUsers(long pk,
long[] userPKs)
throws com.liferay.portal.kernel.exception.SystemException
setUsers in interface com.liferay.portal.service.persistence.RolePersistencepk - the primary key of the roleuserPKs - the primary keys of the users to be associated with the role
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred
public void setUsers(long pk,
java.util.List<com.liferay.portal.model.User> users)
throws com.liferay.portal.kernel.exception.SystemException
setUsers in interface com.liferay.portal.service.persistence.RolePersistencepk - the primary key of the roleusers - the users to be associated with the role
com.liferay.portal.kernel.exception.SystemException - if a system exception occurredpublic void afterPropertiesSet()
public void destroy()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||