com.liferay.portal.service.persistence
Class UserUtil
java.lang.Object
com.liferay.portal.service.persistence.UserUtil
public class UserUtil
- extends java.lang.Object
View Source
- Author:
- Brian Wing Shun Chan
Method Summary |
static void |
addGroup(long pk,
Group group)
|
static void |
addGroup(long pk,
long groupPK)
|
static void |
addGroups(long pk,
java.util.List<Group> groups)
|
static void |
addGroups(long pk,
long[] groupPKs)
|
static void |
addOrganization(long pk,
long organizationPK)
|
static void |
addOrganization(long pk,
Organization organization)
|
static void |
addOrganizations(long pk,
java.util.List<Organization> organizations)
|
static void |
addOrganizations(long pk,
long[] organizationPKs)
|
static void |
addPermission(long pk,
long permissionPK)
|
static void |
addPermission(long pk,
Permission permission)
|
static void |
addPermissions(long pk,
java.util.List<Permission> permissions)
|
static void |
addPermissions(long pk,
long[] permissionPKs)
|
static void |
addRole(long pk,
long rolePK)
|
static void |
addRole(long pk,
Role role)
|
static void |
addRoles(long pk,
java.util.List<Role> roles)
|
static void |
addRoles(long pk,
long[] rolePKs)
|
static void |
addUserGroup(long pk,
long userGroupPK)
|
static void |
addUserGroup(long pk,
UserGroup userGroup)
|
static void |
addUserGroups(long pk,
java.util.List<UserGroup> userGroups)
|
static void |
addUserGroups(long pk,
long[] userGroupPKs)
|
static void |
clearGroups(long pk)
|
static void |
clearOrganizations(long pk)
|
static void |
clearPermissions(long pk)
|
static void |
clearRoles(long pk)
|
static void |
clearUserGroups(long pk)
|
static boolean |
containsGroup(long pk,
long groupPK)
|
static boolean |
containsGroups(long pk)
|
static boolean |
containsOrganization(long pk,
long organizationPK)
|
static boolean |
containsOrganizations(long pk)
|
static boolean |
containsPermission(long pk,
long permissionPK)
|
static boolean |
containsPermissions(long pk)
|
static boolean |
containsRole(long pk,
long rolePK)
|
static boolean |
containsRoles(long pk)
|
static boolean |
containsUserGroup(long pk,
long userGroupPK)
|
static boolean |
containsUserGroups(long pk)
|
static int |
countAll()
|
static int |
countByC_DU(long companyId,
boolean defaultUser)
|
static int |
countByC_EA(long companyId,
java.lang.String emailAddress)
|
static int |
countByC_P(long companyId,
java.lang.String password)
|
static int |
countByC_SN(long companyId,
java.lang.String screenName)
|
static int |
countByC_U(long companyId,
long userId)
|
static int |
countByCompanyId(long companyId)
|
static int |
countByContactId(long contactId)
|
static int |
countByEmailAddress(java.lang.String emailAddress)
|
static int |
countByOpenId(java.lang.String openId)
|
static int |
countByPortraitId(long portraitId)
|
static int |
countByUuid(java.lang.String uuid)
|
static User |
create(long userId)
|
static User |
fetchByC_DU(long companyId,
boolean defaultUser)
|
static User |
fetchByC_EA(long companyId,
java.lang.String emailAddress)
|
static User |
fetchByC_SN(long companyId,
java.lang.String screenName)
|
static User |
fetchByC_U(long companyId,
long userId)
|
static User |
fetchByContactId(long contactId)
|
static User |
fetchByOpenId(java.lang.String openId)
|
static User |
fetchByPortraitId(long portraitId)
|
static User |
fetchByPrimaryKey(long userId)
|
static java.util.List<User> |
findAll()
|
static java.util.List<User> |
findAll(int start,
int end)
|
static java.util.List<User> |
findAll(int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
static User |
findByC_DU(long companyId,
boolean defaultUser)
|
static User |
findByC_EA(long companyId,
java.lang.String emailAddress)
|
static User |
findByC_P_First(long companyId,
java.lang.String password,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
static User |
findByC_P_Last(long companyId,
java.lang.String password,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
static User[] |
findByC_P_PrevAndNext(long userId,
long companyId,
java.lang.String password,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
static java.util.List<User> |
findByC_P(long companyId,
java.lang.String password)
|
static java.util.List<User> |
findByC_P(long companyId,
java.lang.String password,
int start,
int end)
|
static java.util.List<User> |
findByC_P(long companyId,
java.lang.String password,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
static User |
findByC_SN(long companyId,
java.lang.String screenName)
|
static User |
findByC_U(long companyId,
long userId)
|
static User |
findByCompanyId_First(long companyId,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
static User |
findByCompanyId_Last(long companyId,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
static User[] |
findByCompanyId_PrevAndNext(long userId,
long companyId,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
static java.util.List<User> |
findByCompanyId(long companyId)
|
static java.util.List<User> |
findByCompanyId(long companyId,
int start,
int end)
|
static java.util.List<User> |
findByCompanyId(long companyId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
static User |
findByContactId(long contactId)
|
static User |
findByEmailAddress_First(java.lang.String emailAddress,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
static User |
findByEmailAddress_Last(java.lang.String emailAddress,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
static User[] |
findByEmailAddress_PrevAndNext(long userId,
java.lang.String emailAddress,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
static java.util.List<User> |
findByEmailAddress(java.lang.String emailAddress)
|
static java.util.List<User> |
findByEmailAddress(java.lang.String emailAddress,
int start,
int end)
|
static java.util.List<User> |
findByEmailAddress(java.lang.String emailAddress,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
static User |
findByOpenId(java.lang.String openId)
|
static User |
findByPortraitId(long portraitId)
|
static User |
findByPrimaryKey(long userId)
|
static User |
findByUuid_First(java.lang.String uuid,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
static User |
findByUuid_Last(java.lang.String uuid,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
static User[] |
findByUuid_PrevAndNext(long userId,
java.lang.String uuid,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
static java.util.List<User> |
findByUuid(java.lang.String uuid)
|
static java.util.List<User> |
findByUuid(java.lang.String uuid,
int start,
int end)
|
static java.util.List<User> |
findByUuid(java.lang.String uuid,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
static java.util.List<java.lang.Object> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
|
static java.util.List<java.lang.Object> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end)
|
static java.util.List<Group> |
getGroups(long pk)
|
static java.util.List<Group> |
getGroups(long pk,
int start,
int end)
|
static java.util.List<Group> |
getGroups(long pk,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
static int |
getGroupsSize(long pk)
|
static java.util.List<Organization> |
getOrganizations(long pk)
|
static java.util.List<Organization> |
getOrganizations(long pk,
int start,
int end)
|
static java.util.List<Organization> |
getOrganizations(long pk,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
static int |
getOrganizationsSize(long pk)
|
static java.util.List<Permission> |
getPermissions(long pk)
|
static java.util.List<Permission> |
getPermissions(long pk,
int start,
int end)
|
static java.util.List<Permission> |
getPermissions(long pk,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
static int |
getPermissionsSize(long pk)
|
static UserPersistence |
getPersistence()
|
static java.util.List<Role> |
getRoles(long pk)
|
static java.util.List<Role> |
getRoles(long pk,
int start,
int end)
|
static java.util.List<Role> |
getRoles(long pk,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
static int |
getRolesSize(long pk)
|
static java.util.List<UserGroup> |
getUserGroups(long pk)
|
static java.util.List<UserGroup> |
getUserGroups(long pk,
int start,
int end)
|
static java.util.List<UserGroup> |
getUserGroups(long pk,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
static int |
getUserGroupsSize(long pk)
|
static User |
remove(long userId)
|
static User |
remove(User user)
|
static void |
removeAll()
|
static void |
removeByC_DU(long companyId,
boolean defaultUser)
|
static void |
removeByC_EA(long companyId,
java.lang.String emailAddress)
|
static void |
removeByC_P(long companyId,
java.lang.String password)
|
static void |
removeByC_SN(long companyId,
java.lang.String screenName)
|
static void |
removeByC_U(long companyId,
long userId)
|
static void |
removeByCompanyId(long companyId)
|
static void |
removeByContactId(long contactId)
|
static void |
removeByEmailAddress(java.lang.String emailAddress)
|
static void |
removeByOpenId(java.lang.String openId)
|
static void |
removeByPortraitId(long portraitId)
|
static void |
removeByUuid(java.lang.String uuid)
|
static void |
removeGroup(long pk,
Group group)
|
static void |
removeGroup(long pk,
long groupPK)
|
static void |
removeGroups(long pk,
java.util.List<Group> groups)
|
static void |
removeGroups(long pk,
long[] groupPKs)
|
static void |
removeOrganization(long pk,
long organizationPK)
|
static void |
removeOrganization(long pk,
Organization organization)
|
static void |
removeOrganizations(long pk,
java.util.List<Organization> organizations)
|
static void |
removeOrganizations(long pk,
long[] organizationPKs)
|
static void |
removePermission(long pk,
long permissionPK)
|
static void |
removePermission(long pk,
Permission permission)
|
static void |
removePermissions(long pk,
java.util.List<Permission> permissions)
|
static void |
removePermissions(long pk,
long[] permissionPKs)
|
static void |
removeRole(long pk,
long rolePK)
|
static void |
removeRole(long pk,
Role role)
|
static void |
removeRoles(long pk,
java.util.List<Role> roles)
|
static void |
removeRoles(long pk,
long[] rolePKs)
|
static void |
removeUserGroup(long pk,
long userGroupPK)
|
static void |
removeUserGroup(long pk,
UserGroup userGroup)
|
static void |
removeUserGroups(long pk,
java.util.List<UserGroup> userGroups)
|
static void |
removeUserGroups(long pk,
long[] userGroupPKs)
|
static void |
setGroups(long pk,
java.util.List<Group> groups)
|
static void |
setGroups(long pk,
long[] groupPKs)
|
static void |
setOrganizations(long pk,
java.util.List<Organization> organizations)
|
static void |
setOrganizations(long pk,
long[] organizationPKs)
|
static void |
setPermissions(long pk,
java.util.List<Permission> permissions)
|
static void |
setPermissions(long pk,
long[] permissionPKs)
|
void |
setPersistence(UserPersistence persistence)
|
static void |
setRoles(long pk,
java.util.List<Role> roles)
|
static void |
setRoles(long pk,
long[] rolePKs)
|
static void |
setUserGroups(long pk,
java.util.List<UserGroup> userGroups)
|
static void |
setUserGroups(long pk,
long[] userGroupPKs)
|
static User |
update(User user)
Deprecated. Use update(User user, boolean merge) . |
static User |
update(User user,
boolean merge)
Add, update, or merge, the entity. |
static User |
updateImpl(User user,
boolean merge)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
UserUtil
public UserUtil()
create
public static User create(long userId)
remove
public static User remove(long userId)
throws NoSuchUserException,
com.liferay.portal.SystemException
- Throws:
NoSuchUserException
com.liferay.portal.SystemException
remove
public static User remove(User user)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
update
public static User update(User user)
throws com.liferay.portal.SystemException
- Deprecated. Use
update(User user, boolean merge)
.
- Throws:
com.liferay.portal.SystemException
update
public static User update(User user,
boolean merge)
throws com.liferay.portal.SystemException
- Add, update, or merge, the entity. This method also calls the model
listeners to trigger the proper events associated with adding, deleting,
or updating an entity.
- Parameters:
user
- the entity to add, update, or mergemerge
- boolean value for whether to merge the entity. The
default value is false. Setting merge to true is more
expensive and should only be true when user is
transient. See LEP-5473 for a detailed discussion of this
method.
- Returns:
- true if the portlet can be displayed via Ajax
- Throws:
com.liferay.portal.SystemException
updateImpl
public static User updateImpl(User user,
boolean merge)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findByPrimaryKey
public static User findByPrimaryKey(long userId)
throws NoSuchUserException,
com.liferay.portal.SystemException
- Throws:
NoSuchUserException
com.liferay.portal.SystemException
fetchByPrimaryKey
public static User fetchByPrimaryKey(long userId)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findByUuid
public static java.util.List<User> findByUuid(java.lang.String uuid)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findByUuid
public static java.util.List<User> findByUuid(java.lang.String uuid,
int start,
int end)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findByUuid
public static java.util.List<User> findByUuid(java.lang.String uuid,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findByUuid_First
public static User findByUuid_First(java.lang.String uuid,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws NoSuchUserException,
com.liferay.portal.SystemException
- Throws:
NoSuchUserException
com.liferay.portal.SystemException
findByUuid_Last
public static User findByUuid_Last(java.lang.String uuid,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws NoSuchUserException,
com.liferay.portal.SystemException
- Throws:
NoSuchUserException
com.liferay.portal.SystemException
findByUuid_PrevAndNext
public static User[] findByUuid_PrevAndNext(long userId,
java.lang.String uuid,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws NoSuchUserException,
com.liferay.portal.SystemException
- Throws:
NoSuchUserException
com.liferay.portal.SystemException
findByCompanyId
public static java.util.List<User> findByCompanyId(long companyId)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findByCompanyId
public static java.util.List<User> findByCompanyId(long companyId,
int start,
int end)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findByCompanyId
public static java.util.List<User> findByCompanyId(long companyId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findByCompanyId_First
public static User findByCompanyId_First(long companyId,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws NoSuchUserException,
com.liferay.portal.SystemException
- Throws:
NoSuchUserException
com.liferay.portal.SystemException
findByCompanyId_Last
public static User findByCompanyId_Last(long companyId,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws NoSuchUserException,
com.liferay.portal.SystemException
- Throws:
NoSuchUserException
com.liferay.portal.SystemException
findByCompanyId_PrevAndNext
public static User[] findByCompanyId_PrevAndNext(long userId,
long companyId,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws NoSuchUserException,
com.liferay.portal.SystemException
- Throws:
NoSuchUserException
com.liferay.portal.SystemException
findByContactId
public static User findByContactId(long contactId)
throws NoSuchUserException,
com.liferay.portal.SystemException
- Throws:
NoSuchUserException
com.liferay.portal.SystemException
fetchByContactId
public static User fetchByContactId(long contactId)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findByEmailAddress
public static java.util.List<User> findByEmailAddress(java.lang.String emailAddress)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findByEmailAddress
public static java.util.List<User> findByEmailAddress(java.lang.String emailAddress,
int start,
int end)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findByEmailAddress
public static java.util.List<User> findByEmailAddress(java.lang.String emailAddress,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findByEmailAddress_First
public static User findByEmailAddress_First(java.lang.String emailAddress,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws NoSuchUserException,
com.liferay.portal.SystemException
- Throws:
NoSuchUserException
com.liferay.portal.SystemException
findByEmailAddress_Last
public static User findByEmailAddress_Last(java.lang.String emailAddress,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws NoSuchUserException,
com.liferay.portal.SystemException
- Throws:
NoSuchUserException
com.liferay.portal.SystemException
findByEmailAddress_PrevAndNext
public static User[] findByEmailAddress_PrevAndNext(long userId,
java.lang.String emailAddress,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws NoSuchUserException,
com.liferay.portal.SystemException
- Throws:
NoSuchUserException
com.liferay.portal.SystemException
findByOpenId
public static User findByOpenId(java.lang.String openId)
throws NoSuchUserException,
com.liferay.portal.SystemException
- Throws:
NoSuchUserException
com.liferay.portal.SystemException
fetchByOpenId
public static User fetchByOpenId(java.lang.String openId)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findByPortraitId
public static User findByPortraitId(long portraitId)
throws NoSuchUserException,
com.liferay.portal.SystemException
- Throws:
NoSuchUserException
com.liferay.portal.SystemException
fetchByPortraitId
public static User fetchByPortraitId(long portraitId)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findByC_U
public static User findByC_U(long companyId,
long userId)
throws NoSuchUserException,
com.liferay.portal.SystemException
- Throws:
NoSuchUserException
com.liferay.portal.SystemException
fetchByC_U
public static User fetchByC_U(long companyId,
long userId)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findByC_DU
public static User findByC_DU(long companyId,
boolean defaultUser)
throws NoSuchUserException,
com.liferay.portal.SystemException
- Throws:
NoSuchUserException
com.liferay.portal.SystemException
fetchByC_DU
public static User fetchByC_DU(long companyId,
boolean defaultUser)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findByC_P
public static java.util.List<User> findByC_P(long companyId,
java.lang.String password)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findByC_P
public static java.util.List<User> findByC_P(long companyId,
java.lang.String password,
int start,
int end)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findByC_P
public static java.util.List<User> findByC_P(long companyId,
java.lang.String password,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findByC_P_First
public static User findByC_P_First(long companyId,
java.lang.String password,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws NoSuchUserException,
com.liferay.portal.SystemException
- Throws:
NoSuchUserException
com.liferay.portal.SystemException
findByC_P_Last
public static User findByC_P_Last(long companyId,
java.lang.String password,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws NoSuchUserException,
com.liferay.portal.SystemException
- Throws:
NoSuchUserException
com.liferay.portal.SystemException
findByC_P_PrevAndNext
public static User[] findByC_P_PrevAndNext(long userId,
long companyId,
java.lang.String password,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws NoSuchUserException,
com.liferay.portal.SystemException
- Throws:
NoSuchUserException
com.liferay.portal.SystemException
findByC_SN
public static User findByC_SN(long companyId,
java.lang.String screenName)
throws NoSuchUserException,
com.liferay.portal.SystemException
- Throws:
NoSuchUserException
com.liferay.portal.SystemException
fetchByC_SN
public static User fetchByC_SN(long companyId,
java.lang.String screenName)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findByC_EA
public static User findByC_EA(long companyId,
java.lang.String emailAddress)
throws NoSuchUserException,
com.liferay.portal.SystemException
- Throws:
NoSuchUserException
com.liferay.portal.SystemException
fetchByC_EA
public static User fetchByC_EA(long companyId,
java.lang.String emailAddress)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findWithDynamicQuery
public static java.util.List<java.lang.Object> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findWithDynamicQuery
public static java.util.List<java.lang.Object> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findAll
public static java.util.List<User> findAll()
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findAll
public static java.util.List<User> findAll(int start,
int end)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findAll
public static java.util.List<User> findAll(int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
removeByUuid
public static void removeByUuid(java.lang.String uuid)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
removeByCompanyId
public static void removeByCompanyId(long companyId)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
removeByContactId
public static void removeByContactId(long contactId)
throws NoSuchUserException,
com.liferay.portal.SystemException
- Throws:
NoSuchUserException
com.liferay.portal.SystemException
removeByEmailAddress
public static void removeByEmailAddress(java.lang.String emailAddress)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
removeByOpenId
public static void removeByOpenId(java.lang.String openId)
throws NoSuchUserException,
com.liferay.portal.SystemException
- Throws:
NoSuchUserException
com.liferay.portal.SystemException
removeByPortraitId
public static void removeByPortraitId(long portraitId)
throws NoSuchUserException,
com.liferay.portal.SystemException
- Throws:
NoSuchUserException
com.liferay.portal.SystemException
removeByC_U
public static void removeByC_U(long companyId,
long userId)
throws NoSuchUserException,
com.liferay.portal.SystemException
- Throws:
NoSuchUserException
com.liferay.portal.SystemException
removeByC_DU
public static void removeByC_DU(long companyId,
boolean defaultUser)
throws NoSuchUserException,
com.liferay.portal.SystemException
- Throws:
NoSuchUserException
com.liferay.portal.SystemException
removeByC_P
public static void removeByC_P(long companyId,
java.lang.String password)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
removeByC_SN
public static void removeByC_SN(long companyId,
java.lang.String screenName)
throws NoSuchUserException,
com.liferay.portal.SystemException
- Throws:
NoSuchUserException
com.liferay.portal.SystemException
removeByC_EA
public static void removeByC_EA(long companyId,
java.lang.String emailAddress)
throws NoSuchUserException,
com.liferay.portal.SystemException
- Throws:
NoSuchUserException
com.liferay.portal.SystemException
removeAll
public static void removeAll()
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
countByUuid
public static int countByUuid(java.lang.String uuid)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
countByCompanyId
public static int countByCompanyId(long companyId)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
countByContactId
public static int countByContactId(long contactId)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
countByEmailAddress
public static int countByEmailAddress(java.lang.String emailAddress)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
countByOpenId
public static int countByOpenId(java.lang.String openId)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
countByPortraitId
public static int countByPortraitId(long portraitId)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
countByC_U
public static int countByC_U(long companyId,
long userId)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
countByC_DU
public static int countByC_DU(long companyId,
boolean defaultUser)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
countByC_P
public static int countByC_P(long companyId,
java.lang.String password)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
countByC_SN
public static int countByC_SN(long companyId,
java.lang.String screenName)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
countByC_EA
public static int countByC_EA(long companyId,
java.lang.String emailAddress)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
countAll
public static int countAll()
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
getGroups
public static java.util.List<Group> getGroups(long pk)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
getGroups
public static java.util.List<Group> getGroups(long pk,
int start,
int end)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
getGroups
public static java.util.List<Group> getGroups(long pk,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
getGroupsSize
public static int getGroupsSize(long pk)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
containsGroup
public static boolean containsGroup(long pk,
long groupPK)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
containsGroups
public static boolean containsGroups(long pk)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
addGroup
public static void addGroup(long pk,
long groupPK)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
addGroup
public static void addGroup(long pk,
Group group)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
addGroups
public static void addGroups(long pk,
long[] groupPKs)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
addGroups
public static void addGroups(long pk,
java.util.List<Group> groups)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
clearGroups
public static void clearGroups(long pk)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
removeGroup
public static void removeGroup(long pk,
long groupPK)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
removeGroup
public static void removeGroup(long pk,
Group group)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
removeGroups
public static void removeGroups(long pk,
long[] groupPKs)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
removeGroups
public static void removeGroups(long pk,
java.util.List<Group> groups)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
setGroups
public static void setGroups(long pk,
long[] groupPKs)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
setGroups
public static void setGroups(long pk,
java.util.List<Group> groups)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
getOrganizations
public static java.util.List<Organization> getOrganizations(long pk)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
getOrganizations
public static java.util.List<Organization> getOrganizations(long pk,
int start,
int end)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
getOrganizations
public static java.util.List<Organization> getOrganizations(long pk,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
getOrganizationsSize
public static int getOrganizationsSize(long pk)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
containsOrganization
public static boolean containsOrganization(long pk,
long organizationPK)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
containsOrganizations
public static boolean containsOrganizations(long pk)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
addOrganization
public static void addOrganization(long pk,
long organizationPK)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
addOrganization
public static void addOrganization(long pk,
Organization organization)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
addOrganizations
public static void addOrganizations(long pk,
long[] organizationPKs)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
addOrganizations
public static void addOrganizations(long pk,
java.util.List<Organization> organizations)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
clearOrganizations
public static void clearOrganizations(long pk)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
removeOrganization
public static void removeOrganization(long pk,
long organizationPK)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
removeOrganization
public static void removeOrganization(long pk,
Organization organization)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
removeOrganizations
public static void removeOrganizations(long pk,
long[] organizationPKs)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
removeOrganizations
public static void removeOrganizations(long pk,
java.util.List<Organization> organizations)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
setOrganizations
public static void setOrganizations(long pk,
long[] organizationPKs)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
setOrganizations
public static void setOrganizations(long pk,
java.util.List<Organization> organizations)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
getPermissions
public static java.util.List<Permission> getPermissions(long pk)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
getPermissions
public static java.util.List<Permission> getPermissions(long pk,
int start,
int end)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
getPermissions
public static java.util.List<Permission> getPermissions(long pk,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
getPermissionsSize
public static int getPermissionsSize(long pk)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
containsPermission
public static boolean containsPermission(long pk,
long permissionPK)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
containsPermissions
public static boolean containsPermissions(long pk)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
addPermission
public static void addPermission(long pk,
long permissionPK)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
addPermission
public static void addPermission(long pk,
Permission permission)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
addPermissions
public static void addPermissions(long pk,
long[] permissionPKs)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
addPermissions
public static void addPermissions(long pk,
java.util.List<Permission> permissions)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
clearPermissions
public static void clearPermissions(long pk)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
removePermission
public static void removePermission(long pk,
long permissionPK)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
removePermission
public static void removePermission(long pk,
Permission permission)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
removePermissions
public static void removePermissions(long pk,
long[] permissionPKs)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
removePermissions
public static void removePermissions(long pk,
java.util.List<Permission> permissions)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
setPermissions
public static void setPermissions(long pk,
long[] permissionPKs)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
setPermissions
public static void setPermissions(long pk,
java.util.List<Permission> permissions)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
getRoles
public static java.util.List<Role> getRoles(long pk)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
getRoles
public static java.util.List<Role> getRoles(long pk,
int start,
int end)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
getRoles
public static java.util.List<Role> getRoles(long pk,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
getRolesSize
public static int getRolesSize(long pk)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
containsRole
public static boolean containsRole(long pk,
long rolePK)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
containsRoles
public static boolean containsRoles(long pk)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
addRole
public static void addRole(long pk,
long rolePK)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
addRole
public static void addRole(long pk,
Role role)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
addRoles
public static void addRoles(long pk,
long[] rolePKs)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
addRoles
public static void addRoles(long pk,
java.util.List<Role> roles)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
clearRoles
public static void clearRoles(long pk)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
removeRole
public static void removeRole(long pk,
long rolePK)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
removeRole
public static void removeRole(long pk,
Role role)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
removeRoles
public static void removeRoles(long pk,
long[] rolePKs)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
removeRoles
public static void removeRoles(long pk,
java.util.List<Role> roles)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
setRoles
public static void setRoles(long pk,
long[] rolePKs)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
setRoles
public static void setRoles(long pk,
java.util.List<Role> roles)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
getUserGroups
public static java.util.List<UserGroup> getUserGroups(long pk)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
getUserGroups
public static java.util.List<UserGroup> getUserGroups(long pk,
int start,
int end)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
getUserGroups
public static java.util.List<UserGroup> getUserGroups(long pk,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
getUserGroupsSize
public static int getUserGroupsSize(long pk)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
containsUserGroup
public static boolean containsUserGroup(long pk,
long userGroupPK)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
containsUserGroups
public static boolean containsUserGroups(long pk)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
addUserGroup
public static void addUserGroup(long pk,
long userGroupPK)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
addUserGroup
public static void addUserGroup(long pk,
UserGroup userGroup)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
addUserGroups
public static void addUserGroups(long pk,
long[] userGroupPKs)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
addUserGroups
public static void addUserGroups(long pk,
java.util.List<UserGroup> userGroups)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
clearUserGroups
public static void clearUserGroups(long pk)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
removeUserGroup
public static void removeUserGroup(long pk,
long userGroupPK)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
removeUserGroup
public static void removeUserGroup(long pk,
UserGroup userGroup)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
removeUserGroups
public static void removeUserGroups(long pk,
long[] userGroupPKs)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
removeUserGroups
public static void removeUserGroups(long pk,
java.util.List<UserGroup> userGroups)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
setUserGroups
public static void setUserGroups(long pk,
long[] userGroupPKs)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
setUserGroups
public static void setUserGroups(long pk,
java.util.List<UserGroup> userGroups)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
getPersistence
public static UserPersistence getPersistence()
setPersistence
public void setPersistence(UserPersistence persistence)