|
Liferay 6.0.5 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.liferay.portal.service.OrganizationLocalServiceUtil
public class OrganizationLocalServiceUtil
The utility for the organization local service. This utility wraps OrganizationLocalServiceImpl
and is the primary access point for service operations in application layer code running on the local server.
Never modify this class directly. Add custom service methods to OrganizationLocalServiceImpl
and rerun ServiceBuilder to regenerate this class.
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
,
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)
Counts the number of rows that match the dynamic query. |
static List<Organization> |
getGroupOrganizations(long groupId)
|
static Organization |
getOrganization(long organizationId)
Gets 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)
Gets a range of all the organizations. |
static List<Organization> |
getOrganizations(long[] organizationIds)
|
static int |
getOrganizationsCount()
Gets the number of organizations. |
static List<Organization> |
getParentOrganizations(long organizationId)
|
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 |
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. |
static Organization |
updateOrganization(Organization organization,
boolean merge)
Updates the organization in the database. |
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 to add
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 to delete
PortalException
- if a organization with the primary key could not be found
SystemException
- if a system exception occurredpublic static void deleteOrganization(Organization organization) throws SystemException
organization
- the organization to delete
SystemException
- if a system exception occurredpublic static List dynamicQuery(DynamicQuery dynamicQuery) throws SystemException
dynamicQuery
- the dynamic query to search with
SystemException
- if a system exception occurredpublic 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 query to search withstart
- the lower bound of the range of model instances to returnend
- the upper bound of the range of model instances to return (not inclusive)
SystemException
- if a system exception occurredpublic 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 query to search withstart
- the lower bound of the range of model instances to returnend
- the upper bound of the range of model instances to return (not inclusive)orderByComparator
- the comparator to order the results by
SystemException
- if a system exception occurredpublic static long dynamicQueryCount(DynamicQuery dynamicQuery) throws SystemException
dynamicQuery
- the dynamic query to search with
SystemException
- if a system exception occurredpublic static Organization getOrganization(long organizationId) throws PortalException, SystemException
organizationId
- the primary key of the organization to get
PortalException
- if a organization with the primary key could not be found
SystemException
- if a system exception occurredpublic 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 organizations to returnend
- the upper bound of the range of organizations to return (not inclusive)
SystemException
- if a system exception occurredpublic static int getOrganizationsCount() throws SystemException
SystemException
- if a system exception occurredpublic static Organization updateOrganization(Organization organization) throws SystemException
organization
- the organization to update
SystemException
- if a system exception occurredpublic static Organization updateOrganization(Organization organization, boolean merge) throws SystemException
organization
- the organization to updatemerge
- 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 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[] organizationIds) throws PortalException, SystemException
PortalException
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
SystemException
public static OrganizationLocalService getService()
public void setService(OrganizationLocalService service)
|
Liferay 6.0.5 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |