com.liferay.portal.service.OrganizationLocalService Maven / Gradle / Ivy
Show all versions of portal-service Show documentation
/**
* Copyright (c) 2000-2013 Liferay, Inc. All rights reserved.
*
* This library is free software; you can redistribute it and/or modify it under
* the terms of the GNU Lesser General Public License as published by the Free
* Software Foundation; either version 2.1 of the License, or (at your option)
* any later version.
*
* This library is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
* FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
* details.
*/
package com.liferay.portal.service;
import com.liferay.portal.kernel.exception.PortalException;
import com.liferay.portal.kernel.exception.SystemException;
import com.liferay.portal.kernel.transaction.Isolation;
import com.liferay.portal.kernel.transaction.Propagation;
import com.liferay.portal.kernel.transaction.Transactional;
/**
* Provides the local service interface for Organization. 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.
*
* @author Brian Wing Shun Chan
* @see OrganizationLocalServiceUtil
* @see com.liferay.portal.service.base.OrganizationLocalServiceBaseImpl
* @see com.liferay.portal.service.impl.OrganizationLocalServiceImpl
* @generated
*/
@Transactional(isolation = Isolation.PORTAL, rollbackFor = {
PortalException.class, SystemException.class})
public interface OrganizationLocalService extends BaseLocalService,
PersistedModelLocalService {
/*
* NOTE FOR DEVELOPERS:
*
* Never modify or reference this interface directly. Always use {@link OrganizationLocalServiceUtil} to access the organization local service. Add custom service methods to {@link com.liferay.portal.service.impl.OrganizationLocalServiceImpl} and rerun ServiceBuilder to automatically copy the method declarations to this interface.
*/
/**
* Adds the organization to the database. Also notifies the appropriate model listeners.
*
* @param organization the organization
* @return the organization that was added
* @throws SystemException if a system exception occurred
*/
public com.liferay.portal.model.Organization addOrganization(
com.liferay.portal.model.Organization organization)
throws com.liferay.portal.kernel.exception.SystemException;
/**
* Creates a new organization with the primary key. Does not add the organization to the database.
*
* @param organizationId the primary key for the new organization
* @return the new organization
*/
public com.liferay.portal.model.Organization createOrganization(
long organizationId);
/**
* Deletes the organization with the primary key from the database. Also notifies the appropriate model listeners.
*
* @param organizationId the primary key of the organization
* @return the organization that was removed
* @throws PortalException if a organization with the primary key could not be found
* @throws SystemException if a system exception occurred
*/
public com.liferay.portal.model.Organization deleteOrganization(
long organizationId)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException;
/**
* Deletes the organization from the database. Also notifies the appropriate model listeners.
*
* @param organization the organization
* @return the organization that was removed
* @throws PortalException
* @throws SystemException if a system exception occurred
*/
public com.liferay.portal.model.Organization deleteOrganization(
com.liferay.portal.model.Organization organization)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException;
public com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery();
/**
* Performs a dynamic query on the database and returns the matching rows.
*
* @param dynamicQuery the dynamic query
* @return the matching rows
* @throws SystemException if a system exception occurred
*/
@SuppressWarnings("rawtypes")
public java.util.List dynamicQuery(
com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
throws com.liferay.portal.kernel.exception.SystemException;
/**
* Performs a dynamic query on the database and returns a range of the matching rows.
*
*
* 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 {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent and pagination is required (start
and end
are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.OrganizationModelImpl}. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
*
*
* @param dynamicQuery the dynamic query
* @param start the lower bound of the range of model instances
* @param end the upper bound of the range of model instances (not inclusive)
* @return the range of matching rows
* @throws SystemException if a system exception occurred
*/
@SuppressWarnings("rawtypes")
public java.util.List dynamicQuery(
com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
int end) throws com.liferay.portal.kernel.exception.SystemException;
/**
* Performs a dynamic query on the database and returns an ordered range of the matching rows.
*
*
* 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 {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent and pagination is required (start
and end
are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.OrganizationModelImpl}. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
*
*
* @param dynamicQuery the dynamic query
* @param start the lower bound of the range of model instances
* @param end the upper bound of the range of model instances (not inclusive)
* @param orderByComparator the comparator to order the results by (optionally null
)
* @return the ordered range of matching rows
* @throws SystemException if a system exception occurred
*/
@SuppressWarnings("rawtypes")
public java.util.List dynamicQuery(
com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
throws com.liferay.portal.kernel.exception.SystemException;
/**
* Returns the number of rows that match the dynamic query.
*
* @param dynamicQuery the dynamic query
* @return the number of rows that match the dynamic query
* @throws SystemException if a system exception occurred
*/
public long dynamicQueryCount(
com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
throws com.liferay.portal.kernel.exception.SystemException;
/**
* Returns the number of rows that match the dynamic query.
*
* @param dynamicQuery the dynamic query
* @param projection the projection to apply to the query
* @return the number of rows that match the dynamic query
* @throws SystemException if a system exception occurred
*/
public long dynamicQueryCount(
com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
com.liferay.portal.kernel.dao.orm.Projection projection)
throws com.liferay.portal.kernel.exception.SystemException;
@Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
public com.liferay.portal.model.Organization fetchOrganization(
long organizationId)
throws com.liferay.portal.kernel.exception.SystemException;
/**
* Returns the organization with the matching UUID and company.
*
* @param uuid the organization's UUID
* @param companyId the primary key of the company
* @return the matching organization, or null
if a matching organization could not be found
* @throws SystemException if a system exception occurred
*/
@Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
public com.liferay.portal.model.Organization fetchOrganizationByUuidAndCompanyId(
java.lang.String uuid, long companyId)
throws com.liferay.portal.kernel.exception.SystemException;
/**
* Returns the organization with the primary key.
*
* @param organizationId the primary key of the organization
* @return the organization
* @throws PortalException if a organization with the primary key could not be found
* @throws SystemException if a system exception occurred
*/
@Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
public com.liferay.portal.model.Organization getOrganization(
long organizationId)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException;
@Override
@Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
public com.liferay.portal.model.PersistedModel getPersistedModel(
java.io.Serializable primaryKeyObj)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException;
/**
* Returns the organization with the matching UUID and company.
*
* @param uuid the organization's UUID
* @param companyId the primary key of the company
* @return the matching organization
* @throws PortalException if a matching organization could not be found
* @throws SystemException if a system exception occurred
*/
@Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
public com.liferay.portal.model.Organization getOrganizationByUuidAndCompanyId(
java.lang.String uuid, long companyId)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException;
/**
* Returns a range of all the organizations.
*
*
* 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 {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent and pagination is required (start
and end
are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.OrganizationModelImpl}. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
*
*
* @param start the lower bound of the range of organizations
* @param end the upper bound of the range of organizations (not inclusive)
* @return the range of organizations
* @throws SystemException if a system exception occurred
*/
@Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
public java.util.List getOrganizations(
int start, int end)
throws com.liferay.portal.kernel.exception.SystemException;
/**
* Returns the number of organizations.
*
* @return the number of organizations
* @throws SystemException if a system exception occurred
*/
@Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
public int getOrganizationsCount()
throws com.liferay.portal.kernel.exception.SystemException;
/**
* Updates the organization in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
*
* @param organization the organization
* @return the organization that was updated
* @throws SystemException if a system exception occurred
*/
public com.liferay.portal.model.Organization updateOrganization(
com.liferay.portal.model.Organization organization)
throws com.liferay.portal.kernel.exception.SystemException;
/**
* @throws SystemException if a system exception occurred
*/
public void addGroupOrganization(long groupId, long organizationId)
throws com.liferay.portal.kernel.exception.SystemException;
/**
* @throws SystemException if a system exception occurred
*/
public void addGroupOrganization(long groupId,
com.liferay.portal.model.Organization organization)
throws com.liferay.portal.kernel.exception.SystemException;
/**
* @throws PortalException
* @throws SystemException if a system exception occurred
*/
public void addGroupOrganizations(long groupId, long[] organizationIds)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException;
/**
* @throws PortalException
* @throws SystemException if a system exception occurred
*/
public void addGroupOrganizations(long groupId,
java.util.List Organizations)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException;
/**
* @throws SystemException if a system exception occurred
*/
public void clearGroupOrganizations(long groupId)
throws com.liferay.portal.kernel.exception.SystemException;
/**
* @throws SystemException if a system exception occurred
*/
public void deleteGroupOrganization(long groupId, long organizationId)
throws com.liferay.portal.kernel.exception.SystemException;
/**
* @throws SystemException if a system exception occurred
*/
public void deleteGroupOrganization(long groupId,
com.liferay.portal.model.Organization organization)
throws com.liferay.portal.kernel.exception.SystemException;
/**
* @throws SystemException if a system exception occurred
*/
public void deleteGroupOrganizations(long groupId, long[] organizationIds)
throws com.liferay.portal.kernel.exception.SystemException;
/**
* @throws SystemException if a system exception occurred
*/
public void deleteGroupOrganizations(long groupId,
java.util.List Organizations)
throws com.liferay.portal.kernel.exception.SystemException;
/**
* @throws SystemException if a system exception occurred
*/
@Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
public java.util.List getGroupOrganizations(
long groupId)
throws com.liferay.portal.kernel.exception.SystemException;
/**
* @throws SystemException if a system exception occurred
*/
@Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
public java.util.List getGroupOrganizations(
long groupId, int start, int end)
throws com.liferay.portal.kernel.exception.SystemException;
/**
* @throws SystemException if a system exception occurred
*/
@Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
public java.util.List getGroupOrganizations(
long groupId, int start, int end,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
throws com.liferay.portal.kernel.exception.SystemException;
/**
* @throws SystemException if a system exception occurred
*/
@Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
public int getGroupOrganizationsCount(long groupId)
throws com.liferay.portal.kernel.exception.SystemException;
/**
* @throws SystemException if a system exception occurred
*/
@Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
public boolean hasGroupOrganization(long groupId, long organizationId)
throws com.liferay.portal.kernel.exception.SystemException;
/**
* @throws SystemException if a system exception occurred
*/
@Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
public boolean hasGroupOrganizations(long groupId)
throws com.liferay.portal.kernel.exception.SystemException;
/**
* @throws PortalException
* @throws SystemException if a system exception occurred
*/
public void setGroupOrganizations(long groupId, long[] organizationIds)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException;
/**
* @throws SystemException if a system exception occurred
*/
public void addUserOrganization(long userId, long organizationId)
throws com.liferay.portal.kernel.exception.SystemException;
/**
* @throws SystemException if a system exception occurred
*/
public void addUserOrganization(long userId,
com.liferay.portal.model.Organization organization)
throws com.liferay.portal.kernel.exception.SystemException;
/**
* @throws SystemException if a system exception occurred
*/
public void addUserOrganizations(long userId, long[] organizationIds)
throws com.liferay.portal.kernel.exception.SystemException;
/**
* @throws SystemException if a system exception occurred
*/
public void addUserOrganizations(long userId,
java.util.List Organizations)
throws com.liferay.portal.kernel.exception.SystemException;
/**
* @throws SystemException if a system exception occurred
*/
public void clearUserOrganizations(long userId)
throws com.liferay.portal.kernel.exception.SystemException;
/**
* @throws SystemException if a system exception occurred
*/
public void deleteUserOrganization(long userId, long organizationId)
throws com.liferay.portal.kernel.exception.SystemException;
/**
* @throws SystemException if a system exception occurred
*/
public void deleteUserOrganization(long userId,
com.liferay.portal.model.Organization organization)
throws com.liferay.portal.kernel.exception.SystemException;
/**
* @throws SystemException if a system exception occurred
*/
public void deleteUserOrganizations(long userId, long[] organizationIds)
throws com.liferay.portal.kernel.exception.SystemException;
/**
* @throws SystemException if a system exception occurred
*/
public void deleteUserOrganizations(long userId,
java.util.List Organizations)
throws com.liferay.portal.kernel.exception.SystemException;
/**
* @throws SystemException if a system exception occurred
*/
@Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
public java.util.List getUserOrganizations(
long userId) throws com.liferay.portal.kernel.exception.SystemException;
/**
* @throws SystemException if a system exception occurred
*/
@Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
public java.util.List getUserOrganizations(
long userId, int start, int end)
throws com.liferay.portal.kernel.exception.SystemException;
/**
* @throws SystemException if a system exception occurred
*/
@Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
public java.util.List getUserOrganizations(
long userId, int start, int end,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
throws com.liferay.portal.kernel.exception.SystemException;
/**
* @throws SystemException if a system exception occurred
*/
@Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
public int getUserOrganizationsCount(long userId)
throws com.liferay.portal.kernel.exception.SystemException;
/**
* @throws SystemException if a system exception occurred
*/
@Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
public boolean hasUserOrganization(long userId, long organizationId)
throws com.liferay.portal.kernel.exception.SystemException;
/**
* @throws SystemException if a system exception occurred
*/
@Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
public boolean hasUserOrganizations(long userId)
throws com.liferay.portal.kernel.exception.SystemException;
/**
* @throws SystemException if a system exception occurred
*/
public void setUserOrganizations(long userId, long[] organizationIds)
throws com.liferay.portal.kernel.exception.SystemException;
/**
* Returns the Spring bean ID for this bean.
*
* @return the Spring bean ID for this bean
*/
public java.lang.String getBeanIdentifier();
/**
* Sets the Spring bean ID for this bean.
*
* @param beanIdentifier the Spring bean ID for this bean
*/
public void setBeanIdentifier(java.lang.String beanIdentifier);
/**
* 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 {@link
* #addOrganizationResources(long, Organization)}.
*
*
* @param userId the primary key of the creator/owner of the organization
* @param parentOrganizationId the primary key of the organization's parent
organization
* @param name the organization's name
* @param site whether the organization is to be associated with a main
site
* @return the organization
* @throws PortalException if a creator or parent organization with the
primary key could not be found or if the organization's
information was invalid
* @throws SystemException if a system exception occurred
*/
public com.liferay.portal.model.Organization addOrganization(long userId,
long parentOrganizationId, java.lang.String name, boolean site)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException;
/**
* 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 {@link
* #addOrganizationResources(long, Organization)}.
*
*
* @param userId the primary key of the creator/owner of the
organization
* @param parentOrganizationId the primary key of the organization's
parent organization
* @param name the organization's name
* @param type the organization's type
* @param recursable whether the permissions of the organization are to
be inherited by its suborganizations
* @param regionId the primary key of the organization's region
* @param countryId the primary key of the organization's country
* @param statusId the organization's workflow status
* @param comments the comments about the organization
* @param site whether the organization is to be associated with a main
site
* @param serviceContext the service context to be applied (optionally
null
). Can set asset category IDs, asset tag
names, and expando bridge attributes for the organization.
* @return the organization
* @throws PortalException if a creator or parent organization with the
primary key could not be found or if the organization's
information was invalid
* @throws SystemException if a system exception occurred
* @deprecated As of 6.2.0, replaced by {@link #addOrganization(long, long,
String, String, long, long, int, String, boolean,
ServiceContext)}
*/
public com.liferay.portal.model.Organization addOrganization(long userId,
long parentOrganizationId, java.lang.String name,
java.lang.String type, boolean recursable, long regionId,
long countryId, int statusId, java.lang.String comments, boolean site,
com.liferay.portal.service.ServiceContext serviceContext)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException;
/**
* 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 {@link
* #addOrganizationResources(long, Organization)}.
*
*
* @param userId the primary key of the creator/owner of the organization
* @param parentOrganizationId the primary key of the organization's parent
organization
* @param name the organization's name
* @param type the organization's type
* @param regionId the primary key of the organization's region
* @param countryId the primary key of the organization's country
* @param statusId the organization's workflow status
* @param comments the comments about the organization
* @param site whether the organization is to be associated with a main
site
* @param serviceContext the service context to be applied (optionally
null
). Can set asset category IDs, asset tag names,
and expando bridge attributes for the organization.
* @return the organization
* @throws PortalException if a creator or parent organization with the
primary key could not be found or if the organization's
information was invalid
* @throws SystemException if a system exception occurred
*/
public com.liferay.portal.model.Organization addOrganization(long userId,
long parentOrganizationId, java.lang.String name,
java.lang.String type, long regionId, long countryId, int statusId,
java.lang.String comments, boolean site,
com.liferay.portal.service.ServiceContext serviceContext)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException;
/**
* Adds a resource for each type of permission available on the
* organization.
*
* @param userId the primary key of the creator/owner of the organization
* @param organization the organization
* @throws PortalException if a portal exception occurred
* @throws SystemException if a system exception occurred
*/
public void addOrganizationResources(long userId,
com.liferay.portal.model.Organization organization)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException;
/**
* Assigns the password policy to the organizations, removing any other
* currently assigned password policies.
*
* @param passwordPolicyId the primary key of the password policy
* @param organizationIds the primary keys of the organizations
* @throws SystemException if a system exception occurred
*/
public void addPasswordPolicyOrganizations(long passwordPolicyId,
long[] organizationIds)
throws com.liferay.portal.kernel.exception.SystemException;
/**
* Deletes the logo of the organization.
*
* @param organizationId the primary key of the organization
* @throws PortalException if an organization or parent organization with
the primary key could not be found or if the organization's logo
could not be found
* @throws SystemException if a system exception occurred
*/
public void deleteLogo(long organizationId)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException;
@Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
public com.liferay.portal.model.Organization fetchOrganization(
long companyId, java.lang.String name)
throws com.liferay.portal.kernel.exception.SystemException;
@Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
public java.util.List getNoAssetOrganizations()
throws com.liferay.portal.kernel.exception.SystemException;
/**
* Returns the organization with the name.
*
* @param companyId the primary key of the organization's company
* @param name the organization's name
* @return the organization with the name
* @throws PortalException if the organization with the name could not be
found
* @throws SystemException if a system exception occurred
*/
@Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
public com.liferay.portal.model.Organization getOrganization(
long companyId, java.lang.String name)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException;
/**
* Returns the primary key of the organization with the name.
*
* @param companyId the primary key of the organization's company
* @param name the organization's name
* @return the primary key of the organization with the name, or
0
if the organization could not be found
* @throws SystemException if a system exception occurred
*/
@Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
public long getOrganizationId(long companyId, java.lang.String name)
throws com.liferay.portal.kernel.exception.SystemException;
@Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
public java.util.List getOrganizations(
long userId, int start, int end,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException;
/**
* Returns all the organizations belonging to the parent organization.
*
* @param companyId the primary key of the organization's company
* @param parentOrganizationId the primary key of the organization's parent
organization
* @return the organizations belonging to the parent organization
* @throws SystemException if a system exception occurred
*/
@Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
public java.util.List getOrganizations(
long companyId, long parentOrganizationId)
throws com.liferay.portal.kernel.exception.SystemException;
/**
* Returns a range of all the organizations belonging to the parent
* organization.
*
*
* 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 {@link
* com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full
* result set.
*
*
* @param companyId the primary key of the organization's company
* @param parentOrganizationId the primary key of the organization's parent
organization
* @param start the lower bound of the range of organizations to return
* @param end the upper bound of the range of organizations to return (not
inclusive)
* @return the range of organizations belonging to the parent organization
* @throws SystemException if a system exception occurred
* @see com.liferay.portal.service.persistence.OrganizationPersistence#findByC_P(
long, long, int, int)
*/
@Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
public java.util.List getOrganizations(
long companyId, long parentOrganizationId, int start, int end)
throws com.liferay.portal.kernel.exception.SystemException;
/**
* Returns the organizations with the primary keys.
*
* @param organizationIds the primary keys of the organizations
* @return the organizations with the primary keys
* @throws PortalException if any one of the organizations could not be
found
* @throws SystemException if a system exception occurred
*/
@Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
public java.util.List getOrganizations(
long[] organizationIds)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException;
/**
* Returns the number of organizations belonging to the parent organization.
*
* @param companyId the primary key of the organization's company
* @param parentOrganizationId the primary key of the organization's parent
organization
* @return the number of organizations belonging to the parent organization
* @throws SystemException if a system exception occurred
*/
@Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
public int getOrganizationsCount(long companyId, long parentOrganizationId)
throws com.liferay.portal.kernel.exception.SystemException;
/**
* Returns the parent organizations in order by closest ancestor. The list
* starts with the organization itself.
*
* @param organizationId the primary key of the organization
* @return the parent organizations in order by closest ancestor
* @throws PortalException if an organization with the primary key could not
be found
* @throws SystemException if a system exception occurred
*/
@Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
public java.util.List getParentOrganizations(
long organizationId)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException;
/**
* Returns the suborganizations of the organizations.
*
* @param organizations the organizations from which to get
suborganizations
* @return the suborganizations of the organizations
* @throws SystemException if a system exception occurred
*/
@Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
public java.util.List getSuborganizations(
java.util.List organizations)
throws com.liferay.portal.kernel.exception.SystemException;
/**
* Returns the suborganizations of the organization.
*
* @param companyId the primary key of the organization's company
* @param organizationId the primary key of the organization
* @return the suborganizations of the organization
* @throws SystemException if a system exception occurred
*/
@Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
public java.util.List getSuborganizations(
long companyId, long organizationId)
throws com.liferay.portal.kernel.exception.SystemException;
/**
* Returns the count of suborganizations of the organization.
*
* @param companyId the primary key of the organization's company
* @param organizationId the primary key of the organization
* @return the count of suborganizations of the organization
* @throws SystemException if a system exception occurred
*/
@Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
public int getSuborganizationsCount(long companyId, long organizationId)
throws com.liferay.portal.kernel.exception.SystemException;
/**
* Returns the intersection of allOrganizations
and
* availableOrganizations
.
*
* @param allOrganizations the organizations to check for availability
* @param availableOrganizations the available organizations
* @return the intersection of allOrganizations
and
availableOrganizations
*/
@Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
public java.util.List getSubsetOrganizations(
java.util.List allOrganizations,
java.util.List availableOrganizations);
/**
* Returns all the organizations associated with the user. If
* includeAdministrative is true
, the result includes those
* organizations that are not directly associated to the user but he is an
* administrator or an owner of the organization.
*
* @param userId the primary key of the user
* @param includeAdministrative whether to includes organizations that are
indirectly associated to the user because he is an administrator
or an owner of the organization
* @return the organizations associated with the user
* @throws PortalException if a user with the primary key could not be found
* @throws SystemException if a system exception occurred
*/
@Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
public java.util.List getUserOrganizations(
long userId, boolean includeAdministrative)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException;
/**
* Returns true
if the password policy has been assigned to the
* organization.
*
* @param passwordPolicyId the primary key of the password policy
* @param organizationId the primary key of the organization
* @return true
if the password policy has been assigned to the
organization; false
otherwise
* @throws SystemException if a system exception occurred
*/
@Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
public boolean hasPasswordPolicyOrganization(long passwordPolicyId,
long organizationId)
throws com.liferay.portal.kernel.exception.SystemException;
/**
* Returns true
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=false
:
* the method checks whether the user belongs to the organization specified
* by organizationId
. The parameter
* includeSpecifiedOrganization
is ignored.
*
* -
* The parameter
includeSpecifiedOrganization
is
* ignored unless inheritSuborganizations
is also
* true
.
*
* -
* If
inheritSuborganizations=true
and
* includeSpecifiedOrganization=false
: the method
* checks
* whether the user belongs to one of the child organizations of the one
* specified by organizationId
.
*
* -
* If
inheritSuborganizations=true
and
* includeSpecifiedOrganization=true
: the method
* checks whether
* the user belongs to the organization specified by
* organizationId
or any of
* its child organizations.
*
*
*
* @param userId the primary key of the organization's user
* @param organizationId the primary key of the organization
* @param inheritSuborganizations if true
suborganizations are
considered in the determination
* @param includeSpecifiedOrganization if true
the
organization specified by organizationId
is
considered in the determination
* @return true
if the user has access to the organization;
false
otherwise
* @throws PortalException if an organization with the primary key could not
be found
* @throws SystemException if a system exception occurred
* @see com.liferay.portal.service.persistence.OrganizationFinder
*/
@Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
public boolean hasUserOrganization(long userId, long organizationId,
boolean inheritSuborganizations, boolean includeSpecifiedOrganization)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException;
/**
* Rebuilds the organizations 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.
*
*
* @param companyId the primary key of the organization's company
* @throws PortalException if an organization with the primary key could not
be found
* @throws SystemException if a system exception occurred
*/
public void rebuildTree(long companyId)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException;
/**
* Returns a range of all the organizations of the company.
*
*
* 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 {@link
* com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full
* result set.
*
*
* @param companyId the primary key of the company
* @param params the finder parameters (optionally null
). For
more information see {@link
com.liferay.portlet.usersadmin.util.OrganizationIndexer}
* @param start the lower bound of the range of organizations to return
* @param end the upper bound of the range of organizations to return (not
inclusive)
* @return the range of all the organizations of the company
* @throws SystemException if a system exception occurred
*/
@Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
public java.util.List search(
long companyId,
java.util.LinkedHashMap params,
int start, int end)
throws com.liferay.portal.kernel.exception.SystemException;
/**
* 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
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 {@link
* com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full
* result set.
*
*
* @param companyId the primary key of the organization's company
* @param parentOrganizationId the primary key of the organization's parent
organization
* @param keywords the keywords (space separated), which may occur in the
organization's name, street, city, zipcode, type, region or
country (optionally null
)
* @param params the finder parameters (optionally null
). For
more information see {@link
com.liferay.portlet.usersadmin.util.OrganizationIndexer}
* @param start the lower bound of the range of organizations to return
* @param end the upper bound of the range of organizations to return (not
inclusive)
* @param sort the field and direction by which to sort (optionally
null
)
* @return the matching organizations ordered by name
* @throws SystemException if a system exception occurred
* @see com.liferay.portlet.usersadmin.util.OrganizationIndexer
*/
@Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
public com.liferay.portal.kernel.search.Hits search(long companyId,
long parentOrganizationId, java.lang.String keywords,
java.util.LinkedHashMap params,
int start, int end, com.liferay.portal.kernel.search.Sort sort)
throws com.liferay.portal.kernel.exception.SystemException;
/**
* 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 version {@link #search(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
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 {@link
* com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full
* result set.
*
*
* @param companyId the primary key of the organization's company
* @param parentOrganizationId the primary key of the organization's parent
organization
* @param keywords the keywords (space separated), which may occur in the
organization's name, street, city, or zipcode (optionally
null
)
* @param type the organization's type (optionally null
)
* @param regionId the primary key of the organization's region (optionally
null
)
* @param countryId the primary key of the organization's country
(optionally null
)
* @param params the finder params. For more information see {@link
com.liferay.portal.service.persistence.OrganizationFinder}
* @param start the lower bound of the range of organizations to return
* @param end the upper bound of the range of organizations to return (not
inclusive)
* @return the matching organizations ordered by name
* @throws SystemException if a system exception occurred
* @see com.liferay.portal.service.persistence.OrganizationFinder
*/
@Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
public java.util.List search(
long companyId, long parentOrganizationId, java.lang.String keywords,
java.lang.String type, java.lang.Long regionId,
java.lang.Long countryId,
java.util.LinkedHashMap params,
int start, int end)
throws com.liferay.portal.kernel.exception.SystemException;
/**
* 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 version {@link #search(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
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 {@link
* com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full
* result set.
*
*
* @param companyId the primary key of the organization's company
* @param parentOrganizationId the primary key of the organization's parent
organization
* @param keywords the keywords (space separated), which may occur in the
organization's name, street, city, or zipcode (optionally
null
)
* @param type the organization's type (optionally null
)
* @param regionId the primary key of the organization's region (optionally
null
)
* @param countryId the primary key of the organization's country
(optionally null
)
* @param params the finder params. For more information see {@link
com.liferay.portal.service.persistence.OrganizationFinder}
* @param start the lower bound of the range of organizations to return
* @param end the upper bound of the range of organizations to return (not
inclusive)
* @param obc the comparator to order the organizations (optionally
null
)
* @return the matching organizations ordered by comparator obc
* @throws SystemException if a system exception occurred
* @see com.liferay.portal.service.persistence.OrganizationFinder
*/
@Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
public java.util.List search(
long companyId, long parentOrganizationId, java.lang.String keywords,
java.lang.String type, java.lang.Long regionId,
java.lang.Long countryId,
java.util.LinkedHashMap params,
int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
throws com.liferay.portal.kernel.exception.SystemException;
/**
* 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 version {@link #search(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
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 {@link
* com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full
* result set.
*
*
* @param companyId the primary key of the organization's company
* @param parentOrganizationId the primary key of the organization's parent
* @param name the name keywords (space separated, optionally
null
)
* @param type the organization's type (optionally null
)
* @param street the street keywords (optionally null
)
* @param city the city keywords (optionally null
)
* @param zip the zipcode keywords (optionally null
)
* @param regionId the primary key of the organization's region (optionally
null
)
* @param countryId the primary key of the organization's country
(optionally null
)
* @param params the finder parameters (optionally null
). For
more information see {@link
com.liferay.portal.service.persistence.OrganizationFinder}
* @param 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'".
* @param start the lower bound of the range of organizations to return
* @param end the upper bound of the range of organizations to return (not
inclusive)
* @return the matching organizations ordered by name
* @throws SystemException if a system exception occurred
* @see com.liferay.portal.service.persistence.OrganizationFinder
*/
@Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
public java.util.List search(
long companyId, long parentOrganizationId, java.lang.String name,
java.lang.String type, java.lang.String street, java.lang.String city,
java.lang.String zip, java.lang.Long regionId,
java.lang.Long countryId,
java.util.LinkedHashMap params,
boolean andOperator, int start, int end)
throws com.liferay.portal.kernel.exception.SystemException;
/**
* 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 version {@link #search(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
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 {@link
* com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full
* result set.
*
*
* @param companyId the primary key of the organization's company
* @param parentOrganizationId the primary key of the organization's parent
organization
* @param name the name keywords (space separated, optionally
null
)
* @param type the organization's type (optionally null
)
* @param street the street keywords (optionally null
)
* @param city the city keywords (optionally null
)
* @param zip the zipcode keywords (optionally null
)
* @param regionId the primary key of the organization's region (optionally
null
)
* @param countryId the primary key of the organization's country
(optionally null
)
* @param params the finder parameters (optionally null
). For
more information see {@link
com.liferay.portal.service.persistence.OrganizationFinder}
* @param 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'".
* @param start the lower bound of the range of organizations to return
* @param end the upper bound of the range of organizations to return (not
inclusive)
* @param obc the comparator to order the organizations (optionally
null
)
* @return the matching organizations ordered by comparator obc
* @throws SystemException if a system exception occurred
* @see com.liferay.portal.service.persistence.OrganizationFinder
*/
@Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
public java.util.List search(
long companyId, long parentOrganizationId, java.lang.String name,
java.lang.String type, java.lang.String street, java.lang.String city,
java.lang.String zip, java.lang.Long regionId,
java.lang.Long countryId,
java.util.LinkedHashMap params,
boolean andOperator, int start, int end,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws com.liferay.portal.kernel.exception.SystemException;
/**
* 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
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 {@link
* com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full
* result set.
*
*
* @param companyId the primary key of the organization's company
* @param parentOrganizationId the primary key of the organization's parent
organization
* @param name the name keywords (space separated, optionally
null
)
* @param type the type keywords (optionally null
)
* @param street the street keywords (optionally null
)
* @param city the city keywords (optionally null
)
* @param zip the zipcode keywords (optionally null
)
* @param region the region keywords (optionally null
)
* @param country the country keywords (optionally null
)
* @param params the finder parameters (optionally null
). For
more information see {@link
com.liferay.portlet.usersadmin.util.OrganizationIndexer}.
* @param andSearch whether every field must match its keywords or just one
field
* @param start the lower bound of the range of organizations to return
* @param end the upper bound of the range of organizations to return (not
inclusive)
* @param sort the field and direction by which to sort (optionally
null
)
* @return the matching organizations ordered by sort
* @throws SystemException if a system exception occurred
* @see com.liferay.portlet.usersadmin.util.OrganizationIndexer
*/
@Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
public com.liferay.portal.kernel.search.Hits search(long companyId,
long parentOrganizationId, java.lang.String name,
java.lang.String type, java.lang.String street, java.lang.String city,
java.lang.String zip, java.lang.String region,
java.lang.String country,
java.util.LinkedHashMap params,
boolean andSearch, int start, int end,
com.liferay.portal.kernel.search.Sort sort)
throws com.liferay.portal.kernel.exception.SystemException;
/**
* Returns the number of organizations that match the keywords, type,
* region, and country.
*
* @param companyId the primary key of the organization's company
* @param parentOrganizationId the primary key of the organization's parent
organization
* @param keywords the keywords (space separated), which may occur in the
organization's name, street, city, or zipcode (optionally
null
)
* @param type the organization's type (optionally null
)
* @param regionId the primary key of the organization's region (optionally
null
)
* @param countryId the primary key of the organization's country
(optionally null
)
* @param params the finder parameters (optionally null
). For
more information see {@link
com.liferay.portal.service.persistence.OrganizationFinder}
* @return the number of matching organizations
* @throws SystemException if a system exception occurred
* @see com.liferay.portal.service.persistence.OrganizationFinder
*/
@Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
public int searchCount(long companyId, long parentOrganizationId,
java.lang.String keywords, java.lang.String type,
java.lang.Long regionId, java.lang.Long countryId,
java.util.LinkedHashMap params)
throws com.liferay.portal.kernel.exception.SystemException;
/**
* Returns the number of organizations with the type, region, and country,
* and whose name, street, city, and zipcode match the keywords specified
* for them.
*
* @param companyId the primary key of the organization's company
* @param parentOrganizationId the primary key of the organization's parent
organization
* @param name the name keywords (space separated, optionally
null
)
* @param type the organization's type (optionally null
)
* @param street the street keywords (optionally null
)
* @param city the city keywords (optionally null
)
* @param zip the zipcode keywords (optionally null
)
* @param regionId the primary key of the organization's region (optionally
null
)
* @param countryId the primary key of the organization's country
(optionally null
)
* @param params the finder parameters (optionally null
). For
more information see {@link
com.liferay.portal.service.persistence.OrganizationFinder}
* @param 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'".
* @return the number of matching organizations
* @throws SystemException if a system exception occurred
* @see com.liferay.portal.service.persistence.OrganizationFinder
*/
@Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
public int searchCount(long companyId, long parentOrganizationId,
java.lang.String name, java.lang.String type, java.lang.String street,
java.lang.String city, java.lang.String zip, java.lang.Long regionId,
java.lang.Long countryId,
java.util.LinkedHashMap params,
boolean andOperator)
throws com.liferay.portal.kernel.exception.SystemException;
/**
* Removes the organizations from the group.
*
* @param groupId the primary key of the group
* @param organizationIds the primary keys of the organizations
* @throws PortalException if a portal exception occurred
* @throws SystemException if a system exception occurred
*/
public void unsetGroupOrganizations(long groupId, long[] organizationIds)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException;
/**
* Removes the organizations from the password policy.
*
* @param passwordPolicyId the primary key of the password policy
* @param organizationIds the primary keys of the organizations
* @throws SystemException if a system exception occurred
*/
public void unsetPasswordPolicyOrganizations(long passwordPolicyId,
long[] organizationIds)
throws com.liferay.portal.kernel.exception.SystemException;
/**
* Updates the organization's asset with the new asset categories and tag
* names, removing and adding asset categories and tag names as necessary.
*
* @param userId the primary key of the user
* @param organization the organization
* @param assetCategoryIds the primary keys of the asset categories
* @param assetTagNames the asset tag names
* @throws PortalException if a user with the primary key could not be found
* @throws SystemException if a system exception occurred
*/
public void updateAsset(long userId,
com.liferay.portal.model.Organization organization,
long[] assetCategoryIds, java.lang.String[] assetTagNames)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException;
/**
* Updates the organization.
*
* @param companyId the primary key of the organization's company
* @param organizationId the primary key of the organization
* @param parentOrganizationId the primary key of organization's parent
organization
* @param name the organization's name
* @param type the organization's type
* @param recursable whether permissions of the organization are to be
inherited by its suborganizations
* @param regionId the primary key of the organization's region
* @param countryId the primary key of the organization's country
* @param statusId the organization's workflow status
* @param comments the comments about the organization
* @param site whether the organization is to be associated with a main
site
* @param serviceContext the service context to be applied (optionally
null
). Can set asset category IDs and asset tag
names for the organization, and merge expando bridge
attributes for the organization.
* @return the organization
* @throws PortalException if an organization or parent organization
with the primary key could not be found or if the new
information was invalid
* @throws SystemException if a system exception occurred
* @deprecated As of 6.2.0, replaced by {@link #updateOrganization(long,
long, long, String, String, long, long, int, String, boolean,
ServiceContext)}
*/
public com.liferay.portal.model.Organization updateOrganization(
long companyId, long organizationId, long parentOrganizationId,
java.lang.String name, java.lang.String type, boolean recursable,
long regionId, long countryId, int statusId, java.lang.String comments,
boolean site, com.liferay.portal.service.ServiceContext serviceContext)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException;
/**
* Updates the organization.
*
* @param companyId the primary key of the organization's company
* @param organizationId the primary key of the organization
* @param parentOrganizationId the primary key of organization's parent
organization
* @param name the organization's name
* @param type the organization's type
* @param regionId the primary key of the organization's region
* @param countryId the primary key of the organization's country
* @param statusId the organization's workflow status
* @param comments the comments about the organization
* @param site whether the organization is to be associated with a main
site
* @param serviceContext the service context to be applied (optionally
null
). Can set asset category IDs and asset tag
names for the organization, and merge expando bridge attributes
for the organization.
* @return the organization
* @throws PortalException if an organization or parent organization with
the primary key could not be found or if the new information was
invalid
* @throws SystemException if a system exception occurred
*/
public com.liferay.portal.model.Organization updateOrganization(
long companyId, long organizationId, long parentOrganizationId,
java.lang.String name, java.lang.String type, long regionId,
long countryId, int statusId, java.lang.String comments, boolean site,
com.liferay.portal.service.ServiceContext serviceContext)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException;
}