|
Liferay 6.0-ee-sp2 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.liferay.portal.service.OrganizationLocalServiceUtil
public class OrganizationLocalServiceUtil
The utility for the organization local service. This utility wraps com.liferay.portal.service.impl.OrganizationLocalServiceImpl and is the primary access point for service operations in application layer code running on the local server.
This is a local service. Methods of this service will not have security checks based on the propagated JAAS credentials because this service can only be accessed from within the same VM.
OrganizationLocalService,
OrganizationLocalServiceBaseImpl,
com.liferay.portal.service.impl.OrganizationLocalServiceImpl| Constructor Summary | |
|---|---|
OrganizationLocalServiceUtil()
|
|
| Method Summary | |
|---|---|
static void |
addGroupOrganizations(long groupId,
long[] organizationIds)
|
static Organization |
addOrganization(long userId,
long parentOrganizationId,
String name,
String type,
boolean recursable,
long regionId,
long countryId,
int statusId,
String comments,
ServiceContext serviceContext)
|
static Organization |
addOrganization(Organization organization)
Adds the organization to the database. |
static void |
addOrganizationResources(long userId,
Organization organization)
|
static void |
addPasswordPolicyOrganizations(long passwordPolicyId,
long[] organizationIds)
|
static Organization |
createOrganization(long organizationId)
Creates a new organization with the primary key. |
static void |
deleteLogo(long organizationId)
|
static void |
deleteOrganization(long organizationId)
Deletes the organization with the primary key from the database. |
static void |
deleteOrganization(Organization organization)
Deletes the organization from the database. |
static List |
dynamicQuery(DynamicQuery dynamicQuery)
Performs a dynamic query on the database and returns the matching rows. |
static List |
dynamicQuery(DynamicQuery dynamicQuery,
int start,
int end)
Performs a dynamic query on the database and returns a range of the matching rows. |
static List |
dynamicQuery(DynamicQuery dynamicQuery,
int start,
int end,
OrderByComparator orderByComparator)
Performs a dynamic query on the database and returns an ordered range of the matching rows. |
static long |
dynamicQueryCount(DynamicQuery dynamicQuery)
Returns the number of rows that match the dynamic query. |
static String |
getBeanIdentifier()
Returns the Spring bean ID for this bean. |
static List<Organization> |
getGroupOrganizations(long groupId)
|
static Organization |
getOrganization(long organizationId)
Returns the organization with the primary key. |
static Organization |
getOrganization(long companyId,
String name)
|
static long |
getOrganizationId(long companyId,
String name)
|
static List<Organization> |
getOrganizations(int start,
int end)
Returns a range of all the organizations. |
static List<Organization> |
getOrganizations(long[] organizationIds)
|
static List<Organization> |
getOrganizations(long companyId,
long parentOrganizationId)
|
static List<Organization> |
getOrganizations(long companyId,
long parentOrganizationId,
int start,
int end)
|
static int |
getOrganizationsCount()
Returns the number of organizations. |
static int |
getOrganizationsCount(long companyId,
long parentOrganizationId)
|
static List<Organization> |
getParentOrganizations(long organizationId)
|
static PersistedModel |
getPersistedModel(Serializable primaryKeyObj)
|
static OrganizationLocalService |
getService()
|
static List<Organization> |
getSuborganizations(List<Organization> organizations)
|
static List<Organization> |
getSubsetOrganizations(List<Organization> allOrganizations,
List<Organization> availableOrganizations)
|
static List<Organization> |
getUserOrganizations(long userId)
|
static List<Organization> |
getUserOrganizations(long userId,
boolean inheritUserGroups)
|
static List<Organization> |
getUserOrganizations(long userId,
boolean inheritUserGroups,
int start,
int end)
|
static 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 boolean |
hasUserOrganization(long userId,
long organizationId,
boolean inheritSuborganizations,
boolean inheritUserGroups,
boolean includeSpecifiedOrganization)
|
static void |
rebuildTree(long companyId,
boolean force)
|
static Hits |
search(long companyId,
long parentOrganizationId,
String keywords,
LinkedHashMap<String,Object> params,
int start,
int end,
Sort sort)
|
static List<Organization> |
search(long companyId,
long parentOrganizationId,
String keywords,
String type,
Long regionId,
Long countryId,
LinkedHashMap<String,Object> params,
int start,
int end)
|
static List<Organization> |
search(long companyId,
long parentOrganizationId,
String keywords,
String type,
Long regionId,
Long countryId,
LinkedHashMap<String,Object> params,
int start,
int end,
OrderByComparator obc)
|
static List<Organization> |
search(long companyId,
long parentOrganizationId,
String name,
String type,
String street,
String city,
String zip,
Long regionId,
Long countryId,
LinkedHashMap<String,Object> params,
boolean andOperator,
int start,
int end)
|
static List<Organization> |
search(long companyId,
long parentOrganizationId,
String name,
String type,
String street,
String city,
String zip,
Long regionId,
Long countryId,
LinkedHashMap<String,Object> params,
boolean andOperator,
int start,
int end,
OrderByComparator obc)
|
static Hits |
search(long companyId,
long parentOrganizationId,
String name,
String type,
String street,
String city,
String zip,
String region,
String country,
LinkedHashMap<String,Object> params,
boolean andSearch,
int start,
int end,
Sort sort)
|
static int |
searchCount(long companyId,
long parentOrganizationId,
String keywords,
String type,
Long regionId,
Long countryId,
LinkedHashMap<String,Object> params)
|
static int |
searchCount(long companyId,
long parentOrganizationId,
String name,
String type,
String street,
String city,
String zip,
Long regionId,
Long countryId,
LinkedHashMap<String,Object> params,
boolean andOperator)
|
static void |
setBeanIdentifier(String beanIdentifier)
Sets the Spring bean ID for this bean. |
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 void |
updateAsset(long userId,
Organization organization,
long[] assetCategoryIds,
String[] assetTagNames)
|
static Organization |
updateOrganization(long companyId,
long organizationId,
long parentOrganizationId,
String name,
String type,
boolean recursable,
long regionId,
long countryId,
int statusId,
String comments,
ServiceContext serviceContext)
|
static Organization |
updateOrganization(Organization organization)
Updates the organization in the database or adds it if it does not yet exist. |
static Organization |
updateOrganization(Organization organization,
boolean merge)
Updates the organization in the database or adds it if it does not yet exist. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public OrganizationLocalServiceUtil()
| Method Detail |
|---|
public static Organization addOrganization(Organization organization)
throws SystemException
organization - the organization
SystemException - if a system exception occurredpublic static Organization createOrganization(long organizationId)
organizationId - the primary key for the new organization
public static void deleteOrganization(long organizationId)
throws PortalException,
SystemException
organizationId - the primary key of the organization
PortalException - if a organization with the primary key could not be found
SystemException - if a system exception occurred
public static void deleteOrganization(Organization organization)
throws PortalException,
SystemException
organization - the organization
PortalException
SystemException - if a system exception occurred
public static List dynamicQuery(DynamicQuery dynamicQuery)
throws SystemException
dynamicQuery - the dynamic query
SystemException - if a system exception occurred
public static List dynamicQuery(DynamicQuery dynamicQuery,
int start,
int end)
throws SystemException
Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.
dynamicQuery - the dynamic querystart - the lower bound of the range of model instancesend - the upper bound of the range of model instances (not inclusive)
SystemException - if a system exception occurred
public static List dynamicQuery(DynamicQuery dynamicQuery,
int start,
int end,
OrderByComparator orderByComparator)
throws SystemException
Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.
dynamicQuery - the dynamic querystart - the lower bound of the range of model instancesend - the upper bound of the range of model instances (not inclusive)orderByComparator - the comparator to order the results by (optionally null)
SystemException - if a system exception occurred
public static long dynamicQueryCount(DynamicQuery dynamicQuery)
throws SystemException
dynamicQuery - the dynamic query
SystemException - if a system exception occurred
public static Organization getOrganization(long organizationId)
throws PortalException,
SystemException
organizationId - the primary key of the organization
PortalException - if a organization with the primary key could not be found
SystemException - if a system exception occurred
public static PersistedModel getPersistedModel(Serializable primaryKeyObj)
throws PortalException,
SystemException
PortalException
SystemException
public static List<Organization> getOrganizations(int start,
int end)
throws SystemException
Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.
start - the lower bound of the range of organizationsend - the upper bound of the range of organizations (not inclusive)
SystemException - if a system exception occurred
public static int getOrganizationsCount()
throws SystemException
SystemException - if a system exception occurred
public static Organization updateOrganization(Organization organization)
throws SystemException
organization - the organization
SystemException - if a system exception occurred
public static Organization updateOrganization(Organization organization,
boolean merge)
throws SystemException
organization - the organizationmerge - whether to merge the organization with the current session. See BatchSession.update(com.liferay.portal.kernel.dao.orm.Session, com.liferay.portal.model.BaseModel, boolean) for an explanation.
SystemException - if a system exception occurredpublic static String getBeanIdentifier()
public static void setBeanIdentifier(String beanIdentifier)
beanIdentifier - the Spring bean ID for this bean
public static void addGroupOrganizations(long groupId,
long[] organizationIds)
throws PortalException,
SystemException
PortalException
SystemException
public static Organization addOrganization(long userId,
long parentOrganizationId,
String name,
String type,
boolean recursable,
long regionId,
long countryId,
int statusId,
String comments,
ServiceContext serviceContext)
throws PortalException,
SystemException
PortalException
SystemException
public static void addOrganizationResources(long userId,
Organization organization)
throws PortalException,
SystemException
PortalException
SystemException
public static void addPasswordPolicyOrganizations(long passwordPolicyId,
long[] organizationIds)
throws SystemException
SystemException
public static void deleteLogo(long organizationId)
throws PortalException,
SystemException
PortalException
SystemException
public static List<Organization> getGroupOrganizations(long groupId)
throws SystemException
SystemException
public static Organization getOrganization(long companyId,
String name)
throws PortalException,
SystemException
PortalException
SystemException
public static long getOrganizationId(long companyId,
String name)
throws SystemException
SystemException
public static List<Organization> getOrganizations(long companyId,
long parentOrganizationId)
throws SystemException
SystemException
public static List<Organization> getOrganizations(long companyId,
long parentOrganizationId,
int start,
int end)
throws SystemException
SystemException
public static List<Organization> getOrganizations(long[] organizationIds)
throws PortalException,
SystemException
PortalException
SystemException
public static int getOrganizationsCount(long companyId,
long parentOrganizationId)
throws SystemException
SystemException
public static List<Organization> getParentOrganizations(long organizationId)
throws PortalException,
SystemException
PortalException
SystemException
public static List<Organization> getSuborganizations(List<Organization> organizations)
throws SystemException
SystemException
public static List<Organization> getSubsetOrganizations(List<Organization> allOrganizations,
List<Organization> availableOrganizations)
public static List<Organization> getUserOrganizations(long userId)
throws PortalException,
SystemException
PortalException
SystemException
public static List<Organization> getUserOrganizations(long userId,
boolean inheritUserGroups)
throws PortalException,
SystemException
PortalException
SystemException
public static List<Organization> getUserOrganizations(long userId,
boolean inheritUserGroups,
int start,
int end)
throws PortalException,
SystemException
PortalException
SystemException
public static List<Organization> getUserOrganizations(long userId,
int start,
int end)
throws PortalException,
SystemException
PortalException
SystemException
public static int getUserOrganizationsCount(long userId)
throws SystemException
SystemException
public static boolean hasGroupOrganization(long groupId,
long organizationId)
throws SystemException
SystemException
public static boolean hasPasswordPolicyOrganization(long passwordPolicyId,
long organizationId)
throws SystemException
SystemException
public static boolean hasUserOrganization(long userId,
long organizationId)
throws SystemException
SystemException
public static boolean hasUserOrganization(long userId,
long organizationId,
boolean inheritSuborganizations,
boolean inheritUserGroups,
boolean includeSpecifiedOrganization)
throws PortalException,
SystemException
PortalException
SystemException
public static void rebuildTree(long companyId,
boolean force)
throws SystemException
SystemException
public static Hits search(long companyId,
long parentOrganizationId,
String keywords,
LinkedHashMap<String,Object> params,
int start,
int end,
Sort sort)
throws SystemException
SystemException
public static List<Organization> search(long companyId,
long parentOrganizationId,
String keywords,
String type,
Long regionId,
Long countryId,
LinkedHashMap<String,Object> params,
int start,
int end)
throws SystemException
SystemException
public static List<Organization> search(long companyId,
long parentOrganizationId,
String keywords,
String type,
Long regionId,
Long countryId,
LinkedHashMap<String,Object> params,
int start,
int end,
OrderByComparator obc)
throws SystemException
SystemException
public static List<Organization> search(long companyId,
long parentOrganizationId,
String name,
String type,
String street,
String city,
String zip,
Long regionId,
Long countryId,
LinkedHashMap<String,Object> params,
boolean andOperator,
int start,
int end)
throws SystemException
SystemException
public static List<Organization> search(long companyId,
long parentOrganizationId,
String name,
String type,
String street,
String city,
String zip,
Long regionId,
Long countryId,
LinkedHashMap<String,Object> params,
boolean andOperator,
int start,
int end,
OrderByComparator obc)
throws SystemException
SystemException
public static Hits search(long companyId,
long parentOrganizationId,
String name,
String type,
String street,
String city,
String zip,
String region,
String country,
LinkedHashMap<String,Object> params,
boolean andSearch,
int start,
int end,
Sort sort)
throws SystemException
SystemException
public static int searchCount(long companyId,
long parentOrganizationId,
String keywords,
String type,
Long regionId,
Long countryId,
LinkedHashMap<String,Object> params)
throws SystemException
SystemException
public static int searchCount(long companyId,
long parentOrganizationId,
String name,
String type,
String street,
String city,
String zip,
Long regionId,
Long countryId,
LinkedHashMap<String,Object> params,
boolean andOperator)
throws SystemException
SystemException
public static void setGroupOrganizations(long groupId,
long[] organizationIds)
throws PortalException,
SystemException
PortalException
SystemException
public static void unsetGroupOrganizations(long groupId,
long[] organizationIds)
throws PortalException,
SystemException
PortalException
SystemException
public static void unsetPasswordPolicyOrganizations(long passwordPolicyId,
long[] organizationIds)
throws SystemException
SystemException
public static void updateAsset(long userId,
Organization organization,
long[] assetCategoryIds,
String[] assetTagNames)
throws PortalException,
SystemException
PortalException
SystemException
public static Organization updateOrganization(long companyId,
long organizationId,
long parentOrganizationId,
String name,
String type,
boolean recursable,
long regionId,
long countryId,
int statusId,
String comments,
ServiceContext serviceContext)
throws PortalException,
SystemException
PortalException
SystemExceptionpublic static OrganizationLocalService getService()
public void setService(OrganizationLocalService service)
|
Liferay 6.0-ee-sp2 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||