com.liferay.portlet.enterpriseadmin.util
Class EnterpriseAdminUtil
java.lang.Object
com.liferay.portlet.enterpriseadmin.util.EnterpriseAdminUtil
public class EnterpriseAdminUtil
- extends Object
Method Summary |
static void |
addPortletBreadcrumbEntries(Organization organization,
javax.servlet.http.HttpServletRequest request,
RenderResponse renderResponse)
|
static long[] |
addRequiredRoles(long userId,
long[] roleIds)
|
static long[] |
addRequiredRoles(User user,
long[] roleIds)
|
static List<Role> |
filterGroupRoles(PermissionChecker permissionChecker,
long groupId,
List<Role> roles)
|
static List<Group> |
filterGroups(PermissionChecker permissionChecker,
List<Group> groups)
|
static List<Organization> |
filterOrganizations(PermissionChecker permissionChecker,
List<Organization> organizations)
|
static List<Role> |
filterRoles(PermissionChecker permissionChecker,
List<Role> roles)
|
static List<UserGroupRole> |
filterUserGroupRoles(PermissionChecker permissionChecker,
List<UserGroupRole> userGroupRoles)
|
static List<UserGroup> |
filterUserGroups(PermissionChecker permissionChecker,
List<UserGroup> userGroups)
|
static List<Address> |
getAddresses(ActionRequest actionRequest)
|
static String |
getCssClassName(Role role)
|
static List<EmailAddress> |
getEmailAddresses(ActionRequest actionRequest)
|
static EnterpriseAdmin |
getEnterpriseAdmin()
|
static OrderByComparator |
getGroupOrderByComparator(String orderByCol,
String orderByType)
|
static Long[][] |
getLeftAndRightOrganizationIds(List<Organization> organizations)
|
static Long[][] |
getLeftAndRightOrganizationIds(long organizationId)
|
static Long[][] |
getLeftAndRightOrganizationIds(Organization organization)
|
static Long[] |
getOrganizationIds(List<Organization> organizations)
|
static OrderByComparator |
getOrganizationOrderByComparator(String orderByCol,
String orderByType)
|
static List<OrgLabor> |
getOrgLabors(ActionRequest actionRequest)
|
static OrderByComparator |
getPasswordPolicyOrderByComparator(String orderByCol,
String orderByType)
|
static List<Phone> |
getPhones(ActionRequest actionRequest)
|
static OrderByComparator |
getRoleOrderByComparator(String orderByCol,
String orderByType)
|
static OrderByComparator |
getUserGroupOrderByComparator(String orderByCol,
String orderByType)
|
static List<UserGroupRole> |
getUserGroupRoles(PortletRequest portletRequest)
|
static OrderByComparator |
getUserOrderByComparator(String orderByCol,
String orderByType)
|
static List<Website> |
getWebsites(ActionRequest actionRequest)
|
static boolean |
hasUpdateEmailAddress(PermissionChecker permissionChecker,
User user)
|
static boolean |
hasUpdateScreenName(PermissionChecker permissionChecker,
User user)
|
static long[] |
removeRequiredRoles(long userId,
long[] roleIds)
|
static long[] |
removeRequiredRoles(User user,
long[] roleIds)
|
void |
setEnterpriseAdmin(EnterpriseAdmin enterpriseAdmin)
|
static void |
updateAddresses(String className,
long classPK,
List<Address> addresses)
|
static void |
updateEmailAddresses(String className,
long classPK,
List<EmailAddress> emailAddresses)
|
static void |
updateOrgLabors(long classPK,
List<OrgLabor> orgLabors)
|
static void |
updatePhones(String className,
long classPK,
List<Phone> phones)
|
static 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 |
CUSTOM_QUESTION
public static final String CUSTOM_QUESTION
- See Also:
- Constant Field Values
EnterpriseAdminUtil
public EnterpriseAdminUtil()
addPortletBreadcrumbEntries
public static void addPortletBreadcrumbEntries(Organization organization,
javax.servlet.http.HttpServletRequest request,
RenderResponse renderResponse)
throws Exception
- Throws:
Exception
getCssClassName
public static String getCssClassName(Role role)
addRequiredRoles
public static long[] addRequiredRoles(long userId,
long[] roleIds)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
addRequiredRoles
public static long[] addRequiredRoles(User user,
long[] roleIds)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
filterGroupRoles
public static List<Role> filterGroupRoles(PermissionChecker permissionChecker,
long groupId,
List<Role> roles)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
filterGroups
public static List<Group> filterGroups(PermissionChecker permissionChecker,
List<Group> groups)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
filterOrganizations
public static List<Organization> filterOrganizations(PermissionChecker permissionChecker,
List<Organization> organizations)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
filterRoles
public static List<Role> filterRoles(PermissionChecker permissionChecker,
List<Role> roles)
filterUserGroupRoles
public static List<UserGroupRole> filterUserGroupRoles(PermissionChecker permissionChecker,
List<UserGroupRole> userGroupRoles)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
filterUserGroups
public static List<UserGroup> filterUserGroups(PermissionChecker permissionChecker,
List<UserGroup> userGroups)
getAddresses
public static List<Address> getAddresses(ActionRequest actionRequest)
getEmailAddresses
public static List<EmailAddress> getEmailAddresses(ActionRequest actionRequest)
getGroupOrderByComparator
public static OrderByComparator getGroupOrderByComparator(String orderByCol,
String orderByType)
getLeftAndRightOrganizationIds
public static Long[][] getLeftAndRightOrganizationIds(long organizationId)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
getLeftAndRightOrganizationIds
public static Long[][] getLeftAndRightOrganizationIds(Organization organization)
getLeftAndRightOrganizationIds
public static Long[][] getLeftAndRightOrganizationIds(List<Organization> organizations)
getOrganizationIds
public static Long[] getOrganizationIds(List<Organization> organizations)
getOrganizationOrderByComparator
public static OrderByComparator getOrganizationOrderByComparator(String orderByCol,
String orderByType)
getOrgLabors
public static List<OrgLabor> getOrgLabors(ActionRequest actionRequest)
getPasswordPolicyOrderByComparator
public static OrderByComparator getPasswordPolicyOrderByComparator(String orderByCol,
String orderByType)
getPhones
public static List<Phone> getPhones(ActionRequest actionRequest)
getRoleOrderByComparator
public static OrderByComparator getRoleOrderByComparator(String orderByCol,
String orderByType)
getUserGroupOrderByComparator
public static OrderByComparator getUserGroupOrderByComparator(String orderByCol,
String orderByType)
getUserGroupRoles
public static List<UserGroupRole> getUserGroupRoles(PortletRequest portletRequest)
throws SystemException,
PortalException
- Throws:
SystemException
PortalException
getUserOrderByComparator
public static OrderByComparator getUserOrderByComparator(String orderByCol,
String orderByType)
getWebsites
public static List<Website> getWebsites(ActionRequest actionRequest)
hasUpdateEmailAddress
public static boolean hasUpdateEmailAddress(PermissionChecker permissionChecker,
User user)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
hasUpdateScreenName
public static boolean hasUpdateScreenName(PermissionChecker permissionChecker,
User user)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
removeRequiredRoles
public static long[] removeRequiredRoles(long userId,
long[] roleIds)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
removeRequiredRoles
public static long[] removeRequiredRoles(User user,
long[] roleIds)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
updateAddresses
public static void updateAddresses(String className,
long classPK,
List<Address> addresses)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
updateEmailAddresses
public static void updateEmailAddresses(String className,
long classPK,
List<EmailAddress> emailAddresses)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
updateOrgLabors
public static void updateOrgLabors(long classPK,
List<OrgLabor> orgLabors)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
updatePhones
public static void updatePhones(String className,
long classPK,
List<Phone> phones)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
updateWebsites
public static void updateWebsites(String className,
long classPK,
List<Website> websites)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
getEnterpriseAdmin
public static EnterpriseAdmin getEnterpriseAdmin()
setEnterpriseAdmin
public void setEnterpriseAdmin(EnterpriseAdmin enterpriseAdmin)