All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.liferay.portal.kernel.service.OrganizationServiceWrapper Maven / Gradle / Ivy

There is a newer version: 7.4.3.112-ga112
Show newest version
/**
 * Copyright (c) 2000-present 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.kernel.service;

import aQute.bnd.annotation.ProviderType;

/**
 * Provides a wrapper for {@link OrganizationService}.
 *
 * @author Brian Wing Shun Chan
 * @see OrganizationService
 * @generated
 */
@ProviderType
public class OrganizationServiceWrapper
	implements OrganizationService, ServiceWrapper {

	public OrganizationServiceWrapper(OrganizationService organizationService) {
		_organizationService = organizationService;
	}

	/**
	 * Adds the organizations to the group.
	 *
	 * @param groupId the primary key of the group
	 * @param organizationIds the primary keys of the organizations
	 */
	@Override
	public void addGroupOrganizations(long groupId, long[] organizationIds)
		throws com.liferay.portal.kernel.exception.PortalException {

		_organizationService.addGroupOrganizations(groupId, organizationIds);
	}

	/**
	 * Adds an organization with additional parameters.
	 *
	 * 

* This method handles the creation and bookkeeping of the organization * including its resources, metadata, and internal data structures. *

* * @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 addresses the organization's addresses * @param emailAddresses the organization's email addresses * @param orgLabors the organization's hours of operation * @param phones the organization's phone numbers * @param websites the organization's websites * @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 */ @Override public com.liferay.portal.kernel.model.Organization addOrganization( long parentOrganizationId, String name, String type, long regionId, long countryId, long statusId, String comments, boolean site, java.util.List addresses, java.util.List emailAddresses, java.util.List orgLabors, java.util.List phones, java.util.List websites, ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException { return _organizationService.addOrganization( parentOrganizationId, name, type, regionId, countryId, statusId, comments, site, addresses, emailAddresses, orgLabors, phones, websites, serviceContext); } /** * Adds an organization. * *

* This method handles the creation and bookkeeping of the organization * including its resources, metadata, and internal data structures. *

* * @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 */ @Override public com.liferay.portal.kernel.model.Organization addOrganization( long parentOrganizationId, String name, String type, long regionId, long countryId, long statusId, String comments, boolean site, ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException { return _organizationService.addOrganization( parentOrganizationId, name, type, regionId, countryId, statusId, comments, site, serviceContext); } /** * 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 */ @Override public void addPasswordPolicyOrganizations( long passwordPolicyId, long[] organizationIds) throws com.liferay.portal.kernel.exception.PortalException { _organizationService.addPasswordPolicyOrganizations( passwordPolicyId, organizationIds); } /** * Deletes the organization's logo. * * @param organizationId the primary key of the organization */ @Override public void deleteLogo(long organizationId) throws com.liferay.portal.kernel.exception.PortalException { _organizationService.deleteLogo(organizationId); } /** * Deletes the organization. The organization's associated resources and * assets are also deleted. * * @param organizationId the primary key of the organization */ @Override public void deleteOrganization(long organizationId) throws com.liferay.portal.kernel.exception.PortalException { _organizationService.deleteOrganization(organizationId); } /** * Returns the organization with the primary key. * * @param organizationId the primary key of the organization * @return the organization with the primary key, or null if an organization with the primary key could not be found or if the user did not have permission to view the organization */ @Override public com.liferay.portal.kernel.model.Organization fetchOrganization( long organizationId) throws com.liferay.portal.kernel.exception.PortalException { return _organizationService.fetchOrganization(organizationId); } @Override public java.util.List getGtOrganizations( long gtOrganizationId, long companyId, long parentOrganizationId, int size) { return _organizationService.getGtOrganizations( gtOrganizationId, companyId, parentOrganizationId, size); } /** * Returns the organization with the primary key. * * @param organizationId the primary key of the organization * @return the organization with the primary key */ @Override public com.liferay.portal.kernel.model.Organization getOrganization( long organizationId) throws com.liferay.portal.kernel.exception.PortalException { return _organizationService.getOrganization(organizationId); } /** * 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 */ @Override public long getOrganizationId(long companyId, String name) throws com.liferay.portal.kernel.exception.PortalException { return _organizationService.getOrganizationId(companyId, name); } /** * Returns all the organizations belonging to the parent organization. * * @param companyId the primary key of the organizations' company * @param parentOrganizationId the primary key of the organizations' parent organization * @return the organizations belonging to the parent organization */ @Override public java.util.List getOrganizations(long companyId, long parentOrganizationId) { return _organizationService.getOrganizations( companyId, parentOrganizationId); } /** * 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 organizations' company * @param parentOrganizationId the primary key of the organizations' 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 */ @Override public java.util.List getOrganizations( long companyId, long parentOrganizationId, int start, int end) { return _organizationService.getOrganizations( companyId, parentOrganizationId, start, end); } @Override public java.util.List getOrganizations( long companyId, long parentOrganizationId, String name, int start, int end) { return _organizationService.getOrganizations( companyId, parentOrganizationId, name, start, end); } /** * Returns the number of organizations belonging to the parent organization. * * @param companyId the primary key of the organizations' company * @param parentOrganizationId the primary key of the organizations' parent organization * @return the number of organizations belonging to the parent organization */ @Override public int getOrganizationsCount( long companyId, long parentOrganizationId) { return _organizationService.getOrganizationsCount( companyId, parentOrganizationId); } @Override public int getOrganizationsCount( long companyId, long parentOrganizationId, String name) throws com.liferay.portal.kernel.exception.PortalException { return _organizationService.getOrganizationsCount( companyId, parentOrganizationId, name); } /** * Returns the OSGi service identifier. * * @return the OSGi service identifier */ @Override public String getOSGiServiceIdentifier() { return _organizationService.getOSGiServiceIdentifier(); } /** * Returns all the organizations with which the user is explicitly * associated. * *

* 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. *

* * @param userId the primary key of the user * @return the organizations with which the user is explicitly associated */ @Override public java.util.List getUserOrganizations(long userId) throws com.liferay.portal.kernel.exception.PortalException { return _organizationService.getUserOrganizations(userId); } /** * Sets the organizations in the group, removing and adding organizations to * the group as necessary. * * @param groupId the primary key of the group * @param organizationIds the primary keys of the organizations */ @Override public void setGroupOrganizations(long groupId, long[] organizationIds) throws com.liferay.portal.kernel.exception.PortalException { _organizationService.setGroupOrganizations(groupId, organizationIds); } /** * Removes the organizations from the group. * * @param groupId the primary key of the group * @param organizationIds the primary keys of the organizations */ @Override public void unsetGroupOrganizations(long groupId, long[] organizationIds) throws com.liferay.portal.kernel.exception.PortalException { _organizationService.unsetGroupOrganizations(groupId, organizationIds); } /** * Removes the organizations from the password policy. * * @param passwordPolicyId the primary key of the password policy * @param organizationIds the primary keys of the organizations */ @Override public void unsetPasswordPolicyOrganizations( long passwordPolicyId, long[] organizationIds) throws com.liferay.portal.kernel.exception.PortalException { _organizationService.unsetPasswordPolicyOrganizations( passwordPolicyId, organizationIds); } /** * Updates the organization with additional parameters. * * @param organizationId the primary key 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 logo whether to update the ogranization's logo * @param logoBytes the new logo image data * @param site whether the organization is to be associated with a main site * @param addresses the organization's addresses * @param emailAddresses the organization's email addresses * @param orgLabors the organization's hours of operation * @param phones the organization's phone numbers * @param websites the organization's websites * @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 */ @Override public com.liferay.portal.kernel.model.Organization updateOrganization( long organizationId, long parentOrganizationId, String name, String type, long regionId, long countryId, long statusId, String comments, boolean logo, byte[] logoBytes, boolean site, java.util.List addresses, java.util.List emailAddresses, java.util.List orgLabors, java.util.List phones, java.util.List websites, ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException { return _organizationService.updateOrganization( organizationId, parentOrganizationId, name, type, regionId, countryId, statusId, comments, logo, logoBytes, site, addresses, emailAddresses, orgLabors, phones, websites, serviceContext); } /** * Updates the organization with additional parameters. * * @param organizationId the primary key 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 addresses the organization's addresses * @param emailAddresses the organization's email addresses * @param orgLabors the organization's hours of operation * @param phones the organization's phone numbers * @param websites the organization's websites * @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 * @deprecated As of Wilberforce (7.0.x), replaced by {@link #updateOrganization(long, long, String, String, long, long, long, String, boolean, byte[], boolean, List, List, List, List, List, ServiceContext)} */ @Deprecated @Override public com.liferay.portal.kernel.model.Organization updateOrganization( long organizationId, long parentOrganizationId, String name, String type, long regionId, long countryId, long statusId, String comments, boolean site, java.util.List addresses, java.util.List emailAddresses, java.util.List orgLabors, java.util.List phones, java.util.List websites, ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException { return _organizationService.updateOrganization( organizationId, parentOrganizationId, name, type, regionId, countryId, statusId, comments, site, addresses, emailAddresses, orgLabors, phones, websites, serviceContext); } /** * Updates the organization. * * @param organizationId the primary key 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 and asset tag names for the organization, and merge expando bridge attributes for the organization. * @return the organization */ @Override public com.liferay.portal.kernel.model.Organization updateOrganization( long organizationId, long parentOrganizationId, String name, String type, long regionId, long countryId, long statusId, String comments, boolean site, ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException { return _organizationService.updateOrganization( organizationId, parentOrganizationId, name, type, regionId, countryId, statusId, comments, site, serviceContext); } @Override public OrganizationService getWrappedService() { return _organizationService; } @Override public void setWrappedService(OrganizationService organizationService) { _organizationService = organizationService; } private OrganizationService _organizationService; }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy