com.liferay.portal.service.persistence
Class RolePersistenceImpl

java.lang.Object
  extended by com.liferay.portal.service.persistence.impl.BasePersistenceImpl<com.liferay.portal.model.Role>
      extended by com.liferay.portal.service.persistence.RolePersistenceImpl
All Implemented Interfaces:
com.liferay.portal.kernel.dao.orm.SessionFactory, com.liferay.portal.service.persistence.BasePersistence<com.liferay.portal.model.Role>, com.liferay.portal.service.persistence.RolePersistence

public class RolePersistenceImpl
extends com.liferay.portal.service.persistence.impl.BasePersistenceImpl<com.liferay.portal.model.Role>
implements com.liferay.portal.service.persistence.RolePersistence

The persistence implementation for the role service.

Caching information and settings can be found in portal.properties

Author:
Brian Wing Shun Chan
See Also:
RolePersistence, RoleUtil
Generated:

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

FINDER_CLASS_NAME_ENTITY

public static final java.lang.String FINDER_CLASS_NAME_ENTITY

FINDER_CLASS_NAME_LIST_WITH_PAGINATION

public static final java.lang.String FINDER_CLASS_NAME_LIST_WITH_PAGINATION

FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION

public static final java.lang.String FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION

FINDER_PATH_WITH_PAGINATION_FIND_BY_COMPANYID

public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_COMPANYID

FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_COMPANYID

public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_COMPANYID

FINDER_PATH_COUNT_BY_COMPANYID

public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_COUNT_BY_COMPANYID

FINDER_PATH_WITH_PAGINATION_FIND_BY_NAME

public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_NAME

FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_NAME

public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_NAME

FINDER_PATH_COUNT_BY_NAME

public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_COUNT_BY_NAME

FINDER_PATH_WITH_PAGINATION_FIND_BY_SUBTYPE

public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_SUBTYPE

FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_SUBTYPE

public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_SUBTYPE

FINDER_PATH_COUNT_BY_SUBTYPE

public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_COUNT_BY_SUBTYPE

FINDER_PATH_FETCH_BY_C_N

public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_FETCH_BY_C_N

FINDER_PATH_COUNT_BY_C_N

public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_COUNT_BY_C_N

FINDER_PATH_WITH_PAGINATION_FIND_BY_T_S

public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_T_S

FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_T_S

public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_T_S

FINDER_PATH_COUNT_BY_T_S

public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_COUNT_BY_T_S

FINDER_PATH_FETCH_BY_C_C_C

public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_FETCH_BY_C_C_C

FINDER_PATH_COUNT_BY_C_C_C

public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_COUNT_BY_C_C_C

FINDER_PATH_WITH_PAGINATION_FIND_ALL

public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_WITH_PAGINATION_FIND_ALL

FINDER_PATH_WITHOUT_PAGINATION_FIND_ALL

public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_ALL

FINDER_PATH_COUNT_ALL

public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_COUNT_ALL

FINDER_PATH_GET_GROUPS

public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_GET_GROUPS

FINDER_PATH_GET_GROUPS_SIZE

public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_GET_GROUPS_SIZE

FINDER_PATH_CONTAINS_GROUP

public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_CONTAINS_GROUP

FINDER_PATH_GET_PERMISSIONS

public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_GET_PERMISSIONS

FINDER_PATH_GET_PERMISSIONS_SIZE

public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_GET_PERMISSIONS_SIZE

FINDER_PATH_CONTAINS_PERMISSION

public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_CONTAINS_PERMISSION

FINDER_PATH_GET_USERS

public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_GET_USERS

FINDER_PATH_GET_USERS_SIZE

public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_GET_USERS_SIZE

FINDER_PATH_CONTAINS_USER

public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_CONTAINS_USER

accountPersistence

@BeanReference(type=com.liferay.portal.service.persistence.AccountPersistence.class)
protected com.liferay.portal.service.persistence.AccountPersistence accountPersistence

addressPersistence

@BeanReference(type=com.liferay.portal.service.persistence.AddressPersistence.class)
protected com.liferay.portal.service.persistence.AddressPersistence addressPersistence

browserTrackerPersistence

@BeanReference(type=com.liferay.portal.service.persistence.BrowserTrackerPersistence.class)
protected com.liferay.portal.service.persistence.BrowserTrackerPersistence browserTrackerPersistence

classNamePersistence

@BeanReference(type=com.liferay.portal.service.persistence.ClassNamePersistence.class)
protected com.liferay.portal.service.persistence.ClassNamePersistence classNamePersistence

clusterGroupPersistence

@BeanReference(type=com.liferay.portal.service.persistence.ClusterGroupPersistence.class)
protected com.liferay.portal.service.persistence.ClusterGroupPersistence clusterGroupPersistence

companyPersistence

@BeanReference(type=com.liferay.portal.service.persistence.CompanyPersistence.class)
protected com.liferay.portal.service.persistence.CompanyPersistence companyPersistence

contactPersistence

@BeanReference(type=com.liferay.portal.service.persistence.ContactPersistence.class)
protected com.liferay.portal.service.persistence.ContactPersistence contactPersistence

countryPersistence

@BeanReference(type=com.liferay.portal.service.persistence.CountryPersistence.class)
protected com.liferay.portal.service.persistence.CountryPersistence countryPersistence

emailAddressPersistence

@BeanReference(type=com.liferay.portal.service.persistence.EmailAddressPersistence.class)
protected com.liferay.portal.service.persistence.EmailAddressPersistence emailAddressPersistence

groupPersistence

@BeanReference(type=com.liferay.portal.service.persistence.GroupPersistence.class)
protected com.liferay.portal.service.persistence.GroupPersistence groupPersistence

imagePersistence

@BeanReference(type=com.liferay.portal.service.persistence.ImagePersistence.class)
protected com.liferay.portal.service.persistence.ImagePersistence imagePersistence

layoutPersistence

@BeanReference(type=com.liferay.portal.service.persistence.LayoutPersistence.class)
protected com.liferay.portal.service.persistence.LayoutPersistence layoutPersistence

layoutBranchPersistence

@BeanReference(type=com.liferay.portal.service.persistence.LayoutBranchPersistence.class)
protected com.liferay.portal.service.persistence.LayoutBranchPersistence layoutBranchPersistence

layoutPrototypePersistence

@BeanReference(type=com.liferay.portal.service.persistence.LayoutPrototypePersistence.class)
protected com.liferay.portal.service.persistence.LayoutPrototypePersistence layoutPrototypePersistence

layoutRevisionPersistence

@BeanReference(type=com.liferay.portal.service.persistence.LayoutRevisionPersistence.class)
protected com.liferay.portal.service.persistence.LayoutRevisionPersistence layoutRevisionPersistence

layoutSetPersistence

@BeanReference(type=com.liferay.portal.service.persistence.LayoutSetPersistence.class)
protected com.liferay.portal.service.persistence.LayoutSetPersistence layoutSetPersistence

layoutSetBranchPersistence

@BeanReference(type=com.liferay.portal.service.persistence.LayoutSetBranchPersistence.class)
protected com.liferay.portal.service.persistence.LayoutSetBranchPersistence layoutSetBranchPersistence

layoutSetPrototypePersistence

@BeanReference(type=com.liferay.portal.service.persistence.LayoutSetPrototypePersistence.class)
protected com.liferay.portal.service.persistence.LayoutSetPrototypePersistence layoutSetPrototypePersistence

listTypePersistence

@BeanReference(type=com.liferay.portal.service.persistence.ListTypePersistence.class)
protected com.liferay.portal.service.persistence.ListTypePersistence listTypePersistence

lockPersistence

@BeanReference(type=com.liferay.portal.service.persistence.LockPersistence.class)
protected com.liferay.portal.service.persistence.LockPersistence lockPersistence

membershipRequestPersistence

@BeanReference(type=com.liferay.portal.service.persistence.MembershipRequestPersistence.class)
protected com.liferay.portal.service.persistence.MembershipRequestPersistence membershipRequestPersistence

organizationPersistence

@BeanReference(type=com.liferay.portal.service.persistence.OrganizationPersistence.class)
protected com.liferay.portal.service.persistence.OrganizationPersistence organizationPersistence

orgGroupPermissionPersistence

@BeanReference(type=com.liferay.portal.service.persistence.OrgGroupPermissionPersistence.class)
protected com.liferay.portal.service.persistence.OrgGroupPermissionPersistence orgGroupPermissionPersistence

orgGroupRolePersistence

@BeanReference(type=com.liferay.portal.service.persistence.OrgGroupRolePersistence.class)
protected com.liferay.portal.service.persistence.OrgGroupRolePersistence orgGroupRolePersistence

orgLaborPersistence

@BeanReference(type=com.liferay.portal.service.persistence.OrgLaborPersistence.class)
protected com.liferay.portal.service.persistence.OrgLaborPersistence orgLaborPersistence

passwordPolicyPersistence

@BeanReference(type=com.liferay.portal.service.persistence.PasswordPolicyPersistence.class)
protected com.liferay.portal.service.persistence.PasswordPolicyPersistence passwordPolicyPersistence

passwordPolicyRelPersistence

@BeanReference(type=com.liferay.portal.service.persistence.PasswordPolicyRelPersistence.class)
protected com.liferay.portal.service.persistence.PasswordPolicyRelPersistence passwordPolicyRelPersistence

passwordTrackerPersistence

@BeanReference(type=com.liferay.portal.service.persistence.PasswordTrackerPersistence.class)
protected com.liferay.portal.service.persistence.PasswordTrackerPersistence passwordTrackerPersistence

permissionPersistence

@BeanReference(type=com.liferay.portal.service.persistence.PermissionPersistence.class)
protected com.liferay.portal.service.persistence.PermissionPersistence permissionPersistence

phonePersistence

@BeanReference(type=com.liferay.portal.service.persistence.PhonePersistence.class)
protected com.liferay.portal.service.persistence.PhonePersistence phonePersistence

pluginSettingPersistence

@BeanReference(type=com.liferay.portal.service.persistence.PluginSettingPersistence.class)
protected com.liferay.portal.service.persistence.PluginSettingPersistence pluginSettingPersistence

portalPreferencesPersistence

@BeanReference(type=com.liferay.portal.service.persistence.PortalPreferencesPersistence.class)
protected com.liferay.portal.service.persistence.PortalPreferencesPersistence portalPreferencesPersistence

portletPersistence

@BeanReference(type=com.liferay.portal.service.persistence.PortletPersistence.class)
protected com.liferay.portal.service.persistence.PortletPersistence portletPersistence

portletItemPersistence

@BeanReference(type=com.liferay.portal.service.persistence.PortletItemPersistence.class)
protected com.liferay.portal.service.persistence.PortletItemPersistence portletItemPersistence

portletPreferencesPersistence

@BeanReference(type=com.liferay.portal.service.persistence.PortletPreferencesPersistence.class)
protected com.liferay.portal.service.persistence.PortletPreferencesPersistence portletPreferencesPersistence

regionPersistence

@BeanReference(type=com.liferay.portal.service.persistence.RegionPersistence.class)
protected com.liferay.portal.service.persistence.RegionPersistence regionPersistence

releasePersistence

@BeanReference(type=com.liferay.portal.service.persistence.ReleasePersistence.class)
protected com.liferay.portal.service.persistence.ReleasePersistence releasePersistence

repositoryPersistence

@BeanReference(type=com.liferay.portal.service.persistence.RepositoryPersistence.class)
protected com.liferay.portal.service.persistence.RepositoryPersistence repositoryPersistence

repositoryEntryPersistence

@BeanReference(type=com.liferay.portal.service.persistence.RepositoryEntryPersistence.class)
protected com.liferay.portal.service.persistence.RepositoryEntryPersistence repositoryEntryPersistence

resourcePersistence

@BeanReference(type=com.liferay.portal.service.persistence.ResourcePersistence.class)
protected com.liferay.portal.service.persistence.ResourcePersistence resourcePersistence

resourceActionPersistence

@BeanReference(type=com.liferay.portal.service.persistence.ResourceActionPersistence.class)
protected com.liferay.portal.service.persistence.ResourceActionPersistence resourceActionPersistence

resourceBlockPersistence

@BeanReference(type=com.liferay.portal.service.persistence.ResourceBlockPersistence.class)
protected com.liferay.portal.service.persistence.ResourceBlockPersistence resourceBlockPersistence

resourceBlockPermissionPersistence

@BeanReference(type=com.liferay.portal.service.persistence.ResourceBlockPermissionPersistence.class)
protected com.liferay.portal.service.persistence.ResourceBlockPermissionPersistence resourceBlockPermissionPersistence

resourceCodePersistence

@BeanReference(type=com.liferay.portal.service.persistence.ResourceCodePersistence.class)
protected com.liferay.portal.service.persistence.ResourceCodePersistence resourceCodePersistence

resourcePermissionPersistence

@BeanReference(type=com.liferay.portal.service.persistence.ResourcePermissionPersistence.class)
protected com.liferay.portal.service.persistence.ResourcePermissionPersistence resourcePermissionPersistence

resourceTypePermissionPersistence

@BeanReference(type=com.liferay.portal.service.persistence.ResourceTypePermissionPersistence.class)
protected com.liferay.portal.service.persistence.ResourceTypePermissionPersistence resourceTypePermissionPersistence

rolePersistence

@BeanReference(type=com.liferay.portal.service.persistence.RolePersistence.class)
protected com.liferay.portal.service.persistence.RolePersistence rolePersistence

serviceComponentPersistence

@BeanReference(type=com.liferay.portal.service.persistence.ServiceComponentPersistence.class)
protected com.liferay.portal.service.persistence.ServiceComponentPersistence serviceComponentPersistence

shardPersistence

@BeanReference(type=com.liferay.portal.service.persistence.ShardPersistence.class)
protected com.liferay.portal.service.persistence.ShardPersistence shardPersistence

subscriptionPersistence

@BeanReference(type=com.liferay.portal.service.persistence.SubscriptionPersistence.class)
protected com.liferay.portal.service.persistence.SubscriptionPersistence subscriptionPersistence

teamPersistence

@BeanReference(type=com.liferay.portal.service.persistence.TeamPersistence.class)
protected com.liferay.portal.service.persistence.TeamPersistence teamPersistence

ticketPersistence

@BeanReference(type=com.liferay.portal.service.persistence.TicketPersistence.class)
protected com.liferay.portal.service.persistence.TicketPersistence ticketPersistence

userPersistence

@BeanReference(type=com.liferay.portal.service.persistence.UserPersistence.class)
protected com.liferay.portal.service.persistence.UserPersistence userPersistence

userGroupPersistence

@BeanReference(type=com.liferay.portal.service.persistence.UserGroupPersistence.class)
protected com.liferay.portal.service.persistence.UserGroupPersistence userGroupPersistence

userGroupGroupRolePersistence

@BeanReference(type=com.liferay.portal.service.persistence.UserGroupGroupRolePersistence.class)
protected com.liferay.portal.service.persistence.UserGroupGroupRolePersistence userGroupGroupRolePersistence

userGroupRolePersistence

@BeanReference(type=com.liferay.portal.service.persistence.UserGroupRolePersistence.class)
protected com.liferay.portal.service.persistence.UserGroupRolePersistence userGroupRolePersistence

userIdMapperPersistence

@BeanReference(type=com.liferay.portal.service.persistence.UserIdMapperPersistence.class)
protected com.liferay.portal.service.persistence.UserIdMapperPersistence userIdMapperPersistence

userNotificationEventPersistence

@BeanReference(type=com.liferay.portal.service.persistence.UserNotificationEventPersistence.class)
protected com.liferay.portal.service.persistence.UserNotificationEventPersistence userNotificationEventPersistence

userTrackerPersistence

@BeanReference(type=com.liferay.portal.service.persistence.UserTrackerPersistence.class)
protected com.liferay.portal.service.persistence.UserTrackerPersistence userTrackerPersistence

userTrackerPathPersistence

@BeanReference(type=com.liferay.portal.service.persistence.UserTrackerPathPersistence.class)
protected com.liferay.portal.service.persistence.UserTrackerPathPersistence userTrackerPathPersistence

virtualHostPersistence

@BeanReference(type=com.liferay.portal.service.persistence.VirtualHostPersistence.class)
protected com.liferay.portal.service.persistence.VirtualHostPersistence virtualHostPersistence

webDAVPropsPersistence

@BeanReference(type=com.liferay.portal.service.persistence.WebDAVPropsPersistence.class)
protected com.liferay.portal.service.persistence.WebDAVPropsPersistence webDAVPropsPersistence

websitePersistence

@BeanReference(type=com.liferay.portal.service.persistence.WebsitePersistence.class)
protected com.liferay.portal.service.persistence.WebsitePersistence websitePersistence

workflowDefinitionLinkPersistence

@BeanReference(type=com.liferay.portal.service.persistence.WorkflowDefinitionLinkPersistence.class)
protected com.liferay.portal.service.persistence.WorkflowDefinitionLinkPersistence workflowDefinitionLinkPersistence

workflowInstanceLinkPersistence

@BeanReference(type=com.liferay.portal.service.persistence.WorkflowInstanceLinkPersistence.class)
protected com.liferay.portal.service.persistence.WorkflowInstanceLinkPersistence workflowInstanceLinkPersistence

containsGroup

protected RolePersistenceImpl.ContainsGroup containsGroup

addGroup

protected RolePersistenceImpl.AddGroup addGroup

clearGroups

protected RolePersistenceImpl.ClearGroups clearGroups

removeGroup

protected RolePersistenceImpl.RemoveGroup removeGroup

containsPermission

protected RolePersistenceImpl.ContainsPermission containsPermission

addPermission

protected RolePersistenceImpl.AddPermission addPermission

clearPermissions

protected RolePersistenceImpl.ClearPermissions clearPermissions

removePermission

protected RolePersistenceImpl.RemovePermission removePermission

containsUser

protected RolePersistenceImpl.ContainsUser containsUser

addUser

protected RolePersistenceImpl.AddUser addUser

clearUsers

protected RolePersistenceImpl.ClearUsers clearUsers

removeUser

protected RolePersistenceImpl.RemoveUser removeUser
Constructor Detail

RolePersistenceImpl

public RolePersistenceImpl()
Method Detail

cacheResult

public void cacheResult(com.liferay.portal.model.Role role)
Caches the role in the entity cache if it is enabled.

Specified by:
cacheResult in interface com.liferay.portal.service.persistence.RolePersistence
Parameters:
role - the role

cacheResult

public void cacheResult(java.util.List<com.liferay.portal.model.Role> roles)
Caches the roles in the entity cache if it is enabled.

Specified by:
cacheResult in interface com.liferay.portal.service.persistence.RolePersistence
Parameters:
roles - the roles

clearCache

public void clearCache()
Clears the cache for all roles.

The EntityCache and FinderCache are both cleared by this method.

Specified by:
clearCache in interface com.liferay.portal.service.persistence.BasePersistence<com.liferay.portal.model.Role>
Overrides:
clearCache in class com.liferay.portal.service.persistence.impl.BasePersistenceImpl<com.liferay.portal.model.Role>

clearCache

public void clearCache(com.liferay.portal.model.Role role)
Clears the cache for the role.

The EntityCache and FinderCache are both cleared by this method.

Specified by:
clearCache in interface com.liferay.portal.service.persistence.BasePersistence<com.liferay.portal.model.Role>
Overrides:
clearCache in class com.liferay.portal.service.persistence.impl.BasePersistenceImpl<com.liferay.portal.model.Role>

clearCache

public void clearCache(java.util.List<com.liferay.portal.model.Role> roles)
Specified by:
clearCache in interface com.liferay.portal.service.persistence.BasePersistence<com.liferay.portal.model.Role>
Overrides:
clearCache in class com.liferay.portal.service.persistence.impl.BasePersistenceImpl<com.liferay.portal.model.Role>

clearUniqueFindersCache

protected void clearUniqueFindersCache(com.liferay.portal.model.Role role)

create

public com.liferay.portal.model.Role create(long roleId)
Creates a new role with the primary key. Does not add the role to the database.

Specified by:
create in interface com.liferay.portal.service.persistence.RolePersistence
Parameters:
roleId - the primary key for the new role
Returns:
the new role

remove

public com.liferay.portal.model.Role remove(long roleId)
                                     throws com.liferay.portal.NoSuchRoleException,
                                            com.liferay.portal.kernel.exception.SystemException
Removes the role with the primary key from the database. Also notifies the appropriate model listeners.

Specified by:
remove in interface com.liferay.portal.service.persistence.RolePersistence
Parameters:
roleId - the primary key of the role
Returns:
the role that was removed
Throws:
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

remove

public com.liferay.portal.model.Role remove(java.io.Serializable primaryKey)
                                     throws com.liferay.portal.NoSuchRoleException,
                                            com.liferay.portal.kernel.exception.SystemException
Removes the role with the primary key from the database. Also notifies the appropriate model listeners.

Specified by:
remove in interface com.liferay.portal.service.persistence.BasePersistence<com.liferay.portal.model.Role>
Overrides:
remove in class com.liferay.portal.service.persistence.impl.BasePersistenceImpl<com.liferay.portal.model.Role>
Parameters:
primaryKey - the primary key of the role
Returns:
the role that was removed
Throws:
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

removeImpl

protected com.liferay.portal.model.Role removeImpl(com.liferay.portal.model.Role role)
                                            throws com.liferay.portal.kernel.exception.SystemException
Overrides:
removeImpl in class com.liferay.portal.service.persistence.impl.BasePersistenceImpl<com.liferay.portal.model.Role>
Throws:
com.liferay.portal.kernel.exception.SystemException

updateImpl

public com.liferay.portal.model.Role updateImpl(com.liferay.portal.model.Role role,
                                                boolean merge)
                                         throws com.liferay.portal.kernel.exception.SystemException
Specified by:
updateImpl in interface com.liferay.portal.service.persistence.RolePersistence
Overrides:
updateImpl in class com.liferay.portal.service.persistence.impl.BasePersistenceImpl<com.liferay.portal.model.Role>
Throws:
com.liferay.portal.kernel.exception.SystemException

toUnwrappedModel

protected com.liferay.portal.model.Role toUnwrappedModel(com.liferay.portal.model.Role role)

findByPrimaryKey

public com.liferay.portal.model.Role findByPrimaryKey(java.io.Serializable primaryKey)
                                               throws com.liferay.portal.NoSuchModelException,
                                                      com.liferay.portal.kernel.exception.SystemException
Returns the role with the primary key or throws a NoSuchModelException if it could not be found.

Specified by:
findByPrimaryKey in interface com.liferay.portal.service.persistence.BasePersistence<com.liferay.portal.model.Role>
Overrides:
findByPrimaryKey in class com.liferay.portal.service.persistence.impl.BasePersistenceImpl<com.liferay.portal.model.Role>
Parameters:
primaryKey - the primary key of the role
Returns:
the role
Throws:
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

findByPrimaryKey

public com.liferay.portal.model.Role findByPrimaryKey(long roleId)
                                               throws com.liferay.portal.NoSuchRoleException,
                                                      com.liferay.portal.kernel.exception.SystemException
Returns the role with the primary key or throws a NoSuchRoleException if it could not be found.

Specified by:
findByPrimaryKey in interface com.liferay.portal.service.persistence.RolePersistence
Parameters:
roleId - the primary key of the role
Returns:
the role
Throws:
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

fetchByPrimaryKey

public com.liferay.portal.model.Role fetchByPrimaryKey(java.io.Serializable primaryKey)
                                                throws com.liferay.portal.kernel.exception.SystemException
Returns the role with the primary key or returns null if it could not be found.

Specified by:
fetchByPrimaryKey in interface com.liferay.portal.service.persistence.BasePersistence<com.liferay.portal.model.Role>
Overrides:
fetchByPrimaryKey in class com.liferay.portal.service.persistence.impl.BasePersistenceImpl<com.liferay.portal.model.Role>
Parameters:
primaryKey - the primary key of the role
Returns:
the role, or null if a role with the primary key could not be found
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

fetchByPrimaryKey

public com.liferay.portal.model.Role fetchByPrimaryKey(long roleId)
                                                throws com.liferay.portal.kernel.exception.SystemException
Returns the role with the primary key or returns null if it could not be found.

Specified by:
fetchByPrimaryKey in interface com.liferay.portal.service.persistence.RolePersistence
Parameters:
roleId - the primary key of the role
Returns:
the role, or null if a role with the primary key could not be found
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

findByCompanyId

public java.util.List<com.liferay.portal.model.Role> findByCompanyId(long companyId)
                                                              throws com.liferay.portal.kernel.exception.SystemException
Returns all the roles where companyId = ?.

Specified by:
findByCompanyId in interface com.liferay.portal.service.persistence.RolePersistence
Parameters:
companyId - the company ID
Returns:
the matching roles
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

findByCompanyId

public java.util.List<com.liferay.portal.model.Role> findByCompanyId(long companyId,
                                                                     int start,
                                                                     int end)
                                                              throws com.liferay.portal.kernel.exception.SystemException
Returns a range of all the roles where companyId = ?.

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.

Specified by:
findByCompanyId in interface com.liferay.portal.service.persistence.RolePersistence
Parameters:
companyId - the company ID
start - the lower bound of the range of roles
end - the upper bound of the range of roles (not inclusive)
Returns:
the range of matching roles
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

findByCompanyId

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
Returns an ordered range of all the roles where companyId = ?.

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.

Specified by:
findByCompanyId in interface com.liferay.portal.service.persistence.RolePersistence
Parameters:
companyId - the company ID
start - the lower bound of the range of roles
end - the upper bound of the range of roles (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of matching roles
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

findByCompanyId_First

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
Returns the first role in the ordered set where companyId = ?.

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.

Specified by:
findByCompanyId_First in interface com.liferay.portal.service.persistence.RolePersistence
Parameters:
companyId - the company ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching role
Throws:
com.liferay.portal.NoSuchRoleException - if a matching role could not be found
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

findByCompanyId_Last

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
Returns the last role in the ordered set where companyId = ?.

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.

Specified by:
findByCompanyId_Last in interface com.liferay.portal.service.persistence.RolePersistence
Parameters:
companyId - the company ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching role
Throws:
com.liferay.portal.NoSuchRoleException - if a matching role could not be found
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

findByCompanyId_PrevAndNext

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
Returns the roles before and after the current role in the ordered set where companyId = ?.

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.

Specified by:
findByCompanyId_PrevAndNext in interface com.liferay.portal.service.persistence.RolePersistence
Parameters:
roleId - the primary key of the current role
companyId - the company ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the previous, current, and next role
Throws:
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

getByCompanyId_PrevAndNext

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)

filterFindByCompanyId

public java.util.List<com.liferay.portal.model.Role> filterFindByCompanyId(long companyId)
                                                                    throws com.liferay.portal.kernel.exception.SystemException
Returns all the roles that the user has permission to view where companyId = ?.

Specified by:
filterFindByCompanyId in interface com.liferay.portal.service.persistence.RolePersistence
Parameters:
companyId - the company ID
Returns:
the matching roles that the user has permission to view
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

filterFindByCompanyId

public java.util.List<com.liferay.portal.model.Role> filterFindByCompanyId(long companyId,
                                                                           int start,
                                                                           int end)
                                                                    throws com.liferay.portal.kernel.exception.SystemException
Returns a range of all the roles that the user has permission to view where companyId = ?.

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.

Specified by:
filterFindByCompanyId in interface com.liferay.portal.service.persistence.RolePersistence
Parameters:
companyId - the company ID
start - the lower bound of the range of roles
end - the upper bound of the range of roles (not inclusive)
Returns:
the range of matching roles that the user has permission to view
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

filterFindByCompanyId

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
Returns an ordered range of all the roles that the user has permissions to view where companyId = ?.

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.

Specified by:
filterFindByCompanyId in interface com.liferay.portal.service.persistence.RolePersistence
Parameters:
companyId - the company ID
start - the lower bound of the range of roles
end - the upper bound of the range of roles (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of matching roles that the user has permission to view
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

filterFindByCompanyId_PrevAndNext

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
Returns the roles before and after the current role in the ordered set of roles that the user has permission to view where companyId = ?.

Specified by:
filterFindByCompanyId_PrevAndNext in interface com.liferay.portal.service.persistence.RolePersistence
Parameters:
roleId - the primary key of the current role
companyId - the company ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the previous, current, and next role
Throws:
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

filterGetByCompanyId_PrevAndNext

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)

findByName

public java.util.List<com.liferay.portal.model.Role> findByName(java.lang.String name)
                                                         throws com.liferay.portal.kernel.exception.SystemException
Returns all the roles where name = ?.

Specified by:
findByName in interface com.liferay.portal.service.persistence.RolePersistence
Parameters:
name - the name
Returns:
the matching roles
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

findByName

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
Returns a range of all the roles where name = ?.

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.

Specified by:
findByName in interface com.liferay.portal.service.persistence.RolePersistence
Parameters:
name - the name
start - the lower bound of the range of roles
end - the upper bound of the range of roles (not inclusive)
Returns:
the range of matching roles
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

findByName

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
Returns an ordered range of all the roles where name = ?.

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.

Specified by:
findByName in interface com.liferay.portal.service.persistence.RolePersistence
Parameters:
name - the name
start - the lower bound of the range of roles
end - the upper bound of the range of roles (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of matching roles
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

findByName_First

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
Returns the first role in the ordered set where name = ?.

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.

Specified by:
findByName_First in interface com.liferay.portal.service.persistence.RolePersistence
Parameters:
name - the name
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching role
Throws:
com.liferay.portal.NoSuchRoleException - if a matching role could not be found
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

findByName_Last

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
Returns the last role in the ordered set where name = ?.

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.

Specified by:
findByName_Last in interface com.liferay.portal.service.persistence.RolePersistence
Parameters:
name - the name
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching role
Throws:
com.liferay.portal.NoSuchRoleException - if a matching role could not be found
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

findByName_PrevAndNext

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
Returns the roles before and after the current role in the ordered set where name = ?.

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.

Specified by:
findByName_PrevAndNext in interface com.liferay.portal.service.persistence.RolePersistence
Parameters:
roleId - the primary key of the current role
name - the name
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the previous, current, and next role
Throws:
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

getByName_PrevAndNext

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)

filterFindByName

public java.util.List<com.liferay.portal.model.Role> filterFindByName(java.lang.String name)
                                                               throws com.liferay.portal.kernel.exception.SystemException
Returns all the roles that the user has permission to view where name = ?.

Specified by:
filterFindByName in interface com.liferay.portal.service.persistence.RolePersistence
Parameters:
name - the name
Returns:
the matching roles that the user has permission to view
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

filterFindByName

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
Returns a range of all the roles that the user has permission to view where name = ?.

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.

Specified by:
filterFindByName in interface com.liferay.portal.service.persistence.RolePersistence
Parameters:
name - the name
start - the lower bound of the range of roles
end - the upper bound of the range of roles (not inclusive)
Returns:
the range of matching roles that the user has permission to view
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

filterFindByName

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
Returns an ordered range of all the roles that the user has permissions to view where name = ?.

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.

Specified by:
filterFindByName in interface com.liferay.portal.service.persistence.RolePersistence
Parameters:
name - the name
start - the lower bound of the range of roles
end - the upper bound of the range of roles (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of matching roles that the user has permission to view
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

filterFindByName_PrevAndNext

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
Returns the roles before and after the current role in the ordered set of roles that the user has permission to view where name = ?.

Specified by:
filterFindByName_PrevAndNext in interface com.liferay.portal.service.persistence.RolePersistence
Parameters:
roleId - the primary key of the current role
name - the name
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the previous, current, and next role
Throws:
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

filterGetByName_PrevAndNext

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)

findBySubtype

public java.util.List<com.liferay.portal.model.Role> findBySubtype(java.lang.String subtype)
                                                            throws com.liferay.portal.kernel.exception.SystemException
Returns all the roles where subtype = ?.

Specified by:
findBySubtype in interface com.liferay.portal.service.persistence.RolePersistence
Parameters:
subtype - the subtype
Returns:
the matching roles
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

findBySubtype

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
Returns a range of all the roles where subtype = ?.

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.

Specified by:
findBySubtype in interface com.liferay.portal.service.persistence.RolePersistence
Parameters:
subtype - the subtype
start - the lower bound of the range of roles
end - the upper bound of the range of roles (not inclusive)
Returns:
the range of matching roles
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

findBySubtype

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
Returns an ordered range of all the roles where subtype = ?.

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.

Specified by:
findBySubtype in interface com.liferay.portal.service.persistence.RolePersistence
Parameters:
subtype - the subtype
start - the lower bound of the range of roles
end - the upper bound of the range of roles (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of matching roles
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

findBySubtype_First

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
Returns the first role in the ordered set where subtype = ?.

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.

Specified by:
findBySubtype_First in interface com.liferay.portal.service.persistence.RolePersistence
Parameters:
subtype - the subtype
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching role
Throws:
com.liferay.portal.NoSuchRoleException - if a matching role could not be found
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

findBySubtype_Last

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
Returns the last role in the ordered set where subtype = ?.

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.

Specified by:
findBySubtype_Last in interface com.liferay.portal.service.persistence.RolePersistence
Parameters:
subtype - the subtype
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching role
Throws:
com.liferay.portal.NoSuchRoleException - if a matching role could not be found
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

findBySubtype_PrevAndNext

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
Returns the roles before and after the current role in the ordered set where subtype = ?.

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.

Specified by:
findBySubtype_PrevAndNext in interface com.liferay.portal.service.persistence.RolePersistence
Parameters:
roleId - the primary key of the current role
subtype - the subtype
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the previous, current, and next role
Throws:
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

getBySubtype_PrevAndNext

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)

filterFindBySubtype

public java.util.List<com.liferay.portal.model.Role> filterFindBySubtype(java.lang.String subtype)
                                                                  throws com.liferay.portal.kernel.exception.SystemException
Returns all the roles that the user has permission to view where subtype = ?.

Specified by:
filterFindBySubtype in interface com.liferay.portal.service.persistence.RolePersistence
Parameters:
subtype - the subtype
Returns:
the matching roles that the user has permission to view
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

filterFindBySubtype

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
Returns a range of all the roles that the user has permission to view where subtype = ?.

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.

Specified by:
filterFindBySubtype in interface com.liferay.portal.service.persistence.RolePersistence
Parameters:
subtype - the subtype
start - the lower bound of the range of roles
end - the upper bound of the range of roles (not inclusive)
Returns:
the range of matching roles that the user has permission to view
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

filterFindBySubtype

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
Returns an ordered range of all the roles that the user has permissions to view where subtype = ?.

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.

Specified by:
filterFindBySubtype in interface com.liferay.portal.service.persistence.RolePersistence
Parameters:
subtype - the subtype
start - the lower bound of the range of roles
end - the upper bound of the range of roles (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of matching roles that the user has permission to view
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

filterFindBySubtype_PrevAndNext

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
Returns the roles before and after the current role in the ordered set of roles that the user has permission to view where subtype = ?.

Specified by:
filterFindBySubtype_PrevAndNext in interface com.liferay.portal.service.persistence.RolePersistence
Parameters:
roleId - the primary key of the current role
subtype - the subtype
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the previous, current, and next role
Throws:
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

filterGetBySubtype_PrevAndNext

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)

findByC_N

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
Returns the role where companyId = ? and name = ? or throws a NoSuchRoleException if it could not be found.

Specified by:
findByC_N in interface com.liferay.portal.service.persistence.RolePersistence
Parameters:
companyId - the company ID
name - the name
Returns:
the matching role
Throws:
com.liferay.portal.NoSuchRoleException - if a matching role could not be found
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

fetchByC_N

public com.liferay.portal.model.Role fetchByC_N(long companyId,
                                                java.lang.String name)
                                         throws com.liferay.portal.kernel.exception.SystemException
Returns the role where companyId = ? and name = ? or returns null if it could not be found. Uses the finder cache.

Specified by:
fetchByC_N in interface com.liferay.portal.service.persistence.RolePersistence
Parameters:
companyId - the company ID
name - the name
Returns:
the matching role, or null if a matching role could not be found
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

fetchByC_N

public com.liferay.portal.model.Role fetchByC_N(long companyId,
                                                java.lang.String name,
                                                boolean retrieveFromCache)
                                         throws com.liferay.portal.kernel.exception.SystemException
Returns the role where companyId = ? and name = ? or returns null if it could not be found, optionally using the finder cache.

Specified by:
fetchByC_N in interface com.liferay.portal.service.persistence.RolePersistence
Parameters:
companyId - the company ID
name - the name
retrieveFromCache - whether to use the finder cache
Returns:
the matching role, or null if a matching role could not be found
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

findByT_S

public java.util.List<com.liferay.portal.model.Role> findByT_S(int type,
                                                               java.lang.String subtype)
                                                        throws com.liferay.portal.kernel.exception.SystemException
Returns all the roles where type = ? and subtype = ?.

Specified by:
findByT_S in interface com.liferay.portal.service.persistence.RolePersistence
Parameters:
type - the type
subtype - the subtype
Returns:
the matching roles
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

findByT_S

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
Returns a range of all the roles where type = ? and subtype = ?.

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.

Specified by:
findByT_S in interface com.liferay.portal.service.persistence.RolePersistence
Parameters:
type - the type
subtype - the subtype
start - the lower bound of the range of roles
end - the upper bound of the range of roles (not inclusive)
Returns:
the range of matching roles
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

findByT_S

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
Returns an ordered range of all the roles where type = ? and subtype = ?.

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.

Specified by:
findByT_S in interface com.liferay.portal.service.persistence.RolePersistence
Parameters:
type - the type
subtype - the subtype
start - the lower bound of the range of roles
end - the upper bound of the range of roles (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of matching roles
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

findByT_S_First

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
Returns the first role in the ordered set where type = ? and subtype = ?.

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.

Specified by:
findByT_S_First in interface com.liferay.portal.service.persistence.RolePersistence
Parameters:
type - the type
subtype - the subtype
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching role
Throws:
com.liferay.portal.NoSuchRoleException - if a matching role could not be found
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

findByT_S_Last

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
Returns the last role in the ordered set where type = ? and subtype = ?.

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.

Specified by:
findByT_S_Last in interface com.liferay.portal.service.persistence.RolePersistence
Parameters:
type - the type
subtype - the subtype
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching role
Throws:
com.liferay.portal.NoSuchRoleException - if a matching role could not be found
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

findByT_S_PrevAndNext

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
Returns the roles before and after the current role in the ordered set where type = ? and subtype = ?.

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.

Specified by:
findByT_S_PrevAndNext in interface com.liferay.portal.service.persistence.RolePersistence
Parameters:
roleId - the primary key of the current role
type - the type
subtype - the subtype
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the previous, current, and next role
Throws:
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

getByT_S_PrevAndNext

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)

filterFindByT_S

public java.util.List<com.liferay.portal.model.Role> filterFindByT_S(int type,
                                                                     java.lang.String subtype)
                                                              throws com.liferay.portal.kernel.exception.SystemException
Returns all the roles that the user has permission to view where type = ? and subtype = ?.

Specified by:
filterFindByT_S in interface com.liferay.portal.service.persistence.RolePersistence
Parameters:
type - the type
subtype - the subtype
Returns:
the matching roles that the user has permission to view
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

filterFindByT_S

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
Returns a range of all the roles that the user has permission to view where type = ? and subtype = ?.

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.

Specified by:
filterFindByT_S in interface com.liferay.portal.service.persistence.RolePersistence
Parameters:
type - the type
subtype - the subtype
start - the lower bound of the range of roles
end - the upper bound of the range of roles (not inclusive)
Returns:
the range of matching roles that the user has permission to view
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

filterFindByT_S

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
Returns an ordered range of all the roles that the user has permissions to view where type = ? and subtype = ?.

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.

Specified by:
filterFindByT_S in interface com.liferay.portal.service.persistence.RolePersistence
Parameters:
type - the type
subtype - the subtype
start - the lower bound of the range of roles
end - the upper bound of the range of roles (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of matching roles that the user has permission to view
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

filterFindByT_S_PrevAndNext

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
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 = ?.

Specified by:
filterFindByT_S_PrevAndNext in interface com.liferay.portal.service.persistence.RolePersistence
Parameters:
roleId - the primary key of the current role
type - the type
subtype - the subtype
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the previous, current, and next role
Throws:
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

filterGetByT_S_PrevAndNext

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)

findByC_C_C

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
Returns the role where companyId = ? and classNameId = ? and classPK = ? or throws a NoSuchRoleException if it could not be found.

Specified by:
findByC_C_C in interface com.liferay.portal.service.persistence.RolePersistence
Parameters:
companyId - the company ID
classNameId - the class name ID
classPK - the class p k
Returns:
the matching role
Throws:
com.liferay.portal.NoSuchRoleException - if a matching role could not be found
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

fetchByC_C_C

public com.liferay.portal.model.Role fetchByC_C_C(long companyId,
                                                  long classNameId,
                                                  long classPK)
                                           throws com.liferay.portal.kernel.exception.SystemException
Returns the role where companyId = ? and classNameId = ? and classPK = ? or returns null if it could not be found. Uses the finder cache.

Specified by:
fetchByC_C_C in interface com.liferay.portal.service.persistence.RolePersistence
Parameters:
companyId - the company ID
classNameId - the class name ID
classPK - the class p k
Returns:
the matching role, or null if a matching role could not be found
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

fetchByC_C_C

public com.liferay.portal.model.Role fetchByC_C_C(long companyId,
                                                  long classNameId,
                                                  long classPK,
                                                  boolean retrieveFromCache)
                                           throws com.liferay.portal.kernel.exception.SystemException
Returns the role where companyId = ? and classNameId = ? and classPK = ? or returns null if it could not be found, optionally using the finder cache.

Specified by:
fetchByC_C_C in interface com.liferay.portal.service.persistence.RolePersistence
Parameters:
companyId - the company ID
classNameId - the class name ID
classPK - the class p k
retrieveFromCache - whether to use the finder cache
Returns:
the matching role, or null if a matching role could not be found
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

findAll

public java.util.List<com.liferay.portal.model.Role> findAll()
                                                      throws com.liferay.portal.kernel.exception.SystemException
Returns all the roles.

Specified by:
findAll in interface com.liferay.portal.service.persistence.RolePersistence
Returns:
the roles
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

findAll

public java.util.List<com.liferay.portal.model.Role> findAll(int start,
                                                             int end)
                                                      throws com.liferay.portal.kernel.exception.SystemException
Returns a range of all the roles.

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.

Specified by:
findAll in interface com.liferay.portal.service.persistence.RolePersistence
Parameters:
start - the lower bound of the range of roles
end - the upper bound of the range of roles (not inclusive)
Returns:
the range of roles
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

findAll

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
Returns an ordered range of all the roles.

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.

Specified by:
findAll in interface com.liferay.portal.service.persistence.RolePersistence
Parameters:
start - the lower bound of the range of roles
end - the upper bound of the range of roles (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of roles
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

removeByCompanyId

public void removeByCompanyId(long companyId)
                       throws com.liferay.portal.kernel.exception.SystemException
Removes all the roles where companyId = ? from the database.

Specified by:
removeByCompanyId in interface com.liferay.portal.service.persistence.RolePersistence
Parameters:
companyId - the company ID
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

removeByName

public void removeByName(java.lang.String name)
                  throws com.liferay.portal.kernel.exception.SystemException
Removes all the roles where name = ? from the database.

Specified by:
removeByName in interface com.liferay.portal.service.persistence.RolePersistence
Parameters:
name - the name
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

removeBySubtype

public void removeBySubtype(java.lang.String subtype)
                     throws com.liferay.portal.kernel.exception.SystemException
Removes all the roles where subtype = ? from the database.

Specified by:
removeBySubtype in interface com.liferay.portal.service.persistence.RolePersistence
Parameters:
subtype - the subtype
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

removeByC_N

public void removeByC_N(long companyId,
                        java.lang.String name)
                 throws com.liferay.portal.NoSuchRoleException,
                        com.liferay.portal.kernel.exception.SystemException
Removes the role where companyId = ? and name = ? from the database.

Specified by:
removeByC_N in interface com.liferay.portal.service.persistence.RolePersistence
Parameters:
companyId - the company ID
name - the name
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred
com.liferay.portal.NoSuchRoleException

removeByT_S

public void removeByT_S(int type,
                        java.lang.String subtype)
                 throws com.liferay.portal.kernel.exception.SystemException
Removes all the roles where type = ? and subtype = ? from the database.

Specified by:
removeByT_S in interface com.liferay.portal.service.persistence.RolePersistence
Parameters:
type - the type
subtype - the subtype
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

removeByC_C_C

public void removeByC_C_C(long companyId,
                          long classNameId,
                          long classPK)
                   throws com.liferay.portal.NoSuchRoleException,
                          com.liferay.portal.kernel.exception.SystemException
Removes the role where companyId = ? and classNameId = ? and classPK = ? from the database.

Specified by:
removeByC_C_C in interface com.liferay.portal.service.persistence.RolePersistence
Parameters:
companyId - the company ID
classNameId - the class name ID
classPK - the class p k
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred
com.liferay.portal.NoSuchRoleException

removeAll

public void removeAll()
               throws com.liferay.portal.kernel.exception.SystemException
Removes all the roles from the database.

Specified by:
removeAll in interface com.liferay.portal.service.persistence.RolePersistence
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

countByCompanyId

public int countByCompanyId(long companyId)
                     throws com.liferay.portal.kernel.exception.SystemException
Returns the number of roles where companyId = ?.

Specified by:
countByCompanyId in interface com.liferay.portal.service.persistence.RolePersistence
Parameters:
companyId - the company ID
Returns:
the number of matching roles
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

filterCountByCompanyId

public int filterCountByCompanyId(long companyId)
                           throws com.liferay.portal.kernel.exception.SystemException
Returns the number of roles that the user has permission to view where companyId = ?.

Specified by:
filterCountByCompanyId in interface com.liferay.portal.service.persistence.RolePersistence
Parameters:
companyId - the company ID
Returns:
the number of matching roles that the user has permission to view
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

countByName

public int countByName(java.lang.String name)
                throws com.liferay.portal.kernel.exception.SystemException
Returns the number of roles where name = ?.

Specified by:
countByName in interface com.liferay.portal.service.persistence.RolePersistence
Parameters:
name - the name
Returns:
the number of matching roles
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

filterCountByName

public int filterCountByName(java.lang.String name)
                      throws com.liferay.portal.kernel.exception.SystemException
Returns the number of roles that the user has permission to view where name = ?.

Specified by:
filterCountByName in interface com.liferay.portal.service.persistence.RolePersistence
Parameters:
name - the name
Returns:
the number of matching roles that the user has permission to view
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

countBySubtype

public int countBySubtype(java.lang.String subtype)
                   throws com.liferay.portal.kernel.exception.SystemException
Returns the number of roles where subtype = ?.

Specified by:
countBySubtype in interface com.liferay.portal.service.persistence.RolePersistence
Parameters:
subtype - the subtype
Returns:
the number of matching roles
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

filterCountBySubtype

public int filterCountBySubtype(java.lang.String subtype)
                         throws com.liferay.portal.kernel.exception.SystemException
Returns the number of roles that the user has permission to view where subtype = ?.

Specified by:
filterCountBySubtype in interface com.liferay.portal.service.persistence.RolePersistence
Parameters:
subtype - the subtype
Returns:
the number of matching roles that the user has permission to view
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

countByC_N

public int countByC_N(long companyId,
                      java.lang.String name)
               throws com.liferay.portal.kernel.exception.SystemException
Returns the number of roles where companyId = ? and name = ?.

Specified by:
countByC_N in interface com.liferay.portal.service.persistence.RolePersistence
Parameters:
companyId - the company ID
name - the name
Returns:
the number of matching roles
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

countByT_S

public int countByT_S(int type,
                      java.lang.String subtype)
               throws com.liferay.portal.kernel.exception.SystemException
Returns the number of roles where type = ? and subtype = ?.

Specified by:
countByT_S in interface com.liferay.portal.service.persistence.RolePersistence
Parameters:
type - the type
subtype - the subtype
Returns:
the number of matching roles
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

filterCountByT_S

public int filterCountByT_S(int type,
                            java.lang.String subtype)
                     throws com.liferay.portal.kernel.exception.SystemException
Returns the number of roles that the user has permission to view where type = ? and subtype = ?.

Specified by:
filterCountByT_S in interface com.liferay.portal.service.persistence.RolePersistence
Parameters:
type - the type
subtype - the subtype
Returns:
the number of matching roles that the user has permission to view
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

countByC_C_C

public int countByC_C_C(long companyId,
                        long classNameId,
                        long classPK)
                 throws com.liferay.portal.kernel.exception.SystemException
Returns the number of roles where companyId = ? and classNameId = ? and classPK = ?.

Specified by:
countByC_C_C in interface com.liferay.portal.service.persistence.RolePersistence
Parameters:
companyId - the company ID
classNameId - the class name ID
classPK - the class p k
Returns:
the number of matching roles
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

countAll

public int countAll()
             throws com.liferay.portal.kernel.exception.SystemException
Returns the number of roles.

Specified by:
countAll in interface com.liferay.portal.service.persistence.RolePersistence
Returns:
the number of roles
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

getGroups

public java.util.List<com.liferay.portal.model.Group> getGroups(long pk)
                                                         throws com.liferay.portal.kernel.exception.SystemException
Returns all the groups associated with the role.

Specified by:
getGroups in interface com.liferay.portal.service.persistence.RolePersistence
Parameters:
pk - the primary key of the role
Returns:
the groups associated with the role
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

getGroups

public java.util.List<com.liferay.portal.model.Group> getGroups(long pk,
                                                                int start,
                                                                int end)
                                                         throws com.liferay.portal.kernel.exception.SystemException
Returns a range of all the groups associated with the role.

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.

Specified by:
getGroups in interface com.liferay.portal.service.persistence.RolePersistence
Parameters:
pk - the primary key of the role
start - the lower bound of the range of roles
end - the upper bound of the range of roles (not inclusive)
Returns:
the range of groups associated with the role
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

getGroups

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
Returns an ordered range of all the groups associated with the role.

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.

Specified by:
getGroups in interface com.liferay.portal.service.persistence.RolePersistence
Parameters:
pk - the primary key of the role
start - the lower bound of the range of roles
end - the upper bound of the range of roles (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of groups associated with the role
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

getGroupsSize

public int getGroupsSize(long pk)
                  throws com.liferay.portal.kernel.exception.SystemException
Returns the number of groups associated with the role.

Specified by:
getGroupsSize in interface com.liferay.portal.service.persistence.RolePersistence
Parameters:
pk - the primary key of the role
Returns:
the number of groups associated with the role
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

containsGroup

public boolean containsGroup(long pk,
                             long groupPK)
                      throws com.liferay.portal.kernel.exception.SystemException
Returns true if the group is associated with the role.

Specified by:
containsGroup in interface com.liferay.portal.service.persistence.RolePersistence
Parameters:
pk - the primary key of the role
groupPK - the primary key of the group
Returns:
true if the group is associated with the role; false otherwise
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

containsGroups

public boolean containsGroups(long pk)
                       throws com.liferay.portal.kernel.exception.SystemException
Returns true if the role has any groups associated with it.

Specified by:
containsGroups in interface com.liferay.portal.service.persistence.RolePersistence
Parameters:
pk - the primary key of the role to check for associations with groups
Returns:
true if the role has any groups associated with it; false otherwise
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

addGroup

public void addGroup(long pk,
                     long groupPK)
              throws com.liferay.portal.kernel.exception.SystemException
Adds an association between the role and the group. Also notifies the appropriate model listeners and clears the mapping table finder cache.

Specified by:
addGroup in interface com.liferay.portal.service.persistence.RolePersistence
Parameters:
pk - the primary key of the role
groupPK - the primary key of the group
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

addGroup

public void addGroup(long pk,
                     com.liferay.portal.model.Group group)
              throws com.liferay.portal.kernel.exception.SystemException
Adds an association between the role and the group. Also notifies the appropriate model listeners and clears the mapping table finder cache.

Specified by:
addGroup in interface com.liferay.portal.service.persistence.RolePersistence
Parameters:
pk - the primary key of the role
group - the group
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

addGroups

public void addGroups(long pk,
                      long[] groupPKs)
               throws com.liferay.portal.kernel.exception.SystemException
Adds an association between the role and the groups. Also notifies the appropriate model listeners and clears the mapping table finder cache.

Specified by:
addGroups in interface com.liferay.portal.service.persistence.RolePersistence
Parameters:
pk - the primary key of the role
groupPKs - the primary keys of the groups
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

addGroups

public void addGroups(long pk,
                      java.util.List<com.liferay.portal.model.Group> groups)
               throws com.liferay.portal.kernel.exception.SystemException
Adds an association between the role and the groups. Also notifies the appropriate model listeners and clears the mapping table finder cache.

Specified by:
addGroups in interface com.liferay.portal.service.persistence.RolePersistence
Parameters:
pk - the primary key of the role
groups - the groups
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

clearGroups

public void clearGroups(long pk)
                 throws com.liferay.portal.kernel.exception.SystemException
Clears all associations between the role and its groups. Also notifies the appropriate model listeners and clears the mapping table finder cache.

Specified by:
clearGroups in interface com.liferay.portal.service.persistence.RolePersistence
Parameters:
pk - the primary key of the role to clear the associated groups from
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

removeGroup

public void removeGroup(long pk,
                        long groupPK)
                 throws com.liferay.portal.kernel.exception.SystemException
Removes the association between the role and the group. Also notifies the appropriate model listeners and clears the mapping table finder cache.

Specified by:
removeGroup in interface com.liferay.portal.service.persistence.RolePersistence
Parameters:
pk - the primary key of the role
groupPK - the primary key of the group
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

removeGroup

public void removeGroup(long pk,
                        com.liferay.portal.model.Group group)
                 throws com.liferay.portal.kernel.exception.SystemException
Removes the association between the role and the group. Also notifies the appropriate model listeners and clears the mapping table finder cache.

Specified by:
removeGroup in interface com.liferay.portal.service.persistence.RolePersistence
Parameters:
pk - the primary key of the role
group - the group
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

removeGroups

public void removeGroups(long pk,
                         long[] groupPKs)
                  throws com.liferay.portal.kernel.exception.SystemException
Removes the association between the role and the groups. Also notifies the appropriate model listeners and clears the mapping table finder cache.

Specified by:
removeGroups in interface com.liferay.portal.service.persistence.RolePersistence
Parameters:
pk - the primary key of the role
groupPKs - the primary keys of the groups
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

removeGroups

public void removeGroups(long pk,
                         java.util.List<com.liferay.portal.model.Group> groups)
                  throws com.liferay.portal.kernel.exception.SystemException
Removes the association between the role and the groups. Also notifies the appropriate model listeners and clears the mapping table finder cache.

Specified by:
removeGroups in interface com.liferay.portal.service.persistence.RolePersistence
Parameters:
pk - the primary key of the role
groups - the groups
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

setGroups

public void setGroups(long pk,
                      long[] groupPKs)
               throws com.liferay.portal.kernel.exception.SystemException
Sets the groups associated with the role, removing and adding associations as necessary. Also notifies the appropriate model listeners and clears the mapping table finder cache.

Specified by:
setGroups in interface com.liferay.portal.service.persistence.RolePersistence
Parameters:
pk - the primary key of the role
groupPKs - the primary keys of the groups to be associated with the role
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

setGroups

public void setGroups(long pk,
                      java.util.List<com.liferay.portal.model.Group> groups)
               throws com.liferay.portal.kernel.exception.SystemException
Sets the groups associated with the role, removing and adding associations as necessary. Also notifies the appropriate model listeners and clears the mapping table finder cache.

Specified by:
setGroups in interface com.liferay.portal.service.persistence.RolePersistence
Parameters:
pk - the primary key of the role
groups - the groups to be associated with the role
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

getPermissions

public java.util.List<com.liferay.portal.model.Permission> getPermissions(long pk)
                                                                   throws com.liferay.portal.kernel.exception.SystemException
Returns all the permissions associated with the role.

Specified by:
getPermissions in interface com.liferay.portal.service.persistence.RolePersistence
Parameters:
pk - the primary key of the role
Returns:
the permissions associated with the role
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

getPermissions

public java.util.List<com.liferay.portal.model.Permission> getPermissions(long pk,
                                                                          int start,
                                                                          int end)
                                                                   throws com.liferay.portal.kernel.exception.SystemException
Returns a range of all the permissions associated with the role.

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.

Specified by:
getPermissions in interface com.liferay.portal.service.persistence.RolePersistence
Parameters:
pk - the primary key of the role
start - the lower bound of the range of roles
end - the upper bound of the range of roles (not inclusive)
Returns:
the range of permissions associated with the role
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

getPermissions

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
Returns an ordered range of all the permissions associated with the role.

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.

Specified by:
getPermissions in interface com.liferay.portal.service.persistence.RolePersistence
Parameters:
pk - the primary key of the role
start - the lower bound of the range of roles
end - the upper bound of the range of roles (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of permissions associated with the role
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

getPermissionsSize

public int getPermissionsSize(long pk)
                       throws com.liferay.portal.kernel.exception.SystemException
Returns the number of permissions associated with the role.

Specified by:
getPermissionsSize in interface com.liferay.portal.service.persistence.RolePersistence
Parameters:
pk - the primary key of the role
Returns:
the number of permissions associated with the role
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

containsPermission

public boolean containsPermission(long pk,
                                  long permissionPK)
                           throws com.liferay.portal.kernel.exception.SystemException
Returns true if the permission is associated with the role.

Specified by:
containsPermission in interface com.liferay.portal.service.persistence.RolePersistence
Parameters:
pk - the primary key of the role
permissionPK - the primary key of the permission
Returns:
true if the permission is associated with the role; false otherwise
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

containsPermissions

public boolean containsPermissions(long pk)
                            throws com.liferay.portal.kernel.exception.SystemException
Returns true if the role has any permissions associated with it.

Specified by:
containsPermissions in interface com.liferay.portal.service.persistence.RolePersistence
Parameters:
pk - the primary key of the role to check for associations with permissions
Returns:
true if the role has any permissions associated with it; false otherwise
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

addPermission

public void addPermission(long pk,
                          long permissionPK)
                   throws com.liferay.portal.kernel.exception.SystemException
Adds an association between the role and the permission. Also notifies the appropriate model listeners and clears the mapping table finder cache.

Specified by:
addPermission in interface com.liferay.portal.service.persistence.RolePersistence
Parameters:
pk - the primary key of the role
permissionPK - the primary key of the permission
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

addPermission

public void addPermission(long pk,
                          com.liferay.portal.model.Permission permission)
                   throws com.liferay.portal.kernel.exception.SystemException
Adds an association between the role and the permission. Also notifies the appropriate model listeners and clears the mapping table finder cache.

Specified by:
addPermission in interface com.liferay.portal.service.persistence.RolePersistence
Parameters:
pk - the primary key of the role
permission - the permission
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

addPermissions

public void addPermissions(long pk,
                           long[] permissionPKs)
                    throws com.liferay.portal.kernel.exception.SystemException
Adds an association between the role and the permissions. Also notifies the appropriate model listeners and clears the mapping table finder cache.

Specified by:
addPermissions in interface com.liferay.portal.service.persistence.RolePersistence
Parameters:
pk - the primary key of the role
permissionPKs - the primary keys of the permissions
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

addPermissions

public void addPermissions(long pk,
                           java.util.List<com.liferay.portal.model.Permission> permissions)
                    throws com.liferay.portal.kernel.exception.SystemException
Adds an association between the role and the permissions. Also notifies the appropriate model listeners and clears the mapping table finder cache.

Specified by:
addPermissions in interface com.liferay.portal.service.persistence.RolePersistence
Parameters:
pk - the primary key of the role
permissions - the permissions
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

clearPermissions

public void clearPermissions(long pk)
                      throws com.liferay.portal.kernel.exception.SystemException
Clears all associations between the role and its permissions. Also notifies the appropriate model listeners and clears the mapping table finder cache.

Specified by:
clearPermissions in interface com.liferay.portal.service.persistence.RolePersistence
Parameters:
pk - the primary key of the role to clear the associated permissions from
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

removePermission

public void removePermission(long pk,
                             long permissionPK)
                      throws com.liferay.portal.kernel.exception.SystemException
Removes the association between the role and the permission. Also notifies the appropriate model listeners and clears the mapping table finder cache.

Specified by:
removePermission in interface com.liferay.portal.service.persistence.RolePersistence
Parameters:
pk - the primary key of the role
permissionPK - the primary key of the permission
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

removePermission

public void removePermission(long pk,
                             com.liferay.portal.model.Permission permission)
                      throws com.liferay.portal.kernel.exception.SystemException
Removes the association between the role and the permission. Also notifies the appropriate model listeners and clears the mapping table finder cache.

Specified by:
removePermission in interface com.liferay.portal.service.persistence.RolePersistence
Parameters:
pk - the primary key of the role
permission - the permission
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

removePermissions

public void removePermissions(long pk,
                              long[] permissionPKs)
                       throws com.liferay.portal.kernel.exception.SystemException
Removes the association between the role and the permissions. Also notifies the appropriate model listeners and clears the mapping table finder cache.

Specified by:
removePermissions in interface com.liferay.portal.service.persistence.RolePersistence
Parameters:
pk - the primary key of the role
permissionPKs - the primary keys of the permissions
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

removePermissions

public void removePermissions(long pk,
                              java.util.List<com.liferay.portal.model.Permission> permissions)
                       throws com.liferay.portal.kernel.exception.SystemException
Removes the association between the role and the permissions. Also notifies the appropriate model listeners and clears the mapping table finder cache.

Specified by:
removePermissions in interface com.liferay.portal.service.persistence.RolePersistence
Parameters:
pk - the primary key of the role
permissions - the permissions
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

setPermissions

public void setPermissions(long pk,
                           long[] permissionPKs)
                    throws com.liferay.portal.kernel.exception.SystemException
Sets the permissions associated with the role, removing and adding associations as necessary. Also notifies the appropriate model listeners and clears the mapping table finder cache.

Specified by:
setPermissions in interface com.liferay.portal.service.persistence.RolePersistence
Parameters:
pk - the primary key of the role
permissionPKs - the primary keys of the permissions to be associated with the role
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

setPermissions

public void setPermissions(long pk,
                           java.util.List<com.liferay.portal.model.Permission> permissions)
                    throws com.liferay.portal.kernel.exception.SystemException
Sets the permissions associated with the role, removing and adding associations as necessary. Also notifies the appropriate model listeners and clears the mapping table finder cache.

Specified by:
setPermissions in interface com.liferay.portal.service.persistence.RolePersistence
Parameters:
pk - the primary key of the role
permissions - the permissions to be associated with the role
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

getUsers

public java.util.List<com.liferay.portal.model.User> getUsers(long pk)
                                                       throws com.liferay.portal.kernel.exception.SystemException
Returns all the users associated with the role.

Specified by:
getUsers in interface com.liferay.portal.service.persistence.RolePersistence
Parameters:
pk - the primary key of the role
Returns:
the users associated with the role
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

getUsers

public java.util.List<com.liferay.portal.model.User> getUsers(long pk,
                                                              int start,
                                                              int end)
                                                       throws com.liferay.portal.kernel.exception.SystemException
Returns a range of all the users associated with the role.

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.

Specified by:
getUsers in interface com.liferay.portal.service.persistence.RolePersistence
Parameters:
pk - the primary key of the role
start - the lower bound of the range of roles
end - the upper bound of the range of roles (not inclusive)
Returns:
the range of users associated with the role
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

getUsers

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
Returns an ordered range of all the users associated with the role.

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.

Specified by:
getUsers in interface com.liferay.portal.service.persistence.RolePersistence
Parameters:
pk - the primary key of the role
start - the lower bound of the range of roles
end - the upper bound of the range of roles (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of users associated with the role
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

getUsersSize

public int getUsersSize(long pk)
                 throws com.liferay.portal.kernel.exception.SystemException
Returns the number of users associated with the role.

Specified by:
getUsersSize in interface com.liferay.portal.service.persistence.RolePersistence
Parameters:
pk - the primary key of the role
Returns:
the number of users associated with the role
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

containsUser

public boolean containsUser(long pk,
                            long userPK)
                     throws com.liferay.portal.kernel.exception.SystemException
Returns true if the user is associated with the role.

Specified by:
containsUser in interface com.liferay.portal.service.persistence.RolePersistence
Parameters:
pk - the primary key of the role
userPK - the primary key of the user
Returns:
true if the user is associated with the role; false otherwise
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

containsUsers

public boolean containsUsers(long pk)
                      throws com.liferay.portal.kernel.exception.SystemException
Returns true if the role has any users associated with it.

Specified by:
containsUsers in interface com.liferay.portal.service.persistence.RolePersistence
Parameters:
pk - the primary key of the role to check for associations with users
Returns:
true if the role has any users associated with it; false otherwise
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

addUser

public void addUser(long pk,
                    long userPK)
             throws com.liferay.portal.kernel.exception.SystemException
Adds an association between the role and the user. Also notifies the appropriate model listeners and clears the mapping table finder cache.

Specified by:
addUser in interface com.liferay.portal.service.persistence.RolePersistence
Parameters:
pk - the primary key of the role
userPK - the primary key of the user
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

addUser

public void addUser(long pk,
                    com.liferay.portal.model.User user)
             throws com.liferay.portal.kernel.exception.SystemException
Adds an association between the role and the user. Also notifies the appropriate model listeners and clears the mapping table finder cache.

Specified by:
addUser in interface com.liferay.portal.service.persistence.RolePersistence
Parameters:
pk - the primary key of the role
user - the user
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

addUsers

public void addUsers(long pk,
                     long[] userPKs)
              throws com.liferay.portal.kernel.exception.SystemException
Adds an association between the role and the users. Also notifies the appropriate model listeners and clears the mapping table finder cache.

Specified by:
addUsers in interface com.liferay.portal.service.persistence.RolePersistence
Parameters:
pk - the primary key of the role
userPKs - the primary keys of the users
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

addUsers

public void addUsers(long pk,
                     java.util.List<com.liferay.portal.model.User> users)
              throws com.liferay.portal.kernel.exception.SystemException
Adds an association between the role and the users. Also notifies the appropriate model listeners and clears the mapping table finder cache.

Specified by:
addUsers in interface com.liferay.portal.service.persistence.RolePersistence
Parameters:
pk - the primary key of the role
users - the users
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

clearUsers

public void clearUsers(long pk)
                throws com.liferay.portal.kernel.exception.SystemException
Clears all associations between the role and its users. Also notifies the appropriate model listeners and clears the mapping table finder cache.

Specified by:
clearUsers in interface com.liferay.portal.service.persistence.RolePersistence
Parameters:
pk - the primary key of the role to clear the associated users from
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

removeUser

public void removeUser(long pk,
                       long userPK)
                throws com.liferay.portal.kernel.exception.SystemException
Removes the association between the role and the user. Also notifies the appropriate model listeners and clears the mapping table finder cache.

Specified by:
removeUser in interface com.liferay.portal.service.persistence.RolePersistence
Parameters:
pk - the primary key of the role
userPK - the primary key of the user
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

removeUser

public void removeUser(long pk,
                       com.liferay.portal.model.User user)
                throws com.liferay.portal.kernel.exception.SystemException
Removes the association between the role and the user. Also notifies the appropriate model listeners and clears the mapping table finder cache.

Specified by:
removeUser in interface com.liferay.portal.service.persistence.RolePersistence
Parameters:
pk - the primary key of the role
user - the user
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

removeUsers

public void removeUsers(long pk,
                        long[] userPKs)
                 throws com.liferay.portal.kernel.exception.SystemException
Removes the association between the role and the users. Also notifies the appropriate model listeners and clears the mapping table finder cache.

Specified by:
removeUsers in interface com.liferay.portal.service.persistence.RolePersistence
Parameters:
pk - the primary key of the role
userPKs - the primary keys of the users
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

removeUsers

public void removeUsers(long pk,
                        java.util.List<com.liferay.portal.model.User> users)
                 throws com.liferay.portal.kernel.exception.SystemException
Removes the association between the role and the users. Also notifies the appropriate model listeners and clears the mapping table finder cache.

Specified by:
removeUsers in interface com.liferay.portal.service.persistence.RolePersistence
Parameters:
pk - the primary key of the role
users - the users
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

setUsers

public void setUsers(long pk,
                     long[] userPKs)
              throws com.liferay.portal.kernel.exception.SystemException
Sets the users associated with the role, removing and adding associations as necessary. Also notifies the appropriate model listeners and clears the mapping table finder cache.

Specified by:
setUsers in interface com.liferay.portal.service.persistence.RolePersistence
Parameters:
pk - the primary key of the role
userPKs - the primary keys of the users to be associated with the role
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

setUsers

public void setUsers(long pk,
                     java.util.List<com.liferay.portal.model.User> users)
              throws com.liferay.portal.kernel.exception.SystemException
Sets the users associated with the role, removing and adding associations as necessary. Also notifies the appropriate model listeners and clears the mapping table finder cache.

Specified by:
setUsers in interface com.liferay.portal.service.persistence.RolePersistence
Parameters:
pk - the primary key of the role
users - the users to be associated with the role
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

afterPropertiesSet

public void afterPropertiesSet()
Initializes the role persistence.


destroy

public void destroy()