public class UsersAdminImpl
extends Object
implements com.liferay.users.admin.kernel.util.UsersAdmin
Constructor and Description |
---|
UsersAdminImpl() |
Modifier and Type | Method and Description |
---|---|
void |
addPortletBreadcrumbEntries(com.liferay.portal.kernel.model.Organization organization,
javax.servlet.http.HttpServletRequest request,
RenderResponse renderResponse) |
long[] |
addRequiredRoles(long userId,
long[] roleIds) |
long[] |
addRequiredRoles(com.liferay.portal.kernel.model.User user,
long[] roleIds) |
List<com.liferay.portal.kernel.model.Role> |
filterGroupRoles(com.liferay.portal.kernel.security.permission.PermissionChecker permissionChecker,
long groupId,
List<com.liferay.portal.kernel.model.Role> roles) |
List<com.liferay.portal.kernel.model.Group> |
filterGroups(com.liferay.portal.kernel.security.permission.PermissionChecker permissionChecker,
List<com.liferay.portal.kernel.model.Group> groups) |
List<com.liferay.portal.kernel.model.Organization> |
filterOrganizations(com.liferay.portal.kernel.security.permission.PermissionChecker permissionChecker,
List<com.liferay.portal.kernel.model.Organization> organizations) |
List<com.liferay.portal.kernel.model.Role> |
filterRoles(com.liferay.portal.kernel.security.permission.PermissionChecker permissionChecker,
List<com.liferay.portal.kernel.model.Role> roles) |
long[] |
filterUnsetGroupUserIds(com.liferay.portal.kernel.security.permission.PermissionChecker permissionChecker,
long groupId,
long[] userIds) |
long[] |
filterUnsetOrganizationUserIds(com.liferay.portal.kernel.security.permission.PermissionChecker permissionChecker,
long organizationId,
long[] userIds) |
List<com.liferay.portal.kernel.model.UserGroupRole> |
filterUserGroupRoles(com.liferay.portal.kernel.security.permission.PermissionChecker permissionChecker,
List<com.liferay.portal.kernel.model.UserGroupRole> userGroupRoles) |
List<com.liferay.portal.kernel.model.UserGroup> |
filterUserGroups(com.liferay.portal.kernel.security.permission.PermissionChecker permissionChecker,
List<com.liferay.portal.kernel.model.UserGroup> userGroups) |
List<com.liferay.portal.kernel.model.Address> |
getAddresses(ActionRequest actionRequest) |
List<com.liferay.portal.kernel.model.Address> |
getAddresses(ActionRequest actionRequest,
List<com.liferay.portal.kernel.model.Address> defaultAddresses) |
List<com.liferay.portal.kernel.model.EmailAddress> |
getEmailAddresses(ActionRequest actionRequest) |
List<com.liferay.portal.kernel.model.EmailAddress> |
getEmailAddresses(ActionRequest actionRequest,
List<com.liferay.portal.kernel.model.EmailAddress> defaultEmailAddresses) |
long[] |
getGroupIds(PortletRequest portletRequest) |
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Group> |
getGroupOrderByComparator(String orderByCol,
String orderByType) |
Long[] |
getOrganizationIds(List<com.liferay.portal.kernel.model.Organization> organizations) |
long[] |
getOrganizationIds(PortletRequest portletRequest) |
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Organization> |
getOrganizationOrderByComparator(String orderByCol,
String orderByType) |
List<com.liferay.portal.kernel.model.Organization> |
getOrganizations(com.liferay.portal.kernel.search.Hits hits) |
List<com.liferay.portal.kernel.model.OrgLabor> |
getOrgLabors(ActionRequest actionRequest) |
List<com.liferay.portal.kernel.model.Phone> |
getPhones(ActionRequest actionRequest) |
List<com.liferay.portal.kernel.model.Phone> |
getPhones(ActionRequest actionRequest,
List<com.liferay.portal.kernel.model.Phone> defaultPhones) |
protected long[] |
getRequestPrimaryKeys(PortletRequest portletRequest,
long[] currentPKs,
String addParam,
String deleteParam) |
long[] |
getRoleIds(PortletRequest portletRequest) |
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Role> |
getRoleOrderByComparator(String orderByCol,
String orderByType) |
<T> String |
getUserColumnText(Locale locale,
List<? extends T> list,
com.liferay.portal.kernel.util.Accessor<T,String> accessor,
int count) |
long[] |
getUserGroupIds(PortletRequest portletRequest) |
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.UserGroup> |
getUserGroupOrderByComparator(String orderByCol,
String orderByType) |
List<com.liferay.portal.kernel.model.UserGroupRole> |
getUserGroupRoles(PortletRequest portletRequest) |
protected Set<com.liferay.portal.kernel.model.UserGroupRole> |
getUserGroupRoles(PortletRequest portletRequest,
com.liferay.portal.kernel.model.User user,
String groupIdsParam,
String roleIdsParam) |
List<com.liferay.portal.kernel.model.UserGroup> |
getUserGroups(com.liferay.portal.kernel.search.Hits hits) |
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.User> |
getUserOrderByComparator(String orderByCol,
String orderByType) |
List<com.liferay.portal.kernel.model.User> |
getUsers(com.liferay.portal.kernel.search.Hits hits) |
List<com.liferay.portal.kernel.model.Website> |
getWebsites(ActionRequest actionRequest) |
List<com.liferay.portal.kernel.model.Website> |
getWebsites(ActionRequest actionRequest,
List<com.liferay.portal.kernel.model.Website> defaultWebsites) |
boolean |
hasUpdateFieldPermission(com.liferay.portal.kernel.security.permission.PermissionChecker permissionChecker,
com.liferay.portal.kernel.model.User updatingUser,
com.liferay.portal.kernel.model.User updatedUser,
String field) |
long[] |
removeRequiredRoles(long userId,
long[] roleIds) |
long[] |
removeRequiredRoles(com.liferay.portal.kernel.model.User user,
long[] roleIds) |
void |
updateAddresses(String className,
long classPK,
List<com.liferay.portal.kernel.model.Address> addresses) |
void |
updateEmailAddresses(String className,
long classPK,
List<com.liferay.portal.kernel.model.EmailAddress> emailAddresses) |
void |
updateOrgLabors(long classPK,
List<com.liferay.portal.kernel.model.OrgLabor> orgLabors) |
void |
updatePhones(String className,
long classPK,
List<com.liferay.portal.kernel.model.Phone> phones) |
void |
updateWebsites(String className,
long classPK,
List<com.liferay.portal.kernel.model.Website> websites) |
public void addPortletBreadcrumbEntries(com.liferay.portal.kernel.model.Organization organization, javax.servlet.http.HttpServletRequest request, RenderResponse renderResponse) throws Exception
addPortletBreadcrumbEntries
in interface com.liferay.users.admin.kernel.util.UsersAdmin
Exception
public long[] addRequiredRoles(long userId, long[] roleIds) throws com.liferay.portal.kernel.exception.PortalException
addRequiredRoles
in interface com.liferay.users.admin.kernel.util.UsersAdmin
com.liferay.portal.kernel.exception.PortalException
public long[] addRequiredRoles(com.liferay.portal.kernel.model.User user, long[] roleIds) throws com.liferay.portal.kernel.exception.PortalException
addRequiredRoles
in interface com.liferay.users.admin.kernel.util.UsersAdmin
com.liferay.portal.kernel.exception.PortalException
public List<com.liferay.portal.kernel.model.Role> filterGroupRoles(com.liferay.portal.kernel.security.permission.PermissionChecker permissionChecker, long groupId, List<com.liferay.portal.kernel.model.Role> roles) throws com.liferay.portal.kernel.exception.PortalException
filterGroupRoles
in interface com.liferay.users.admin.kernel.util.UsersAdmin
com.liferay.portal.kernel.exception.PortalException
public List<com.liferay.portal.kernel.model.Group> filterGroups(com.liferay.portal.kernel.security.permission.PermissionChecker permissionChecker, List<com.liferay.portal.kernel.model.Group> groups) throws com.liferay.portal.kernel.exception.PortalException
filterGroups
in interface com.liferay.users.admin.kernel.util.UsersAdmin
com.liferay.portal.kernel.exception.PortalException
public List<com.liferay.portal.kernel.model.Organization> filterOrganizations(com.liferay.portal.kernel.security.permission.PermissionChecker permissionChecker, List<com.liferay.portal.kernel.model.Organization> organizations) throws com.liferay.portal.kernel.exception.PortalException
filterOrganizations
in interface com.liferay.users.admin.kernel.util.UsersAdmin
com.liferay.portal.kernel.exception.PortalException
public List<com.liferay.portal.kernel.model.Role> filterRoles(com.liferay.portal.kernel.security.permission.PermissionChecker permissionChecker, List<com.liferay.portal.kernel.model.Role> roles)
filterRoles
in interface com.liferay.users.admin.kernel.util.UsersAdmin
public long[] filterUnsetGroupUserIds(com.liferay.portal.kernel.security.permission.PermissionChecker permissionChecker, long groupId, long[] userIds) throws com.liferay.portal.kernel.exception.PortalException
filterUnsetGroupUserIds
in interface com.liferay.users.admin.kernel.util.UsersAdmin
com.liferay.portal.kernel.exception.PortalException
public long[] filterUnsetOrganizationUserIds(com.liferay.portal.kernel.security.permission.PermissionChecker permissionChecker, long organizationId, long[] userIds) throws com.liferay.portal.kernel.exception.PortalException
filterUnsetOrganizationUserIds
in interface com.liferay.users.admin.kernel.util.UsersAdmin
com.liferay.portal.kernel.exception.PortalException
public List<com.liferay.portal.kernel.model.UserGroupRole> filterUserGroupRoles(com.liferay.portal.kernel.security.permission.PermissionChecker permissionChecker, List<com.liferay.portal.kernel.model.UserGroupRole> userGroupRoles) throws com.liferay.portal.kernel.exception.PortalException
filterUserGroupRoles
in interface com.liferay.users.admin.kernel.util.UsersAdmin
com.liferay.portal.kernel.exception.PortalException
public List<com.liferay.portal.kernel.model.UserGroup> filterUserGroups(com.liferay.portal.kernel.security.permission.PermissionChecker permissionChecker, List<com.liferay.portal.kernel.model.UserGroup> userGroups)
filterUserGroups
in interface com.liferay.users.admin.kernel.util.UsersAdmin
public List<com.liferay.portal.kernel.model.Address> getAddresses(ActionRequest actionRequest)
getAddresses
in interface com.liferay.users.admin.kernel.util.UsersAdmin
public List<com.liferay.portal.kernel.model.Address> getAddresses(ActionRequest actionRequest, List<com.liferay.portal.kernel.model.Address> defaultAddresses)
getAddresses
in interface com.liferay.users.admin.kernel.util.UsersAdmin
public List<com.liferay.portal.kernel.model.EmailAddress> getEmailAddresses(ActionRequest actionRequest)
getEmailAddresses
in interface com.liferay.users.admin.kernel.util.UsersAdmin
public List<com.liferay.portal.kernel.model.EmailAddress> getEmailAddresses(ActionRequest actionRequest, List<com.liferay.portal.kernel.model.EmailAddress> defaultEmailAddresses)
getEmailAddresses
in interface com.liferay.users.admin.kernel.util.UsersAdmin
public long[] getGroupIds(PortletRequest portletRequest) throws com.liferay.portal.kernel.exception.PortalException
getGroupIds
in interface com.liferay.users.admin.kernel.util.UsersAdmin
com.liferay.portal.kernel.exception.PortalException
public com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Group> getGroupOrderByComparator(String orderByCol, String orderByType)
getGroupOrderByComparator
in interface com.liferay.users.admin.kernel.util.UsersAdmin
public Long[] getOrganizationIds(List<com.liferay.portal.kernel.model.Organization> organizations)
getOrganizationIds
in interface com.liferay.users.admin.kernel.util.UsersAdmin
public long[] getOrganizationIds(PortletRequest portletRequest) throws com.liferay.portal.kernel.exception.PortalException
getOrganizationIds
in interface com.liferay.users.admin.kernel.util.UsersAdmin
com.liferay.portal.kernel.exception.PortalException
public com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Organization> getOrganizationOrderByComparator(String orderByCol, String orderByType)
getOrganizationOrderByComparator
in interface com.liferay.users.admin.kernel.util.UsersAdmin
public List<com.liferay.portal.kernel.model.Organization> getOrganizations(com.liferay.portal.kernel.search.Hits hits) throws com.liferay.portal.kernel.exception.PortalException
getOrganizations
in interface com.liferay.users.admin.kernel.util.UsersAdmin
com.liferay.portal.kernel.exception.PortalException
public List<com.liferay.portal.kernel.model.OrgLabor> getOrgLabors(ActionRequest actionRequest)
getOrgLabors
in interface com.liferay.users.admin.kernel.util.UsersAdmin
public List<com.liferay.portal.kernel.model.Phone> getPhones(ActionRequest actionRequest)
getPhones
in interface com.liferay.users.admin.kernel.util.UsersAdmin
public List<com.liferay.portal.kernel.model.Phone> getPhones(ActionRequest actionRequest, List<com.liferay.portal.kernel.model.Phone> defaultPhones)
getPhones
in interface com.liferay.users.admin.kernel.util.UsersAdmin
public long[] getRoleIds(PortletRequest portletRequest) throws com.liferay.portal.kernel.exception.PortalException
getRoleIds
in interface com.liferay.users.admin.kernel.util.UsersAdmin
com.liferay.portal.kernel.exception.PortalException
public com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Role> getRoleOrderByComparator(String orderByCol, String orderByType)
getRoleOrderByComparator
in interface com.liferay.users.admin.kernel.util.UsersAdmin
public <T> String getUserColumnText(Locale locale, List<? extends T> list, com.liferay.portal.kernel.util.Accessor<T,String> accessor, int count)
getUserColumnText
in interface com.liferay.users.admin.kernel.util.UsersAdmin
public long[] getUserGroupIds(PortletRequest portletRequest) throws com.liferay.portal.kernel.exception.PortalException
getUserGroupIds
in interface com.liferay.users.admin.kernel.util.UsersAdmin
com.liferay.portal.kernel.exception.PortalException
public com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.UserGroup> getUserGroupOrderByComparator(String orderByCol, String orderByType)
getUserGroupOrderByComparator
in interface com.liferay.users.admin.kernel.util.UsersAdmin
public List<com.liferay.portal.kernel.model.UserGroupRole> getUserGroupRoles(PortletRequest portletRequest) throws com.liferay.portal.kernel.exception.PortalException
getUserGroupRoles
in interface com.liferay.users.admin.kernel.util.UsersAdmin
com.liferay.portal.kernel.exception.PortalException
public List<com.liferay.portal.kernel.model.UserGroup> getUserGroups(com.liferay.portal.kernel.search.Hits hits) throws com.liferay.portal.kernel.exception.PortalException
getUserGroups
in interface com.liferay.users.admin.kernel.util.UsersAdmin
com.liferay.portal.kernel.exception.PortalException
public com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.User> getUserOrderByComparator(String orderByCol, String orderByType)
getUserOrderByComparator
in interface com.liferay.users.admin.kernel.util.UsersAdmin
public List<com.liferay.portal.kernel.model.User> getUsers(com.liferay.portal.kernel.search.Hits hits) throws com.liferay.portal.kernel.exception.PortalException
getUsers
in interface com.liferay.users.admin.kernel.util.UsersAdmin
com.liferay.portal.kernel.exception.PortalException
public List<com.liferay.portal.kernel.model.Website> getWebsites(ActionRequest actionRequest)
getWebsites
in interface com.liferay.users.admin.kernel.util.UsersAdmin
public List<com.liferay.portal.kernel.model.Website> getWebsites(ActionRequest actionRequest, List<com.liferay.portal.kernel.model.Website> defaultWebsites)
getWebsites
in interface com.liferay.users.admin.kernel.util.UsersAdmin
public boolean hasUpdateFieldPermission(com.liferay.portal.kernel.security.permission.PermissionChecker permissionChecker, com.liferay.portal.kernel.model.User updatingUser, com.liferay.portal.kernel.model.User updatedUser, String field) throws com.liferay.portal.kernel.exception.PortalException
hasUpdateFieldPermission
in interface com.liferay.users.admin.kernel.util.UsersAdmin
com.liferay.portal.kernel.exception.PortalException
public long[] removeRequiredRoles(long userId, long[] roleIds) throws com.liferay.portal.kernel.exception.PortalException
removeRequiredRoles
in interface com.liferay.users.admin.kernel.util.UsersAdmin
com.liferay.portal.kernel.exception.PortalException
public long[] removeRequiredRoles(com.liferay.portal.kernel.model.User user, long[] roleIds) throws com.liferay.portal.kernel.exception.PortalException
removeRequiredRoles
in interface com.liferay.users.admin.kernel.util.UsersAdmin
com.liferay.portal.kernel.exception.PortalException
public void updateAddresses(String className, long classPK, List<com.liferay.portal.kernel.model.Address> addresses) throws com.liferay.portal.kernel.exception.PortalException
updateAddresses
in interface com.liferay.users.admin.kernel.util.UsersAdmin
com.liferay.portal.kernel.exception.PortalException
public void updateEmailAddresses(String className, long classPK, List<com.liferay.portal.kernel.model.EmailAddress> emailAddresses) throws com.liferay.portal.kernel.exception.PortalException
updateEmailAddresses
in interface com.liferay.users.admin.kernel.util.UsersAdmin
com.liferay.portal.kernel.exception.PortalException
public void updateOrgLabors(long classPK, List<com.liferay.portal.kernel.model.OrgLabor> orgLabors) throws com.liferay.portal.kernel.exception.PortalException
updateOrgLabors
in interface com.liferay.users.admin.kernel.util.UsersAdmin
com.liferay.portal.kernel.exception.PortalException
public void updatePhones(String className, long classPK, List<com.liferay.portal.kernel.model.Phone> phones) throws com.liferay.portal.kernel.exception.PortalException
updatePhones
in interface com.liferay.users.admin.kernel.util.UsersAdmin
com.liferay.portal.kernel.exception.PortalException
public void updateWebsites(String className, long classPK, List<com.liferay.portal.kernel.model.Website> websites) throws com.liferay.portal.kernel.exception.PortalException
updateWebsites
in interface com.liferay.users.admin.kernel.util.UsersAdmin
com.liferay.portal.kernel.exception.PortalException
protected long[] getRequestPrimaryKeys(PortletRequest portletRequest, long[] currentPKs, String addParam, String deleteParam)
protected Set<com.liferay.portal.kernel.model.UserGroupRole> getUserGroupRoles(PortletRequest portletRequest, com.liferay.portal.kernel.model.User user, String groupIdsParam, String roleIdsParam)