com.liferay.portal.service.persistence
Class UserPersistenceImpl

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

public class UserPersistenceImpl
extends com.liferay.portal.service.persistence.impl.BasePersistenceImpl<com.liferay.portal.model.User>
implements com.liferay.portal.service.persistence.UserPersistence

The persistence implementation for the user service.

Caching information and settings can be found in portal.properties

Author:
Brian Wing Shun Chan
See Also:
UserPersistence, UserUtil
Generated:

Nested Class Summary
protected  class UserPersistenceImpl.AddGroup
           
protected  class UserPersistenceImpl.AddOrganization
           
protected  class UserPersistenceImpl.AddPermission
           
protected  class UserPersistenceImpl.AddRole
           
protected  class UserPersistenceImpl.AddTeam
           
protected  class UserPersistenceImpl.AddUserGroup
           
protected  class UserPersistenceImpl.ClearGroups
           
protected  class UserPersistenceImpl.ClearOrganizations
           
protected  class UserPersistenceImpl.ClearPermissions
           
protected  class UserPersistenceImpl.ClearRoles
           
protected  class UserPersistenceImpl.ClearTeams
           
protected  class UserPersistenceImpl.ClearUserGroups
           
protected  class UserPersistenceImpl.ContainsGroup
           
protected  class UserPersistenceImpl.ContainsOrganization
           
protected  class UserPersistenceImpl.ContainsPermission
           
protected  class UserPersistenceImpl.ContainsRole
           
protected  class UserPersistenceImpl.ContainsTeam
           
protected  class UserPersistenceImpl.ContainsUserGroup
           
protected  class UserPersistenceImpl.RemoveGroup
           
protected  class UserPersistenceImpl.RemoveOrganization
           
protected  class UserPersistenceImpl.RemovePermission
           
protected  class UserPersistenceImpl.RemoveRole
           
protected  class UserPersistenceImpl.RemoveTeam
           
protected  class UserPersistenceImpl.RemoveUserGroup
           
 
Field Summary
protected  com.liferay.portal.service.persistence.AccountPersistence accountPersistence
           
protected  UserPersistenceImpl.AddGroup addGroup
           
protected  UserPersistenceImpl.AddOrganization addOrganization
           
protected  UserPersistenceImpl.AddPermission addPermission
           
protected  com.liferay.portal.service.persistence.AddressPersistence addressPersistence
           
protected  UserPersistenceImpl.AddRole addRole
           
protected  UserPersistenceImpl.AddTeam addTeam
           
protected  UserPersistenceImpl.AddUserGroup addUserGroup
           
protected  com.liferay.portlet.announcements.service.persistence.AnnouncementsDeliveryPersistence announcementsDeliveryPersistence
           
protected  com.liferay.portlet.asset.service.persistence.AssetEntryPersistence assetEntryPersistence
           
protected  com.liferay.portlet.blogs.service.persistence.BlogsStatsUserPersistence blogsStatsUserPersistence
           
protected  com.liferay.portal.service.persistence.BrowserTrackerPersistence browserTrackerPersistence
           
protected  com.liferay.portal.service.persistence.ClassNamePersistence classNamePersistence
           
protected  UserPersistenceImpl.ClearGroups clearGroups
           
protected  UserPersistenceImpl.ClearOrganizations clearOrganizations
           
protected  UserPersistenceImpl.ClearPermissions clearPermissions
           
protected  UserPersistenceImpl.ClearRoles clearRoles
           
protected  UserPersistenceImpl.ClearTeams clearTeams
           
protected  UserPersistenceImpl.ClearUserGroups clearUserGroups
           
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  UserPersistenceImpl.ContainsGroup containsGroup
           
protected  UserPersistenceImpl.ContainsOrganization containsOrganization
           
protected  UserPersistenceImpl.ContainsPermission containsPermission
           
protected  UserPersistenceImpl.ContainsRole containsRole
           
protected  UserPersistenceImpl.ContainsTeam containsTeam
           
protected  UserPersistenceImpl.ContainsUserGroup containsUserGroup
           
protected  com.liferay.portal.service.persistence.CountryPersistence countryPersistence
           
protected  com.liferay.portlet.documentlibrary.service.persistence.DLFileRankPersistence dlFileRankPersistence
           
protected  com.liferay.portal.service.persistence.EmailAddressPersistence emailAddressPersistence
           
protected  com.liferay.portlet.expando.service.persistence.ExpandoValuePersistence expandoValuePersistence
           
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_ORGANIZATION
           
static com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_CONTAINS_PERMISSION
           
static com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_CONTAINS_ROLE
           
static com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_CONTAINS_TEAM
           
static com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_CONTAINS_USERGROUP
           
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_DU
           
static com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_COUNT_BY_C_EA
           
static com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_COUNT_BY_C_FID
           
static com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_COUNT_BY_C_O
           
static com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_COUNT_BY_C_S
           
static com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_COUNT_BY_C_SN
           
static com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_COUNT_BY_C_U
           
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_CONTACTID
           
static com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_COUNT_BY_EMAILADDRESS
           
static com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_COUNT_BY_PORTRAITID
           
static com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_COUNT_BY_UUID
           
static com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_FETCH_BY_C_DU
           
static com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_FETCH_BY_C_EA
           
static com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_FETCH_BY_C_FID
           
static com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_FETCH_BY_C_O
           
static com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_FETCH_BY_C_SN
           
static com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_FETCH_BY_C_U
           
static com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_FETCH_BY_CONTACTID
           
static com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_FETCH_BY_PORTRAITID
           
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_ORGANIZATIONS
           
static com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_GET_ORGANIZATIONS_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_ROLES
           
static com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_GET_ROLES_SIZE
           
static com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_GET_TEAMS
           
static com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_GET_TEAMS_SIZE
           
static com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_GET_USERGROUPS
           
static com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_GET_USERGROUPS_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_C_S
           
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_EMAILADDRESS
           
static com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_UUID
           
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_C_S
           
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_EMAILADDRESS
           
static com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_UUID
           
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.portlet.messageboards.service.persistence.MBBanPersistence mbBanPersistence
           
protected  com.liferay.portlet.messageboards.service.persistence.MBMessagePersistence mbMessagePersistence
           
protected  com.liferay.portlet.messageboards.service.persistence.MBStatsUserPersistence mbStatsUserPersistence
           
protected  com.liferay.portlet.messageboards.service.persistence.MBThreadFlagPersistence mbThreadFlagPersistence
           
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  UserPersistenceImpl.RemoveGroup removeGroup
           
protected  UserPersistenceImpl.RemoveOrganization removeOrganization
           
protected  UserPersistenceImpl.RemovePermission removePermission
           
protected  UserPersistenceImpl.RemoveRole removeRole
           
protected  UserPersistenceImpl.RemoveTeam removeTeam
           
protected  UserPersistenceImpl.RemoveUserGroup removeUserGroup
           
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.portlet.shopping.service.persistence.ShoppingCartPersistence shoppingCartPersistence
           
protected  com.liferay.portlet.social.service.persistence.SocialActivityPersistence socialActivityPersistence
           
protected  com.liferay.portlet.social.service.persistence.SocialRequestPersistence socialRequestPersistence
           
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
UserPersistenceImpl()
           
 
Method Summary
 void addGroup(long pk, com.liferay.portal.model.Group group)
          Adds an association between the user and the group.
 void addGroup(long pk, long groupPK)
          Adds an association between the user and the group.
 void addGroups(long pk, java.util.List<com.liferay.portal.model.Group> groups)
          Adds an association between the user and the groups.
 void addGroups(long pk, long[] groupPKs)
          Adds an association between the user and the groups.
 void addOrganization(long pk, long organizationPK)
          Adds an association between the user and the organization.
 void addOrganization(long pk, com.liferay.portal.model.Organization organization)
          Adds an association between the user and the organization.
 void addOrganizations(long pk, java.util.List<com.liferay.portal.model.Organization> organizations)
          Adds an association between the user and the organizations.
 void addOrganizations(long pk, long[] organizationPKs)
          Adds an association between the user and the organizations.
 void addPermission(long pk, long permissionPK)
          Adds an association between the user and the permission.
 void addPermission(long pk, com.liferay.portal.model.Permission permission)
          Adds an association between the user and the permission.
 void addPermissions(long pk, java.util.List<com.liferay.portal.model.Permission> permissions)
          Adds an association between the user and the permissions.
 void addPermissions(long pk, long[] permissionPKs)
          Adds an association between the user and the permissions.
 void addRole(long pk, long rolePK)
          Adds an association between the user and the role.
 void addRole(long pk, com.liferay.portal.model.Role role)
          Adds an association between the user and the role.
 void addRoles(long pk, java.util.List<com.liferay.portal.model.Role> roles)
          Adds an association between the user and the roles.
 void addRoles(long pk, long[] rolePKs)
          Adds an association between the user and the roles.
 void addTeam(long pk, long teamPK)
          Adds an association between the user and the team.
 void addTeam(long pk, com.liferay.portal.model.Team team)
          Adds an association between the user and the team.
 void addTeams(long pk, java.util.List<com.liferay.portal.model.Team> teams)
          Adds an association between the user and the teams.
 void addTeams(long pk, long[] teamPKs)
          Adds an association between the user and the teams.
 void addUserGroup(long pk, long userGroupPK)
          Adds an association between the user and the user group.
 void addUserGroup(long pk, com.liferay.portal.model.UserGroup userGroup)
          Adds an association between the user and the user group.
 void addUserGroups(long pk, java.util.List<com.liferay.portal.model.UserGroup> userGroups)
          Adds an association between the user and the user groups.
 void addUserGroups(long pk, long[] userGroupPKs)
          Adds an association between the user and the user groups.
 void afterPropertiesSet()
          Initializes the user persistence.
 void cacheResult(java.util.List<com.liferay.portal.model.User> users)
          Caches the users in the entity cache if it is enabled.
 void cacheResult(com.liferay.portal.model.User user)
          Caches the user in the entity cache if it is enabled.
 void clearCache()
          Clears the cache for all users.
 void clearCache(java.util.List<com.liferay.portal.model.User> users)
           
 void clearCache(com.liferay.portal.model.User user)
          Clears the cache for the user.
 void clearGroups(long pk)
          Clears all associations between the user and its groups.
 void clearOrganizations(long pk)
          Clears all associations between the user and its organizations.
 void clearPermissions(long pk)
          Clears all associations between the user and its permissions.
 void clearRoles(long pk)
          Clears all associations between the user and its roles.
 void clearTeams(long pk)
          Clears all associations between the user and its teams.
protected  void clearUniqueFindersCache(com.liferay.portal.model.User user)
           
 void clearUserGroups(long pk)
          Clears all associations between the user and its user groups.
 boolean containsGroup(long pk, long groupPK)
          Returns true if the group is associated with the user.
 boolean containsGroups(long pk)
          Returns true if the user has any groups associated with it.
 boolean containsOrganization(long pk, long organizationPK)
          Returns true if the organization is associated with the user.
 boolean containsOrganizations(long pk)
          Returns true if the user has any organizations associated with it.
 boolean containsPermission(long pk, long permissionPK)
          Returns true if the permission is associated with the user.
 boolean containsPermissions(long pk)
          Returns true if the user has any permissions associated with it.
 boolean containsRole(long pk, long rolePK)
          Returns true if the role is associated with the user.
 boolean containsRoles(long pk)
          Returns true if the user has any roles associated with it.
 boolean containsTeam(long pk, long teamPK)
          Returns true if the team is associated with the user.
 boolean containsTeams(long pk)
          Returns true if the user has any teams associated with it.
 boolean containsUserGroup(long pk, long userGroupPK)
          Returns true if the user group is associated with the user.
 boolean containsUserGroups(long pk)
          Returns true if the user has any user groups associated with it.
 int countAll()
          Returns the number of users.
 int countByC_DU(long companyId, boolean defaultUser)
          Returns the number of users where companyId = ? and defaultUser = ?.
 int countByC_EA(long companyId, java.lang.String emailAddress)
          Returns the number of users where companyId = ? and emailAddress = ?.
 int countByC_FID(long companyId, long facebookId)
          Returns the number of users where companyId = ? and facebookId = ?.
 int countByC_O(long companyId, java.lang.String openId)
          Returns the number of users where companyId = ? and openId = ?.
 int countByC_S(long companyId, int status)
          Returns the number of users where companyId = ? and status = ?.
 int countByC_SN(long companyId, java.lang.String screenName)
          Returns the number of users where companyId = ? and screenName = ?.
 int countByC_U(long companyId, long userId)
          Returns the number of users where companyId = ? and userId = ?.
 int countByCompanyId(long companyId)
          Returns the number of users where companyId = ?.
 int countByContactId(long contactId)
          Returns the number of users where contactId = ?.
 int countByEmailAddress(java.lang.String emailAddress)
          Returns the number of users where emailAddress = ?.
 int countByPortraitId(long portraitId)
          Returns the number of users where portraitId = ?.
 int countByUuid(java.lang.String uuid)
          Returns the number of users where uuid = ?.
 com.liferay.portal.model.User create(long userId)
          Creates a new user with the primary key.
 void destroy()
           
 com.liferay.portal.model.User fetchByC_DU(long companyId, boolean defaultUser)
          Returns the user where companyId = ? and defaultUser = ? or returns null if it could not be found.
 com.liferay.portal.model.User fetchByC_DU(long companyId, boolean defaultUser, boolean retrieveFromCache)
          Returns the user where companyId = ? and defaultUser = ? or returns null if it could not be found, optionally using the finder cache.
 com.liferay.portal.model.User fetchByC_EA(long companyId, java.lang.String emailAddress)
          Returns the user where companyId = ? and emailAddress = ? or returns null if it could not be found.
 com.liferay.portal.model.User fetchByC_EA(long companyId, java.lang.String emailAddress, boolean retrieveFromCache)
          Returns the user where companyId = ? and emailAddress = ? or returns null if it could not be found, optionally using the finder cache.
 com.liferay.portal.model.User fetchByC_FID(long companyId, long facebookId)
          Returns the user where companyId = ? and facebookId = ? or returns null if it could not be found.
 com.liferay.portal.model.User fetchByC_FID(long companyId, long facebookId, boolean retrieveFromCache)
          Returns the user where companyId = ? and facebookId = ? or returns null if it could not be found, optionally using the finder cache.
 com.liferay.portal.model.User fetchByC_O(long companyId, java.lang.String openId)
          Returns the user where companyId = ? and openId = ? or returns null if it could not be found.
 com.liferay.portal.model.User fetchByC_O(long companyId, java.lang.String openId, boolean retrieveFromCache)
          Returns the user where companyId = ? and openId = ? or returns null if it could not be found, optionally using the finder cache.
 com.liferay.portal.model.User fetchByC_SN(long companyId, java.lang.String screenName)
          Returns the user where companyId = ? and screenName = ? or returns null if it could not be found.
 com.liferay.portal.model.User fetchByC_SN(long companyId, java.lang.String screenName, boolean retrieveFromCache)
          Returns the user where companyId = ? and screenName = ? or returns null if it could not be found, optionally using the finder cache.
 com.liferay.portal.model.User fetchByC_U(long companyId, long userId)
          Returns the user where companyId = ? and userId = ? or returns null if it could not be found.
 com.liferay.portal.model.User fetchByC_U(long companyId, long userId, boolean retrieveFromCache)
          Returns the user where companyId = ? and userId = ? or returns null if it could not be found, optionally using the finder cache.
 com.liferay.portal.model.User fetchByContactId(long contactId)
          Returns the user where contactId = ? or returns null if it could not be found.
 com.liferay.portal.model.User fetchByContactId(long contactId, boolean retrieveFromCache)
          Returns the user where contactId = ? or returns null if it could not be found, optionally using the finder cache.
 com.liferay.portal.model.User fetchByPortraitId(long portraitId)
          Returns the user where portraitId = ? or returns null if it could not be found.
 com.liferay.portal.model.User fetchByPortraitId(long portraitId, boolean retrieveFromCache)
          Returns the user where portraitId = ? or returns null if it could not be found, optionally using the finder cache.
 com.liferay.portal.model.User fetchByPrimaryKey(long userId)
          Returns the user with the primary key or returns null if it could not be found.
 com.liferay.portal.model.User fetchByPrimaryKey(java.io.Serializable primaryKey)
          Returns the user with the primary key or returns null if it could not be found.
 java.util.List<com.liferay.portal.model.User> findAll()
          Returns all the users.
 java.util.List<com.liferay.portal.model.User> findAll(int start, int end)
          Returns a range of all the users.
 java.util.List<com.liferay.portal.model.User> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
          Returns an ordered range of all the users.
 com.liferay.portal.model.User findByC_DU(long companyId, boolean defaultUser)
          Returns the user where companyId = ? and defaultUser = ? or throws a NoSuchUserException if it could not be found.
 com.liferay.portal.model.User findByC_EA(long companyId, java.lang.String emailAddress)
          Returns the user where companyId = ? and emailAddress = ? or throws a NoSuchUserException if it could not be found.
 com.liferay.portal.model.User findByC_FID(long companyId, long facebookId)
          Returns the user where companyId = ? and facebookId = ? or throws a NoSuchUserException if it could not be found.
 com.liferay.portal.model.User findByC_O(long companyId, java.lang.String openId)
          Returns the user where companyId = ? and openId = ? or throws a NoSuchUserException if it could not be found.
 com.liferay.portal.model.User findByC_S_First(long companyId, int status, com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
          Returns the first user in the ordered set where companyId = ? and status = ?.
 com.liferay.portal.model.User findByC_S_Last(long companyId, int status, com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
          Returns the last user in the ordered set where companyId = ? and status = ?.
 com.liferay.portal.model.User[] findByC_S_PrevAndNext(long userId, long companyId, int status, com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
          Returns the users before and after the current user in the ordered set where companyId = ? and status = ?.
 java.util.List<com.liferay.portal.model.User> findByC_S(long companyId, int status)
          Returns all the users where companyId = ? and status = ?.
 java.util.List<com.liferay.portal.model.User> findByC_S(long companyId, int status, int start, int end)
          Returns a range of all the users where companyId = ? and status = ?.
 java.util.List<com.liferay.portal.model.User> findByC_S(long companyId, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
          Returns an ordered range of all the users where companyId = ? and status = ?.
 com.liferay.portal.model.User findByC_SN(long companyId, java.lang.String screenName)
          Returns the user where companyId = ? and screenName = ? or throws a NoSuchUserException if it could not be found.
 com.liferay.portal.model.User findByC_U(long companyId, long userId)
          Returns the user where companyId = ? and userId = ? or throws a NoSuchUserException if it could not be found.
 com.liferay.portal.model.User findByCompanyId_First(long companyId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
          Returns the first user in the ordered set where companyId = ?.
 com.liferay.portal.model.User findByCompanyId_Last(long companyId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
          Returns the last user in the ordered set where companyId = ?.
 com.liferay.portal.model.User[] findByCompanyId_PrevAndNext(long userId, long companyId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
          Returns the users before and after the current user in the ordered set where companyId = ?.
 java.util.List<com.liferay.portal.model.User> findByCompanyId(long companyId)
          Returns all the users where companyId = ?.
 java.util.List<com.liferay.portal.model.User> findByCompanyId(long companyId, int start, int end)
          Returns a range of all the users where companyId = ?.
 java.util.List<com.liferay.portal.model.User> findByCompanyId(long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
          Returns an ordered range of all the users where companyId = ?.
 com.liferay.portal.model.User findByContactId(long contactId)
          Returns the user where contactId = ? or throws a NoSuchUserException if it could not be found.
 com.liferay.portal.model.User findByEmailAddress_First(java.lang.String emailAddress, com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
          Returns the first user in the ordered set where emailAddress = ?.
 com.liferay.portal.model.User findByEmailAddress_Last(java.lang.String emailAddress, com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
          Returns the last user in the ordered set where emailAddress = ?.
 com.liferay.portal.model.User[] findByEmailAddress_PrevAndNext(long userId, java.lang.String emailAddress, com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
          Returns the users before and after the current user in the ordered set where emailAddress = ?.
 java.util.List<com.liferay.portal.model.User> findByEmailAddress(java.lang.String emailAddress)
          Returns all the users where emailAddress = ?.
 java.util.List<com.liferay.portal.model.User> findByEmailAddress(java.lang.String emailAddress, int start, int end)
          Returns a range of all the users where emailAddress = ?.
 java.util.List<com.liferay.portal.model.User> findByEmailAddress(java.lang.String emailAddress, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
          Returns an ordered range of all the users where emailAddress = ?.
 com.liferay.portal.model.User findByPortraitId(long portraitId)
          Returns the user where portraitId = ? or throws a NoSuchUserException if it could not be found.
 com.liferay.portal.model.User findByPrimaryKey(long userId)
          Returns the user with the primary key or throws a NoSuchUserException if it could not be found.
 com.liferay.portal.model.User findByPrimaryKey(java.io.Serializable primaryKey)
          Returns the user with the primary key or throws a NoSuchModelException if it could not be found.
 com.liferay.portal.model.User findByUuid_First(java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
          Returns the first user in the ordered set where uuid = ?.
 com.liferay.portal.model.User findByUuid_Last(java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
          Returns the last user in the ordered set where uuid = ?.
 com.liferay.portal.model.User[] findByUuid_PrevAndNext(long userId, java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
          Returns the users before and after the current user in the ordered set where uuid = ?.
 java.util.List<com.liferay.portal.model.User> findByUuid(java.lang.String uuid)
          Returns all the users where uuid = ?.
 java.util.List<com.liferay.portal.model.User> findByUuid(java.lang.String uuid, int start, int end)
          Returns a range of all the users where uuid = ?.
 java.util.List<com.liferay.portal.model.User> findByUuid(java.lang.String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
          Returns an ordered range of all the users where uuid = ?.
protected  com.liferay.portal.model.User getByC_S_PrevAndNext(com.liferay.portal.kernel.dao.orm.Session session, com.liferay.portal.model.User user, long companyId, int status, com.liferay.portal.kernel.util.OrderByComparator orderByComparator, boolean previous)
           
protected  com.liferay.portal.model.User getByCompanyId_PrevAndNext(com.liferay.portal.kernel.dao.orm.Session session, com.liferay.portal.model.User user, long companyId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator, boolean previous)
           
protected  com.liferay.portal.model.User getByEmailAddress_PrevAndNext(com.liferay.portal.kernel.dao.orm.Session session, com.liferay.portal.model.User user, java.lang.String emailAddress, com.liferay.portal.kernel.util.OrderByComparator orderByComparator, boolean previous)
           
protected  com.liferay.portal.model.User getByUuid_PrevAndNext(com.liferay.portal.kernel.dao.orm.Session session, com.liferay.portal.model.User user, java.lang.String uuid, 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 user.
 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 user.
 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 user.
 int getGroupsSize(long pk)
          Returns the number of groups associated with the user.
 java.util.List<com.liferay.portal.model.Organization> getOrganizations(long pk)
          Returns all the organizations associated with the user.
 java.util.List<com.liferay.portal.model.Organization> getOrganizations(long pk, int start, int end)
          Returns a range of all the organizations associated with the user.
 java.util.List<com.liferay.portal.model.Organization> getOrganizations(long pk, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
          Returns an ordered range of all the organizations associated with the user.
 int getOrganizationsSize(long pk)
          Returns the number of organizations associated with the user.
 java.util.List<com.liferay.portal.model.Permission> getPermissions(long pk)
          Returns all the permissions associated with the user.
 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 user.
 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 user.
 int getPermissionsSize(long pk)
          Returns the number of permissions associated with the user.
 java.util.List<com.liferay.portal.model.Role> getRoles(long pk)
          Returns all the roles associated with the user.
 java.util.List<com.liferay.portal.model.Role> getRoles(long pk, int start, int end)
          Returns a range of all the roles associated with the user.
 java.util.List<com.liferay.portal.model.Role> getRoles(long pk, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
          Returns an ordered range of all the roles associated with the user.
 int getRolesSize(long pk)
          Returns the number of roles associated with the user.
 java.util.List<com.liferay.portal.model.Team> getTeams(long pk)
          Returns all the teams associated with the user.
 java.util.List<com.liferay.portal.model.Team> getTeams(long pk, int start, int end)
          Returns a range of all the teams associated with the user.
 java.util.List<com.liferay.portal.model.Team> getTeams(long pk, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
          Returns an ordered range of all the teams associated with the user.
 int getTeamsSize(long pk)
          Returns the number of teams associated with the user.
 java.util.List<com.liferay.portal.model.UserGroup> getUserGroups(long pk)
          Returns all the user groups associated with the user.
 java.util.List<com.liferay.portal.model.UserGroup> getUserGroups(long pk, int start, int end)
          Returns a range of all the user groups associated with the user.
 java.util.List<com.liferay.portal.model.UserGroup> getUserGroups(long pk, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
          Returns an ordered range of all the user groups associated with the user.
 int getUserGroupsSize(long pk)
          Returns the number of user groups associated with the user.
 com.liferay.portal.model.User remove(long userId)
          Removes the user with the primary key from the database.
 com.liferay.portal.model.User remove(java.io.Serializable primaryKey)
          Removes the user with the primary key from the database.
 void removeAll()
          Removes all the users from the database.
 void removeByC_DU(long companyId, boolean defaultUser)
          Removes the user where companyId = ? and defaultUser = ? from the database.
 void removeByC_EA(long companyId, java.lang.String emailAddress)
          Removes the user where companyId = ? and emailAddress = ? from the database.
 void removeByC_FID(long companyId, long facebookId)
          Removes the user where companyId = ? and facebookId = ? from the database.
 void removeByC_O(long companyId, java.lang.String openId)
          Removes the user where companyId = ? and openId = ? from the database.
 void removeByC_S(long companyId, int status)
          Removes all the users where companyId = ? and status = ? from the database.
 void removeByC_SN(long companyId, java.lang.String screenName)
          Removes the user where companyId = ? and screenName = ? from the database.
 void removeByC_U(long companyId, long userId)
          Removes the user where companyId = ? and userId = ? from the database.
 void removeByCompanyId(long companyId)
          Removes all the users where companyId = ? from the database.
 void removeByContactId(long contactId)
          Removes the user where contactId = ? from the database.
 void removeByEmailAddress(java.lang.String emailAddress)
          Removes all the users where emailAddress = ? from the database.
 void removeByPortraitId(long portraitId)
          Removes the user where portraitId = ? from the database.
 void removeByUuid(java.lang.String uuid)
          Removes all the users where uuid = ? from the database.
 void removeGroup(long pk, com.liferay.portal.model.Group group)
          Removes the association between the user and the group.
 void removeGroup(long pk, long groupPK)
          Removes the association between the user and the group.
 void removeGroups(long pk, java.util.List<com.liferay.portal.model.Group> groups)
          Removes the association between the user and the groups.
 void removeGroups(long pk, long[] groupPKs)
          Removes the association between the user and the groups.
protected  com.liferay.portal.model.User removeImpl(com.liferay.portal.model.User user)
           
 void removeOrganization(long pk, long organizationPK)
          Removes the association between the user and the organization.
 void removeOrganization(long pk, com.liferay.portal.model.Organization organization)
          Removes the association between the user and the organization.
 void removeOrganizations(long pk, java.util.List<com.liferay.portal.model.Organization> organizations)
          Removes the association between the user and the organizations.
 void removeOrganizations(long pk, long[] organizationPKs)
          Removes the association between the user and the organizations.
 void removePermission(long pk, long permissionPK)
          Removes the association between the user and the permission.
 void removePermission(long pk, com.liferay.portal.model.Permission permission)
          Removes the association between the user and the permission.
 void removePermissions(long pk, java.util.List<com.liferay.portal.model.Permission> permissions)
          Removes the association between the user and the permissions.
 void removePermissions(long pk, long[] permissionPKs)
          Removes the association between the user and the permissions.
 void removeRole(long pk, long rolePK)
          Removes the association between the user and the role.
 void removeRole(long pk, com.liferay.portal.model.Role role)
          Removes the association between the user and the role.
 void removeRoles(long pk, java.util.List<com.liferay.portal.model.Role> roles)
          Removes the association between the user and the roles.
 void removeRoles(long pk, long[] rolePKs)
          Removes the association between the user and the roles.
 void removeTeam(long pk, long teamPK)
          Removes the association between the user and the team.
 void removeTeam(long pk, com.liferay.portal.model.Team team)
          Removes the association between the user and the team.
 void removeTeams(long pk, java.util.List<com.liferay.portal.model.Team> teams)
          Removes the association between the user and the teams.
 void removeTeams(long pk, long[] teamPKs)
          Removes the association between the user and the teams.
 void removeUserGroup(long pk, long userGroupPK)
          Removes the association between the user and the user group.
 void removeUserGroup(long pk, com.liferay.portal.model.UserGroup userGroup)
          Removes the association between the user and the user group.
 void removeUserGroups(long pk, java.util.List<com.liferay.portal.model.UserGroup> userGroups)
          Removes the association between the user and the user groups.
 void removeUserGroups(long pk, long[] userGroupPKs)
          Removes the association between the user and the user groups.
 void setGroups(long pk, java.util.List<com.liferay.portal.model.Group> groups)
          Sets the groups associated with the user, removing and adding associations as necessary.
 void setGroups(long pk, long[] groupPKs)
          Sets the groups associated with the user, removing and adding associations as necessary.
 void setOrganizations(long pk, java.util.List<com.liferay.portal.model.Organization> organizations)
          Sets the organizations associated with the user, removing and adding associations as necessary.
 void setOrganizations(long pk, long[] organizationPKs)
          Sets the organizations associated with the user, 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 user, removing and adding associations as necessary.
 void setPermissions(long pk, long[] permissionPKs)
          Sets the permissions associated with the user, removing and adding associations as necessary.
 void setRoles(long pk, java.util.List<com.liferay.portal.model.Role> roles)
          Sets the roles associated with the user, removing and adding associations as necessary.
 void setRoles(long pk, long[] rolePKs)
          Sets the roles associated with the user, removing and adding associations as necessary.
 void setTeams(long pk, java.util.List<com.liferay.portal.model.Team> teams)
          Sets the teams associated with the user, removing and adding associations as necessary.
 void setTeams(long pk, long[] teamPKs)
          Sets the teams associated with the user, removing and adding associations as necessary.
 void setUserGroups(long pk, java.util.List<com.liferay.portal.model.UserGroup> userGroups)
          Sets the user groups associated with the user, removing and adding associations as necessary.
 void setUserGroups(long pk, long[] userGroupPKs)
          Sets the user groups associated with the user, removing and adding associations as necessary.
protected  com.liferay.portal.model.User toUnwrappedModel(com.liferay.portal.model.User user)
           
 com.liferay.portal.model.User updateImpl(com.liferay.portal.model.User user, 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_UUID

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

FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_UUID

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

FINDER_PATH_COUNT_BY_UUID

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

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_FETCH_BY_CONTACTID

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

FINDER_PATH_COUNT_BY_CONTACTID

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

FINDER_PATH_WITH_PAGINATION_FIND_BY_EMAILADDRESS

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

FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_EMAILADDRESS

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

FINDER_PATH_COUNT_BY_EMAILADDRESS

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

FINDER_PATH_FETCH_BY_PORTRAITID

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

FINDER_PATH_COUNT_BY_PORTRAITID

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

FINDER_PATH_FETCH_BY_C_U

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

FINDER_PATH_COUNT_BY_C_U

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

FINDER_PATH_FETCH_BY_C_DU

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

FINDER_PATH_COUNT_BY_C_DU

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

FINDER_PATH_FETCH_BY_C_SN

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

FINDER_PATH_COUNT_BY_C_SN

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

FINDER_PATH_FETCH_BY_C_EA

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

FINDER_PATH_COUNT_BY_C_EA

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

FINDER_PATH_FETCH_BY_C_FID

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

FINDER_PATH_COUNT_BY_C_FID

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

FINDER_PATH_FETCH_BY_C_O

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

FINDER_PATH_COUNT_BY_C_O

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

FINDER_PATH_WITH_PAGINATION_FIND_BY_C_S

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

FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_C_S

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

FINDER_PATH_COUNT_BY_C_S

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

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_ORGANIZATIONS

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

FINDER_PATH_GET_ORGANIZATIONS_SIZE

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

FINDER_PATH_CONTAINS_ORGANIZATION

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

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_ROLES

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

FINDER_PATH_GET_ROLES_SIZE

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

FINDER_PATH_CONTAINS_ROLE

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

FINDER_PATH_GET_TEAMS

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

FINDER_PATH_GET_TEAMS_SIZE

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

FINDER_PATH_CONTAINS_TEAM

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

FINDER_PATH_GET_USERGROUPS

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

FINDER_PATH_GET_USERGROUPS_SIZE

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

FINDER_PATH_CONTAINS_USERGROUP

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

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

announcementsDeliveryPersistence

@BeanReference(type=com.liferay.portlet.announcements.service.persistence.AnnouncementsDeliveryPersistence.class)
protected com.liferay.portlet.announcements.service.persistence.AnnouncementsDeliveryPersistence announcementsDeliveryPersistence

assetEntryPersistence

@BeanReference(type=com.liferay.portlet.asset.service.persistence.AssetEntryPersistence.class)
protected com.liferay.portlet.asset.service.persistence.AssetEntryPersistence assetEntryPersistence

blogsStatsUserPersistence

@BeanReference(type=com.liferay.portlet.blogs.service.persistence.BlogsStatsUserPersistence.class)
protected com.liferay.portlet.blogs.service.persistence.BlogsStatsUserPersistence blogsStatsUserPersistence

dlFileRankPersistence

@BeanReference(type=com.liferay.portlet.documentlibrary.service.persistence.DLFileRankPersistence.class)
protected com.liferay.portlet.documentlibrary.service.persistence.DLFileRankPersistence dlFileRankPersistence

expandoValuePersistence

@BeanReference(type=com.liferay.portlet.expando.service.persistence.ExpandoValuePersistence.class)
protected com.liferay.portlet.expando.service.persistence.ExpandoValuePersistence expandoValuePersistence

mbBanPersistence

@BeanReference(type=com.liferay.portlet.messageboards.service.persistence.MBBanPersistence.class)
protected com.liferay.portlet.messageboards.service.persistence.MBBanPersistence mbBanPersistence

mbMessagePersistence

@BeanReference(type=com.liferay.portlet.messageboards.service.persistence.MBMessagePersistence.class)
protected com.liferay.portlet.messageboards.service.persistence.MBMessagePersistence mbMessagePersistence

mbStatsUserPersistence

@BeanReference(type=com.liferay.portlet.messageboards.service.persistence.MBStatsUserPersistence.class)
protected com.liferay.portlet.messageboards.service.persistence.MBStatsUserPersistence mbStatsUserPersistence

mbThreadFlagPersistence

@BeanReference(type=com.liferay.portlet.messageboards.service.persistence.MBThreadFlagPersistence.class)
protected com.liferay.portlet.messageboards.service.persistence.MBThreadFlagPersistence mbThreadFlagPersistence

shoppingCartPersistence

@BeanReference(type=com.liferay.portlet.shopping.service.persistence.ShoppingCartPersistence.class)
protected com.liferay.portlet.shopping.service.persistence.ShoppingCartPersistence shoppingCartPersistence

socialActivityPersistence

@BeanReference(type=com.liferay.portlet.social.service.persistence.SocialActivityPersistence.class)
protected com.liferay.portlet.social.service.persistence.SocialActivityPersistence socialActivityPersistence

socialRequestPersistence

@BeanReference(type=com.liferay.portlet.social.service.persistence.SocialRequestPersistence.class)
protected com.liferay.portlet.social.service.persistence.SocialRequestPersistence socialRequestPersistence

containsGroup

protected UserPersistenceImpl.ContainsGroup containsGroup

addGroup

protected UserPersistenceImpl.AddGroup addGroup

clearGroups

protected UserPersistenceImpl.ClearGroups clearGroups

removeGroup

protected UserPersistenceImpl.RemoveGroup removeGroup

containsOrganization

protected UserPersistenceImpl.ContainsOrganization containsOrganization

addOrganization

protected UserPersistenceImpl.AddOrganization addOrganization

clearOrganizations

protected UserPersistenceImpl.ClearOrganizations clearOrganizations

removeOrganization

protected UserPersistenceImpl.RemoveOrganization removeOrganization

containsPermission

protected UserPersistenceImpl.ContainsPermission containsPermission

addPermission

protected UserPersistenceImpl.AddPermission addPermission

clearPermissions

protected UserPersistenceImpl.ClearPermissions clearPermissions

removePermission

protected UserPersistenceImpl.RemovePermission removePermission

containsRole

protected UserPersistenceImpl.ContainsRole containsRole

addRole

protected UserPersistenceImpl.AddRole addRole

clearRoles

protected UserPersistenceImpl.ClearRoles clearRoles

removeRole

protected UserPersistenceImpl.RemoveRole removeRole

containsTeam

protected UserPersistenceImpl.ContainsTeam containsTeam

addTeam

protected UserPersistenceImpl.AddTeam addTeam

clearTeams

protected UserPersistenceImpl.ClearTeams clearTeams

removeTeam

protected UserPersistenceImpl.RemoveTeam removeTeam

containsUserGroup

protected UserPersistenceImpl.ContainsUserGroup containsUserGroup

addUserGroup

protected UserPersistenceImpl.AddUserGroup addUserGroup

clearUserGroups

protected UserPersistenceImpl.ClearUserGroups clearUserGroups

removeUserGroup

protected UserPersistenceImpl.RemoveUserGroup removeUserGroup
Constructor Detail

UserPersistenceImpl

public UserPersistenceImpl()
Method Detail

cacheResult

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

Specified by:
cacheResult in interface com.liferay.portal.service.persistence.UserPersistence
Parameters:
user - the user

cacheResult

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

Specified by:
cacheResult in interface com.liferay.portal.service.persistence.UserPersistence
Parameters:
users - the users

clearCache

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

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.User>
Overrides:
clearCache in class com.liferay.portal.service.persistence.impl.BasePersistenceImpl<com.liferay.portal.model.User>

clearCache

public void clearCache(com.liferay.portal.model.User user)
Clears the cache for the user.

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.User>
Overrides:
clearCache in class com.liferay.portal.service.persistence.impl.BasePersistenceImpl<com.liferay.portal.model.User>

clearCache

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

clearUniqueFindersCache

protected void clearUniqueFindersCache(com.liferay.portal.model.User user)

create

public com.liferay.portal.model.User create(long userId)
Creates a new user with the primary key. Does not add the user to the database.

Specified by:
create in interface com.liferay.portal.service.persistence.UserPersistence
Parameters:
userId - the primary key for the new user
Returns:
the new user

remove

public com.liferay.portal.model.User remove(long userId)
                                     throws com.liferay.portal.NoSuchUserException,
                                            com.liferay.portal.kernel.exception.SystemException
Removes the user with the primary key from the database. Also notifies the appropriate model listeners.

Specified by:
remove in interface com.liferay.portal.service.persistence.UserPersistence
Parameters:
userId - the primary key of the user
Returns:
the user that was removed
Throws:
com.liferay.portal.NoSuchUserException - if a user 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.User remove(java.io.Serializable primaryKey)
                                     throws com.liferay.portal.NoSuchUserException,
                                            com.liferay.portal.kernel.exception.SystemException
Removes the user 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.User>
Overrides:
remove in class com.liferay.portal.service.persistence.impl.BasePersistenceImpl<com.liferay.portal.model.User>
Parameters:
primaryKey - the primary key of the user
Returns:
the user that was removed
Throws:
com.liferay.portal.NoSuchUserException - if a user 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.User removeImpl(com.liferay.portal.model.User user)
                                            throws com.liferay.portal.kernel.exception.SystemException
Overrides:
removeImpl in class com.liferay.portal.service.persistence.impl.BasePersistenceImpl<com.liferay.portal.model.User>
Throws:
com.liferay.portal.kernel.exception.SystemException

updateImpl

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

toUnwrappedModel

protected com.liferay.portal.model.User toUnwrappedModel(com.liferay.portal.model.User user)

findByPrimaryKey

public com.liferay.portal.model.User findByPrimaryKey(java.io.Serializable primaryKey)
                                               throws com.liferay.portal.NoSuchModelException,
                                                      com.liferay.portal.kernel.exception.SystemException
Returns the user 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.User>
Overrides:
findByPrimaryKey in class com.liferay.portal.service.persistence.impl.BasePersistenceImpl<com.liferay.portal.model.User>
Parameters:
primaryKey - the primary key of the user
Returns:
the user
Throws:
com.liferay.portal.NoSuchModelException - if a user 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.User findByPrimaryKey(long userId)
                                               throws com.liferay.portal.NoSuchUserException,
                                                      com.liferay.portal.kernel.exception.SystemException
Returns the user with the primary key or throws a NoSuchUserException if it could not be found.

Specified by:
findByPrimaryKey in interface com.liferay.portal.service.persistence.UserPersistence
Parameters:
userId - the primary key of the user
Returns:
the user
Throws:
com.liferay.portal.NoSuchUserException - if a user 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.User fetchByPrimaryKey(java.io.Serializable primaryKey)
                                                throws com.liferay.portal.kernel.exception.SystemException
Returns the user 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.User>
Overrides:
fetchByPrimaryKey in class com.liferay.portal.service.persistence.impl.BasePersistenceImpl<com.liferay.portal.model.User>
Parameters:
primaryKey - the primary key of the user
Returns:
the user, or null if a user 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.User fetchByPrimaryKey(long userId)
                                                throws com.liferay.portal.kernel.exception.SystemException
Returns the user with the primary key or returns null if it could not be found.

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

findByUuid

public java.util.List<com.liferay.portal.model.User> findByUuid(java.lang.String uuid)
                                                         throws com.liferay.portal.kernel.exception.SystemException
Returns all the users where uuid = ?.

Specified by:
findByUuid in interface com.liferay.portal.service.persistence.UserPersistence
Parameters:
uuid - the uuid
Returns:
the matching users
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

findByUuid

public java.util.List<com.liferay.portal.model.User> findByUuid(java.lang.String uuid,
                                                                int start,
                                                                int end)
                                                         throws com.liferay.portal.kernel.exception.SystemException
Returns a range of all the users where uuid = ?.

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:
findByUuid in interface com.liferay.portal.service.persistence.UserPersistence
Parameters:
uuid - the uuid
start - the lower bound of the range of users
end - the upper bound of the range of users (not inclusive)
Returns:
the range of matching users
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

findByUuid

public java.util.List<com.liferay.portal.model.User> findByUuid(java.lang.String uuid,
                                                                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 where uuid = ?.

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:
findByUuid in interface com.liferay.portal.service.persistence.UserPersistence
Parameters:
uuid - the uuid
start - the lower bound of the range of users
end - the upper bound of the range of users (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of matching users
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

findByUuid_First

public com.liferay.portal.model.User findByUuid_First(java.lang.String uuid,
                                                      com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
                                               throws com.liferay.portal.NoSuchUserException,
                                                      com.liferay.portal.kernel.exception.SystemException
Returns the first user in the ordered set where uuid = ?.

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:
findByUuid_First in interface com.liferay.portal.service.persistence.UserPersistence
Parameters:
uuid - the uuid
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching user
Throws:
com.liferay.portal.NoSuchUserException - if a matching user could not be found
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

findByUuid_Last

public com.liferay.portal.model.User findByUuid_Last(java.lang.String uuid,
                                                     com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
                                              throws com.liferay.portal.NoSuchUserException,
                                                     com.liferay.portal.kernel.exception.SystemException
Returns the last user in the ordered set where uuid = ?.

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:
findByUuid_Last in interface com.liferay.portal.service.persistence.UserPersistence
Parameters:
uuid - the uuid
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching user
Throws:
com.liferay.portal.NoSuchUserException - if a matching user could not be found
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

findByUuid_PrevAndNext

public com.liferay.portal.model.User[] findByUuid_PrevAndNext(long userId,
                                                              java.lang.String uuid,
                                                              com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
                                                       throws com.liferay.portal.NoSuchUserException,
                                                              com.liferay.portal.kernel.exception.SystemException
Returns the users before and after the current user in the ordered set where uuid = ?.

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:
findByUuid_PrevAndNext in interface com.liferay.portal.service.persistence.UserPersistence
Parameters:
userId - the primary key of the current user
uuid - the uuid
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the previous, current, and next user
Throws:
com.liferay.portal.NoSuchUserException - if a user with the primary key could not be found
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

getByUuid_PrevAndNext

protected com.liferay.portal.model.User getByUuid_PrevAndNext(com.liferay.portal.kernel.dao.orm.Session session,
                                                              com.liferay.portal.model.User user,
                                                              java.lang.String uuid,
                                                              com.liferay.portal.kernel.util.OrderByComparator orderByComparator,
                                                              boolean previous)

findByCompanyId

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

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

findByCompanyId

public java.util.List<com.liferay.portal.model.User> findByCompanyId(long companyId,
                                                                     int start,
                                                                     int end)
                                                              throws com.liferay.portal.kernel.exception.SystemException
Returns a range of all the users 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.UserPersistence
Parameters:
companyId - the company ID
start - the lower bound of the range of users
end - the upper bound of the range of users (not inclusive)
Returns:
the range of matching users
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

findByCompanyId

public java.util.List<com.liferay.portal.model.User> 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 users 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.UserPersistence
Parameters:
companyId - the company ID
start - the lower bound of the range of users
end - the upper bound of the range of users (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of matching users
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

findByCompanyId_First

public com.liferay.portal.model.User findByCompanyId_First(long companyId,
                                                           com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
                                                    throws com.liferay.portal.NoSuchUserException,
                                                           com.liferay.portal.kernel.exception.SystemException
Returns the first user 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.UserPersistence
Parameters:
companyId - the company ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching user
Throws:
com.liferay.portal.NoSuchUserException - if a matching user could not be found
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

findByCompanyId_Last

public com.liferay.portal.model.User findByCompanyId_Last(long companyId,
                                                          com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
                                                   throws com.liferay.portal.NoSuchUserException,
                                                          com.liferay.portal.kernel.exception.SystemException
Returns the last user 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.UserPersistence
Parameters:
companyId - the company ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching user
Throws:
com.liferay.portal.NoSuchUserException - if a matching user could not be found
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

findByCompanyId_PrevAndNext

public com.liferay.portal.model.User[] findByCompanyId_PrevAndNext(long userId,
                                                                   long companyId,
                                                                   com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
                                                            throws com.liferay.portal.NoSuchUserException,
                                                                   com.liferay.portal.kernel.exception.SystemException
Returns the users before and after the current user 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.UserPersistence
Parameters:
userId - the primary key of the current user
companyId - the company ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the previous, current, and next user
Throws:
com.liferay.portal.NoSuchUserException - if a user 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.User getByCompanyId_PrevAndNext(com.liferay.portal.kernel.dao.orm.Session session,
                                                                   com.liferay.portal.model.User user,
                                                                   long companyId,
                                                                   com.liferay.portal.kernel.util.OrderByComparator orderByComparator,
                                                                   boolean previous)

findByContactId

public com.liferay.portal.model.User findByContactId(long contactId)
                                              throws com.liferay.portal.NoSuchUserException,
                                                     com.liferay.portal.kernel.exception.SystemException
Returns the user where contactId = ? or throws a NoSuchUserException if it could not be found.

Specified by:
findByContactId in interface com.liferay.portal.service.persistence.UserPersistence
Parameters:
contactId - the contact ID
Returns:
the matching user
Throws:
com.liferay.portal.NoSuchUserException - if a matching user could not be found
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

fetchByContactId

public com.liferay.portal.model.User fetchByContactId(long contactId)
                                               throws com.liferay.portal.kernel.exception.SystemException
Returns the user where contactId = ? or returns null if it could not be found. Uses the finder cache.

Specified by:
fetchByContactId in interface com.liferay.portal.service.persistence.UserPersistence
Parameters:
contactId - the contact ID
Returns:
the matching user, or null if a matching user could not be found
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

fetchByContactId

public com.liferay.portal.model.User fetchByContactId(long contactId,
                                                      boolean retrieveFromCache)
                                               throws com.liferay.portal.kernel.exception.SystemException
Returns the user where contactId = ? or returns null if it could not be found, optionally using the finder cache.

Specified by:
fetchByContactId in interface com.liferay.portal.service.persistence.UserPersistence
Parameters:
contactId - the contact ID
retrieveFromCache - whether to use the finder cache
Returns:
the matching user, or null if a matching user could not be found
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

findByEmailAddress

public java.util.List<com.liferay.portal.model.User> findByEmailAddress(java.lang.String emailAddress)
                                                                 throws com.liferay.portal.kernel.exception.SystemException
Returns all the users where emailAddress = ?.

Specified by:
findByEmailAddress in interface com.liferay.portal.service.persistence.UserPersistence
Parameters:
emailAddress - the email address
Returns:
the matching users
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

findByEmailAddress

public java.util.List<com.liferay.portal.model.User> findByEmailAddress(java.lang.String emailAddress,
                                                                        int start,
                                                                        int end)
                                                                 throws com.liferay.portal.kernel.exception.SystemException
Returns a range of all the users where emailAddress = ?.

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:
findByEmailAddress in interface com.liferay.portal.service.persistence.UserPersistence
Parameters:
emailAddress - the email address
start - the lower bound of the range of users
end - the upper bound of the range of users (not inclusive)
Returns:
the range of matching users
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

findByEmailAddress

public java.util.List<com.liferay.portal.model.User> findByEmailAddress(java.lang.String emailAddress,
                                                                        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 where emailAddress = ?.

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:
findByEmailAddress in interface com.liferay.portal.service.persistence.UserPersistence
Parameters:
emailAddress - the email address
start - the lower bound of the range of users
end - the upper bound of the range of users (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of matching users
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

findByEmailAddress_First

public com.liferay.portal.model.User findByEmailAddress_First(java.lang.String emailAddress,
                                                              com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
                                                       throws com.liferay.portal.NoSuchUserException,
                                                              com.liferay.portal.kernel.exception.SystemException
Returns the first user in the ordered set where emailAddress = ?.

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:
findByEmailAddress_First in interface com.liferay.portal.service.persistence.UserPersistence
Parameters:
emailAddress - the email address
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching user
Throws:
com.liferay.portal.NoSuchUserException - if a matching user could not be found
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

findByEmailAddress_Last

public com.liferay.portal.model.User findByEmailAddress_Last(java.lang.String emailAddress,
                                                             com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
                                                      throws com.liferay.portal.NoSuchUserException,
                                                             com.liferay.portal.kernel.exception.SystemException
Returns the last user in the ordered set where emailAddress = ?.

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:
findByEmailAddress_Last in interface com.liferay.portal.service.persistence.UserPersistence
Parameters:
emailAddress - the email address
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching user
Throws:
com.liferay.portal.NoSuchUserException - if a matching user could not be found
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

findByEmailAddress_PrevAndNext

public com.liferay.portal.model.User[] findByEmailAddress_PrevAndNext(long userId,
                                                                      java.lang.String emailAddress,
                                                                      com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
                                                               throws com.liferay.portal.NoSuchUserException,
                                                                      com.liferay.portal.kernel.exception.SystemException
Returns the users before and after the current user in the ordered set where emailAddress = ?.

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:
findByEmailAddress_PrevAndNext in interface com.liferay.portal.service.persistence.UserPersistence
Parameters:
userId - the primary key of the current user
emailAddress - the email address
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the previous, current, and next user
Throws:
com.liferay.portal.NoSuchUserException - if a user with the primary key could not be found
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

getByEmailAddress_PrevAndNext

protected com.liferay.portal.model.User getByEmailAddress_PrevAndNext(com.liferay.portal.kernel.dao.orm.Session session,
                                                                      com.liferay.portal.model.User user,
                                                                      java.lang.String emailAddress,
                                                                      com.liferay.portal.kernel.util.OrderByComparator orderByComparator,
                                                                      boolean previous)

findByPortraitId

public com.liferay.portal.model.User findByPortraitId(long portraitId)
                                               throws com.liferay.portal.NoSuchUserException,
                                                      com.liferay.portal.kernel.exception.SystemException
Returns the user where portraitId = ? or throws a NoSuchUserException if it could not be found.

Specified by:
findByPortraitId in interface com.liferay.portal.service.persistence.UserPersistence
Parameters:
portraitId - the portrait ID
Returns:
the matching user
Throws:
com.liferay.portal.NoSuchUserException - if a matching user could not be found
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

fetchByPortraitId

public com.liferay.portal.model.User fetchByPortraitId(long portraitId)
                                                throws com.liferay.portal.kernel.exception.SystemException
Returns the user where portraitId = ? or returns null if it could not be found. Uses the finder cache.

Specified by:
fetchByPortraitId in interface com.liferay.portal.service.persistence.UserPersistence
Parameters:
portraitId - the portrait ID
Returns:
the matching user, or null if a matching user could not be found
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

fetchByPortraitId

public com.liferay.portal.model.User fetchByPortraitId(long portraitId,
                                                       boolean retrieveFromCache)
                                                throws com.liferay.portal.kernel.exception.SystemException
Returns the user where portraitId = ? or returns null if it could not be found, optionally using the finder cache.

Specified by:
fetchByPortraitId in interface com.liferay.portal.service.persistence.UserPersistence
Parameters:
portraitId - the portrait ID
retrieveFromCache - whether to use the finder cache
Returns:
the matching user, or null if a matching user could not be found
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

findByC_U

public com.liferay.portal.model.User findByC_U(long companyId,
                                               long userId)
                                        throws com.liferay.portal.NoSuchUserException,
                                               com.liferay.portal.kernel.exception.SystemException
Returns the user where companyId = ? and userId = ? or throws a NoSuchUserException if it could not be found.

Specified by:
findByC_U in interface com.liferay.portal.service.persistence.UserPersistence
Parameters:
companyId - the company ID
userId - the user ID
Returns:
the matching user
Throws:
com.liferay.portal.NoSuchUserException - if a matching user could not be found
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

fetchByC_U

public com.liferay.portal.model.User fetchByC_U(long companyId,
                                                long userId)
                                         throws com.liferay.portal.kernel.exception.SystemException
Returns the user where companyId = ? and userId = ? or returns null if it could not be found. Uses the finder cache.

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

fetchByC_U

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

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

findByC_DU

public com.liferay.portal.model.User findByC_DU(long companyId,
                                                boolean defaultUser)
                                         throws com.liferay.portal.NoSuchUserException,
                                                com.liferay.portal.kernel.exception.SystemException
Returns the user where companyId = ? and defaultUser = ? or throws a NoSuchUserException if it could not be found.

Specified by:
findByC_DU in interface com.liferay.portal.service.persistence.UserPersistence
Parameters:
companyId - the company ID
defaultUser - the default user
Returns:
the matching user
Throws:
com.liferay.portal.NoSuchUserException - if a matching user could not be found
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

fetchByC_DU

public com.liferay.portal.model.User fetchByC_DU(long companyId,
                                                 boolean defaultUser)
                                          throws com.liferay.portal.kernel.exception.SystemException
Returns the user where companyId = ? and defaultUser = ? or returns null if it could not be found. Uses the finder cache.

Specified by:
fetchByC_DU in interface com.liferay.portal.service.persistence.UserPersistence
Parameters:
companyId - the company ID
defaultUser - the default user
Returns:
the matching user, or null if a matching user could not be found
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

fetchByC_DU

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

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

findByC_SN

public com.liferay.portal.model.User findByC_SN(long companyId,
                                                java.lang.String screenName)
                                         throws com.liferay.portal.NoSuchUserException,
                                                com.liferay.portal.kernel.exception.SystemException
Returns the user where companyId = ? and screenName = ? or throws a NoSuchUserException if it could not be found.

Specified by:
findByC_SN in interface com.liferay.portal.service.persistence.UserPersistence
Parameters:
companyId - the company ID
screenName - the screen name
Returns:
the matching user
Throws:
com.liferay.portal.NoSuchUserException - if a matching user could not be found
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

fetchByC_SN

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

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

fetchByC_SN

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

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

findByC_EA

public com.liferay.portal.model.User findByC_EA(long companyId,
                                                java.lang.String emailAddress)
                                         throws com.liferay.portal.NoSuchUserException,
                                                com.liferay.portal.kernel.exception.SystemException
Returns the user where companyId = ? and emailAddress = ? or throws a NoSuchUserException if it could not be found.

Specified by:
findByC_EA in interface com.liferay.portal.service.persistence.UserPersistence
Parameters:
companyId - the company ID
emailAddress - the email address
Returns:
the matching user
Throws:
com.liferay.portal.NoSuchUserException - if a matching user could not be found
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

fetchByC_EA

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

Specified by:
fetchByC_EA in interface com.liferay.portal.service.persistence.UserPersistence
Parameters:
companyId - the company ID
emailAddress - the email address
Returns:
the matching user, or null if a matching user could not be found
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

fetchByC_EA

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

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

findByC_FID

public com.liferay.portal.model.User findByC_FID(long companyId,
                                                 long facebookId)
                                          throws com.liferay.portal.NoSuchUserException,
                                                 com.liferay.portal.kernel.exception.SystemException
Returns the user where companyId = ? and facebookId = ? or throws a NoSuchUserException if it could not be found.

Specified by:
findByC_FID in interface com.liferay.portal.service.persistence.UserPersistence
Parameters:
companyId - the company ID
facebookId - the facebook ID
Returns:
the matching user
Throws:
com.liferay.portal.NoSuchUserException - if a matching user could not be found
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

fetchByC_FID

public com.liferay.portal.model.User fetchByC_FID(long companyId,
                                                  long facebookId)
                                           throws com.liferay.portal.kernel.exception.SystemException
Returns the user where companyId = ? and facebookId = ? or returns null if it could not be found. Uses the finder cache.

Specified by:
fetchByC_FID in interface com.liferay.portal.service.persistence.UserPersistence
Parameters:
companyId - the company ID
facebookId - the facebook ID
Returns:
the matching user, or null if a matching user could not be found
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

fetchByC_FID

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

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

findByC_O

public com.liferay.portal.model.User findByC_O(long companyId,
                                               java.lang.String openId)
                                        throws com.liferay.portal.NoSuchUserException,
                                               com.liferay.portal.kernel.exception.SystemException
Returns the user where companyId = ? and openId = ? or throws a NoSuchUserException if it could not be found.

Specified by:
findByC_O in interface com.liferay.portal.service.persistence.UserPersistence
Parameters:
companyId - the company ID
openId - the open ID
Returns:
the matching user
Throws:
com.liferay.portal.NoSuchUserException - if a matching user could not be found
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

fetchByC_O

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

Specified by:
fetchByC_O in interface com.liferay.portal.service.persistence.UserPersistence
Parameters:
companyId - the company ID
openId - the open ID
Returns:
the matching user, or null if a matching user could not be found
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

fetchByC_O

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

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

findByC_S

public java.util.List<com.liferay.portal.model.User> findByC_S(long companyId,
                                                               int status)
                                                        throws com.liferay.portal.kernel.exception.SystemException
Returns all the users where companyId = ? and status = ?.

Specified by:
findByC_S in interface com.liferay.portal.service.persistence.UserPersistence
Parameters:
companyId - the company ID
status - the status
Returns:
the matching users
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

findByC_S

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

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:
findByC_S in interface com.liferay.portal.service.persistence.UserPersistence
Parameters:
companyId - the company ID
status - the status
start - the lower bound of the range of users
end - the upper bound of the range of users (not inclusive)
Returns:
the range of matching users
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

findByC_S

public java.util.List<com.liferay.portal.model.User> findByC_S(long companyId,
                                                               int status,
                                                               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 where companyId = ? and status = ?.

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:
findByC_S in interface com.liferay.portal.service.persistence.UserPersistence
Parameters:
companyId - the company ID
status - the status
start - the lower bound of the range of users
end - the upper bound of the range of users (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of matching users
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

findByC_S_First

public com.liferay.portal.model.User findByC_S_First(long companyId,
                                                     int status,
                                                     com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
                                              throws com.liferay.portal.NoSuchUserException,
                                                     com.liferay.portal.kernel.exception.SystemException
Returns the first user in the ordered set where companyId = ? and status = ?.

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:
findByC_S_First in interface com.liferay.portal.service.persistence.UserPersistence
Parameters:
companyId - the company ID
status - the status
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching user
Throws:
com.liferay.portal.NoSuchUserException - if a matching user could not be found
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

findByC_S_Last

public com.liferay.portal.model.User findByC_S_Last(long companyId,
                                                    int status,
                                                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
                                             throws com.liferay.portal.NoSuchUserException,
                                                    com.liferay.portal.kernel.exception.SystemException
Returns the last user in the ordered set where companyId = ? and status = ?.

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:
findByC_S_Last in interface com.liferay.portal.service.persistence.UserPersistence
Parameters:
companyId - the company ID
status - the status
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching user
Throws:
com.liferay.portal.NoSuchUserException - if a matching user could not be found
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

findByC_S_PrevAndNext

public com.liferay.portal.model.User[] findByC_S_PrevAndNext(long userId,
                                                             long companyId,
                                                             int status,
                                                             com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
                                                      throws com.liferay.portal.NoSuchUserException,
                                                             com.liferay.portal.kernel.exception.SystemException
Returns the users before and after the current user in the ordered set where companyId = ? and status = ?.

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:
findByC_S_PrevAndNext in interface com.liferay.portal.service.persistence.UserPersistence
Parameters:
userId - the primary key of the current user
companyId - the company ID
status - the status
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the previous, current, and next user
Throws:
com.liferay.portal.NoSuchUserException - if a user with the primary key could not be found
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

getByC_S_PrevAndNext

protected com.liferay.portal.model.User getByC_S_PrevAndNext(com.liferay.portal.kernel.dao.orm.Session session,
                                                             com.liferay.portal.model.User user,
                                                             long companyId,
                                                             int status,
                                                             com.liferay.portal.kernel.util.OrderByComparator orderByComparator,
                                                             boolean previous)

findAll

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

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

findAll

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

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.UserPersistence
Parameters:
start - the lower bound of the range of users
end - the upper bound of the range of users (not inclusive)
Returns:
the range of users
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

findAll

public java.util.List<com.liferay.portal.model.User> 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 users.

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.UserPersistence
Parameters:
start - the lower bound of the range of users
end - the upper bound of the range of users (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of users
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

removeByUuid

public void removeByUuid(java.lang.String uuid)
                  throws com.liferay.portal.kernel.exception.SystemException
Removes all the users where uuid = ? from the database.

Specified by:
removeByUuid in interface com.liferay.portal.service.persistence.UserPersistence
Parameters:
uuid - the uuid
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 users where companyId = ? from the database.

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

removeByContactId

public void removeByContactId(long contactId)
                       throws com.liferay.portal.NoSuchUserException,
                              com.liferay.portal.kernel.exception.SystemException
Removes the user where contactId = ? from the database.

Specified by:
removeByContactId in interface com.liferay.portal.service.persistence.UserPersistence
Parameters:
contactId - the contact ID
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred
com.liferay.portal.NoSuchUserException

removeByEmailAddress

public void removeByEmailAddress(java.lang.String emailAddress)
                          throws com.liferay.portal.kernel.exception.SystemException
Removes all the users where emailAddress = ? from the database.

Specified by:
removeByEmailAddress in interface com.liferay.portal.service.persistence.UserPersistence
Parameters:
emailAddress - the email address
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

removeByPortraitId

public void removeByPortraitId(long portraitId)
                        throws com.liferay.portal.NoSuchUserException,
                               com.liferay.portal.kernel.exception.SystemException
Removes the user where portraitId = ? from the database.

Specified by:
removeByPortraitId in interface com.liferay.portal.service.persistence.UserPersistence
Parameters:
portraitId - the portrait ID
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred
com.liferay.portal.NoSuchUserException

removeByC_U

public void removeByC_U(long companyId,
                        long userId)
                 throws com.liferay.portal.NoSuchUserException,
                        com.liferay.portal.kernel.exception.SystemException
Removes the user where companyId = ? and userId = ? from the database.

Specified by:
removeByC_U in interface com.liferay.portal.service.persistence.UserPersistence
Parameters:
companyId - the company ID
userId - the user ID
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred
com.liferay.portal.NoSuchUserException

removeByC_DU

public void removeByC_DU(long companyId,
                         boolean defaultUser)
                  throws com.liferay.portal.NoSuchUserException,
                         com.liferay.portal.kernel.exception.SystemException
Removes the user where companyId = ? and defaultUser = ? from the database.

Specified by:
removeByC_DU in interface com.liferay.portal.service.persistence.UserPersistence
Parameters:
companyId - the company ID
defaultUser - the default user
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred
com.liferay.portal.NoSuchUserException

removeByC_SN

public void removeByC_SN(long companyId,
                         java.lang.String screenName)
                  throws com.liferay.portal.NoSuchUserException,
                         com.liferay.portal.kernel.exception.SystemException
Removes the user where companyId = ? and screenName = ? from the database.

Specified by:
removeByC_SN in interface com.liferay.portal.service.persistence.UserPersistence
Parameters:
companyId - the company ID
screenName - the screen name
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred
com.liferay.portal.NoSuchUserException

removeByC_EA

public void removeByC_EA(long companyId,
                         java.lang.String emailAddress)
                  throws com.liferay.portal.NoSuchUserException,
                         com.liferay.portal.kernel.exception.SystemException
Removes the user where companyId = ? and emailAddress = ? from the database.

Specified by:
removeByC_EA in interface com.liferay.portal.service.persistence.UserPersistence
Parameters:
companyId - the company ID
emailAddress - the email address
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred
com.liferay.portal.NoSuchUserException

removeByC_FID

public void removeByC_FID(long companyId,
                          long facebookId)
                   throws com.liferay.portal.NoSuchUserException,
                          com.liferay.portal.kernel.exception.SystemException
Removes the user where companyId = ? and facebookId = ? from the database.

Specified by:
removeByC_FID in interface com.liferay.portal.service.persistence.UserPersistence
Parameters:
companyId - the company ID
facebookId - the facebook ID
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred
com.liferay.portal.NoSuchUserException

removeByC_O

public void removeByC_O(long companyId,
                        java.lang.String openId)
                 throws com.liferay.portal.NoSuchUserException,
                        com.liferay.portal.kernel.exception.SystemException
Removes the user where companyId = ? and openId = ? from the database.

Specified by:
removeByC_O in interface com.liferay.portal.service.persistence.UserPersistence
Parameters:
companyId - the company ID
openId - the open ID
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred
com.liferay.portal.NoSuchUserException

removeByC_S

public void removeByC_S(long companyId,
                        int status)
                 throws com.liferay.portal.kernel.exception.SystemException
Removes all the users where companyId = ? and status = ? from the database.

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

removeAll

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

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

countByUuid

public int countByUuid(java.lang.String uuid)
                throws com.liferay.portal.kernel.exception.SystemException
Returns the number of users where uuid = ?.

Specified by:
countByUuid in interface com.liferay.portal.service.persistence.UserPersistence
Parameters:
uuid - the uuid
Returns:
the number of matching users
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 users where companyId = ?.

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

countByContactId

public int countByContactId(long contactId)
                     throws com.liferay.portal.kernel.exception.SystemException
Returns the number of users where contactId = ?.

Specified by:
countByContactId in interface com.liferay.portal.service.persistence.UserPersistence
Parameters:
contactId - the contact ID
Returns:
the number of matching users
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

countByEmailAddress

public int countByEmailAddress(java.lang.String emailAddress)
                        throws com.liferay.portal.kernel.exception.SystemException
Returns the number of users where emailAddress = ?.

Specified by:
countByEmailAddress in interface com.liferay.portal.service.persistence.UserPersistence
Parameters:
emailAddress - the email address
Returns:
the number of matching users
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

countByPortraitId

public int countByPortraitId(long portraitId)
                      throws com.liferay.portal.kernel.exception.SystemException
Returns the number of users where portraitId = ?.

Specified by:
countByPortraitId in interface com.liferay.portal.service.persistence.UserPersistence
Parameters:
portraitId - the portrait ID
Returns:
the number of matching users
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

countByC_U

public int countByC_U(long companyId,
                      long userId)
               throws com.liferay.portal.kernel.exception.SystemException
Returns the number of users where companyId = ? and userId = ?.

Specified by:
countByC_U in interface com.liferay.portal.service.persistence.UserPersistence
Parameters:
companyId - the company ID
userId - the user ID
Returns:
the number of matching users
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

countByC_DU

public int countByC_DU(long companyId,
                       boolean defaultUser)
                throws com.liferay.portal.kernel.exception.SystemException
Returns the number of users where companyId = ? and defaultUser = ?.

Specified by:
countByC_DU in interface com.liferay.portal.service.persistence.UserPersistence
Parameters:
companyId - the company ID
defaultUser - the default user
Returns:
the number of matching users
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

countByC_SN

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

Specified by:
countByC_SN in interface com.liferay.portal.service.persistence.UserPersistence
Parameters:
companyId - the company ID
screenName - the screen name
Returns:
the number of matching users
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

countByC_EA

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

Specified by:
countByC_EA in interface com.liferay.portal.service.persistence.UserPersistence
Parameters:
companyId - the company ID
emailAddress - the email address
Returns:
the number of matching users
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

countByC_FID

public int countByC_FID(long companyId,
                        long facebookId)
                 throws com.liferay.portal.kernel.exception.SystemException
Returns the number of users where companyId = ? and facebookId = ?.

Specified by:
countByC_FID in interface com.liferay.portal.service.persistence.UserPersistence
Parameters:
companyId - the company ID
facebookId - the facebook ID
Returns:
the number of matching users
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

countByC_O

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

Specified by:
countByC_O in interface com.liferay.portal.service.persistence.UserPersistence
Parameters:
companyId - the company ID
openId - the open ID
Returns:
the number of matching users
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

countByC_S

public int countByC_S(long companyId,
                      int status)
               throws com.liferay.portal.kernel.exception.SystemException
Returns the number of users where companyId = ? and status = ?.

Specified by:
countByC_S in interface com.liferay.portal.service.persistence.UserPersistence
Parameters:
companyId - the company ID
status - the status
Returns:
the number of matching users
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 users.

Specified by:
countAll in interface com.liferay.portal.service.persistence.UserPersistence
Returns:
the number of users
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 user.

Specified by:
getGroups in interface com.liferay.portal.service.persistence.UserPersistence
Parameters:
pk - the primary key of the user
Returns:
the groups associated with the user
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 user.

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.UserPersistence
Parameters:
pk - the primary key of the user
start - the lower bound of the range of users
end - the upper bound of the range of users (not inclusive)
Returns:
the range of groups associated with the user
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 user.

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.UserPersistence
Parameters:
pk - the primary key of the user
start - the lower bound of the range of users
end - the upper bound of the range of users (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of groups associated with the user
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 user.

Specified by:
getGroupsSize in interface com.liferay.portal.service.persistence.UserPersistence
Parameters:
pk - the primary key of the user
Returns:
the number of groups associated with the user
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 user.

Specified by:
containsGroup in interface com.liferay.portal.service.persistence.UserPersistence
Parameters:
pk - the primary key of the user
groupPK - the primary key of the group
Returns:
true if the group is associated with the user; 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 user has any groups associated with it.

Specified by:
containsGroups in interface com.liferay.portal.service.persistence.UserPersistence
Parameters:
pk - the primary key of the user to check for associations with groups
Returns:
true if the user 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 user 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.UserPersistence
Parameters:
pk - the primary key of the user
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 user 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.UserPersistence
Parameters:
pk - the primary key of the user
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 user 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.UserPersistence
Parameters:
pk - the primary key of the user
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 user 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.UserPersistence
Parameters:
pk - the primary key of the user
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 user 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.UserPersistence
Parameters:
pk - the primary key of the user 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 user 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.UserPersistence
Parameters:
pk - the primary key of the user
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 user 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.UserPersistence
Parameters:
pk - the primary key of the user
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 user 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.UserPersistence
Parameters:
pk - the primary key of the user
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 user 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.UserPersistence
Parameters:
pk - the primary key of the user
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 user, 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.UserPersistence
Parameters:
pk - the primary key of the user
groupPKs - the primary keys of the groups to be associated with the user
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 user, 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.UserPersistence
Parameters:
pk - the primary key of the user
groups - the groups to be associated with the user
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

getOrganizations

public java.util.List<com.liferay.portal.model.Organization> getOrganizations(long pk)
                                                                       throws com.liferay.portal.kernel.exception.SystemException
Returns all the organizations associated with the user.

Specified by:
getOrganizations in interface com.liferay.portal.service.persistence.UserPersistence
Parameters:
pk - the primary key of the user
Returns:
the organizations associated with the user
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

getOrganizations

public java.util.List<com.liferay.portal.model.Organization> getOrganizations(long pk,
                                                                              int start,
                                                                              int end)
                                                                       throws com.liferay.portal.kernel.exception.SystemException
Returns a range of all the organizations associated with the user.

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:
getOrganizations in interface com.liferay.portal.service.persistence.UserPersistence
Parameters:
pk - the primary key of the user
start - the lower bound of the range of users
end - the upper bound of the range of users (not inclusive)
Returns:
the range of organizations associated with the user
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

getOrganizations

public java.util.List<com.liferay.portal.model.Organization> getOrganizations(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 organizations associated with the user.

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:
getOrganizations in interface com.liferay.portal.service.persistence.UserPersistence
Parameters:
pk - the primary key of the user
start - the lower bound of the range of users
end - the upper bound of the range of users (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of organizations associated with the user
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

getOrganizationsSize

public int getOrganizationsSize(long pk)
                         throws com.liferay.portal.kernel.exception.SystemException
Returns the number of organizations associated with the user.

Specified by:
getOrganizationsSize in interface com.liferay.portal.service.persistence.UserPersistence
Parameters:
pk - the primary key of the user
Returns:
the number of organizations associated with the user
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

containsOrganization

public boolean containsOrganization(long pk,
                                    long organizationPK)
                             throws com.liferay.portal.kernel.exception.SystemException
Returns true if the organization is associated with the user.

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

containsOrganizations

public boolean containsOrganizations(long pk)
                              throws com.liferay.portal.kernel.exception.SystemException
Returns true if the user has any organizations associated with it.

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

addOrganization

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

Specified by:
addOrganization in interface com.liferay.portal.service.persistence.UserPersistence
Parameters:
pk - the primary key of the user
organizationPK - the primary key of the organization
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

addOrganization

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

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

addOrganizations

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

Specified by:
addOrganizations in interface com.liferay.portal.service.persistence.UserPersistence
Parameters:
pk - the primary key of the user
organizationPKs - the primary keys of the organizations
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

addOrganizations

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

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

clearOrganizations

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

Specified by:
clearOrganizations in interface com.liferay.portal.service.persistence.UserPersistence
Parameters:
pk - the primary key of the user to clear the associated organizations from
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

removeOrganization

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

Specified by:
removeOrganization in interface com.liferay.portal.service.persistence.UserPersistence
Parameters:
pk - the primary key of the user
organizationPK - the primary key of the organization
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

removeOrganization

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

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

removeOrganizations

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

Specified by:
removeOrganizations in interface com.liferay.portal.service.persistence.UserPersistence
Parameters:
pk - the primary key of the user
organizationPKs - the primary keys of the organizations
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

removeOrganizations

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

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

setOrganizations

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

Specified by:
setOrganizations in interface com.liferay.portal.service.persistence.UserPersistence
Parameters:
pk - the primary key of the user
organizationPKs - the primary keys of the organizations to be associated with the user
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

setOrganizations

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

Specified by:
setOrganizations in interface com.liferay.portal.service.persistence.UserPersistence
Parameters:
pk - the primary key of the user
organizations - the organizations to be associated with the user
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 user.

Specified by:
getPermissions in interface com.liferay.portal.service.persistence.UserPersistence
Parameters:
pk - the primary key of the user
Returns:
the permissions associated with the user
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 user.

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.UserPersistence
Parameters:
pk - the primary key of the user
start - the lower bound of the range of users
end - the upper bound of the range of users (not inclusive)
Returns:
the range of permissions associated with the user
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 user.

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.UserPersistence
Parameters:
pk - the primary key of the user
start - the lower bound of the range of users
end - the upper bound of the range of users (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of permissions associated with the user
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 user.

Specified by:
getPermissionsSize in interface com.liferay.portal.service.persistence.UserPersistence
Parameters:
pk - the primary key of the user
Returns:
the number of permissions associated with the user
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 user.

Specified by:
containsPermission in interface com.liferay.portal.service.persistence.UserPersistence
Parameters:
pk - the primary key of the user
permissionPK - the primary key of the permission
Returns:
true if the permission is associated with the user; 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 user has any permissions associated with it.

Specified by:
containsPermissions in interface com.liferay.portal.service.persistence.UserPersistence
Parameters:
pk - the primary key of the user to check for associations with permissions
Returns:
true if the user 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 user 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.UserPersistence
Parameters:
pk - the primary key of the user
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 user 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.UserPersistence
Parameters:
pk - the primary key of the user
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 user 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.UserPersistence
Parameters:
pk - the primary key of the user
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 user 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.UserPersistence
Parameters:
pk - the primary key of the user
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 user 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.UserPersistence
Parameters:
pk - the primary key of the user 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 user 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.UserPersistence
Parameters:
pk - the primary key of the user
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 user 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.UserPersistence
Parameters:
pk - the primary key of the user
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 user 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.UserPersistence
Parameters:
pk - the primary key of the user
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 user 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.UserPersistence
Parameters:
pk - the primary key of the user
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 user, 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.UserPersistence
Parameters:
pk - the primary key of the user
permissionPKs - the primary keys of the permissions to be associated with the user
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 user, 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.UserPersistence
Parameters:
pk - the primary key of the user
permissions - the permissions to be associated with the user
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

getRoles

public java.util.List<com.liferay.portal.model.Role> getRoles(long pk)
                                                       throws com.liferay.portal.kernel.exception.SystemException
Returns all the roles associated with the user.

Specified by:
getRoles in interface com.liferay.portal.service.persistence.UserPersistence
Parameters:
pk - the primary key of the user
Returns:
the roles associated with the user
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

getRoles

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

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:
getRoles in interface com.liferay.portal.service.persistence.UserPersistence
Parameters:
pk - the primary key of the user
start - the lower bound of the range of users
end - the upper bound of the range of users (not inclusive)
Returns:
the range of roles associated with the user
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

getRoles

public java.util.List<com.liferay.portal.model.Role> getRoles(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 roles associated with the user.

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:
getRoles in interface com.liferay.portal.service.persistence.UserPersistence
Parameters:
pk - the primary key of the user
start - the lower bound of the range of users
end - the upper bound of the range of users (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of roles associated with the user
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

getRolesSize

public int getRolesSize(long pk)
                 throws com.liferay.portal.kernel.exception.SystemException
Returns the number of roles associated with the user.

Specified by:
getRolesSize in interface com.liferay.portal.service.persistence.UserPersistence
Parameters:
pk - the primary key of the user
Returns:
the number of roles associated with the user
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

containsRole

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

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

containsRoles

public boolean containsRoles(long pk)
                      throws com.liferay.portal.kernel.exception.SystemException
Returns true if the user has any roles associated with it.

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

addRole

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

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

addRole

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

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

addRoles

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

Specified by:
addRoles in interface com.liferay.portal.service.persistence.UserPersistence
Parameters:
pk - the primary key of the user
rolePKs - the primary keys of the roles
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

addRoles

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

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

clearRoles

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

Specified by:
clearRoles in interface com.liferay.portal.service.persistence.UserPersistence
Parameters:
pk - the primary key of the user to clear the associated roles from
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

removeRole

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

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

removeRole

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

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

removeRoles

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

Specified by:
removeRoles in interface com.liferay.portal.service.persistence.UserPersistence
Parameters:
pk - the primary key of the user
rolePKs - the primary keys of the roles
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

removeRoles

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

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

setRoles

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

Specified by:
setRoles in interface com.liferay.portal.service.persistence.UserPersistence
Parameters:
pk - the primary key of the user
rolePKs - the primary keys of the roles to be associated with the user
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

setRoles

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

Specified by:
setRoles in interface com.liferay.portal.service.persistence.UserPersistence
Parameters:
pk - the primary key of the user
roles - the roles to be associated with the user
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

getTeams

public java.util.List<com.liferay.portal.model.Team> getTeams(long pk)
                                                       throws com.liferay.portal.kernel.exception.SystemException
Returns all the teams associated with the user.

Specified by:
getTeams in interface com.liferay.portal.service.persistence.UserPersistence
Parameters:
pk - the primary key of the user
Returns:
the teams associated with the user
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

getTeams

public java.util.List<com.liferay.portal.model.Team> getTeams(long pk,
                                                              int start,
                                                              int end)
                                                       throws com.liferay.portal.kernel.exception.SystemException
Returns a range of all the teams associated with the user.

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:
getTeams in interface com.liferay.portal.service.persistence.UserPersistence
Parameters:
pk - the primary key of the user
start - the lower bound of the range of users
end - the upper bound of the range of users (not inclusive)
Returns:
the range of teams associated with the user
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

getTeams

public java.util.List<com.liferay.portal.model.Team> getTeams(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 teams associated with the user.

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:
getTeams in interface com.liferay.portal.service.persistence.UserPersistence
Parameters:
pk - the primary key of the user
start - the lower bound of the range of users
end - the upper bound of the range of users (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of teams associated with the user
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

getTeamsSize

public int getTeamsSize(long pk)
                 throws com.liferay.portal.kernel.exception.SystemException
Returns the number of teams associated with the user.

Specified by:
getTeamsSize in interface com.liferay.portal.service.persistence.UserPersistence
Parameters:
pk - the primary key of the user
Returns:
the number of teams associated with the user
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

containsTeam

public boolean containsTeam(long pk,
                            long teamPK)
                     throws com.liferay.portal.kernel.exception.SystemException
Returns true if the team is associated with the user.

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

containsTeams

public boolean containsTeams(long pk)
                      throws com.liferay.portal.kernel.exception.SystemException
Returns true if the user has any teams associated with it.

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

addTeam

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

Specified by:
addTeam in interface com.liferay.portal.service.persistence.UserPersistence
Parameters:
pk - the primary key of the user
teamPK - the primary key of the team
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

addTeam

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

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

addTeams

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

Specified by:
addTeams in interface com.liferay.portal.service.persistence.UserPersistence
Parameters:
pk - the primary key of the user
teamPKs - the primary keys of the teams
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

addTeams

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

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

clearTeams

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

Specified by:
clearTeams in interface com.liferay.portal.service.persistence.UserPersistence
Parameters:
pk - the primary key of the user to clear the associated teams from
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

removeTeam

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

Specified by:
removeTeam in interface com.liferay.portal.service.persistence.UserPersistence
Parameters:
pk - the primary key of the user
teamPK - the primary key of the team
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

removeTeam

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

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

removeTeams

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

Specified by:
removeTeams in interface com.liferay.portal.service.persistence.UserPersistence
Parameters:
pk - the primary key of the user
teamPKs - the primary keys of the teams
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

removeTeams

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

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

setTeams

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

Specified by:
setTeams in interface com.liferay.portal.service.persistence.UserPersistence
Parameters:
pk - the primary key of the user
teamPKs - the primary keys of the teams to be associated with the user
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

setTeams

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

Specified by:
setTeams in interface com.liferay.portal.service.persistence.UserPersistence
Parameters:
pk - the primary key of the user
teams - the teams to be associated with the user
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

getUserGroups

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

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

getUserGroups

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

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:
getUserGroups in interface com.liferay.portal.service.persistence.UserPersistence
Parameters:
pk - the primary key of the user
start - the lower bound of the range of users
end - the upper bound of the range of users (not inclusive)
Returns:
the range of user groups associated with the user
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

getUserGroups

public java.util.List<com.liferay.portal.model.UserGroup> getUserGroups(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 user groups associated with the user.

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:
getUserGroups in interface com.liferay.portal.service.persistence.UserPersistence
Parameters:
pk - the primary key of the user
start - the lower bound of the range of users
end - the upper bound of the range of users (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of user groups associated with the user
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

getUserGroupsSize

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

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

containsUserGroup

public boolean containsUserGroup(long pk,
                                 long userGroupPK)
                          throws com.liferay.portal.kernel.exception.SystemException
Returns true if the user group is associated with the user.

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

containsUserGroups

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

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

addUserGroup

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

Specified by:
addUserGroup in interface com.liferay.portal.service.persistence.UserPersistence
Parameters:
pk - the primary key of the user
userGroupPK - the primary key of the user group
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

addUserGroup

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

Specified by:
addUserGroup in interface com.liferay.portal.service.persistence.UserPersistence
Parameters:
pk - the primary key of the user
userGroup - the user group
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

addUserGroups

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

Specified by:
addUserGroups in interface com.liferay.portal.service.persistence.UserPersistence
Parameters:
pk - the primary key of the user
userGroupPKs - the primary keys of the user groups
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

addUserGroups

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

Specified by:
addUserGroups in interface com.liferay.portal.service.persistence.UserPersistence
Parameters:
pk - the primary key of the user
userGroups - the user groups
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

clearUserGroups

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

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

removeUserGroup

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

Specified by:
removeUserGroup in interface com.liferay.portal.service.persistence.UserPersistence
Parameters:
pk - the primary key of the user
userGroupPK - the primary key of the user group
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

removeUserGroup

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

Specified by:
removeUserGroup in interface com.liferay.portal.service.persistence.UserPersistence
Parameters:
pk - the primary key of the user
userGroup - the user group
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

removeUserGroups

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

Specified by:
removeUserGroups in interface com.liferay.portal.service.persistence.UserPersistence
Parameters:
pk - the primary key of the user
userGroupPKs - the primary keys of the user groups
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

removeUserGroups

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

Specified by:
removeUserGroups in interface com.liferay.portal.service.persistence.UserPersistence
Parameters:
pk - the primary key of the user
userGroups - the user groups
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

setUserGroups

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

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

setUserGroups

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

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

afterPropertiesSet

public void afterPropertiesSet()
Initializes the user persistence.


destroy

public void destroy()