Class OrganizationLocalServiceImpl
- All Implemented Interfaces:
com.liferay.portal.kernel.module.framework.service.IdentifiableOSGiService
,com.liferay.portal.kernel.service.BaseLocalService
,com.liferay.portal.kernel.service.change.tracking.CTService<com.liferay.portal.kernel.model.Organization>
,com.liferay.portal.kernel.service.OrganizationLocalService
,com.liferay.portal.kernel.service.PersistedModelLocalService
- Author:
- Brian Wing Shun Chan, Jorge Ferrer, Julio Camarero, Hugo Huijser, Juan Fernández, Marco Leo
-
Field Summary
Fields inherited from class com.liferay.portal.service.base.OrganizationLocalServiceBaseImpl
counterLocalService, groupPersistence, organizationFinder, organizationLocalService, organizationPersistence, userPersistence
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
addGroupOrganization
(long groupId, long organizationId) Adds the organization to the group.boolean
addGroupOrganization
(long groupId, com.liferay.portal.kernel.model.Organization organization) Adds the organization to the group.boolean
addGroupOrganizations
(long groupId, long[] organizationIds) Adds the organizations to the group.boolean
addGroupOrganizations
(long groupId, List<com.liferay.portal.kernel.model.Organization> organizations) Adds the organizations to the group.com.liferay.portal.kernel.model.Organization
addOrganization
(long userId, long parentOrganizationId, String name, boolean site) Adds an organization.com.liferay.portal.kernel.model.Organization
addOrganization
(String externalReferenceCode, long userId, long parentOrganizationId, String name, String type, long regionId, long countryId, long statusListTypeId, String comments, boolean site, com.liferay.portal.kernel.service.ServiceContext serviceContext) Adds an organization.void
addOrganizationResources
(long userId, com.liferay.portal.kernel.model.Organization organization) Adds a resource for each type of permission available on the organization.com.liferay.portal.kernel.model.User
addOrganizationUserByEmailAddress
(String emailAddress, long organizationId, com.liferay.portal.kernel.service.ServiceContext serviceContext) com.liferay.portal.kernel.model.Organization
addOrUpdateOrganization
(String externalReferenceCode, long userId, long parentOrganizationId, String name, String type, long regionId, long countryId, long statusListTypeId, String comments, boolean hasLogo, byte[] logoBytes, boolean site, com.liferay.portal.kernel.service.ServiceContext serviceContext) void
addPasswordPolicyOrganizations
(long passwordPolicyId, long[] organizationIds) Assigns the password policy to the organizations, removing any other currently assigned password policies.protected void
addSuborganizations
(List<com.liferay.portal.kernel.model.Organization> allSuborganizations, List<com.liferay.portal.kernel.model.Organization> organizations) void
addUserOrganizationByEmailAddress
(String emailAddress, long organizationId) protected com.liferay.portal.kernel.search.SearchContext
buildSearchContext
(long companyId, long parentOrganizationId, String keywords, int status, LinkedHashMap<String, Object> params, int start, int end, com.liferay.portal.kernel.search.Sort[] sorts) protected com.liferay.portal.kernel.search.SearchContext
buildSearchContext
(long companyId, long parentOrganizationId, String name, String type, String street, String city, String zip, Long regionId, Long countryId, LinkedHashMap<String, Object> params, boolean andSearch, int start, int end, com.liferay.portal.kernel.search.Sort sort) protected com.liferay.portal.kernel.search.SearchContext
buildSearchContext
(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, com.liferay.portal.kernel.search.Sort sort) void
deleteLogo
(long organizationId) Deletes the organization's logo.com.liferay.portal.kernel.model.Organization
deleteOrganization
(long organizationId) Deletes the organization.com.liferay.portal.kernel.model.Organization
deleteOrganization
(com.liferay.portal.kernel.model.Organization organization) Deletes the organization.void
deleteUserOrganizationByEmailAddress
(String emailAddress, long organizationId) com.liferay.portal.kernel.model.Organization
fetchOrganization
(long companyId, String name) Returns the organization with the name.String[]
getChildrenTypes
(String type) List<com.liferay.portal.kernel.model.Organization>
getGroupUserOrganizations
(long groupId, long userId) List<com.liferay.portal.kernel.model.Organization>
com.liferay.portal.kernel.model.Organization
getOrganization
(long companyId, String name) Returns the organization with the name.long
getOrganizationId
(long companyId, String name) Returns the primary key of the organization with the name.List<com.liferay.portal.kernel.model.Organization>
getOrganizations
(long[] organizationIds) Returns the organizations with the primary keys.List<com.liferay.portal.kernel.model.Organization>
getOrganizations
(long userId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Organization> orderByComparator) List<com.liferay.portal.kernel.model.Organization>
getOrganizations
(long companyId, long parentOrganizationId) Returns all the organizations belonging to the parent organization.List<com.liferay.portal.kernel.model.Organization>
getOrganizations
(long companyId, long parentOrganizationId, int start, int end) Returns a range of all the organizations belonging to the parent organization.List<com.liferay.portal.kernel.model.Organization>
getOrganizations
(long companyId, long parentOrganizationId, String name, int start, int end) List<com.liferay.portal.kernel.model.Organization>
getOrganizations
(long companyId, String treePath) List<com.liferay.portal.kernel.model.Organization>
getOrganizations
(long companyId, String name, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Organization> orderByComparator) getOrganizationsAndUsers
(long companyId, long parentOrganizationId, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<?> orderByComparator) Returns all the organizations and users belonging to the parent organization.int
getOrganizationsAndUsersCount
(long companyId, long parentOrganizationId, int status) Returns the number of organizations and users belonging to the parent organization.int
getOrganizationsCount
(long companyId, long parentOrganizationId) Returns the number of organizations belonging to the parent organization.int
getOrganizationsCount
(long companyId, long parentOrganizationId, String name) int
getOrganizationsCount
(long companyId, String name) protected long
getParentOrganizationId
(long companyId, long parentOrganizationId) List<com.liferay.portal.kernel.model.Organization>
getParentOrganizations
(long organizationId) Returns the parent organizations in order by closest ancestor.protected long[]
getReindexOrganizationIds
(com.liferay.portal.kernel.model.Organization organization) List<com.liferay.portal.kernel.model.Organization>
getSuborganizations
(long companyId, long organizationId) Returns the suborganizations of the organization.List<com.liferay.portal.kernel.model.Organization>
getSuborganizations
(List<com.liferay.portal.kernel.model.Organization> organizations) Returns the suborganizations of the organizations.int
getSuborganizationsCount
(long companyId, long organizationId) Returns the count of suborganizations of the organization.List<com.liferay.portal.kernel.model.Organization>
getSubsetOrganizations
(List<com.liferay.portal.kernel.model.Organization> allOrganizations, List<com.liferay.portal.kernel.model.Organization> availableOrganizations) Returns the intersection ofallOrganizations
andavailableOrganizations
.String[]
getTypes()
long[]
getUserOrganizationIds
(long userId, boolean includeAdministrative) Returns all the IDs of organizations with which the user is explicitly associated, optionally including the IDs of organizations that the user administers or owns.List<com.liferay.portal.kernel.model.Organization>
getUserOrganizations
(long userId, boolean includeAdministrative) Returns all the organizations with which the user is explicitly associated, optionally including the organizations that the user administers or owns.boolean
hasPasswordPolicyOrganization
(long passwordPolicyId, long organizationId) Returnstrue
if the password policy has been assigned to the organization.boolean
hasUserOrganization
(long userId, long organizationId, boolean inheritSuborganizations, boolean includeSpecifiedOrganization) Returnstrue
if the user is a member of the organization, optionally focusing on suborganizations or the specified organization.boolean
isCountryEnabled
(String type) boolean
isCountryRequired
(String type) protected boolean
isOrganizationGroup
(long organizationId, long groupId) protected boolean
isParentOrganization
(long parentOrganizationId, long organizationId) boolean
isRootable
(String type) protected boolean
isUseCustomSQL
(LinkedHashMap<String, Object> params) void
rebuildTree
(long companyId) Rebuilds the organization's tree.protected void
reindex
(long companyId, long[] userIds) protected void
reindexUsers
(long organizationId) protected void
reindexUsers
(long[] organizationIds) protected void
reindexUsers
(com.liferay.portal.kernel.model.Organization organization) protected void
reindexUsers
(List<com.liferay.portal.kernel.model.Organization> organizations) List<com.liferay.portal.kernel.model.Organization>
search
(long companyId, long parentOrganizationId, String keywords, String type, Long regionId, Long countryId, LinkedHashMap<String, Object> params, int start, int end) Returns a name ordered range of all the organizations that match the keywords, type, region, and country, without using the indexer.List<com.liferay.portal.kernel.model.Organization>
search
(long companyId, long parentOrganizationId, String keywords, String type, Long regionId, Long countryId, LinkedHashMap<String, Object> params, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Organization> orderByComparator) Returns an ordered range of all the organizations that match the keywords, type, region, and country, without using the indexer.List<com.liferay.portal.kernel.model.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) Returns a name ordered range of all the organizations with the type, region, and country, and whose name, street, city, and zipcode match the keywords specified for them, without using the indexer.List<com.liferay.portal.kernel.model.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, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Organization> orderByComparator) Returns an ordered range of all the organizations with the type, region, and country, and whose name, street, city, and zipcode match the keywords specified for them, without using the indexer.com.liferay.portal.kernel.search.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, com.liferay.portal.kernel.search.Sort sort) Returns an ordered range of all the organizations whose name, type, or location fields match the keywords specified for them, using the indexer.com.liferay.portal.kernel.search.Hits
search
(long companyId, long parentOrganizationId, String keywords, LinkedHashMap<String, Object> params, int start, int end, com.liferay.portal.kernel.search.Sort sort) Returns an ordered range of all the organizations that match the keywords, using the indexer.int
searchCount
(long companyId, long parentOrganizationId, String keywords, String type, Long regionId, Long countryId, LinkedHashMap<String, Object> params) Returns the number of organizations that match the keywords, type, region, and country.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) Returns the number of organizations with the type, region, and country, and whose name, street, city, and zipcode match the keywords specified for them.com.liferay.portal.kernel.search.BaseModelSearchResult<com.liferay.portal.kernel.model.Organization>
searchOrganizations
(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, com.liferay.portal.kernel.search.Sort sort) com.liferay.portal.kernel.search.BaseModelSearchResult<com.liferay.portal.kernel.model.Organization>
searchOrganizations
(long companyId, long parentOrganizationId, String keywords, LinkedHashMap<String, Object> params, int start, int end, com.liferay.portal.kernel.search.Sort sort) com.liferay.portal.kernel.search.Hits
searchOrganizationsAndUsers
(long companyId, long parentOrganizationId, String keywords, int status, LinkedHashMap<String, Object> params, int start, int end, com.liferay.portal.kernel.search.Sort[] sorts) Returns the organizations and users that match the keywords specified for them and belong to the parent organization.int
searchOrganizationsAndUsersCount
(long companyId, long parentOrganizationId, String keywords, int status, LinkedHashMap<String, Object> params) Returns the number of organizations and users that match the keywords specified for them and belong to the parent organization.void
unsetGroupOrganizations
(long groupId, long[] organizationIds) Removes the organizations from the group.void
unsetPasswordPolicyOrganizations
(long passwordPolicyId, long[] organizationIds) Removes the organizations from the password policy.void
updateAsset
(long userId, com.liferay.portal.kernel.model.Organization organization, long[] assetCategoryIds, String[] assetTagNames) Updates the organization's asset with the new asset categories and tag names, removing and adding asset categories and tag names as necessary.com.liferay.portal.kernel.model.Organization
updateLogo
(long organizationId, byte[] logoBytes) com.liferay.portal.kernel.model.Organization
updateOrganization
(String externalReferenceCode, long companyId, long organizationId, long parentOrganizationId, String name, String type, long regionId, long countryId, long statusListTypeId, String comments, boolean hasLogo, byte[] logoBytes, boolean site, com.liferay.portal.kernel.service.ServiceContext serviceContext) Updates the organization.protected void
validate
(long companyId, long organizationId, long parentOrganizationId, String name, String type, long countryId, long statusListTypeId) protected void
validate
(long companyId, long parentOrganizationId, String name, String type, long countryId, long statusListTypeId) Methods inherited from class com.liferay.portal.service.base.OrganizationLocalServiceBaseImpl
addOrganization, addUserOrganization, addUserOrganization, addUserOrganizations, addUserOrganizations, afterPropertiesSet, clearGroupOrganizations, clearUserOrganizations, createOrganization, createPersistedModel, deleteGroupOrganization, deleteGroupOrganization, deleteGroupOrganizations, deleteGroupOrganizations, deletePersistedModel, deleteUserOrganization, deleteUserOrganization, deleteUserOrganizations, deleteUserOrganizations, destroy, dslQuery, dslQueryCount, dynamicQuery, dynamicQuery, dynamicQuery, dynamicQuery, dynamicQueryCount, dynamicQueryCount, fetchOrganization, fetchOrganizationByExternalReferenceCode, fetchOrganizationByUuidAndCompanyId, getActionableDynamicQuery, getBasePersistence, getCounterLocalService, getCTPersistence, getExportActionableDynamicQuery, getGroupOrganizations, getGroupOrganizations, getGroupOrganizations, getGroupOrganizationsCount, getGroupPrimaryKeys, getIndexableActionableDynamicQuery, getModelClass, getModelClassName, getOrganization, getOrganizationByExternalReferenceCode, getOrganizationByUuidAndCompanyId, getOrganizationFinder, getOrganizationLocalService, getOrganizationPersistence, getOrganizations, getOrganizationsCount, getOSGiServiceIdentifier, getPersistedModel, getUserOrganizations, getUserOrganizations, getUserOrganizations, getUserOrganizationsCount, getUserPrimaryKeys, hasGroupOrganization, hasGroupOrganizations, hasUserOrganization, hasUserOrganizations, initActionableDynamicQuery, runSQL, setCounterLocalService, setGroupOrganizations, setOrganizationFinder, setOrganizationLocalService, setOrganizationPersistence, setUserOrganizations, updateOrganization, updateWithUnsafeFunction
Methods inherited from class com.liferay.portal.kernel.service.BaseLocalServiceImpl
getClassLoader, getLocalizationMap
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.liferay.portal.kernel.service.PersistedModelLocalService
fetchPersistedModel
-
Constructor Details
-
OrganizationLocalServiceImpl
public OrganizationLocalServiceImpl()
-
-
Method Details
-
addGroupOrganization
public boolean addGroupOrganization(long groupId, long organizationId) Adds the organization to the group.- Specified by:
addGroupOrganization
in interfacecom.liferay.portal.kernel.service.OrganizationLocalService
- Overrides:
addGroupOrganization
in classOrganizationLocalServiceBaseImpl
- Parameters:
groupId
- the primary key of the grouporganizationId
- the primary key of the organization- Returns:
true
if the association between the ${groupId} and ${organizationId} is added;false
if it was already added
-
addGroupOrganization
public boolean addGroupOrganization(long groupId, com.liferay.portal.kernel.model.Organization organization) Adds the organization to the group.- Specified by:
addGroupOrganization
in interfacecom.liferay.portal.kernel.service.OrganizationLocalService
- Overrides:
addGroupOrganization
in classOrganizationLocalServiceBaseImpl
- Parameters:
groupId
- the primary key of the grouporganization
- the organization- Returns:
true
if the association between the ${groupId} and ${organization} is added;false
if it was already added
-
addGroupOrganizations
public boolean addGroupOrganizations(long groupId, List<com.liferay.portal.kernel.model.Organization> organizations) Adds the organizations to the group.- Specified by:
addGroupOrganizations
in interfacecom.liferay.portal.kernel.service.OrganizationLocalService
- Overrides:
addGroupOrganizations
in classOrganizationLocalServiceBaseImpl
- Parameters:
groupId
- the primary key of the grouporganizations
- the organizations- Returns:
true
if at least an association between the ${groupId} and the ${organizations} is added;false
if all were already added
-
addGroupOrganizations
public boolean addGroupOrganizations(long groupId, long[] organizationIds) Adds the organizations to the group.- Specified by:
addGroupOrganizations
in interfacecom.liferay.portal.kernel.service.OrganizationLocalService
- Overrides:
addGroupOrganizations
in classOrganizationLocalServiceBaseImpl
- Parameters:
groupId
- the primary key of the grouporganizationIds
- the primary keys of the organizations- Returns:
true
if at least an association between the ${groupId} and the ${organizationIds} is added;false
if all were already added
-
addOrganization
public com.liferay.portal.kernel.model.Organization addOrganization(long userId, long parentOrganizationId, String name, boolean site) throws com.liferay.portal.kernel.exception.PortalException Adds an organization.This method handles the creation and bookkeeping of the organization including its resources, metadata, and internal data structures. It is not necessary to make a subsequent call to
addOrganizationResources(long, Organization)
.- Parameters:
userId
- the primary key of the creator/owner of the organizationparentOrganizationId
- the primary key of the organization's parent organizationname
- the organization's namesite
- whether the organization is to be associated with a main site- Returns:
- the organization
- Throws:
com.liferay.portal.kernel.exception.PortalException
-
addOrganization
public com.liferay.portal.kernel.model.Organization addOrganization(String externalReferenceCode, long userId, long parentOrganizationId, String name, String type, long regionId, long countryId, long statusListTypeId, String comments, boolean site, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException Adds an organization.This method handles the creation and bookkeeping of the organization including its resources, metadata, and internal data structures. It is not necessary to make a subsequent call to
addOrganizationResources(long, Organization)
.- Parameters:
userId
- the primary key of the creator/owner of the organizationparentOrganizationId
- the primary key of the organization's parent organizationname
- the organization's nametype
- the organization's typeregionId
- the primary key of the organization's regioncountryId
- the primary key of the organization's countrystatusListTypeId
- the organization's workflow statuscomments
- the comments about the organizationsite
- whether the organization is to be associated with a main siteserviceContext
- the service context to be applied (optionallynull
). Can set asset category IDs, asset tag names, and expando bridge attributes for the organization.- Returns:
- the organization
- Throws:
com.liferay.portal.kernel.exception.PortalException
-
addOrganizationResources
public void addOrganizationResources(long userId, com.liferay.portal.kernel.model.Organization organization) throws com.liferay.portal.kernel.exception.PortalException Adds a resource for each type of permission available on the organization.- Parameters:
userId
- the primary key of the creator/owner of the organizationorganization
- the organization- Throws:
com.liferay.portal.kernel.exception.PortalException
-
addOrganizationUserByEmailAddress
public com.liferay.portal.kernel.model.User addOrganizationUserByEmailAddress(String emailAddress, long organizationId, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
addOrUpdateOrganization
public com.liferay.portal.kernel.model.Organization addOrUpdateOrganization(String externalReferenceCode, long userId, long parentOrganizationId, String name, String type, long regionId, long countryId, long statusListTypeId, String comments, boolean hasLogo, byte[] logoBytes, boolean site, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
addPasswordPolicyOrganizations
public void addPasswordPolicyOrganizations(long passwordPolicyId, long[] organizationIds) Assigns the password policy to the organizations, removing any other currently assigned password policies.- Parameters:
passwordPolicyId
- the primary key of the password policyorganizationIds
- the primary keys of the organizations
-
addUserOrganizationByEmailAddress
public void addUserOrganizationByEmailAddress(String emailAddress, long organizationId) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
deleteLogo
public void deleteLogo(long organizationId) throws com.liferay.portal.kernel.exception.PortalException Deletes the organization's logo.- Parameters:
organizationId
- the primary key of the organization- Throws:
com.liferay.portal.kernel.exception.PortalException
-
deleteOrganization
public com.liferay.portal.kernel.model.Organization deleteOrganization(long organizationId) throws com.liferay.portal.kernel.exception.PortalException Deletes the organization. The organization's associated resources and assets are also deleted.- Specified by:
deleteOrganization
in interfacecom.liferay.portal.kernel.service.OrganizationLocalService
- Overrides:
deleteOrganization
in classOrganizationLocalServiceBaseImpl
- Parameters:
organizationId
- the primary key of the organization- Returns:
- the deleted organization
- Throws:
com.liferay.portal.kernel.exception.PortalException
- if a organization with the primary key could not be found
-
deleteOrganization
@SystemEvent(type=1) public com.liferay.portal.kernel.model.Organization deleteOrganization(com.liferay.portal.kernel.model.Organization organization) throws com.liferay.portal.kernel.exception.PortalException Deletes the organization. The organization's associated resources and assets are also deleted.- Specified by:
deleteOrganization
in interfacecom.liferay.portal.kernel.service.OrganizationLocalService
- Overrides:
deleteOrganization
in classOrganizationLocalServiceBaseImpl
- Parameters:
organization
- the organization- Returns:
- the deleted organization
- Throws:
com.liferay.portal.kernel.exception.PortalException
-
deleteUserOrganizationByEmailAddress
public void deleteUserOrganizationByEmailAddress(String emailAddress, long organizationId) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
fetchOrganization
Returns the organization with the name.- Parameters:
companyId
- the primary key of the organization's companyname
- the organization's name- Returns:
- the organization with the name, or
null
if no organization could be found
-
getChildrenTypes
-
getGroupUserOrganizations
public List<com.liferay.portal.kernel.model.Organization> getGroupUserOrganizations(long groupId, long userId) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
getNoAssetOrganizations
-
getOrganization
public com.liferay.portal.kernel.model.Organization getOrganization(long companyId, String name) throws com.liferay.portal.kernel.exception.PortalException Returns the organization with the name.- Parameters:
companyId
- the primary key of the organization's companyname
- the organization's name- Returns:
- the organization with the name
- Throws:
com.liferay.portal.kernel.exception.PortalException
-
getOrganizationId
Returns the primary key of the organization with the name.- Parameters:
companyId
- the primary key of the organization's companyname
- the organization's name- Returns:
- the primary key of the organization with the name, or
0
if the organization could not be found
-
getOrganizations
public List<com.liferay.portal.kernel.model.Organization> getOrganizations(long userId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Organization> orderByComparator) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
getOrganizations
public List<com.liferay.portal.kernel.model.Organization> getOrganizations(long companyId, long parentOrganizationId) Returns all the organizations belonging to the parent organization.- Parameters:
companyId
- the primary key of the organization's companyparentOrganizationId
- the primary key of the organization's parent organization- Returns:
- the organizations belonging to the parent organization
-
getOrganizations
public List<com.liferay.portal.kernel.model.Organization> getOrganizations(long companyId, long parentOrganizationId, int start, int end) Returns a range of all the organizations belonging to the parent organization.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil.ALL_POS
will return the full result set.- Parameters:
companyId
- the primary key of the organization's companyparentOrganizationId
- the primary key of the organization's parent organizationstart
- the lower bound of the range of organizations to returnend
- the upper bound of the range of organizations to return (not inclusive)- Returns:
- the range of organizations belonging to the parent organization
- See Also:
-
OrganizationPersistence.findByC_P(long, long, int, int)
-
getOrganizations
-
getOrganizations
-
getOrganizations
-
getOrganizations
public List<com.liferay.portal.kernel.model.Organization> getOrganizations(long[] organizationIds) throws com.liferay.portal.kernel.exception.PortalException Returns the organizations with the primary keys.- Parameters:
organizationIds
- the primary keys of the organizations- Returns:
- the organizations with the primary keys
- Throws:
com.liferay.portal.kernel.exception.PortalException
-
getOrganizationsAndUsers
public List<Object> getOrganizationsAndUsers(long companyId, long parentOrganizationId, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<?> orderByComparator) Returns all the organizations and users belonging to the parent organization.- Parameters:
companyId
- the primary key of the organization and user's companyparentOrganizationId
- the primary key of the organization and user's parent organizationstatus
- the user's workflow statusstart
- the lower bound of the range of organizations and users to returnend
- the upper bound of the range of organizations and users to return (not inclusive)orderByComparator
- the comparator to order the organizations and users (optionallynull
)- Returns:
- the organizations and users belonging to the parent organization
-
getOrganizationsAndUsersCount
public int getOrganizationsAndUsersCount(long companyId, long parentOrganizationId, int status) Returns the number of organizations and users belonging to the parent organization.- Parameters:
companyId
- the primary key of the organization and user's companyparentOrganizationId
- the primary key of the organization and user's parent organizationstatus
- the user's workflow status- Returns:
- the number of organizations and users belonging to the parent organization
-
getOrganizationsCount
public int getOrganizationsCount(long companyId, long parentOrganizationId) Returns the number of organizations belonging to the parent organization.- Parameters:
companyId
- the primary key of the organization's companyparentOrganizationId
- the primary key of the organization's parent organization- Returns:
- the number of organizations belonging to the parent organization
-
getOrganizationsCount
-
getOrganizationsCount
-
getParentOrganizations
public List<com.liferay.portal.kernel.model.Organization> getParentOrganizations(long organizationId) throws com.liferay.portal.kernel.exception.PortalException Returns the parent organizations in order by closest ancestor. The list starts with the organization itself.- Parameters:
organizationId
- the primary key of the organization- Returns:
- the parent organizations in order by closest ancestor
- Throws:
com.liferay.portal.kernel.exception.PortalException
-
getSuborganizations
public List<com.liferay.portal.kernel.model.Organization> getSuborganizations(List<com.liferay.portal.kernel.model.Organization> organizations) Returns the suborganizations of the organizations.- Parameters:
organizations
- the organizations from which to get suborganizations- Returns:
- the suborganizations of the organizations
-
getSuborganizations
public List<com.liferay.portal.kernel.model.Organization> getSuborganizations(long companyId, long organizationId) Returns the suborganizations of the organization.- Parameters:
companyId
- the primary key of the organization's companyorganizationId
- the primary key of the organization- Returns:
- the suborganizations of the organization
-
getSuborganizationsCount
public int getSuborganizationsCount(long companyId, long organizationId) Returns the count of suborganizations of the organization.- Parameters:
companyId
- the primary key of the organization's companyorganizationId
- the primary key of the organization- Returns:
- the count of suborganizations of the organization
-
getSubsetOrganizations
public List<com.liferay.portal.kernel.model.Organization> getSubsetOrganizations(List<com.liferay.portal.kernel.model.Organization> allOrganizations, List<com.liferay.portal.kernel.model.Organization> availableOrganizations) Returns the intersection ofallOrganizations
andavailableOrganizations
.- Parameters:
allOrganizations
- the organizations to check for availabilityavailableOrganizations
- the available organizations- Returns:
- the intersection of
allOrganizations
andavailableOrganizations
-
getTypes
-
getUserOrganizationIds
public long[] getUserOrganizationIds(long userId, boolean includeAdministrative) throws com.liferay.portal.kernel.exception.PortalException Returns all the IDs of organizations with which the user is explicitly associated, optionally including the IDs of organizations that the user administers or owns.A user is considered to be explicitly associated with an organization if his account is individually created within the organization or if the user is later added to it.
- Parameters:
userId
- the primary key of the userincludeAdministrative
- whether to include the IDs of organizations that the user administers or owns, even if he's not a member of the organizations- Returns:
- the IDs of organizations with which the user is explicitly associated, optionally including the IDs of organizations that the user administers or owns
- Throws:
com.liferay.portal.kernel.exception.PortalException
-
getUserOrganizations
public List<com.liferay.portal.kernel.model.Organization> getUserOrganizations(long userId, boolean includeAdministrative) throws com.liferay.portal.kernel.exception.PortalException Returns all the organizations with which the user is explicitly associated, optionally including the organizations that the user administers or owns.A user is considered to be explicitly associated with an organization if his account is individually created within the organization or if the user is later added as a member.
- Parameters:
userId
- the primary key of the userincludeAdministrative
- whether to include the IDs of organizations that the user administers or owns, even if he's not a member of the organizations- Returns:
- the organizations with which the user is explicitly associated, optionally including the organizations that the user administers or owns
- Throws:
com.liferay.portal.kernel.exception.PortalException
-
hasPasswordPolicyOrganization
public boolean hasPasswordPolicyOrganization(long passwordPolicyId, long organizationId) Returnstrue
if the password policy has been assigned to the organization.- Parameters:
passwordPolicyId
- the primary key of the password policyorganizationId
- the primary key of the organization- Returns:
true
if the password policy has been assigned to the organization;false
otherwise
-
hasUserOrganization
public boolean hasUserOrganization(long userId, long organizationId, boolean inheritSuborganizations, boolean includeSpecifiedOrganization) throws com.liferay.portal.kernel.exception.PortalException Returnstrue
if the user is a member of the organization, optionally focusing on suborganizations or the specified organization. This method is usually called to determine if the user has view access to a resource belonging to the organization.-
If
inheritSuborganizations=
: the method checks whether the user belongs to the organization specified byfalse
organizationId
. The parameterincludeSpecifiedOrganization
is ignored. -
The parameter
includeSpecifiedOrganization
is ignored unlessinheritSuborganizations
is alsotrue
. -
If
inheritSuborganizations=
andtrue
includeSpecifiedOrganization=
: the method checks whether the user belongs to one of the child organizations of the one specified byfalse
organizationId
. -
If
inheritSuborganizations=
andtrue
includeSpecifiedOrganization=
: the method checks whether the user belongs to the organization specified bytrue
organizationId
or any of its child organizations.
- Parameters:
userId
- the primary key of the organization's userorganizationId
- the primary key of the organizationinheritSuborganizations
- iftrue
suborganizations are considered in the determinationincludeSpecifiedOrganization
- iftrue
the organization specified byorganizationId
is considered in the determination- Returns:
true
if the user has access to the organization;false
otherwise- Throws:
com.liferay.portal.kernel.exception.PortalException
- See Also:
-
OrganizationFinder
-
If
-
isCountryEnabled
-
isCountryRequired
-
isRootable
-
rebuildTree
public void rebuildTree(long companyId) throws com.liferay.portal.kernel.exception.PortalException Rebuilds the organization's tree.Only call this method if the tree has become stale through operations other than normal CRUD. Under normal circumstances the tree is automatically rebuilt whenever necessary.
- Parameters:
companyId
- the primary key of the organization's company- Throws:
com.liferay.portal.kernel.exception.PortalException
-
search
public com.liferay.portal.kernel.search.Hits search(long companyId, long parentOrganizationId, String keywords, LinkedHashMap<String, Object> params, int start, int end, com.liferay.portal.kernel.search.Sort sort) Returns an ordered range of all the organizations that match the keywords, using the indexer. It is preferable to use this method instead of the non-indexed version whenever possible for performance reasons.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil.ALL_POS
will return the full result set.- Parameters:
companyId
- the primary key of the organization's companyparentOrganizationId
- the primary key of the organization's parent organizationkeywords
- the keywords (space separated), which may occur in the organization's name, street, city, zipcode, type, region or country (optionallynull
)params
- the finder parameters (optionallynull
).start
- the lower bound of the range of organizations to returnend
- the upper bound of the range of organizations to return (not inclusive)sort
- the field and direction by which to sort (optionallynull
)- Returns:
- the matching organizations ordered by name
-
search
public List<com.liferay.portal.kernel.model.Organization> search(long companyId, long parentOrganizationId, String keywords, String type, Long regionId, Long countryId, LinkedHashMap<String, Object> params, int start, int end) Returns a name ordered range of all the organizations that match the keywords, type, region, and country, without using the indexer. It is preferable to use the indexed versionsearch(long, long, String, LinkedHashMap, int, int, Sort)
instead of this method wherever possible for performance reasons.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil.ALL_POS
will return the full result set.- Parameters:
companyId
- the primary key of the organization's companyparentOrganizationId
- the primary key of the organization's parent organizationkeywords
- the keywords (space separated), which may occur in the organization's name, street, city, or zipcode (optionallynull
)type
- the organization's type (optionallynull
)regionId
- the primary key of the organization's region (optionallynull
)countryId
- the primary key of the organization's country (optionallynull
)params
- the finder params. For more information seeOrganizationFinder
start
- the lower bound of the range of organizations to returnend
- the upper bound of the range of organizations to return (not inclusive)- Returns:
- the matching organizations ordered by name
- See Also:
-
OrganizationFinder
-
search
public List<com.liferay.portal.kernel.model.Organization> search(long companyId, long parentOrganizationId, String keywords, String type, Long regionId, Long countryId, LinkedHashMap<String, Object> params, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Organization> orderByComparator) Returns an ordered range of all the organizations that match the keywords, type, region, and country, without using the indexer. It is preferable to use the indexed versionsearch(long, long, String, String, String, String, String, String, String, LinkedHashMap, boolean, int, int, Sort)
instead of this method wherever possible for performance reasons.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil.ALL_POS
will return the full result set.- Parameters:
companyId
- the primary key of the organization's companyparentOrganizationId
- the primary key of the organization's parent organizationkeywords
- the keywords (space separated), which may occur in the organization's name, street, city, or zipcode (optionallynull
)type
- the organization's type (optionallynull
)regionId
- the primary key of the organization's region (optionallynull
)countryId
- the primary key of the organization's country (optionallynull
)params
- the finder params. For more information seeOrganizationFinder
start
- the lower bound of the range of organizations to returnend
- the upper bound of the range of organizations to return (not inclusive)orderByComparator
- the comparator to order the organizations (optionallynull
)- Returns:
- the matching organizations ordered by comparator
orderByComparator
- See Also:
-
OrganizationFinder
-
search
public List<com.liferay.portal.kernel.model.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) Returns a name ordered range of all the organizations with the type, region, and country, and whose name, street, city, and zipcode match the keywords specified for them, without using the indexer. It is preferable to use the indexed versionsearch(long, long, String, String, String, String, String, String, String, LinkedHashMap, boolean, int, int, Sort)
instead of this method wherever possible for performance reasons.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil.ALL_POS
will return the full result set.- Parameters:
companyId
- the primary key of the organization's companyparentOrganizationId
- the primary key of the organization's parentname
- the name keywords (space separated, optionallynull
)type
- the organization's type (optionallynull
)street
- the street keywords (optionallynull
)city
- the city keywords (optionallynull
)zip
- the zipcode keywords (optionallynull
)regionId
- the primary key of the organization's region (optionallynull
)countryId
- the primary key of the organization's country (optionallynull
)params
- the finder parameters (optionallynull
). For more information seeOrganizationFinder
andOperator
- whether every field must match its keywords, or just one field. For example, "organizations with the name 'Employees' and city 'Chicago'" vs "organizations with the name 'Employees' or the city 'Chicago'".start
- the lower bound of the range of organizations to returnend
- the upper bound of the range of organizations to return (not inclusive)- Returns:
- the matching organizations ordered by name
- See Also:
-
OrganizationFinder
-
search
public List<com.liferay.portal.kernel.model.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, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Organization> orderByComparator) Returns an ordered range of all the organizations with the type, region, and country, and whose name, street, city, and zipcode match the keywords specified for them, without using the indexer. It is preferable to use the indexed versionsearch(long, long, String, String, String, String, String, String, String, LinkedHashMap, boolean, int, int, Sort)
instead of this method wherever possible for performance reasons.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil.ALL_POS
will return the full result set.- Parameters:
companyId
- the primary key of the organization's companyparentOrganizationId
- the primary key of the organization's parent organizationname
- the name keywords (space separated, optionallynull
)type
- the organization's type (optionallynull
)street
- the street keywords (optionallynull
)city
- the city keywords (optionallynull
)zip
- the zipcode keywords (optionallynull
)regionId
- the primary key of the organization's region (optionallynull
)countryId
- the primary key of the organization's country (optionallynull
)params
- the finder parameters (optionallynull
). For more information seeOrganizationFinder
andOperator
- whether every field must match its keywords, or just one field. For example, "organizations with the name 'Employees' and city 'Chicago'" vs "organizations with the name 'Employees' or the city 'Chicago'".start
- the lower bound of the range of organizations to returnend
- the upper bound of the range of organizations to return (not inclusive)orderByComparator
- the comparator to order the organizations (optionallynull
)- Returns:
- the matching organizations ordered by comparator
orderByComparator
- See Also:
-
OrganizationFinder
-
search
public com.liferay.portal.kernel.search.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, com.liferay.portal.kernel.search.Sort sort) Returns an ordered range of all the organizations whose name, type, or location fields match the keywords specified for them, using the indexer. It is preferable to use this method instead of the non-indexed version whenever possible for performance reasons.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil.ALL_POS
will return the full result set.- Parameters:
companyId
- the primary key of the organization's companyparentOrganizationId
- the primary key of the organization's parent organizationname
- the name keywords (space separated, optionallynull
)type
- the type keywords (optionallynull
)street
- the street keywords (optionallynull
)city
- the city keywords (optionallynull
)zip
- the zipcode keywords (optionallynull
)region
- the region keywords (optionallynull
)country
- the country keywords (optionallynull
)params
- the finder parameters (optionallynull
).andSearch
- whether every field must match its keywords or just one fieldstart
- the lower bound of the range of organizations to returnend
- the upper bound of the range of organizations to return (not inclusive)sort
- the field and direction by which to sort (optionallynull
)- Returns:
- the matching organizations ordered by
sort
-
searchCount
public int searchCount(long companyId, long parentOrganizationId, String keywords, String type, Long regionId, Long countryId, LinkedHashMap<String, Object> params) Returns the number of organizations that match the keywords, type, region, and country.- Parameters:
companyId
- the primary key of the organization's companyparentOrganizationId
- the primary key of the organization's parent organizationkeywords
- the keywords (space separated), which may occur in the organization's name, street, city, or zipcode (optionallynull
)type
- the organization's type (optionallynull
)regionId
- the primary key of the organization's region (optionallynull
)countryId
- the primary key of the organization's country (optionallynull
)params
- the finder parameters (optionallynull
). For more information seeOrganizationFinder
- Returns:
- the number of matching organizations
- See Also:
-
OrganizationFinder
-
searchCount
public 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) Returns the number of organizations with the type, region, and country, and whose name, street, city, and zipcode match the keywords specified for them.- Parameters:
companyId
- the primary key of the organization's companyparentOrganizationId
- the primary key of the organization's parent organizationname
- the name keywords (space separated, optionallynull
)type
- the organization's type (optionallynull
)street
- the street keywords (optionallynull
)city
- the city keywords (optionallynull
)zip
- the zipcode keywords (optionallynull
)regionId
- the primary key of the organization's region (optionallynull
)countryId
- the primary key of the organization's country (optionallynull
)params
- the finder parameters (optionallynull
). For more information seeOrganizationFinder
andOperator
- whether every field must match its keywords, or just one field. For example, "organizations with the name 'Employees' and city 'Chicago'" vs "organizations with the name 'Employees' or the city 'Chicago'".- Returns:
- the number of matching organizations
- See Also:
-
OrganizationFinder
-
searchOrganizations
public com.liferay.portal.kernel.search.BaseModelSearchResult<com.liferay.portal.kernel.model.Organization> searchOrganizations(long companyId, long parentOrganizationId, String keywords, LinkedHashMap<String, Object> params, int start, int end, com.liferay.portal.kernel.search.Sort sort) throws com.liferay.portal.kernel.exception.PortalException- Throws:
com.liferay.portal.kernel.exception.PortalException
-
searchOrganizations
public com.liferay.portal.kernel.search.BaseModelSearchResult<com.liferay.portal.kernel.model.Organization> searchOrganizations(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, com.liferay.portal.kernel.search.Sort sort) throws com.liferay.portal.kernel.exception.PortalException- Throws:
com.liferay.portal.kernel.exception.PortalException
-
searchOrganizationsAndUsers
public com.liferay.portal.kernel.search.Hits searchOrganizationsAndUsers(long companyId, long parentOrganizationId, String keywords, int status, LinkedHashMap<String, Object> params, int start, int end, com.liferay.portal.kernel.search.Sort[] sorts) throws com.liferay.portal.kernel.exception.PortalExceptionReturns the organizations and users that match the keywords specified for them and belong to the parent organization.- Parameters:
companyId
- the primary key of the organization and user's companyparentOrganizationId
- the primary key of the organization and user's parent organizationkeywords
- the keywords (space separated), which may occur in the organization's name, type, or location fields or user's first name, middle name, last name, screen name, email address, or address fieldsstatus
- user's workflow statusparams
- the finder parameters (optionallynull
).start
- the lower bound of the range of organizations and users to returnend
- the upper bound of the range of organizations and users to return (not inclusive)- Returns:
- the matching organizations and users
- Throws:
com.liferay.portal.kernel.exception.PortalException
-
searchOrganizationsAndUsersCount
public int searchOrganizationsAndUsersCount(long companyId, long parentOrganizationId, String keywords, int status, LinkedHashMap<String, Object> params) throws com.liferay.portal.kernel.exception.PortalExceptionReturns the number of organizations and users that match the keywords specified for them and belong to the parent organization.- Parameters:
companyId
- the primary key of the organization and user's companyparentOrganizationId
- the primary key of the organization and user's parent organizationkeywords
- the keywords (space separated), which may occur in the organization's name, type, or location fields or user's first name, middle name, last name, screen name, email address, or address fieldsstatus
- user's workflow statusparams
- the finder parameters (optionallynull
).- Returns:
- the number of matching organizations and users
- Throws:
com.liferay.portal.kernel.exception.PortalException
-
unsetGroupOrganizations
public void unsetGroupOrganizations(long groupId, long[] organizationIds) Removes the organizations from the group.- Parameters:
groupId
- the primary key of the grouporganizationIds
- the primary keys of the organizations
-
unsetPasswordPolicyOrganizations
public void unsetPasswordPolicyOrganizations(long passwordPolicyId, long[] organizationIds) Removes the organizations from the password policy.- Parameters:
passwordPolicyId
- the primary key of the password policyorganizationIds
- the primary keys of the organizations
-
updateAsset
public void updateAsset(long userId, com.liferay.portal.kernel.model.Organization organization, long[] assetCategoryIds, String[] assetTagNames) throws com.liferay.portal.kernel.exception.PortalException Updates the organization's asset with the new asset categories and tag names, removing and adding asset categories and tag names as necessary.- Parameters:
userId
- the primary key of the userorganization
- the organizationassetCategoryIds
- the primary keys of the asset categoriesassetTagNames
- the asset tag names- Throws:
com.liferay.portal.kernel.exception.PortalException
-
updateLogo
public com.liferay.portal.kernel.model.Organization updateLogo(long organizationId, byte[] logoBytes) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
updateOrganization
public com.liferay.portal.kernel.model.Organization updateOrganization(String externalReferenceCode, long companyId, long organizationId, long parentOrganizationId, String name, String type, long regionId, long countryId, long statusListTypeId, String comments, boolean hasLogo, byte[] logoBytes, boolean site, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException Updates the organization.- Parameters:
companyId
- the primary key of the organization's companyorganizationId
- the primary key of the organizationparentOrganizationId
- the primary key of organization's parent organizationname
- the organization's nametype
- the organization's typeregionId
- the primary key of the organization's regioncountryId
- the primary key of the organization's countrystatusListTypeId
- the organization's workflow statuscomments
- the comments about the organizationhasLogo
- if the organization has a custom logologoBytes
- the new logo image datasite
- whether the organization is to be associated with a main siteserviceContext
- the service context to be applied (optionallynull
). Can set asset category IDs and asset tag names for the organization, and merge expando bridge attributes for the organization.- Returns:
- the organization
- Throws:
com.liferay.portal.kernel.exception.PortalException
-
addSuborganizations
-
buildSearchContext
protected com.liferay.portal.kernel.search.SearchContext buildSearchContext(long companyId, long parentOrganizationId, String keywords, int status, LinkedHashMap<String, Object> params, int start, int end, com.liferay.portal.kernel.search.Sort[] sorts) -
buildSearchContext
protected com.liferay.portal.kernel.search.SearchContext buildSearchContext(long companyId, long parentOrganizationId, String name, String type, String street, String city, String zip, Long regionId, Long countryId, LinkedHashMap<String, Object> params, boolean andSearch, int start, int end, com.liferay.portal.kernel.search.Sort sort) -
buildSearchContext
protected com.liferay.portal.kernel.search.SearchContext buildSearchContext(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, com.liferay.portal.kernel.search.Sort sort) -
getParentOrganizationId
protected long getParentOrganizationId(long companyId, long parentOrganizationId) -
getReindexOrganizationIds
protected long[] getReindexOrganizationIds(com.liferay.portal.kernel.model.Organization organization) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
isOrganizationGroup
protected boolean isOrganizationGroup(long organizationId, long groupId) -
isParentOrganization
protected boolean isParentOrganization(long parentOrganizationId, long organizationId) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
isUseCustomSQL
-
reindex
protected void reindex(long companyId, long[] userIds) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
reindexUsers
protected void reindexUsers(List<com.liferay.portal.kernel.model.Organization> organizations) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
reindexUsers
protected void reindexUsers(long organizationId) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
reindexUsers
protected void reindexUsers(long[] organizationIds) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
reindexUsers
protected void reindexUsers(com.liferay.portal.kernel.model.Organization organization) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
validate
protected void validate(long companyId, long organizationId, long parentOrganizationId, String name, String type, long countryId, long statusListTypeId) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
validate
protected void validate(long companyId, long parentOrganizationId, String name, String type, long countryId, long statusListTypeId) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-