|
Liferay 6.0.5 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.liferay.portal.service.persistence.impl.BasePersistenceImpl<User> com.liferay.portal.service.persistence.UserPersistenceImpl
public class UserPersistenceImpl
The persistence implementation for the user service.
Never modify or reference this class directly. Always use UserUtil
to access the user persistence. Modify service.xml
and rerun ServiceBuilder to regenerate this class.
Caching information and settings can be found in portal.properties
UserPersistence
,
UserUtil
Fields inherited from class com.liferay.portal.service.persistence.impl.BasePersistenceImpl |
---|
COUNT_COLUMN_NAME, 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,
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,
List<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,
Organization organization)
Adds an association between the user and the organization. |
void |
addOrganizations(long pk,
List<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,
Permission permission)
Adds an association between the user and the permission. |
void |
addPermissions(long pk,
List<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,
Role role)
Adds an association between the user and the role. |
void |
addRoles(long pk,
List<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,
Team team)
Adds an association between the user and the team. |
void |
addTeams(long pk,
List<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,
UserGroup userGroup)
Adds an association between the user and the user group. |
void |
addUserGroups(long pk,
List<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(List<User> users)
Caches the users in the entity cache if it is enabled. |
void |
cacheResult(User user)
Caches the user in the entity cache if it is enabled. |
void |
clearCache()
Clears the cache for all users. |
void |
clearCache(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. |
void |
clearUserGroups(long pk)
Clears all associations between the user and its user groups. |
boolean |
containsGroup(long pk,
long groupPK)
Determines whether the group is associated with the user. |
boolean |
containsGroups(long pk)
Determines whether the user has any groups associated with it. |
boolean |
containsOrganization(long pk,
long organizationPK)
Determines whether the organization is associated with the user. |
boolean |
containsOrganizations(long pk)
Determines whether the user has any organizations associated with it. |
boolean |
containsPermission(long pk,
long permissionPK)
Determines whether the permission is associated with the user. |
boolean |
containsPermissions(long pk)
Determines whether the user has any permissions associated with it. |
boolean |
containsRole(long pk,
long rolePK)
Determines whether the role is associated with the user. |
boolean |
containsRoles(long pk)
Determines whether the user has any roles associated with it. |
boolean |
containsTeam(long pk,
long teamPK)
Determines whether the team is associated with the user. |
boolean |
containsTeams(long pk)
Determines whether the user has any teams associated with it. |
boolean |
containsUserGroup(long pk,
long userGroupPK)
Determines whether the user group is associated with the user. |
boolean |
containsUserGroups(long pk)
Determines whether the user has any user groups associated with it. |
int |
countAll()
Counts all the users. |
int |
countByC_A(long companyId,
boolean active)
Counts all the users where companyId = ? and active = ?. |
int |
countByC_DU(long companyId,
boolean defaultUser)
Counts all the users where companyId = ? and defaultUser = ?. |
int |
countByC_EA(long companyId,
String emailAddress)
Counts all the users where companyId = ? and emailAddress = ?. |
int |
countByC_FID(long companyId,
long facebookId)
Counts all the users where companyId = ? and facebookId = ?. |
int |
countByC_O(long companyId,
String openId)
Counts all the users where companyId = ? and openId = ?. |
int |
countByC_SN(long companyId,
String screenName)
Counts all the users where companyId = ? and screenName = ?. |
int |
countByC_U(long companyId,
long userId)
Counts all the users where companyId = ? and userId = ?. |
int |
countByCompanyId(long companyId)
Counts all the users where companyId = ?. |
int |
countByContactId(long contactId)
Counts all the users where contactId = ?. |
int |
countByEmailAddress(String emailAddress)
Counts all the users where emailAddress = ?. |
int |
countByPortraitId(long portraitId)
Counts all the users where portraitId = ?. |
int |
countByUuid(String uuid)
Counts all the users where uuid = ?. |
User |
create(long userId)
Creates a new user with the primary key. |
User |
fetchByC_DU(long companyId,
boolean defaultUser)
Finds the user where companyId = ? and defaultUser = ? or returns null if it could not be found. |
User |
fetchByC_DU(long companyId,
boolean defaultUser,
boolean retrieveFromCache)
Finds the user where companyId = ? and defaultUser = ? or returns null if it could not be found, optionally using the finder cache. |
User |
fetchByC_EA(long companyId,
String emailAddress)
Finds the user where companyId = ? and emailAddress = ? or returns null if it could not be found. |
User |
fetchByC_EA(long companyId,
String emailAddress,
boolean retrieveFromCache)
Finds the user where companyId = ? and emailAddress = ? or returns null if it could not be found, optionally using the finder cache. |
User |
fetchByC_FID(long companyId,
long facebookId)
Finds the user where companyId = ? and facebookId = ? or returns null if it could not be found. |
User |
fetchByC_FID(long companyId,
long facebookId,
boolean retrieveFromCache)
Finds the user where companyId = ? and facebookId = ? or returns null if it could not be found, optionally using the finder cache. |
User |
fetchByC_O(long companyId,
String openId)
Finds the user where companyId = ? and openId = ? or returns null if it could not be found. |
User |
fetchByC_O(long companyId,
String openId,
boolean retrieveFromCache)
Finds the user where companyId = ? and openId = ? or returns null if it could not be found, optionally using the finder cache. |
User |
fetchByC_SN(long companyId,
String screenName)
Finds the user where companyId = ? and screenName = ? or returns null if it could not be found. |
User |
fetchByC_SN(long companyId,
String screenName,
boolean retrieveFromCache)
Finds the user where companyId = ? and screenName = ? or returns null if it could not be found, optionally using the finder cache. |
User |
fetchByC_U(long companyId,
long userId)
Finds the user where companyId = ? and userId = ? or returns null if it could not be found. |
User |
fetchByC_U(long companyId,
long userId,
boolean retrieveFromCache)
Finds the user where companyId = ? and userId = ? or returns null if it could not be found, optionally using the finder cache. |
User |
fetchByContactId(long contactId)
Finds the user where contactId = ? or returns null if it could not be found. |
User |
fetchByContactId(long contactId,
boolean retrieveFromCache)
Finds the user where contactId = ? or returns null if it could not be found, optionally using the finder cache. |
User |
fetchByPortraitId(long portraitId)
Finds the user where portraitId = ? or returns null if it could not be found. |
User |
fetchByPortraitId(long portraitId,
boolean retrieveFromCache)
Finds the user where portraitId = ? or returns null if it could not be found, optionally using the finder cache. |
User |
fetchByPrimaryKey(long userId)
Finds the user with the primary key or returns null if it could not be found. |
User |
fetchByPrimaryKey(Serializable primaryKey)
Finds the user with the primary key or returns null if it could not be found. |
List<User> |
findAll()
Finds all the users. |
List<User> |
findAll(int start,
int end)
Finds a range of all the users. |
List<User> |
findAll(int start,
int end,
OrderByComparator orderByComparator)
Finds an ordered range of all the users. |
User |
findByC_A_First(long companyId,
boolean active,
OrderByComparator orderByComparator)
Finds the first user in the ordered set where companyId = ? and active = ?. |
User |
findByC_A_Last(long companyId,
boolean active,
OrderByComparator orderByComparator)
Finds the last user in the ordered set where companyId = ? and active = ?. |
User[] |
findByC_A_PrevAndNext(long userId,
long companyId,
boolean active,
OrderByComparator orderByComparator)
Finds the users before and after the current user in the ordered set where companyId = ? and active = ?. |
List<User> |
findByC_A(long companyId,
boolean active)
Finds all the users where companyId = ? and active = ?. |
List<User> |
findByC_A(long companyId,
boolean active,
int start,
int end)
Finds a range of all the users where companyId = ? and active = ?. |
List<User> |
findByC_A(long companyId,
boolean active,
int start,
int end,
OrderByComparator orderByComparator)
Finds an ordered range of all the users where companyId = ? and active = ?. |
User |
findByC_DU(long companyId,
boolean defaultUser)
Finds the user where companyId = ? and defaultUser = ? or throws a NoSuchUserException if it could not be found. |
User |
findByC_EA(long companyId,
String emailAddress)
Finds the user where companyId = ? and emailAddress = ? or throws a NoSuchUserException if it could not be found. |
User |
findByC_FID(long companyId,
long facebookId)
Finds the user where companyId = ? and facebookId = ? or throws a NoSuchUserException if it could not be found. |
User |
findByC_O(long companyId,
String openId)
Finds the user where companyId = ? and openId = ? or throws a NoSuchUserException if it could not be found. |
User |
findByC_SN(long companyId,
String screenName)
Finds the user where companyId = ? and screenName = ? or throws a NoSuchUserException if it could not be found. |
User |
findByC_U(long companyId,
long userId)
Finds the user where companyId = ? and userId = ? or throws a NoSuchUserException if it could not be found. |
User |
findByCompanyId_First(long companyId,
OrderByComparator orderByComparator)
Finds the first user in the ordered set where companyId = ?. |
User |
findByCompanyId_Last(long companyId,
OrderByComparator orderByComparator)
Finds the last user in the ordered set where companyId = ?. |
User[] |
findByCompanyId_PrevAndNext(long userId,
long companyId,
OrderByComparator orderByComparator)
Finds the users before and after the current user in the ordered set where companyId = ?. |
List<User> |
findByCompanyId(long companyId)
Finds all the users where companyId = ?. |
List<User> |
findByCompanyId(long companyId,
int start,
int end)
Finds a range of all the users where companyId = ?. |
List<User> |
findByCompanyId(long companyId,
int start,
int end,
OrderByComparator orderByComparator)
Finds an ordered range of all the users where companyId = ?. |
User |
findByContactId(long contactId)
Finds the user where contactId = ? or throws a NoSuchUserException if it could not be found. |
User |
findByEmailAddress_First(String emailAddress,
OrderByComparator orderByComparator)
Finds the first user in the ordered set where emailAddress = ?. |
User |
findByEmailAddress_Last(String emailAddress,
OrderByComparator orderByComparator)
Finds the last user in the ordered set where emailAddress = ?. |
User[] |
findByEmailAddress_PrevAndNext(long userId,
String emailAddress,
OrderByComparator orderByComparator)
Finds the users before and after the current user in the ordered set where emailAddress = ?. |
List<User> |
findByEmailAddress(String emailAddress)
Finds all the users where emailAddress = ?. |
List<User> |
findByEmailAddress(String emailAddress,
int start,
int end)
Finds a range of all the users where emailAddress = ?. |
List<User> |
findByEmailAddress(String emailAddress,
int start,
int end,
OrderByComparator orderByComparator)
Finds an ordered range of all the users where emailAddress = ?. |
User |
findByPortraitId(long portraitId)
Finds the user where portraitId = ? or throws a NoSuchUserException if it could not be found. |
User |
findByPrimaryKey(long userId)
Finds the user with the primary key or throws a NoSuchUserException if it could not be found. |
User |
findByPrimaryKey(Serializable primaryKey)
Finds the user with the primary key or throws a NoSuchModelException if it could not be found. |
User |
findByUuid_First(String uuid,
OrderByComparator orderByComparator)
Finds the first user in the ordered set where uuid = ?. |
User |
findByUuid_Last(String uuid,
OrderByComparator orderByComparator)
Finds the last user in the ordered set where uuid = ?. |
User[] |
findByUuid_PrevAndNext(long userId,
String uuid,
OrderByComparator orderByComparator)
Finds the users before and after the current user in the ordered set where uuid = ?. |
List<User> |
findByUuid(String uuid)
Finds all the users where uuid = ?. |
List<User> |
findByUuid(String uuid,
int start,
int end)
Finds a range of all the users where uuid = ?. |
List<User> |
findByUuid(String uuid,
int start,
int end,
OrderByComparator orderByComparator)
Finds an ordered range of all the users where uuid = ?. |
protected User |
getByC_A_PrevAndNext(Session session,
User user,
long companyId,
boolean active,
OrderByComparator orderByComparator,
boolean previous)
|
protected User |
getByCompanyId_PrevAndNext(Session session,
User user,
long companyId,
OrderByComparator orderByComparator,
boolean previous)
|
protected User |
getByEmailAddress_PrevAndNext(Session session,
User user,
String emailAddress,
OrderByComparator orderByComparator,
boolean previous)
|
protected User |
getByUuid_PrevAndNext(Session session,
User user,
String uuid,
OrderByComparator orderByComparator,
boolean previous)
|
List<Group> |
getGroups(long pk)
Gets all the groups associated with the user. |
List<Group> |
getGroups(long pk,
int start,
int end)
Gets a range of all the groups associated with the user. |
List<Group> |
getGroups(long pk,
int start,
int end,
OrderByComparator orderByComparator)
Gets an ordered range of all the groups associated with the user. |
int |
getGroupsSize(long pk)
Gets the number of groups associated with the user. |
List<Organization> |
getOrganizations(long pk)
Gets all the organizations associated with the user. |
List<Organization> |
getOrganizations(long pk,
int start,
int end)
Gets a range of all the organizations associated with the user. |
List<Organization> |
getOrganizations(long pk,
int start,
int end,
OrderByComparator orderByComparator)
Gets an ordered range of all the organizations associated with the user. |
int |
getOrganizationsSize(long pk)
Gets the number of organizations associated with the user. |
List<Permission> |
getPermissions(long pk)
Gets all the permissions associated with the user. |
List<Permission> |
getPermissions(long pk,
int start,
int end)
Gets a range of all the permissions associated with the user. |
List<Permission> |
getPermissions(long pk,
int start,
int end,
OrderByComparator orderByComparator)
Gets an ordered range of all the permissions associated with the user. |
int |
getPermissionsSize(long pk)
Gets the number of permissions associated with the user. |
List<Role> |
getRoles(long pk)
Gets all the roles associated with the user. |
List<Role> |
getRoles(long pk,
int start,
int end)
Gets a range of all the roles associated with the user. |
List<Role> |
getRoles(long pk,
int start,
int end,
OrderByComparator orderByComparator)
Gets an ordered range of all the roles associated with the user. |
int |
getRolesSize(long pk)
Gets the number of roles associated with the user. |
List<Team> |
getTeams(long pk)
Gets all the teams associated with the user. |
List<Team> |
getTeams(long pk,
int start,
int end)
Gets a range of all the teams associated with the user. |
List<Team> |
getTeams(long pk,
int start,
int end,
OrderByComparator orderByComparator)
Gets an ordered range of all the teams associated with the user. |
int |
getTeamsSize(long pk)
Gets the number of teams associated with the user. |
List<UserGroup> |
getUserGroups(long pk)
Gets all the user groups associated with the user. |
List<UserGroup> |
getUserGroups(long pk,
int start,
int end)
Gets a range of all the user groups associated with the user. |
List<UserGroup> |
getUserGroups(long pk,
int start,
int end,
OrderByComparator orderByComparator)
Gets an ordered range of all the user groups associated with the user. |
int |
getUserGroupsSize(long pk)
Gets the number of user groups associated with the user. |
User |
remove(long userId)
Removes the user with the primary key from the database. |
User |
remove(Serializable primaryKey)
Removes the user with the primary key from the database. |
void |
removeAll()
Removes all the users from the database. |
void |
removeByC_A(long companyId,
boolean active)
Removes all the users where companyId = ? and active = ? 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,
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,
String openId)
Removes the user where companyId = ? and openId = ? from the database. |
void |
removeByC_SN(long companyId,
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(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(String uuid)
Removes all the users where uuid = ? from the database. |
void |
removeGroup(long pk,
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,
List<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 User |
removeImpl(User user)
Removes the model instance from the database. |
void |
removeOrganization(long pk,
long organizationPK)
Removes the association between the user and the organization. |
void |
removeOrganization(long pk,
Organization organization)
Removes the association between the user and the organization. |
void |
removeOrganizations(long pk,
List<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,
Permission permission)
Removes the association between the user and the permission. |
void |
removePermissions(long pk,
List<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,
Role role)
Removes the association between the user and the role. |
void |
removeRoles(long pk,
List<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,
Team team)
Removes the association between the user and the team. |
void |
removeTeams(long pk,
List<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,
UserGroup userGroup)
Removes the association between the user and the user group. |
void |
removeUserGroups(long pk,
List<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,
List<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,
List<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,
List<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,
List<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,
List<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,
List<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 User |
toUnwrappedModel(User user)
|
User |
updateImpl(User user,
boolean merge)
Updates the model instance in the database or adds it if it does not yet exist. |
Methods inherited from class com.liferay.portal.service.persistence.impl.BasePersistenceImpl |
---|
appendOrderByComparator, closeSession, countWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, getDataSource, 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 |
---|
countWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, getDataSource, getListeners, registerListener, remove, setDataSource, unregisterListener, update, update |
Field Detail |
---|
public static final String FINDER_CLASS_NAME_ENTITY
public static final String FINDER_CLASS_NAME_LIST
public static final FinderPath FINDER_PATH_FIND_BY_UUID
public static final FinderPath FINDER_PATH_COUNT_BY_UUID
public static final FinderPath FINDER_PATH_FIND_BY_COMPANYID
public static final FinderPath FINDER_PATH_COUNT_BY_COMPANYID
public static final FinderPath FINDER_PATH_FETCH_BY_CONTACTID
public static final FinderPath FINDER_PATH_COUNT_BY_CONTACTID
public static final FinderPath FINDER_PATH_FIND_BY_EMAILADDRESS
public static final FinderPath FINDER_PATH_COUNT_BY_EMAILADDRESS
public static final FinderPath FINDER_PATH_FETCH_BY_PORTRAITID
public static final FinderPath FINDER_PATH_COUNT_BY_PORTRAITID
public static final FinderPath FINDER_PATH_FETCH_BY_C_U
public static final FinderPath FINDER_PATH_COUNT_BY_C_U
public static final FinderPath FINDER_PATH_FETCH_BY_C_DU
public static final FinderPath FINDER_PATH_COUNT_BY_C_DU
public static final FinderPath FINDER_PATH_FETCH_BY_C_SN
public static final FinderPath FINDER_PATH_COUNT_BY_C_SN
public static final FinderPath FINDER_PATH_FETCH_BY_C_EA
public static final FinderPath FINDER_PATH_COUNT_BY_C_EA
public static final FinderPath FINDER_PATH_FETCH_BY_C_FID
public static final FinderPath FINDER_PATH_COUNT_BY_C_FID
public static final FinderPath FINDER_PATH_FETCH_BY_C_O
public static final FinderPath FINDER_PATH_COUNT_BY_C_O
public static final FinderPath FINDER_PATH_FIND_BY_C_A
public static final FinderPath FINDER_PATH_COUNT_BY_C_A
public static final FinderPath FINDER_PATH_FIND_ALL
public static final FinderPath FINDER_PATH_COUNT_ALL
public static final FinderPath FINDER_PATH_GET_GROUPS
public static final FinderPath FINDER_PATH_GET_GROUPS_SIZE
public static final FinderPath FINDER_PATH_CONTAINS_GROUP
public static final FinderPath FINDER_PATH_GET_ORGANIZATIONS
public static final FinderPath FINDER_PATH_GET_ORGANIZATIONS_SIZE
public static final FinderPath FINDER_PATH_CONTAINS_ORGANIZATION
public static final FinderPath FINDER_PATH_GET_PERMISSIONS
public static final FinderPath FINDER_PATH_GET_PERMISSIONS_SIZE
public static final FinderPath FINDER_PATH_CONTAINS_PERMISSION
public static final FinderPath FINDER_PATH_GET_ROLES
public static final FinderPath FINDER_PATH_GET_ROLES_SIZE
public static final FinderPath FINDER_PATH_CONTAINS_ROLE
public static final FinderPath FINDER_PATH_GET_TEAMS
public static final FinderPath FINDER_PATH_GET_TEAMS_SIZE
public static final FinderPath FINDER_PATH_CONTAINS_TEAM
public static final FinderPath FINDER_PATH_GET_USERGROUPS
public static final FinderPath FINDER_PATH_GET_USERGROUPS_SIZE
public static final FinderPath FINDER_PATH_CONTAINS_USERGROUP
@BeanReference(type=AccountPersistence.class) protected AccountPersistence accountPersistence
@BeanReference(type=AddressPersistence.class) protected AddressPersistence addressPersistence
@BeanReference(type=BrowserTrackerPersistence.class) protected BrowserTrackerPersistence browserTrackerPersistence
@BeanReference(type=ClassNamePersistence.class) protected ClassNamePersistence classNamePersistence
@BeanReference(type=ClusterGroupPersistence.class) protected ClusterGroupPersistence clusterGroupPersistence
@BeanReference(type=CompanyPersistence.class) protected CompanyPersistence companyPersistence
@BeanReference(type=ContactPersistence.class) protected ContactPersistence contactPersistence
@BeanReference(type=CountryPersistence.class) protected CountryPersistence countryPersistence
@BeanReference(type=EmailAddressPersistence.class) protected EmailAddressPersistence emailAddressPersistence
@BeanReference(type=GroupPersistence.class) protected GroupPersistence groupPersistence
@BeanReference(type=ImagePersistence.class) protected ImagePersistence imagePersistence
@BeanReference(type=LayoutPersistence.class) protected LayoutPersistence layoutPersistence
@BeanReference(type=LayoutPrototypePersistence.class) protected LayoutPrototypePersistence layoutPrototypePersistence
@BeanReference(type=LayoutSetPersistence.class) protected LayoutSetPersistence layoutSetPersistence
@BeanReference(type=LayoutSetPrototypePersistence.class) protected LayoutSetPrototypePersistence layoutSetPrototypePersistence
@BeanReference(type=ListTypePersistence.class) protected ListTypePersistence listTypePersistence
@BeanReference(type=LockPersistence.class) protected LockPersistence lockPersistence
@BeanReference(type=MembershipRequestPersistence.class) protected MembershipRequestPersistence membershipRequestPersistence
@BeanReference(type=OrganizationPersistence.class) protected OrganizationPersistence organizationPersistence
@BeanReference(type=OrgGroupPermissionPersistence.class) protected OrgGroupPermissionPersistence orgGroupPermissionPersistence
@BeanReference(type=OrgGroupRolePersistence.class) protected OrgGroupRolePersistence orgGroupRolePersistence
@BeanReference(type=OrgLaborPersistence.class) protected OrgLaborPersistence orgLaborPersistence
@BeanReference(type=PasswordPolicyPersistence.class) protected PasswordPolicyPersistence passwordPolicyPersistence
@BeanReference(type=PasswordPolicyRelPersistence.class) protected PasswordPolicyRelPersistence passwordPolicyRelPersistence
@BeanReference(type=PasswordTrackerPersistence.class) protected PasswordTrackerPersistence passwordTrackerPersistence
@BeanReference(type=PermissionPersistence.class) protected PermissionPersistence permissionPersistence
@BeanReference(type=PhonePersistence.class) protected PhonePersistence phonePersistence
@BeanReference(type=PluginSettingPersistence.class) protected PluginSettingPersistence pluginSettingPersistence
@BeanReference(type=PortletPersistence.class) protected PortletPersistence portletPersistence
@BeanReference(type=PortletItemPersistence.class) protected PortletItemPersistence portletItemPersistence
@BeanReference(type=PortletPreferencesPersistence.class) protected PortletPreferencesPersistence portletPreferencesPersistence
@BeanReference(type=RegionPersistence.class) protected RegionPersistence regionPersistence
@BeanReference(type=ReleasePersistence.class) protected ReleasePersistence releasePersistence
@BeanReference(type=ResourcePersistence.class) protected ResourcePersistence resourcePersistence
@BeanReference(type=ResourceActionPersistence.class) protected ResourceActionPersistence resourceActionPersistence
@BeanReference(type=ResourceCodePersistence.class) protected ResourceCodePersistence resourceCodePersistence
@BeanReference(type=ResourcePermissionPersistence.class) protected ResourcePermissionPersistence resourcePermissionPersistence
@BeanReference(type=RolePersistence.class) protected RolePersistence rolePersistence
@BeanReference(type=ServiceComponentPersistence.class) protected ServiceComponentPersistence serviceComponentPersistence
@BeanReference(type=ShardPersistence.class) protected ShardPersistence shardPersistence
@BeanReference(type=SubscriptionPersistence.class) protected SubscriptionPersistence subscriptionPersistence
@BeanReference(type=TicketPersistence.class) protected TicketPersistence ticketPersistence
@BeanReference(type=TeamPersistence.class) protected TeamPersistence teamPersistence
@BeanReference(type=UserPersistence.class) protected UserPersistence userPersistence
@BeanReference(type=UserGroupPersistence.class) protected UserGroupPersistence userGroupPersistence
@BeanReference(type=UserGroupGroupRolePersistence.class) protected UserGroupGroupRolePersistence userGroupGroupRolePersistence
@BeanReference(type=UserGroupRolePersistence.class) protected UserGroupRolePersistence userGroupRolePersistence
@BeanReference(type=UserIdMapperPersistence.class) protected UserIdMapperPersistence userIdMapperPersistence
@BeanReference(type=UserTrackerPersistence.class) protected UserTrackerPersistence userTrackerPersistence
@BeanReference(type=UserTrackerPathPersistence.class) protected UserTrackerPathPersistence userTrackerPathPersistence
@BeanReference(type=WebDAVPropsPersistence.class) protected WebDAVPropsPersistence webDAVPropsPersistence
@BeanReference(type=WebsitePersistence.class) protected WebsitePersistence websitePersistence
@BeanReference(type=WorkflowDefinitionLinkPersistence.class) protected WorkflowDefinitionLinkPersistence workflowDefinitionLinkPersistence
@BeanReference(type=WorkflowInstanceLinkPersistence.class) protected WorkflowInstanceLinkPersistence workflowInstanceLinkPersistence
@BeanReference(type=AnnouncementsDeliveryPersistence.class) protected AnnouncementsDeliveryPersistence announcementsDeliveryPersistence
@BeanReference(type=AssetEntryPersistence.class) protected AssetEntryPersistence assetEntryPersistence
@BeanReference(type=BlogsStatsUserPersistence.class) protected BlogsStatsUserPersistence blogsStatsUserPersistence
@BeanReference(type=DLFileRankPersistence.class) protected DLFileRankPersistence dlFileRankPersistence
@BeanReference(type=ExpandoValuePersistence.class) protected ExpandoValuePersistence expandoValuePersistence
@BeanReference(type=MBBanPersistence.class) protected MBBanPersistence mbBanPersistence
@BeanReference(type=MBMessagePersistence.class) protected MBMessagePersistence mbMessagePersistence
@BeanReference(type=MBMessageFlagPersistence.class) protected MBMessageFlagPersistence mbMessageFlagPersistence
@BeanReference(type=MBStatsUserPersistence.class) protected MBStatsUserPersistence mbStatsUserPersistence
@BeanReference(type=ShoppingCartPersistence.class) protected ShoppingCartPersistence shoppingCartPersistence
@BeanReference(type=SocialActivityPersistence.class) protected SocialActivityPersistence socialActivityPersistence
@BeanReference(type=SocialRequestPersistence.class) protected SocialRequestPersistence socialRequestPersistence
protected UserPersistenceImpl.ContainsGroup containsGroup
protected UserPersistenceImpl.AddGroup addGroup
protected UserPersistenceImpl.ClearGroups clearGroups
protected UserPersistenceImpl.RemoveGroup removeGroup
protected UserPersistenceImpl.ContainsOrganization containsOrganization
protected UserPersistenceImpl.AddOrganization addOrganization
protected UserPersistenceImpl.ClearOrganizations clearOrganizations
protected UserPersistenceImpl.RemoveOrganization removeOrganization
protected UserPersistenceImpl.ContainsPermission containsPermission
protected UserPersistenceImpl.AddPermission addPermission
protected UserPersistenceImpl.ClearPermissions clearPermissions
protected UserPersistenceImpl.RemovePermission removePermission
protected UserPersistenceImpl.ContainsRole containsRole
protected UserPersistenceImpl.AddRole addRole
protected UserPersistenceImpl.ClearRoles clearRoles
protected UserPersistenceImpl.RemoveRole removeRole
protected UserPersistenceImpl.ContainsTeam containsTeam
protected UserPersistenceImpl.AddTeam addTeam
protected UserPersistenceImpl.ClearTeams clearTeams
protected UserPersistenceImpl.RemoveTeam removeTeam
protected UserPersistenceImpl.ContainsUserGroup containsUserGroup
protected UserPersistenceImpl.AddUserGroup addUserGroup
protected UserPersistenceImpl.ClearUserGroups clearUserGroups
protected UserPersistenceImpl.RemoveUserGroup removeUserGroup
Constructor Detail |
---|
public UserPersistenceImpl()
Method Detail |
---|
public void cacheResult(User user)
cacheResult
in interface UserPersistence
user
- the user to cachepublic void cacheResult(List<User> users)
cacheResult
in interface UserPersistence
users
- the users to cachepublic void clearCache()
The EntityCache
and FinderCache
are both cleared by this method.
clearCache
in interface BasePersistence<User>
clearCache
in class BasePersistenceImpl<User>
public void clearCache(User user)
The EntityCache
and FinderCache
are both cleared by this method.
clearCache
in interface BasePersistence<User>
clearCache
in class BasePersistenceImpl<User>
user
- the instance of this model to clear the cache forpublic User create(long userId)
create
in interface UserPersistence
userId
- the primary key for the new user
public User remove(Serializable primaryKey) throws NoSuchModelException, SystemException
remove
in interface BasePersistence<User>
remove
in class BasePersistenceImpl<User>
primaryKey
- the primary key of the user to remove
NoSuchModelException
- if a user with the primary key could not be found
SystemException
- if a system exception occurredpublic User remove(long userId) throws NoSuchUserException, SystemException
remove
in interface UserPersistence
userId
- the primary key of the user to remove
NoSuchUserException
- if a user with the primary key could not be found
SystemException
- if a system exception occurredprotected User removeImpl(User user) throws SystemException
BasePersistenceImpl
BasePersistenceImpl.update(BaseModel,
boolean)
depends on this method to implement the remove operation; it
only notifies the model listeners.
removeImpl
in class BasePersistenceImpl<User>
user
- the model instance to remove
SystemException
- if a system exception occurredpublic User updateImpl(User user, boolean merge) throws SystemException
BasePersistenceImpl
BasePersistenceImpl.remove(BaseModel)
depends on this method to implement the
update operation; it only notifies the model listeners.
updateImpl
in interface UserPersistence
updateImpl
in class BasePersistenceImpl<User>
user
- the model instance to updatemerge
- whether to merge the model instance with the current
session. See BatchSession.update(
com.liferay.portal.kernel.dao.orm.Session, BaseModel, boolean)
for an explanation.
SystemException
- if a system exception occurredprotected User toUnwrappedModel(User user)
public User findByPrimaryKey(Serializable primaryKey) throws NoSuchModelException, SystemException
NoSuchModelException
if it could not be found.
findByPrimaryKey
in interface BasePersistence<User>
findByPrimaryKey
in class BasePersistenceImpl<User>
primaryKey
- the primary key of the user to find
NoSuchModelException
- if a user with the primary key could not be found
SystemException
- if a system exception occurredpublic User findByPrimaryKey(long userId) throws NoSuchUserException, SystemException
NoSuchUserException
if it could not be found.
findByPrimaryKey
in interface UserPersistence
userId
- the primary key of the user to find
NoSuchUserException
- if a user with the primary key could not be found
SystemException
- if a system exception occurredpublic User fetchByPrimaryKey(Serializable primaryKey) throws SystemException
null
if it could not be found.
fetchByPrimaryKey
in interface BasePersistence<User>
fetchByPrimaryKey
in class BasePersistenceImpl<User>
primaryKey
- the primary key of the user to find
null
if a user with the primary key could not be found
SystemException
- if a system exception occurredpublic User fetchByPrimaryKey(long userId) throws SystemException
null
if it could not be found.
fetchByPrimaryKey
in interface UserPersistence
userId
- the primary key of the user to find
null
if a user with the primary key could not be found
SystemException
- if a system exception occurredpublic List<User> findByUuid(String uuid) throws SystemException
findByUuid
in interface UserPersistence
uuid
- the uuid to search with
SystemException
- if a system exception occurredpublic List<User> findByUuid(String uuid, int start, int end) throws SystemException
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil.ALL_POS
will return the full result set.
findByUuid
in interface UserPersistence
uuid
- the uuid to search withstart
- the lower bound of the range of users to returnend
- the upper bound of the range of users to return (not inclusive)
SystemException
- if a system exception occurredpublic List<User> findByUuid(String uuid, int start, int end, OrderByComparator orderByComparator) throws SystemException
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil.ALL_POS
will return the full result set.
findByUuid
in interface UserPersistence
uuid
- the uuid to search withstart
- the lower bound of the range of users to returnend
- the upper bound of the range of users to return (not inclusive)orderByComparator
- the comparator to order the results by
SystemException
- if a system exception occurredpublic User findByUuid_First(String uuid, OrderByComparator orderByComparator) throws NoSuchUserException, SystemException
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil.ALL_POS
will return the full result set.
findByUuid_First
in interface UserPersistence
uuid
- the uuid to search withorderByComparator
- the comparator to order the set by
NoSuchUserException
- if a matching user could not be found
SystemException
- if a system exception occurredpublic User findByUuid_Last(String uuid, OrderByComparator orderByComparator) throws NoSuchUserException, SystemException
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil.ALL_POS
will return the full result set.
findByUuid_Last
in interface UserPersistence
uuid
- the uuid to search withorderByComparator
- the comparator to order the set by
NoSuchUserException
- if a matching user could not be found
SystemException
- if a system exception occurredpublic User[] findByUuid_PrevAndNext(long userId, String uuid, OrderByComparator orderByComparator) throws NoSuchUserException, SystemException
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil.ALL_POS
will return the full result set.
findByUuid_PrevAndNext
in interface UserPersistence
userId
- the primary key of the current useruuid
- the uuid to search withorderByComparator
- the comparator to order the set by
NoSuchUserException
- if a user with the primary key could not be found
SystemException
- if a system exception occurredprotected User getByUuid_PrevAndNext(Session session, User user, String uuid, OrderByComparator orderByComparator, boolean previous)
public List<User> findByCompanyId(long companyId) throws SystemException
findByCompanyId
in interface UserPersistence
companyId
- the company id to search with
SystemException
- if a system exception occurredpublic List<User> findByCompanyId(long companyId, int start, int end) throws SystemException
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil.ALL_POS
will return the full result set.
findByCompanyId
in interface UserPersistence
companyId
- the company id to search withstart
- the lower bound of the range of users to returnend
- the upper bound of the range of users to return (not inclusive)
SystemException
- if a system exception occurredpublic List<User> findByCompanyId(long companyId, int start, int end, OrderByComparator orderByComparator) throws SystemException
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil.ALL_POS
will return the full result set.
findByCompanyId
in interface UserPersistence
companyId
- the company id to search withstart
- the lower bound of the range of users to returnend
- the upper bound of the range of users to return (not inclusive)orderByComparator
- the comparator to order the results by
SystemException
- if a system exception occurredpublic User findByCompanyId_First(long companyId, OrderByComparator orderByComparator) throws NoSuchUserException, SystemException
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil.ALL_POS
will return the full result set.
findByCompanyId_First
in interface UserPersistence
companyId
- the company id to search withorderByComparator
- the comparator to order the set by
NoSuchUserException
- if a matching user could not be found
SystemException
- if a system exception occurredpublic User findByCompanyId_Last(long companyId, OrderByComparator orderByComparator) throws NoSuchUserException, SystemException
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil.ALL_POS
will return the full result set.
findByCompanyId_Last
in interface UserPersistence
companyId
- the company id to search withorderByComparator
- the comparator to order the set by
NoSuchUserException
- if a matching user could not be found
SystemException
- if a system exception occurredpublic User[] findByCompanyId_PrevAndNext(long userId, long companyId, OrderByComparator orderByComparator) throws NoSuchUserException, SystemException
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil.ALL_POS
will return the full result set.
findByCompanyId_PrevAndNext
in interface UserPersistence
userId
- the primary key of the current usercompanyId
- the company id to search withorderByComparator
- the comparator to order the set by
NoSuchUserException
- if a user with the primary key could not be found
SystemException
- if a system exception occurredprotected User getByCompanyId_PrevAndNext(Session session, User user, long companyId, OrderByComparator orderByComparator, boolean previous)
public User findByContactId(long contactId) throws NoSuchUserException, SystemException
NoSuchUserException
if it could not be found.
findByContactId
in interface UserPersistence
contactId
- the contact id to search with
NoSuchUserException
- if a matching user could not be found
SystemException
- if a system exception occurredpublic User fetchByContactId(long contactId) throws SystemException
null
if it could not be found. Uses the finder cache.
fetchByContactId
in interface UserPersistence
contactId
- the contact id to search with
null
if a matching user could not be found
SystemException
- if a system exception occurredpublic User fetchByContactId(long contactId, boolean retrieveFromCache) throws SystemException
null
if it could not be found, optionally using the finder cache.
fetchByContactId
in interface UserPersistence
contactId
- the contact id to search with
null
if a matching user could not be found
SystemException
- if a system exception occurredpublic List<User> findByEmailAddress(String emailAddress) throws SystemException
findByEmailAddress
in interface UserPersistence
emailAddress
- the email address to search with
SystemException
- if a system exception occurredpublic List<User> findByEmailAddress(String emailAddress, int start, int end) throws SystemException
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil.ALL_POS
will return the full result set.
findByEmailAddress
in interface UserPersistence
emailAddress
- the email address to search withstart
- the lower bound of the range of users to returnend
- the upper bound of the range of users to return (not inclusive)
SystemException
- if a system exception occurredpublic List<User> findByEmailAddress(String emailAddress, int start, int end, OrderByComparator orderByComparator) throws SystemException
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil.ALL_POS
will return the full result set.
findByEmailAddress
in interface UserPersistence
emailAddress
- the email address to search withstart
- the lower bound of the range of users to returnend
- the upper bound of the range of users to return (not inclusive)orderByComparator
- the comparator to order the results by
SystemException
- if a system exception occurredpublic User findByEmailAddress_First(String emailAddress, OrderByComparator orderByComparator) throws NoSuchUserException, SystemException
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil.ALL_POS
will return the full result set.
findByEmailAddress_First
in interface UserPersistence
emailAddress
- the email address to search withorderByComparator
- the comparator to order the set by
NoSuchUserException
- if a matching user could not be found
SystemException
- if a system exception occurredpublic User findByEmailAddress_Last(String emailAddress, OrderByComparator orderByComparator) throws NoSuchUserException, SystemException
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil.ALL_POS
will return the full result set.
findByEmailAddress_Last
in interface UserPersistence
emailAddress
- the email address to search withorderByComparator
- the comparator to order the set by
NoSuchUserException
- if a matching user could not be found
SystemException
- if a system exception occurredpublic User[] findByEmailAddress_PrevAndNext(long userId, String emailAddress, OrderByComparator orderByComparator) throws NoSuchUserException, SystemException
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil.ALL_POS
will return the full result set.
findByEmailAddress_PrevAndNext
in interface UserPersistence
userId
- the primary key of the current useremailAddress
- the email address to search withorderByComparator
- the comparator to order the set by
NoSuchUserException
- if a user with the primary key could not be found
SystemException
- if a system exception occurredprotected User getByEmailAddress_PrevAndNext(Session session, User user, String emailAddress, OrderByComparator orderByComparator, boolean previous)
public User findByPortraitId(long portraitId) throws NoSuchUserException, SystemException
NoSuchUserException
if it could not be found.
findByPortraitId
in interface UserPersistence
portraitId
- the portrait id to search with
NoSuchUserException
- if a matching user could not be found
SystemException
- if a system exception occurredpublic User fetchByPortraitId(long portraitId) throws SystemException
null
if it could not be found. Uses the finder cache.
fetchByPortraitId
in interface UserPersistence
portraitId
- the portrait id to search with
null
if a matching user could not be found
SystemException
- if a system exception occurredpublic User fetchByPortraitId(long portraitId, boolean retrieveFromCache) throws SystemException
null
if it could not be found, optionally using the finder cache.
fetchByPortraitId
in interface UserPersistence
portraitId
- the portrait id to search with
null
if a matching user could not be found
SystemException
- if a system exception occurredpublic User findByC_U(long companyId, long userId) throws NoSuchUserException, SystemException
NoSuchUserException
if it could not be found.
findByC_U
in interface UserPersistence
companyId
- the company id to search withuserId
- the user id to search with
NoSuchUserException
- if a matching user could not be found
SystemException
- if a system exception occurredpublic User fetchByC_U(long companyId, long userId) throws SystemException
null
if it could not be found. Uses the finder cache.
fetchByC_U
in interface UserPersistence
companyId
- the company id to search withuserId
- the user id to search with
null
if a matching user could not be found
SystemException
- if a system exception occurredpublic User fetchByC_U(long companyId, long userId, boolean retrieveFromCache) throws SystemException
null
if it could not be found, optionally using the finder cache.
fetchByC_U
in interface UserPersistence
companyId
- the company id to search withuserId
- the user id to search with
null
if a matching user could not be found
SystemException
- if a system exception occurredpublic User findByC_DU(long companyId, boolean defaultUser) throws NoSuchUserException, SystemException
NoSuchUserException
if it could not be found.
findByC_DU
in interface UserPersistence
companyId
- the company id to search withdefaultUser
- the default user to search with
NoSuchUserException
- if a matching user could not be found
SystemException
- if a system exception occurredpublic User fetchByC_DU(long companyId, boolean defaultUser) throws SystemException
null
if it could not be found. Uses the finder cache.
fetchByC_DU
in interface UserPersistence
companyId
- the company id to search withdefaultUser
- the default user to search with
null
if a matching user could not be found
SystemException
- if a system exception occurredpublic User fetchByC_DU(long companyId, boolean defaultUser, boolean retrieveFromCache) throws SystemException
null
if it could not be found, optionally using the finder cache.
fetchByC_DU
in interface UserPersistence
companyId
- the company id to search withdefaultUser
- the default user to search with
null
if a matching user could not be found
SystemException
- if a system exception occurredpublic User findByC_SN(long companyId, String screenName) throws NoSuchUserException, SystemException
NoSuchUserException
if it could not be found.
findByC_SN
in interface UserPersistence
companyId
- the company id to search withscreenName
- the screen name to search with
NoSuchUserException
- if a matching user could not be found
SystemException
- if a system exception occurredpublic User fetchByC_SN(long companyId, String screenName) throws SystemException
null
if it could not be found. Uses the finder cache.
fetchByC_SN
in interface UserPersistence
companyId
- the company id to search withscreenName
- the screen name to search with
null
if a matching user could not be found
SystemException
- if a system exception occurredpublic User fetchByC_SN(long companyId, String screenName, boolean retrieveFromCache) throws SystemException
null
if it could not be found, optionally using the finder cache.
fetchByC_SN
in interface UserPersistence
companyId
- the company id to search withscreenName
- the screen name to search with
null
if a matching user could not be found
SystemException
- if a system exception occurredpublic User findByC_EA(long companyId, String emailAddress) throws NoSuchUserException, SystemException
NoSuchUserException
if it could not be found.
findByC_EA
in interface UserPersistence
companyId
- the company id to search withemailAddress
- the email address to search with
NoSuchUserException
- if a matching user could not be found
SystemException
- if a system exception occurredpublic User fetchByC_EA(long companyId, String emailAddress) throws SystemException
null
if it could not be found. Uses the finder cache.
fetchByC_EA
in interface UserPersistence
companyId
- the company id to search withemailAddress
- the email address to search with
null
if a matching user could not be found
SystemException
- if a system exception occurredpublic User fetchByC_EA(long companyId, String emailAddress, boolean retrieveFromCache) throws SystemException
null
if it could not be found, optionally using the finder cache.
fetchByC_EA
in interface UserPersistence
companyId
- the company id to search withemailAddress
- the email address to search with
null
if a matching user could not be found
SystemException
- if a system exception occurredpublic User findByC_FID(long companyId, long facebookId) throws NoSuchUserException, SystemException
NoSuchUserException
if it could not be found.
findByC_FID
in interface UserPersistence
companyId
- the company id to search withfacebookId
- the facebook id to search with
NoSuchUserException
- if a matching user could not be found
SystemException
- if a system exception occurredpublic User fetchByC_FID(long companyId, long facebookId) throws SystemException
null
if it could not be found. Uses the finder cache.
fetchByC_FID
in interface UserPersistence
companyId
- the company id to search withfacebookId
- the facebook id to search with
null
if a matching user could not be found
SystemException
- if a system exception occurredpublic User fetchByC_FID(long companyId, long facebookId, boolean retrieveFromCache) throws SystemException
null
if it could not be found, optionally using the finder cache.
fetchByC_FID
in interface UserPersistence
companyId
- the company id to search withfacebookId
- the facebook id to search with
null
if a matching user could not be found
SystemException
- if a system exception occurredpublic User findByC_O(long companyId, String openId) throws NoSuchUserException, SystemException
NoSuchUserException
if it could not be found.
findByC_O
in interface UserPersistence
companyId
- the company id to search withopenId
- the open id to search with
NoSuchUserException
- if a matching user could not be found
SystemException
- if a system exception occurredpublic User fetchByC_O(long companyId, String openId) throws SystemException
null
if it could not be found. Uses the finder cache.
fetchByC_O
in interface UserPersistence
companyId
- the company id to search withopenId
- the open id to search with
null
if a matching user could not be found
SystemException
- if a system exception occurredpublic User fetchByC_O(long companyId, String openId, boolean retrieveFromCache) throws SystemException
null
if it could not be found, optionally using the finder cache.
fetchByC_O
in interface UserPersistence
companyId
- the company id to search withopenId
- the open id to search with
null
if a matching user could not be found
SystemException
- if a system exception occurredpublic List<User> findByC_A(long companyId, boolean active) throws SystemException
findByC_A
in interface UserPersistence
companyId
- the company id to search withactive
- the active to search with
SystemException
- if a system exception occurredpublic List<User> findByC_A(long companyId, boolean active, int start, int end) throws SystemException
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil.ALL_POS
will return the full result set.
findByC_A
in interface UserPersistence
companyId
- the company id to search withactive
- the active to search withstart
- the lower bound of the range of users to returnend
- the upper bound of the range of users to return (not inclusive)
SystemException
- if a system exception occurredpublic List<User> findByC_A(long companyId, boolean active, int start, int end, OrderByComparator orderByComparator) throws SystemException
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil.ALL_POS
will return the full result set.
findByC_A
in interface UserPersistence
companyId
- the company id to search withactive
- the active to search withstart
- the lower bound of the range of users to returnend
- the upper bound of the range of users to return (not inclusive)orderByComparator
- the comparator to order the results by
SystemException
- if a system exception occurredpublic User findByC_A_First(long companyId, boolean active, OrderByComparator orderByComparator) throws NoSuchUserException, SystemException
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil.ALL_POS
will return the full result set.
findByC_A_First
in interface UserPersistence
companyId
- the company id to search withactive
- the active to search withorderByComparator
- the comparator to order the set by
NoSuchUserException
- if a matching user could not be found
SystemException
- if a system exception occurredpublic User findByC_A_Last(long companyId, boolean active, OrderByComparator orderByComparator) throws NoSuchUserException, SystemException
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil.ALL_POS
will return the full result set.
findByC_A_Last
in interface UserPersistence
companyId
- the company id to search withactive
- the active to search withorderByComparator
- the comparator to order the set by
NoSuchUserException
- if a matching user could not be found
SystemException
- if a system exception occurredpublic User[] findByC_A_PrevAndNext(long userId, long companyId, boolean active, OrderByComparator orderByComparator) throws NoSuchUserException, SystemException
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil.ALL_POS
will return the full result set.
findByC_A_PrevAndNext
in interface UserPersistence
userId
- the primary key of the current usercompanyId
- the company id to search withactive
- the active to search withorderByComparator
- the comparator to order the set by
NoSuchUserException
- if a user with the primary key could not be found
SystemException
- if a system exception occurredprotected User getByC_A_PrevAndNext(Session session, User user, long companyId, boolean active, OrderByComparator orderByComparator, boolean previous)
public List<User> findAll() throws SystemException
findAll
in interface UserPersistence
SystemException
- if a system exception occurredpublic List<User> findAll(int start, int end) throws SystemException
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil.ALL_POS
will return the full result set.
findAll
in interface UserPersistence
start
- the lower bound of the range of users to returnend
- the upper bound of the range of users to return (not inclusive)
SystemException
- if a system exception occurredpublic List<User> findAll(int start, int end, OrderByComparator orderByComparator) throws SystemException
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil.ALL_POS
will return the full result set.
findAll
in interface UserPersistence
start
- the lower bound of the range of users to returnend
- the upper bound of the range of users to return (not inclusive)orderByComparator
- the comparator to order the results by
SystemException
- if a system exception occurredpublic void removeByUuid(String uuid) throws SystemException
removeByUuid
in interface UserPersistence
uuid
- the uuid to search with
SystemException
- if a system exception occurredpublic void removeByCompanyId(long companyId) throws SystemException
removeByCompanyId
in interface UserPersistence
companyId
- the company id to search with
SystemException
- if a system exception occurredpublic void removeByContactId(long contactId) throws NoSuchUserException, SystemException
removeByContactId
in interface UserPersistence
contactId
- the contact id to search with
SystemException
- if a system exception occurred
NoSuchUserException
public void removeByEmailAddress(String emailAddress) throws SystemException
removeByEmailAddress
in interface UserPersistence
emailAddress
- the email address to search with
SystemException
- if a system exception occurredpublic void removeByPortraitId(long portraitId) throws NoSuchUserException, SystemException
removeByPortraitId
in interface UserPersistence
portraitId
- the portrait id to search with
SystemException
- if a system exception occurred
NoSuchUserException
public void removeByC_U(long companyId, long userId) throws NoSuchUserException, SystemException
removeByC_U
in interface UserPersistence
companyId
- the company id to search withuserId
- the user id to search with
SystemException
- if a system exception occurred
NoSuchUserException
public void removeByC_DU(long companyId, boolean defaultUser) throws NoSuchUserException, SystemException
removeByC_DU
in interface UserPersistence
companyId
- the company id to search withdefaultUser
- the default user to search with
SystemException
- if a system exception occurred
NoSuchUserException
public void removeByC_SN(long companyId, String screenName) throws NoSuchUserException, SystemException
removeByC_SN
in interface UserPersistence
companyId
- the company id to search withscreenName
- the screen name to search with
SystemException
- if a system exception occurred
NoSuchUserException
public void removeByC_EA(long companyId, String emailAddress) throws NoSuchUserException, SystemException
removeByC_EA
in interface UserPersistence
companyId
- the company id to search withemailAddress
- the email address to search with
SystemException
- if a system exception occurred
NoSuchUserException
public void removeByC_FID(long companyId, long facebookId) throws NoSuchUserException, SystemException
removeByC_FID
in interface UserPersistence
companyId
- the company id to search withfacebookId
- the facebook id to search with
SystemException
- if a system exception occurred
NoSuchUserException
public void removeByC_O(long companyId, String openId) throws NoSuchUserException, SystemException
removeByC_O
in interface UserPersistence
companyId
- the company id to search withopenId
- the open id to search with
SystemException
- if a system exception occurred
NoSuchUserException
public void removeByC_A(long companyId, boolean active) throws SystemException
removeByC_A
in interface UserPersistence
companyId
- the company id to search withactive
- the active to search with
SystemException
- if a system exception occurredpublic void removeAll() throws SystemException
removeAll
in interface UserPersistence
SystemException
- if a system exception occurredpublic int countByUuid(String uuid) throws SystemException
countByUuid
in interface UserPersistence
uuid
- the uuid to search with
SystemException
- if a system exception occurredpublic int countByCompanyId(long companyId) throws SystemException
countByCompanyId
in interface UserPersistence
companyId
- the company id to search with
SystemException
- if a system exception occurredpublic int countByContactId(long contactId) throws SystemException
countByContactId
in interface UserPersistence
contactId
- the contact id to search with
SystemException
- if a system exception occurredpublic int countByEmailAddress(String emailAddress) throws SystemException
countByEmailAddress
in interface UserPersistence
emailAddress
- the email address to search with
SystemException
- if a system exception occurredpublic int countByPortraitId(long portraitId) throws SystemException
countByPortraitId
in interface UserPersistence
portraitId
- the portrait id to search with
SystemException
- if a system exception occurredpublic int countByC_U(long companyId, long userId) throws SystemException
countByC_U
in interface UserPersistence
companyId
- the company id to search withuserId
- the user id to search with
SystemException
- if a system exception occurredpublic int countByC_DU(long companyId, boolean defaultUser) throws SystemException
countByC_DU
in interface UserPersistence
companyId
- the company id to search withdefaultUser
- the default user to search with
SystemException
- if a system exception occurredpublic int countByC_SN(long companyId, String screenName) throws SystemException
countByC_SN
in interface UserPersistence
companyId
- the company id to search withscreenName
- the screen name to search with
SystemException
- if a system exception occurredpublic int countByC_EA(long companyId, String emailAddress) throws SystemException
countByC_EA
in interface UserPersistence
companyId
- the company id to search withemailAddress
- the email address to search with
SystemException
- if a system exception occurredpublic int countByC_FID(long companyId, long facebookId) throws SystemException
countByC_FID
in interface UserPersistence
companyId
- the company id to search withfacebookId
- the facebook id to search with
SystemException
- if a system exception occurredpublic int countByC_O(long companyId, String openId) throws SystemException
countByC_O
in interface UserPersistence
companyId
- the company id to search withopenId
- the open id to search with
SystemException
- if a system exception occurredpublic int countByC_A(long companyId, boolean active) throws SystemException
countByC_A
in interface UserPersistence
companyId
- the company id to search withactive
- the active to search with
SystemException
- if a system exception occurredpublic int countAll() throws SystemException
countAll
in interface UserPersistence
SystemException
- if a system exception occurredpublic List<Group> getGroups(long pk) throws SystemException
getGroups
in interface UserPersistence
pk
- the primary key of the user to get the associated groups for
SystemException
- if a system exception occurredpublic List<Group> getGroups(long pk, int start, int end) throws SystemException
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil.ALL_POS
will return the full result set.
getGroups
in interface UserPersistence
pk
- the primary key of the user to get the associated groups forstart
- the lower bound of the range of users to returnend
- the upper bound of the range of users to return (not inclusive)
SystemException
- if a system exception occurredpublic List<Group> getGroups(long pk, int start, int end, OrderByComparator orderByComparator) throws SystemException
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil.ALL_POS
will return the full result set.
getGroups
in interface UserPersistence
pk
- the primary key of the user to get the associated groups forstart
- the lower bound of the range of users to returnend
- the upper bound of the range of users to return (not inclusive)orderByComparator
- the comparator to order the results by
SystemException
- if a system exception occurredpublic int getGroupsSize(long pk) throws SystemException
getGroupsSize
in interface UserPersistence
pk
- the primary key of the user to get the number of associated groups for
SystemException
- if a system exception occurredpublic boolean containsGroup(long pk, long groupPK) throws SystemException
containsGroup
in interface UserPersistence
pk
- the primary key of the usergroupPK
- the primary key of the group
SystemException
- if a system exception occurredpublic boolean containsGroups(long pk) throws SystemException
containsGroups
in interface UserPersistence
pk
- the primary key of the user to check for associations with groups
SystemException
- if a system exception occurredpublic void addGroup(long pk, long groupPK) throws SystemException
addGroup
in interface UserPersistence
pk
- the primary key of the usergroupPK
- the primary key of the group
SystemException
- if a system exception occurredpublic void addGroup(long pk, Group group) throws SystemException
addGroup
in interface UserPersistence
pk
- the primary key of the usergroup
- the group
SystemException
- if a system exception occurredpublic void addGroups(long pk, long[] groupPKs) throws SystemException
addGroups
in interface UserPersistence
pk
- the primary key of the usergroupPKs
- the primary keys of the groups
SystemException
- if a system exception occurredpublic void addGroups(long pk, List<Group> groups) throws SystemException
addGroups
in interface UserPersistence
pk
- the primary key of the usergroups
- the groups
SystemException
- if a system exception occurredpublic void clearGroups(long pk) throws SystemException
clearGroups
in interface UserPersistence
pk
- the primary key of the user to clear the associated groups from
SystemException
- if a system exception occurredpublic void removeGroup(long pk, long groupPK) throws SystemException
removeGroup
in interface UserPersistence
pk
- the primary key of the usergroupPK
- the primary key of the group
SystemException
- if a system exception occurredpublic void removeGroup(long pk, Group group) throws SystemException
removeGroup
in interface UserPersistence
pk
- the primary key of the usergroup
- the group
SystemException
- if a system exception occurredpublic void removeGroups(long pk, long[] groupPKs) throws SystemException
removeGroups
in interface UserPersistence
pk
- the primary key of the usergroupPKs
- the primary keys of the groups
SystemException
- if a system exception occurredpublic void removeGroups(long pk, List<Group> groups) throws SystemException
removeGroups
in interface UserPersistence
pk
- the primary key of the usergroups
- the groups
SystemException
- if a system exception occurredpublic void setGroups(long pk, long[] groupPKs) throws SystemException
setGroups
in interface UserPersistence
pk
- the primary key of the user to set the associations forgroupPKs
- the primary keys of the groups to be associated with the user
SystemException
- if a system exception occurredpublic void setGroups(long pk, List<Group> groups) throws SystemException
setGroups
in interface UserPersistence
pk
- the primary key of the user to set the associations forgroups
- the groups to be associated with the user
SystemException
- if a system exception occurredpublic List<Organization> getOrganizations(long pk) throws SystemException
getOrganizations
in interface UserPersistence
pk
- the primary key of the user to get the associated organizations for
SystemException
- if a system exception occurredpublic List<Organization> getOrganizations(long pk, int start, int end) throws SystemException
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil.ALL_POS
will return the full result set.
getOrganizations
in interface UserPersistence
pk
- the primary key of the user to get the associated organizations forstart
- the lower bound of the range of users to returnend
- the upper bound of the range of users to return (not inclusive)
SystemException
- if a system exception occurredpublic List<Organization> getOrganizations(long pk, int start, int end, OrderByComparator orderByComparator) throws SystemException
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil.ALL_POS
will return the full result set.
getOrganizations
in interface UserPersistence
pk
- the primary key of the user to get the associated organizations forstart
- the lower bound of the range of users to returnend
- the upper bound of the range of users to return (not inclusive)orderByComparator
- the comparator to order the results by
SystemException
- if a system exception occurredpublic int getOrganizationsSize(long pk) throws SystemException
getOrganizationsSize
in interface UserPersistence
pk
- the primary key of the user to get the number of associated organizations for
SystemException
- if a system exception occurredpublic boolean containsOrganization(long pk, long organizationPK) throws SystemException
containsOrganization
in interface UserPersistence
pk
- the primary key of the userorganizationPK
- the primary key of the organization
SystemException
- if a system exception occurredpublic boolean containsOrganizations(long pk) throws SystemException
containsOrganizations
in interface UserPersistence
pk
- the primary key of the user to check for associations with organizations
SystemException
- if a system exception occurredpublic void addOrganization(long pk, long organizationPK) throws SystemException
addOrganization
in interface UserPersistence
pk
- the primary key of the userorganizationPK
- the primary key of the organization
SystemException
- if a system exception occurredpublic void addOrganization(long pk, Organization organization) throws SystemException
addOrganization
in interface UserPersistence
pk
- the primary key of the userorganization
- the organization
SystemException
- if a system exception occurredpublic void addOrganizations(long pk, long[] organizationPKs) throws SystemException
addOrganizations
in interface UserPersistence
pk
- the primary key of the userorganizationPKs
- the primary keys of the organizations
SystemException
- if a system exception occurredpublic void addOrganizations(long pk, List<Organization> organizations) throws SystemException
addOrganizations
in interface UserPersistence
pk
- the primary key of the userorganizations
- the organizations
SystemException
- if a system exception occurredpublic void clearOrganizations(long pk) throws SystemException
clearOrganizations
in interface UserPersistence
pk
- the primary key of the user to clear the associated organizations from
SystemException
- if a system exception occurredpublic void removeOrganization(long pk, long organizationPK) throws SystemException
removeOrganization
in interface UserPersistence
pk
- the primary key of the userorganizationPK
- the primary key of the organization
SystemException
- if a system exception occurredpublic void removeOrganization(long pk, Organization organization) throws SystemException
removeOrganization
in interface UserPersistence
pk
- the primary key of the userorganization
- the organization
SystemException
- if a system exception occurredpublic void removeOrganizations(long pk, long[] organizationPKs) throws SystemException
removeOrganizations
in interface UserPersistence
pk
- the primary key of the userorganizationPKs
- the primary keys of the organizations
SystemException
- if a system exception occurredpublic void removeOrganizations(long pk, List<Organization> organizations) throws SystemException
removeOrganizations
in interface UserPersistence
pk
- the primary key of the userorganizations
- the organizations
SystemException
- if a system exception occurredpublic void setOrganizations(long pk, long[] organizationPKs) throws SystemException
setOrganizations
in interface UserPersistence
pk
- the primary key of the user to set the associations fororganizationPKs
- the primary keys of the organizations to be associated with the user
SystemException
- if a system exception occurredpublic void setOrganizations(long pk, List<Organization> organizations) throws SystemException
setOrganizations
in interface UserPersistence
pk
- the primary key of the user to set the associations fororganizations
- the organizations to be associated with the user
SystemException
- if a system exception occurredpublic List<Permission> getPermissions(long pk) throws SystemException
getPermissions
in interface UserPersistence
pk
- the primary key of the user to get the associated permissions for
SystemException
- if a system exception occurredpublic List<Permission> getPermissions(long pk, int start, int end) throws SystemException
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil.ALL_POS
will return the full result set.
getPermissions
in interface UserPersistence
pk
- the primary key of the user to get the associated permissions forstart
- the lower bound of the range of users to returnend
- the upper bound of the range of users to return (not inclusive)
SystemException
- if a system exception occurredpublic List<Permission> getPermissions(long pk, int start, int end, OrderByComparator orderByComparator) throws SystemException
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil.ALL_POS
will return the full result set.
getPermissions
in interface UserPersistence
pk
- the primary key of the user to get the associated permissions forstart
- the lower bound of the range of users to returnend
- the upper bound of the range of users to return (not inclusive)orderByComparator
- the comparator to order the results by
SystemException
- if a system exception occurredpublic int getPermissionsSize(long pk) throws SystemException
getPermissionsSize
in interface UserPersistence
pk
- the primary key of the user to get the number of associated permissions for
SystemException
- if a system exception occurredpublic boolean containsPermission(long pk, long permissionPK) throws SystemException
containsPermission
in interface UserPersistence
pk
- the primary key of the userpermissionPK
- the primary key of the permission
SystemException
- if a system exception occurredpublic boolean containsPermissions(long pk) throws SystemException
containsPermissions
in interface UserPersistence
pk
- the primary key of the user to check for associations with permissions
SystemException
- if a system exception occurredpublic void addPermission(long pk, long permissionPK) throws SystemException
addPermission
in interface UserPersistence
pk
- the primary key of the userpermissionPK
- the primary key of the permission
SystemException
- if a system exception occurredpublic void addPermission(long pk, Permission permission) throws SystemException
addPermission
in interface UserPersistence
pk
- the primary key of the userpermission
- the permission
SystemException
- if a system exception occurredpublic void addPermissions(long pk, long[] permissionPKs) throws SystemException
addPermissions
in interface UserPersistence
pk
- the primary key of the userpermissionPKs
- the primary keys of the permissions
SystemException
- if a system exception occurredpublic void addPermissions(long pk, List<Permission> permissions) throws SystemException
addPermissions
in interface UserPersistence
pk
- the primary key of the userpermissions
- the permissions
SystemException
- if a system exception occurredpublic void clearPermissions(long pk) throws SystemException
clearPermissions
in interface UserPersistence
pk
- the primary key of the user to clear the associated permissions from
SystemException
- if a system exception occurredpublic void removePermission(long pk, long permissionPK) throws SystemException
removePermission
in interface UserPersistence
pk
- the primary key of the userpermissionPK
- the primary key of the permission
SystemException
- if a system exception occurredpublic void removePermission(long pk, Permission permission) throws SystemException
removePermission
in interface UserPersistence
pk
- the primary key of the userpermission
- the permission
SystemException
- if a system exception occurredpublic void removePermissions(long pk, long[] permissionPKs) throws SystemException
removePermissions
in interface UserPersistence
pk
- the primary key of the userpermissionPKs
- the primary keys of the permissions
SystemException
- if a system exception occurredpublic void removePermissions(long pk, List<Permission> permissions) throws SystemException
removePermissions
in interface UserPersistence
pk
- the primary key of the userpermissions
- the permissions
SystemException
- if a system exception occurredpublic void setPermissions(long pk, long[] permissionPKs) throws SystemException
setPermissions
in interface UserPersistence
pk
- the primary key of the user to set the associations forpermissionPKs
- the primary keys of the permissions to be associated with the user
SystemException
- if a system exception occurredpublic void setPermissions(long pk, List<Permission> permissions) throws SystemException
setPermissions
in interface UserPersistence
pk
- the primary key of the user to set the associations forpermissions
- the permissions to be associated with the user
SystemException
- if a system exception occurredpublic List<Role> getRoles(long pk) throws SystemException
getRoles
in interface UserPersistence
pk
- the primary key of the user to get the associated roles for
SystemException
- if a system exception occurredpublic List<Role> getRoles(long pk, int start, int end) throws SystemException
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil.ALL_POS
will return the full result set.
getRoles
in interface UserPersistence
pk
- the primary key of the user to get the associated roles forstart
- the lower bound of the range of users to returnend
- the upper bound of the range of users to return (not inclusive)
SystemException
- if a system exception occurredpublic List<Role> getRoles(long pk, int start, int end, OrderByComparator orderByComparator) throws SystemException
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil.ALL_POS
will return the full result set.
getRoles
in interface UserPersistence
pk
- the primary key of the user to get the associated roles forstart
- the lower bound of the range of users to returnend
- the upper bound of the range of users to return (not inclusive)orderByComparator
- the comparator to order the results by
SystemException
- if a system exception occurredpublic int getRolesSize(long pk) throws SystemException
getRolesSize
in interface UserPersistence
pk
- the primary key of the user to get the number of associated roles for
SystemException
- if a system exception occurredpublic boolean containsRole(long pk, long rolePK) throws SystemException
containsRole
in interface UserPersistence
pk
- the primary key of the userrolePK
- the primary key of the role
SystemException
- if a system exception occurredpublic boolean containsRoles(long pk) throws SystemException
containsRoles
in interface UserPersistence
pk
- the primary key of the user to check for associations with roles
SystemException
- if a system exception occurredpublic void addRole(long pk, long rolePK) throws SystemException
addRole
in interface UserPersistence
pk
- the primary key of the userrolePK
- the primary key of the role
SystemException
- if a system exception occurredpublic void addRole(long pk, Role role) throws SystemException
addRole
in interface UserPersistence
pk
- the primary key of the userrole
- the role
SystemException
- if a system exception occurredpublic void addRoles(long pk, long[] rolePKs) throws SystemException
addRoles
in interface UserPersistence
pk
- the primary key of the userrolePKs
- the primary keys of the roles
SystemException
- if a system exception occurredpublic void addRoles(long pk, List<Role> roles) throws SystemException
addRoles
in interface UserPersistence
pk
- the primary key of the userroles
- the roles
SystemException
- if a system exception occurredpublic void clearRoles(long pk) throws SystemException
clearRoles
in interface UserPersistence
pk
- the primary key of the user to clear the associated roles from
SystemException
- if a system exception occurredpublic void removeRole(long pk, long rolePK) throws SystemException
removeRole
in interface UserPersistence
pk
- the primary key of the userrolePK
- the primary key of the role
SystemException
- if a system exception occurredpublic void removeRole(long pk, Role role) throws SystemException
removeRole
in interface UserPersistence
pk
- the primary key of the userrole
- the role
SystemException
- if a system exception occurredpublic void removeRoles(long pk, long[] rolePKs) throws SystemException
removeRoles
in interface UserPersistence
pk
- the primary key of the userrolePKs
- the primary keys of the roles
SystemException
- if a system exception occurredpublic void removeRoles(long pk, List<Role> roles) throws SystemException
removeRoles
in interface UserPersistence
pk
- the primary key of the userroles
- the roles
SystemException
- if a system exception occurredpublic void setRoles(long pk, long[] rolePKs) throws SystemException
setRoles
in interface UserPersistence
pk
- the primary key of the user to set the associations forrolePKs
- the primary keys of the roles to be associated with the user
SystemException
- if a system exception occurredpublic void setRoles(long pk, List<Role> roles) throws SystemException
setRoles
in interface UserPersistence
pk
- the primary key of the user to set the associations forroles
- the roles to be associated with the user
SystemException
- if a system exception occurredpublic List<Team> getTeams(long pk) throws SystemException
getTeams
in interface UserPersistence
pk
- the primary key of the user to get the associated teams for
SystemException
- if a system exception occurredpublic List<Team> getTeams(long pk, int start, int end) throws SystemException
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil.ALL_POS
will return the full result set.
getTeams
in interface UserPersistence
pk
- the primary key of the user to get the associated teams forstart
- the lower bound of the range of users to returnend
- the upper bound of the range of users to return (not inclusive)
SystemException
- if a system exception occurredpublic List<Team> getTeams(long pk, int start, int end, OrderByComparator orderByComparator) throws SystemException
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil.ALL_POS
will return the full result set.
getTeams
in interface UserPersistence
pk
- the primary key of the user to get the associated teams forstart
- the lower bound of the range of users to returnend
- the upper bound of the range of users to return (not inclusive)orderByComparator
- the comparator to order the results by
SystemException
- if a system exception occurredpublic int getTeamsSize(long pk) throws SystemException
getTeamsSize
in interface UserPersistence
pk
- the primary key of the user to get the number of associated teams for
SystemException
- if a system exception occurredpublic boolean containsTeam(long pk, long teamPK) throws SystemException
containsTeam
in interface UserPersistence
pk
- the primary key of the userteamPK
- the primary key of the team
SystemException
- if a system exception occurredpublic boolean containsTeams(long pk) throws SystemException
containsTeams
in interface UserPersistence
pk
- the primary key of the user to check for associations with teams
SystemException
- if a system exception occurredpublic void addTeam(long pk, long teamPK) throws SystemException
addTeam
in interface UserPersistence
pk
- the primary key of the userteamPK
- the primary key of the team
SystemException
- if a system exception occurredpublic void addTeam(long pk, Team team) throws SystemException
addTeam
in interface UserPersistence
pk
- the primary key of the userteam
- the team
SystemException
- if a system exception occurredpublic void addTeams(long pk, long[] teamPKs) throws SystemException
addTeams
in interface UserPersistence
pk
- the primary key of the userteamPKs
- the primary keys of the teams
SystemException
- if a system exception occurredpublic void addTeams(long pk, List<Team> teams) throws SystemException
addTeams
in interface UserPersistence
pk
- the primary key of the userteams
- the teams
SystemException
- if a system exception occurredpublic void clearTeams(long pk) throws SystemException
clearTeams
in interface UserPersistence
pk
- the primary key of the user to clear the associated teams from
SystemException
- if a system exception occurredpublic void removeTeam(long pk, long teamPK) throws SystemException
removeTeam
in interface UserPersistence
pk
- the primary key of the userteamPK
- the primary key of the team
SystemException
- if a system exception occurredpublic void removeTeam(long pk, Team team) throws SystemException
removeTeam
in interface UserPersistence
pk
- the primary key of the userteam
- the team
SystemException
- if a system exception occurredpublic void removeTeams(long pk, long[] teamPKs) throws SystemException
removeTeams
in interface UserPersistence
pk
- the primary key of the userteamPKs
- the primary keys of the teams
SystemException
- if a system exception occurredpublic void removeTeams(long pk, List<Team> teams) throws SystemException
removeTeams
in interface UserPersistence
pk
- the primary key of the userteams
- the teams
SystemException
- if a system exception occurredpublic void setTeams(long pk, long[] teamPKs) throws SystemException
setTeams
in interface UserPersistence
pk
- the primary key of the user to set the associations forteamPKs
- the primary keys of the teams to be associated with the user
SystemException
- if a system exception occurredpublic void setTeams(long pk, List<Team> teams) throws SystemException
setTeams
in interface UserPersistence
pk
- the primary key of the user to set the associations forteams
- the teams to be associated with the user
SystemException
- if a system exception occurredpublic List<UserGroup> getUserGroups(long pk) throws SystemException
getUserGroups
in interface UserPersistence
pk
- the primary key of the user to get the associated user groups for
SystemException
- if a system exception occurredpublic List<UserGroup> getUserGroups(long pk, int start, int end) throws SystemException
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil.ALL_POS
will return the full result set.
getUserGroups
in interface UserPersistence
pk
- the primary key of the user to get the associated user groups forstart
- the lower bound of the range of users to returnend
- the upper bound of the range of users to return (not inclusive)
SystemException
- if a system exception occurredpublic List<UserGroup> getUserGroups(long pk, int start, int end, OrderByComparator orderByComparator) throws SystemException
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil.ALL_POS
will return the full result set.
getUserGroups
in interface UserPersistence
pk
- the primary key of the user to get the associated user groups forstart
- the lower bound of the range of users to returnend
- the upper bound of the range of users to return (not inclusive)orderByComparator
- the comparator to order the results by
SystemException
- if a system exception occurredpublic int getUserGroupsSize(long pk) throws SystemException
getUserGroupsSize
in interface UserPersistence
pk
- the primary key of the user to get the number of associated user groups for
SystemException
- if a system exception occurredpublic boolean containsUserGroup(long pk, long userGroupPK) throws SystemException
containsUserGroup
in interface UserPersistence
pk
- the primary key of the useruserGroupPK
- the primary key of the user group
SystemException
- if a system exception occurredpublic boolean containsUserGroups(long pk) throws SystemException
containsUserGroups
in interface UserPersistence
pk
- the primary key of the user to check for associations with user groups
SystemException
- if a system exception occurredpublic void addUserGroup(long pk, long userGroupPK) throws SystemException
addUserGroup
in interface UserPersistence
pk
- the primary key of the useruserGroupPK
- the primary key of the user group
SystemException
- if a system exception occurredpublic void addUserGroup(long pk, UserGroup userGroup) throws SystemException
addUserGroup
in interface UserPersistence
pk
- the primary key of the useruserGroup
- the user group
SystemException
- if a system exception occurredpublic void addUserGroups(long pk, long[] userGroupPKs) throws SystemException
addUserGroups
in interface UserPersistence
pk
- the primary key of the useruserGroupPKs
- the primary keys of the user groups
SystemException
- if a system exception occurredpublic void addUserGroups(long pk, List<UserGroup> userGroups) throws SystemException
addUserGroups
in interface UserPersistence
pk
- the primary key of the useruserGroups
- the user groups
SystemException
- if a system exception occurredpublic void clearUserGroups(long pk) throws SystemException
clearUserGroups
in interface UserPersistence
pk
- the primary key of the user to clear the associated user groups from
SystemException
- if a system exception occurredpublic void removeUserGroup(long pk, long userGroupPK) throws SystemException
removeUserGroup
in interface UserPersistence
pk
- the primary key of the useruserGroupPK
- the primary key of the user group
SystemException
- if a system exception occurredpublic void removeUserGroup(long pk, UserGroup userGroup) throws SystemException
removeUserGroup
in interface UserPersistence
pk
- the primary key of the useruserGroup
- the user group
SystemException
- if a system exception occurredpublic void removeUserGroups(long pk, long[] userGroupPKs) throws SystemException
removeUserGroups
in interface UserPersistence
pk
- the primary key of the useruserGroupPKs
- the primary keys of the user groups
SystemException
- if a system exception occurredpublic void removeUserGroups(long pk, List<UserGroup> userGroups) throws SystemException
removeUserGroups
in interface UserPersistence
pk
- the primary key of the useruserGroups
- the user groups
SystemException
- if a system exception occurredpublic void setUserGroups(long pk, long[] userGroupPKs) throws SystemException
setUserGroups
in interface UserPersistence
pk
- the primary key of the user to set the associations foruserGroupPKs
- the primary keys of the user groups to be associated with the user
SystemException
- if a system exception occurredpublic void setUserGroups(long pk, List<UserGroup> userGroups) throws SystemException
setUserGroups
in interface UserPersistence
pk
- the primary key of the user to set the associations foruserGroups
- the user groups to be associated with the user
SystemException
- if a system exception occurredpublic void afterPropertiesSet()
|
Liferay 6.0.5 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |