com.liferay.portal.service
Class OrganizationLocalServiceUtil
java.lang.Object
com.liferay.portal.service.OrganizationLocalServiceUtil
public class OrganizationLocalServiceUtil
- extends java.lang.Object
View Source
ServiceBuilder generated this class. Modifications in this class will be
overwritten the next time is generated.
This class provides static methods for the
com.liferay.portal.service.OrganizationLocalService
bean. The static methods of this class calls the same methods of the bean
instance. It's convenient to be able to just write one line to call a method
on a bean instead of writing a lookup call and a method call.
- Author:
- Brian Wing Shun Chan
- See Also:
OrganizationLocalService
Method Summary |
static void |
addGroupOrganizations(long groupId,
long[] organizationIds)
|
static Organization |
addOrganization(long userId,
long parentOrganizationId,
java.lang.String name,
java.lang.String type,
boolean recursable,
long regionId,
long countryId,
int statusId,
java.lang.String comments,
ServiceContext serviceContext)
|
static Organization |
addOrganization(Organization organization)
|
static void |
addOrganizationResources(long userId,
Organization organization)
|
static void |
addPasswordPolicyOrganizations(long passwordPolicyId,
long[] organizationIds)
|
static Organization |
createOrganization(long organizationId)
|
static void |
deleteOrganization(long organizationId)
|
static void |
deleteOrganization(Organization organization)
|
static java.util.List<java.lang.Object> |
dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
|
static java.util.List<java.lang.Object> |
dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end)
|
static java.util.List<Organization> |
getGroupOrganizations(long groupId)
|
static java.util.List<Organization> |
getManageableOrganizations(long userId)
|
static Organization |
getOrganization(long organizationId)
|
static Organization |
getOrganization(long companyId,
java.lang.String name)
|
static long |
getOrganizationId(long companyId,
java.lang.String name)
|
static java.util.List<Organization> |
getOrganizations(int start,
int end)
|
static java.util.List<Organization> |
getOrganizations(long[] organizationIds)
|
static int |
getOrganizationsCount()
|
static java.util.List<Organization> |
getParentOrganizations(long organizationId)
|
static OrganizationLocalService |
getService()
|
static java.util.List<Organization> |
getSuborganizations(java.util.List<Organization> organizations)
|
static java.util.List<Organization> |
getSubsetOrganizations(java.util.List<Organization> allOrganizations,
java.util.List<Organization> availableOrganizations)
|
static java.util.List<Organization> |
getUserOrganizations(long userId)
|
static java.util.List<Organization> |
getUserOrganizations(long userId,
int start,
int end)
|
static int |
getUserOrganizationsCount(long userId)
|
static boolean |
hasGroupOrganization(long groupId,
long organizationId)
|
static boolean |
hasPasswordPolicyOrganization(long passwordPolicyId,
long organizationId)
|
static boolean |
hasUserOrganization(long userId,
long organizationId)
|
static java.util.List<Organization> |
search(long companyId,
long parentOrganizationId,
java.lang.String keywords,
java.lang.String type,
java.lang.Long regionId,
java.lang.Long countryId,
java.util.LinkedHashMap<java.lang.String,java.lang.Object> params,
int start,
int end)
|
static java.util.List<Organization> |
search(long companyId,
long parentOrganizationId,
java.lang.String keywords,
java.lang.String type,
java.lang.Long regionId,
java.lang.Long countryId,
java.util.LinkedHashMap<java.lang.String,java.lang.Object> params,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
static java.util.List<Organization> |
search(long companyId,
long parentOrganizationId,
java.lang.String name,
java.lang.String type,
java.lang.String street,
java.lang.String city,
java.lang.String zip,
java.lang.Long regionId,
java.lang.Long countryId,
java.util.LinkedHashMap<java.lang.String,java.lang.Object> params,
boolean andOperator,
int start,
int end)
|
static java.util.List<Organization> |
search(long companyId,
long parentOrganizationId,
java.lang.String name,
java.lang.String type,
java.lang.String street,
java.lang.String city,
java.lang.String zip,
java.lang.Long regionId,
java.lang.Long countryId,
java.util.LinkedHashMap<java.lang.String,java.lang.Object> params,
boolean andOperator,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
static int |
searchCount(long companyId,
long parentOrganizationId,
java.lang.String keywords,
java.lang.String type,
java.lang.Long regionId,
java.lang.Long countryId,
java.util.LinkedHashMap<java.lang.String,java.lang.Object> params)
|
static int |
searchCount(long companyId,
long parentOrganizationId,
java.lang.String name,
java.lang.String type,
java.lang.String street,
java.lang.String city,
java.lang.String zip,
java.lang.Long regionId,
java.lang.Long countryId,
java.util.LinkedHashMap<java.lang.String,java.lang.Object> params,
boolean andOperator)
|
static void |
setGroupOrganizations(long groupId,
long[] organizationIds)
|
void |
setService(OrganizationLocalService service)
|
static void |
unsetGroupOrganizations(long groupId,
long[] organizationIds)
|
static void |
unsetPasswordPolicyOrganizations(long passwordPolicyId,
long[] organizationIds)
|
static Organization |
updateOrganization(long companyId,
long organizationId,
long parentOrganizationId,
java.lang.String name,
java.lang.String type,
boolean recursable,
long regionId,
long countryId,
int statusId,
java.lang.String comments,
ServiceContext serviceContext)
|
static Organization |
updateOrganization(Organization organization)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
OrganizationLocalServiceUtil
public OrganizationLocalServiceUtil()
addOrganization
public static Organization addOrganization(Organization organization)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
createOrganization
public static Organization createOrganization(long organizationId)
deleteOrganization
public static void deleteOrganization(long organizationId)
throws com.liferay.portal.PortalException,
com.liferay.portal.SystemException
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
deleteOrganization
public static void deleteOrganization(Organization organization)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
dynamicQuery
public static java.util.List<java.lang.Object> dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
dynamicQuery
public static java.util.List<java.lang.Object> dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
getOrganization
public static Organization getOrganization(long organizationId)
throws com.liferay.portal.PortalException,
com.liferay.portal.SystemException
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
getOrganizations
public static java.util.List<Organization> getOrganizations(int start,
int end)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
getOrganizationsCount
public static int getOrganizationsCount()
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
updateOrganization
public static Organization updateOrganization(Organization organization)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
addGroupOrganizations
public static void addGroupOrganizations(long groupId,
long[] organizationIds)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
addOrganization
public static Organization addOrganization(long userId,
long parentOrganizationId,
java.lang.String name,
java.lang.String type,
boolean recursable,
long regionId,
long countryId,
int statusId,
java.lang.String comments,
ServiceContext serviceContext)
throws com.liferay.portal.PortalException,
com.liferay.portal.SystemException
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
addOrganizationResources
public static void addOrganizationResources(long userId,
Organization organization)
throws com.liferay.portal.PortalException,
com.liferay.portal.SystemException
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
addPasswordPolicyOrganizations
public static void addPasswordPolicyOrganizations(long passwordPolicyId,
long[] organizationIds)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
getGroupOrganizations
public static java.util.List<Organization> getGroupOrganizations(long groupId)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
getManageableOrganizations
public static java.util.List<Organization> getManageableOrganizations(long userId)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
getOrganization
public static Organization getOrganization(long companyId,
java.lang.String name)
throws com.liferay.portal.PortalException,
com.liferay.portal.SystemException
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
getOrganizationId
public static long getOrganizationId(long companyId,
java.lang.String name)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
getOrganizations
public static java.util.List<Organization> getOrganizations(long[] organizationIds)
throws com.liferay.portal.PortalException,
com.liferay.portal.SystemException
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
getParentOrganizations
public static java.util.List<Organization> getParentOrganizations(long organizationId)
throws com.liferay.portal.PortalException,
com.liferay.portal.SystemException
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
getSuborganizations
public static java.util.List<Organization> getSuborganizations(java.util.List<Organization> organizations)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
getSubsetOrganizations
public static java.util.List<Organization> getSubsetOrganizations(java.util.List<Organization> allOrganizations,
java.util.List<Organization> availableOrganizations)
getUserOrganizations
public static java.util.List<Organization> getUserOrganizations(long userId)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
getUserOrganizations
public static java.util.List<Organization> getUserOrganizations(long userId,
int start,
int end)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
getUserOrganizationsCount
public static int getUserOrganizationsCount(long userId)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
hasGroupOrganization
public static boolean hasGroupOrganization(long groupId,
long organizationId)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
hasUserOrganization
public static boolean hasUserOrganization(long userId,
long organizationId)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
hasPasswordPolicyOrganization
public static boolean hasPasswordPolicyOrganization(long passwordPolicyId,
long organizationId)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
search
public static java.util.List<Organization> search(long companyId,
long parentOrganizationId,
java.lang.String keywords,
java.lang.String type,
java.lang.Long regionId,
java.lang.Long countryId,
java.util.LinkedHashMap<java.lang.String,java.lang.Object> params,
int start,
int end)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
search
public static java.util.List<Organization> search(long companyId,
long parentOrganizationId,
java.lang.String keywords,
java.lang.String type,
java.lang.Long regionId,
java.lang.Long countryId,
java.util.LinkedHashMap<java.lang.String,java.lang.Object> params,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
search
public static java.util.List<Organization> search(long companyId,
long parentOrganizationId,
java.lang.String name,
java.lang.String type,
java.lang.String street,
java.lang.String city,
java.lang.String zip,
java.lang.Long regionId,
java.lang.Long countryId,
java.util.LinkedHashMap<java.lang.String,java.lang.Object> params,
boolean andOperator,
int start,
int end)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
search
public static java.util.List<Organization> search(long companyId,
long parentOrganizationId,
java.lang.String name,
java.lang.String type,
java.lang.String street,
java.lang.String city,
java.lang.String zip,
java.lang.Long regionId,
java.lang.Long countryId,
java.util.LinkedHashMap<java.lang.String,java.lang.Object> params,
boolean andOperator,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
searchCount
public static int searchCount(long companyId,
long parentOrganizationId,
java.lang.String keywords,
java.lang.String type,
java.lang.Long regionId,
java.lang.Long countryId,
java.util.LinkedHashMap<java.lang.String,java.lang.Object> params)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
searchCount
public static int searchCount(long companyId,
long parentOrganizationId,
java.lang.String name,
java.lang.String type,
java.lang.String street,
java.lang.String city,
java.lang.String zip,
java.lang.Long regionId,
java.lang.Long countryId,
java.util.LinkedHashMap<java.lang.String,java.lang.Object> params,
boolean andOperator)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
setGroupOrganizations
public static void setGroupOrganizations(long groupId,
long[] organizationIds)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
unsetGroupOrganizations
public static void unsetGroupOrganizations(long groupId,
long[] organizationIds)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
unsetPasswordPolicyOrganizations
public static void unsetPasswordPolicyOrganizations(long passwordPolicyId,
long[] organizationIds)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
updateOrganization
public static Organization updateOrganization(long companyId,
long organizationId,
long parentOrganizationId,
java.lang.String name,
java.lang.String type,
boolean recursable,
long regionId,
long countryId,
int statusId,
java.lang.String comments,
ServiceContext serviceContext)
throws com.liferay.portal.PortalException,
com.liferay.portal.SystemException
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
getService
public static OrganizationLocalService getService()
setService
public void setService(OrganizationLocalService service)