com.liferay.portlet.usersadmin.util
Class UsersAdminImpl
java.lang.Object
com.liferay.portlet.usersadmin.util.UsersAdminImpl
- All Implemented Interfaces:
- UsersAdmin
public class UsersAdminImpl
- extends Object
- implements UsersAdmin
Method Summary |
void |
addPortletBreadcrumbEntries(Organization organization,
javax.servlet.http.HttpServletRequest request,
RenderResponse renderResponse)
|
long[] |
addRequiredRoles(long userId,
long[] roleIds)
|
long[] |
addRequiredRoles(User user,
long[] roleIds)
|
List<Role> |
filterGroupRoles(PermissionChecker permissionChecker,
long groupId,
List<Role> roles)
|
List<Group> |
filterGroups(PermissionChecker permissionChecker,
List<Group> groups)
|
List<Organization> |
filterOrganizations(PermissionChecker permissionChecker,
List<Organization> organizations)
|
List<Role> |
filterRoles(PermissionChecker permissionChecker,
List<Role> roles)
|
long[] |
filterUnsetGroupUserIds(PermissionChecker permissionChecker,
long groupId,
long[] userIds)
|
long[] |
filterUnsetOrganizationUserIds(PermissionChecker permissionChecker,
long organizationId,
long[] userIds)
|
List<UserGroupRole> |
filterUserGroupRoles(PermissionChecker permissionChecker,
List<UserGroupRole> userGroupRoles)
|
List<UserGroup> |
filterUserGroups(PermissionChecker permissionChecker,
List<UserGroup> userGroups)
|
List<Address> |
getAddresses(ActionRequest actionRequest)
|
List<Address> |
getAddresses(ActionRequest actionRequest,
List<Address> defaultAddresses)
|
List<EmailAddress> |
getEmailAddresses(ActionRequest actionRequest)
|
List<EmailAddress> |
getEmailAddresses(ActionRequest actionRequest,
List<EmailAddress> defaultEmailAddresses)
|
long[] |
getGroupIds(PortletRequest portletRequest)
|
OrderByComparator |
getGroupOrderByComparator(String orderByCol,
String orderByType)
|
Long[] |
getOrganizationIds(List<Organization> organizations)
|
long[] |
getOrganizationIds(PortletRequest portletRequest)
|
OrderByComparator |
getOrganizationOrderByComparator(String orderByCol,
String orderByType)
|
Tuple |
getOrganizations(Hits hits)
|
List<OrgLabor> |
getOrgLabors(ActionRequest actionRequest)
|
List<Phone> |
getPhones(ActionRequest actionRequest)
|
List<Phone> |
getPhones(ActionRequest actionRequest,
List<Phone> defaultPhones)
|
protected long[] |
getRequestPrimaryKeys(PortletRequest portletRequest,
long[] currentPKs,
String addParam,
String deleteParam)
|
long[] |
getRoleIds(PortletRequest portletRequest)
|
OrderByComparator |
getRoleOrderByComparator(String orderByCol,
String orderByType)
|
long[] |
getUserGroupIds(PortletRequest portletRequest)
|
OrderByComparator |
getUserGroupOrderByComparator(String orderByCol,
String orderByType)
|
List<UserGroupRole> |
getUserGroupRoles(PortletRequest portletRequest)
|
protected List<UserGroupRole> |
getUserGroupRoles(PortletRequest portletRequest,
User user,
String groupIdsParam,
String roleIdsParam)
|
Tuple |
getUserGroups(Hits hits)
|
OrderByComparator |
getUserOrderByComparator(String orderByCol,
String orderByType)
|
Tuple |
getUsers(Hits hits)
|
List<Website> |
getWebsites(ActionRequest actionRequest)
|
List<Website> |
getWebsites(ActionRequest actionRequest,
List<Website> defaultWebsites)
|
boolean |
hasUpdateEmailAddress(PermissionChecker permissionChecker,
User user)
Deprecated. As of 6.2.0, replaced by hasUpdateFieldPermission(PermissionChecker, User, User,
String) |
boolean |
hasUpdateFieldPermission(PermissionChecker permissionChecker,
User updatingUser,
User updatedUser,
String field)
|
boolean |
hasUpdateFieldPermission(User user,
String field)
Deprecated. As of 6.2.0, replaced by hasUpdateFieldPermission(PermissionChecker, User, User,
String) |
boolean |
hasUpdateScreenName(PermissionChecker permissionChecker,
User user)
Deprecated. As of 6.2.0, replaced by hasUpdateFieldPermission(PermissionChecker, User, User,
String) |
long[] |
removeRequiredRoles(long userId,
long[] roleIds)
|
long[] |
removeRequiredRoles(User user,
long[] roleIds)
|
void |
updateAddresses(String className,
long classPK,
List<Address> addresses)
|
void |
updateEmailAddresses(String className,
long classPK,
List<EmailAddress> emailAddresses)
|
void |
updateOrgLabors(long classPK,
List<OrgLabor> orgLabors)
|
void |
updatePhones(String className,
long classPK,
List<Phone> phones)
|
void |
updateWebsites(String className,
long classPK,
List<Website> websites)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
UsersAdminImpl
public UsersAdminImpl()
addPortletBreadcrumbEntries
public void addPortletBreadcrumbEntries(Organization organization,
javax.servlet.http.HttpServletRequest request,
RenderResponse renderResponse)
throws Exception
- Specified by:
addPortletBreadcrumbEntries
in interface UsersAdmin
- Throws:
Exception
addRequiredRoles
public long[] addRequiredRoles(long userId,
long[] roleIds)
throws PortalException,
SystemException
- Specified by:
addRequiredRoles
in interface UsersAdmin
- Throws:
PortalException
SystemException
addRequiredRoles
public long[] addRequiredRoles(User user,
long[] roleIds)
throws PortalException,
SystemException
- Specified by:
addRequiredRoles
in interface UsersAdmin
- Throws:
PortalException
SystemException
filterGroupRoles
public List<Role> filterGroupRoles(PermissionChecker permissionChecker,
long groupId,
List<Role> roles)
throws PortalException,
SystemException
- Specified by:
filterGroupRoles
in interface UsersAdmin
- Throws:
PortalException
SystemException
filterGroups
public List<Group> filterGroups(PermissionChecker permissionChecker,
List<Group> groups)
throws PortalException,
SystemException
- Specified by:
filterGroups
in interface UsersAdmin
- Throws:
PortalException
SystemException
filterOrganizations
public List<Organization> filterOrganizations(PermissionChecker permissionChecker,
List<Organization> organizations)
throws PortalException,
SystemException
- Specified by:
filterOrganizations
in interface UsersAdmin
- Throws:
PortalException
SystemException
filterRoles
public List<Role> filterRoles(PermissionChecker permissionChecker,
List<Role> roles)
- Specified by:
filterRoles
in interface UsersAdmin
filterUnsetGroupUserIds
public long[] filterUnsetGroupUserIds(PermissionChecker permissionChecker,
long groupId,
long[] userIds)
throws PortalException,
SystemException
- Specified by:
filterUnsetGroupUserIds
in interface UsersAdmin
- Throws:
PortalException
SystemException
filterUnsetOrganizationUserIds
public long[] filterUnsetOrganizationUserIds(PermissionChecker permissionChecker,
long organizationId,
long[] userIds)
throws PortalException,
SystemException
- Specified by:
filterUnsetOrganizationUserIds
in interface UsersAdmin
- Throws:
PortalException
SystemException
filterUserGroupRoles
public List<UserGroupRole> filterUserGroupRoles(PermissionChecker permissionChecker,
List<UserGroupRole> userGroupRoles)
throws PortalException,
SystemException
- Specified by:
filterUserGroupRoles
in interface UsersAdmin
- Throws:
PortalException
SystemException
filterUserGroups
public List<UserGroup> filterUserGroups(PermissionChecker permissionChecker,
List<UserGroup> userGroups)
- Specified by:
filterUserGroups
in interface UsersAdmin
getAddresses
public List<Address> getAddresses(ActionRequest actionRequest)
- Specified by:
getAddresses
in interface UsersAdmin
getAddresses
public List<Address> getAddresses(ActionRequest actionRequest,
List<Address> defaultAddresses)
- Specified by:
getAddresses
in interface UsersAdmin
getEmailAddresses
public List<EmailAddress> getEmailAddresses(ActionRequest actionRequest)
- Specified by:
getEmailAddresses
in interface UsersAdmin
getEmailAddresses
public List<EmailAddress> getEmailAddresses(ActionRequest actionRequest,
List<EmailAddress> defaultEmailAddresses)
- Specified by:
getEmailAddresses
in interface UsersAdmin
getGroupIds
public long[] getGroupIds(PortletRequest portletRequest)
throws PortalException,
SystemException
- Specified by:
getGroupIds
in interface UsersAdmin
- Throws:
PortalException
SystemException
getGroupOrderByComparator
public OrderByComparator getGroupOrderByComparator(String orderByCol,
String orderByType)
- Specified by:
getGroupOrderByComparator
in interface UsersAdmin
getOrganizationIds
public Long[] getOrganizationIds(List<Organization> organizations)
- Specified by:
getOrganizationIds
in interface UsersAdmin
getOrganizationIds
public long[] getOrganizationIds(PortletRequest portletRequest)
throws PortalException,
SystemException
- Specified by:
getOrganizationIds
in interface UsersAdmin
- Throws:
PortalException
SystemException
getOrganizationOrderByComparator
public OrderByComparator getOrganizationOrderByComparator(String orderByCol,
String orderByType)
- Specified by:
getOrganizationOrderByComparator
in interface UsersAdmin
getOrganizations
public Tuple getOrganizations(Hits hits)
throws PortalException,
SystemException
- Specified by:
getOrganizations
in interface UsersAdmin
- Throws:
PortalException
SystemException
getOrgLabors
public List<OrgLabor> getOrgLabors(ActionRequest actionRequest)
- Specified by:
getOrgLabors
in interface UsersAdmin
getPhones
public List<Phone> getPhones(ActionRequest actionRequest)
- Specified by:
getPhones
in interface UsersAdmin
getPhones
public List<Phone> getPhones(ActionRequest actionRequest,
List<Phone> defaultPhones)
- Specified by:
getPhones
in interface UsersAdmin
getRoleIds
public long[] getRoleIds(PortletRequest portletRequest)
throws PortalException,
SystemException
- Specified by:
getRoleIds
in interface UsersAdmin
- Throws:
PortalException
SystemException
getRoleOrderByComparator
public OrderByComparator getRoleOrderByComparator(String orderByCol,
String orderByType)
- Specified by:
getRoleOrderByComparator
in interface UsersAdmin
getUserGroupIds
public long[] getUserGroupIds(PortletRequest portletRequest)
throws PortalException,
SystemException
- Specified by:
getUserGroupIds
in interface UsersAdmin
- Throws:
PortalException
SystemException
getUserGroupOrderByComparator
public OrderByComparator getUserGroupOrderByComparator(String orderByCol,
String orderByType)
- Specified by:
getUserGroupOrderByComparator
in interface UsersAdmin
getUserGroupRoles
public List<UserGroupRole> getUserGroupRoles(PortletRequest portletRequest)
throws PortalException,
SystemException
- Specified by:
getUserGroupRoles
in interface UsersAdmin
- Throws:
PortalException
SystemException
getUserGroups
public Tuple getUserGroups(Hits hits)
throws PortalException,
SystemException
- Specified by:
getUserGroups
in interface UsersAdmin
- Throws:
PortalException
SystemException
getUserOrderByComparator
public OrderByComparator getUserOrderByComparator(String orderByCol,
String orderByType)
- Specified by:
getUserOrderByComparator
in interface UsersAdmin
getUsers
public Tuple getUsers(Hits hits)
throws PortalException,
SystemException
- Specified by:
getUsers
in interface UsersAdmin
- Throws:
PortalException
SystemException
getWebsites
public List<Website> getWebsites(ActionRequest actionRequest)
- Specified by:
getWebsites
in interface UsersAdmin
getWebsites
public List<Website> getWebsites(ActionRequest actionRequest,
List<Website> defaultWebsites)
- Specified by:
getWebsites
in interface UsersAdmin
hasUpdateEmailAddress
public boolean hasUpdateEmailAddress(PermissionChecker permissionChecker,
User user)
throws PortalException,
SystemException
- Deprecated. As of 6.2.0, replaced by
hasUpdateFieldPermission(PermissionChecker, User, User,
String)
- Specified by:
hasUpdateEmailAddress
in interface UsersAdmin
- Throws:
PortalException
SystemException
hasUpdateFieldPermission
public boolean hasUpdateFieldPermission(PermissionChecker permissionChecker,
User updatingUser,
User updatedUser,
String field)
throws PortalException,
SystemException
- Specified by:
hasUpdateFieldPermission
in interface UsersAdmin
- Throws:
PortalException
SystemException
hasUpdateFieldPermission
public boolean hasUpdateFieldPermission(User user,
String field)
throws PortalException,
SystemException
- Deprecated. As of 6.2.0, replaced by
hasUpdateFieldPermission(PermissionChecker, User, User,
String)
- Specified by:
hasUpdateFieldPermission
in interface UsersAdmin
- Throws:
PortalException
SystemException
hasUpdateScreenName
@Deprecated
public boolean hasUpdateScreenName(PermissionChecker permissionChecker,
User user)
throws PortalException,
SystemException
- Deprecated. As of 6.2.0, replaced by
hasUpdateFieldPermission(PermissionChecker, User, User,
String)
- Specified by:
hasUpdateScreenName
in interface UsersAdmin
- Throws:
PortalException
SystemException
removeRequiredRoles
public long[] removeRequiredRoles(long userId,
long[] roleIds)
throws PortalException,
SystemException
- Specified by:
removeRequiredRoles
in interface UsersAdmin
- Throws:
PortalException
SystemException
removeRequiredRoles
public long[] removeRequiredRoles(User user,
long[] roleIds)
throws PortalException,
SystemException
- Specified by:
removeRequiredRoles
in interface UsersAdmin
- Throws:
PortalException
SystemException
updateAddresses
public void updateAddresses(String className,
long classPK,
List<Address> addresses)
throws PortalException,
SystemException
- Specified by:
updateAddresses
in interface UsersAdmin
- Throws:
PortalException
SystemException
updateEmailAddresses
public void updateEmailAddresses(String className,
long classPK,
List<EmailAddress> emailAddresses)
throws PortalException,
SystemException
- Specified by:
updateEmailAddresses
in interface UsersAdmin
- Throws:
PortalException
SystemException
updateOrgLabors
public void updateOrgLabors(long classPK,
List<OrgLabor> orgLabors)
throws PortalException,
SystemException
- Specified by:
updateOrgLabors
in interface UsersAdmin
- Throws:
PortalException
SystemException
updatePhones
public void updatePhones(String className,
long classPK,
List<Phone> phones)
throws PortalException,
SystemException
- Specified by:
updatePhones
in interface UsersAdmin
- Throws:
PortalException
SystemException
updateWebsites
public void updateWebsites(String className,
long classPK,
List<Website> websites)
throws PortalException,
SystemException
- Specified by:
updateWebsites
in interface UsersAdmin
- Throws:
PortalException
SystemException
getRequestPrimaryKeys
protected long[] getRequestPrimaryKeys(PortletRequest portletRequest,
long[] currentPKs,
String addParam,
String deleteParam)
getUserGroupRoles
protected List<UserGroupRole> getUserGroupRoles(PortletRequest portletRequest,
User user,
String groupIdsParam,
String roleIdsParam)