001: /**
002: * Copyright (c) 2000-2008 Liferay, Inc. All rights reserved.
003: *
004: * Permission is hereby granted, free of charge, to any person obtaining a copy
005: * of this software and associated documentation files (the "Software"), to deal
006: * in the Software without restriction, including without limitation the rights
007: * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
008: * copies of the Software, and to permit persons to whom the Software is
009: * furnished to do so, subject to the following conditions:
010: *
011: * The above copyright notice and this permission notice shall be included in
012: * all copies or substantial portions of the Software.
013: *
014: * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
015: * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
016: * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
017: * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
018: * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
019: * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
020: * SOFTWARE.
021: */package com.liferay.portal.service;
022:
023: /**
024: * <a href="OrganizationService.java.html"><b><i>View Source</i></b></a>
025: *
026: * <p>
027: * ServiceBuilder generated this class. Modifications in this class will be
028: * overwritten the next time is generated.
029: * </p>
030: *
031: * <p>
032: * This interface defines the service. The default implementation is
033: * <code>com.liferay.portal.service.impl.OrganizationServiceImpl</code>.
034: * Modify methods in that class and rerun ServiceBuilder to populate this class
035: * and all other generated classes.
036: * </p>
037: *
038: * <p>
039: * This is a remote service. Methods of this service are expected to have security checks based on the propagated JAAS credentials because this service can be accessed remotely.
040: * </p>
041: *
042: * @author Brian Wing Shun Chan
043: *
044: * @see com.liferay.portal.service.OrganizationServiceFactory
045: * @see com.liferay.portal.service.OrganizationServiceUtil
046: *
047: */
048: public interface OrganizationService {
049: public void addGroupOrganizations(long groupId,
050: long[] organizationIds) throws java.rmi.RemoteException,
051: com.liferay.portal.SystemException,
052: com.liferay.portal.PortalException;
053:
054: public void addPasswordPolicyOrganizations(long passwordPolicyId,
055: long[] organizationIds) throws java.rmi.RemoteException,
056: com.liferay.portal.SystemException,
057: com.liferay.portal.PortalException;
058:
059: public com.liferay.portal.model.Organization addOrganization(
060: long parentOrganizationId, java.lang.String name, int type,
061: boolean recursable, long regionId, long countryId,
062: int statusId, java.lang.String comments)
063: throws java.rmi.RemoteException,
064: com.liferay.portal.SystemException,
065: com.liferay.portal.PortalException;
066:
067: public void deleteOrganization(long organizationId)
068: throws java.rmi.RemoteException,
069: com.liferay.portal.SystemException,
070: com.liferay.portal.PortalException;
071:
072: public com.liferay.portal.model.Organization getOrganization(
073: long organizationId) throws java.rmi.RemoteException,
074: com.liferay.portal.SystemException,
075: com.liferay.portal.PortalException;
076:
077: public long getOrganizationId(long companyId, java.lang.String name)
078: throws java.rmi.RemoteException,
079: com.liferay.portal.SystemException,
080: com.liferay.portal.PortalException;
081:
082: public java.util.List getUserOrganizations(long userId)
083: throws java.rmi.RemoteException,
084: com.liferay.portal.SystemException,
085: com.liferay.portal.PortalException;
086:
087: public void setGroupOrganizations(long groupId,
088: long[] organizationIds) throws java.rmi.RemoteException,
089: com.liferay.portal.SystemException,
090: com.liferay.portal.PortalException;
091:
092: public void unsetGroupOrganizations(long groupId,
093: long[] organizationIds) throws java.rmi.RemoteException,
094: com.liferay.portal.SystemException,
095: com.liferay.portal.PortalException;
096:
097: public void unsetPasswordPolicyOrganizations(long passwordPolicyId,
098: long[] organizationIds) throws java.rmi.RemoteException,
099: com.liferay.portal.SystemException,
100: com.liferay.portal.PortalException;
101:
102: public com.liferay.portal.model.Organization updateOrganization(
103: long organizationId, long parentOrganizationId,
104: java.lang.String name, int type, boolean recursable,
105: long regionId, long countryId, int statusId,
106: java.lang.String comments) throws java.rmi.RemoteException,
107: com.liferay.portal.SystemException,
108: com.liferay.portal.PortalException;
109: }
|