001    /**
002     * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
003     *
004     * The contents of this file are subject to the terms of the Liferay Enterprise
005     * Subscription License ("License"). You may not use this file except in
006     * compliance with the License. You can obtain a copy of the License by
007     * contacting Liferay, Inc. See the License for the specific language governing
008     * permissions and limitations under the License, including but not limited to
009     * distribution rights of the Software.
010     *
011     *
012     *
013     */
014    
015    package com.liferay.portal.service;
016    
017    import com.liferay.portal.kernel.annotation.Isolation;
018    import com.liferay.portal.kernel.annotation.Propagation;
019    import com.liferay.portal.kernel.annotation.Transactional;
020    import com.liferay.portal.kernel.exception.PortalException;
021    import com.liferay.portal.kernel.exception.SystemException;
022    
023    /**
024     * The interface for the organization remote service.
025     *
026     * <p>
027     * Never modify or reference this interface directly. Always use {@link OrganizationServiceUtil} to access the organization remote service. Add custom service methods to {@link com.liferay.portal.service.impl.OrganizationServiceImpl} and rerun ServiceBuilder to automatically copy the method declarations to this interface.
028     * </p>
029     *
030     * <p>
031     * 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.
032     * </p>
033     *
034     * @author Brian Wing Shun Chan
035     * @see OrganizationServiceUtil
036     * @see com.liferay.portal.service.base.OrganizationServiceBaseImpl
037     * @see com.liferay.portal.service.impl.OrganizationServiceImpl
038     * @generated
039     */
040    @Transactional(isolation = Isolation.PORTAL, rollbackFor =  {
041            PortalException.class, SystemException.class})
042    public interface OrganizationService {
043            public void addGroupOrganizations(long groupId, long[] organizationIds)
044                    throws com.liferay.portal.kernel.exception.PortalException,
045                            com.liferay.portal.kernel.exception.SystemException;
046    
047            public void addPasswordPolicyOrganizations(long passwordPolicyId,
048                    long[] organizationIds)
049                    throws com.liferay.portal.kernel.exception.PortalException,
050                            com.liferay.portal.kernel.exception.SystemException;
051    
052            public com.liferay.portal.model.Organization addOrganization(
053                    long parentOrganizationId, java.lang.String name,
054                    java.lang.String type, boolean recursable, long regionId,
055                    long countryId, int statusId, java.lang.String comments,
056                    com.liferay.portal.service.ServiceContext serviceContext)
057                    throws com.liferay.portal.kernel.exception.PortalException,
058                            com.liferay.portal.kernel.exception.SystemException;
059    
060            public com.liferay.portal.model.Organization addOrganization(
061                    long parentOrganizationId, java.lang.String name,
062                    java.lang.String type, boolean recursable, long regionId,
063                    long countryId, int statusId, java.lang.String comments,
064                    java.util.List<com.liferay.portal.model.Address> addresses,
065                    java.util.List<com.liferay.portal.model.EmailAddress> emailAddresses,
066                    java.util.List<com.liferay.portal.model.OrgLabor> orgLabors,
067                    java.util.List<com.liferay.portal.model.Phone> phones,
068                    java.util.List<com.liferay.portal.model.Website> websites,
069                    com.liferay.portal.service.ServiceContext serviceContext)
070                    throws com.liferay.portal.kernel.exception.PortalException,
071                            com.liferay.portal.kernel.exception.SystemException;
072    
073            public void deleteLogo(long organizationId)
074                    throws com.liferay.portal.kernel.exception.PortalException,
075                            com.liferay.portal.kernel.exception.SystemException;
076    
077            public void deleteOrganization(long organizationId)
078                    throws com.liferay.portal.kernel.exception.PortalException,
079                            com.liferay.portal.kernel.exception.SystemException;
080    
081            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
082            public java.util.List<com.liferay.portal.model.Organization> getManageableOrganizations(
083                    java.lang.String actionId, int max)
084                    throws com.liferay.portal.kernel.exception.PortalException,
085                            com.liferay.portal.kernel.exception.SystemException;
086    
087            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
088            public com.liferay.portal.model.Organization getOrganization(
089                    long organizationId)
090                    throws com.liferay.portal.kernel.exception.PortalException,
091                            com.liferay.portal.kernel.exception.SystemException;
092    
093            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
094            public long getOrganizationId(long companyId, java.lang.String name)
095                    throws com.liferay.portal.kernel.exception.SystemException;
096    
097            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
098            public java.util.List<com.liferay.portal.model.Organization> getUserOrganizations(
099                    long userId)
100                    throws com.liferay.portal.kernel.exception.PortalException,
101                            com.liferay.portal.kernel.exception.SystemException;
102    
103            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
104            public java.util.List<com.liferay.portal.model.Organization> getUserOrganizations(
105                    long userId, boolean inheritUserGroups)
106                    throws com.liferay.portal.kernel.exception.PortalException,
107                            com.liferay.portal.kernel.exception.SystemException;
108    
109            public void setGroupOrganizations(long groupId, long[] organizationIds)
110                    throws com.liferay.portal.kernel.exception.PortalException,
111                            com.liferay.portal.kernel.exception.SystemException;
112    
113            public void unsetGroupOrganizations(long groupId, long[] organizationIds)
114                    throws com.liferay.portal.kernel.exception.PortalException,
115                            com.liferay.portal.kernel.exception.SystemException;
116    
117            public void unsetPasswordPolicyOrganizations(long passwordPolicyId,
118                    long[] organizationIds)
119                    throws com.liferay.portal.kernel.exception.PortalException,
120                            com.liferay.portal.kernel.exception.SystemException;
121    
122            public com.liferay.portal.model.Organization updateOrganization(
123                    long organizationId, long parentOrganizationId, java.lang.String name,
124                    java.lang.String type, boolean recursable, long regionId,
125                    long countryId, int statusId, java.lang.String comments,
126                    com.liferay.portal.service.ServiceContext serviceContext)
127                    throws com.liferay.portal.kernel.exception.PortalException,
128                            com.liferay.portal.kernel.exception.SystemException;
129    
130            public com.liferay.portal.model.Organization updateOrganization(
131                    long organizationId, long parentOrganizationId, java.lang.String name,
132                    java.lang.String type, boolean recursable, long regionId,
133                    long countryId, int statusId, java.lang.String comments,
134                    java.util.List<com.liferay.portal.model.Address> addresses,
135                    java.util.List<com.liferay.portal.model.EmailAddress> emailAddresses,
136                    java.util.List<com.liferay.portal.model.OrgLabor> orgLabors,
137                    java.util.List<com.liferay.portal.model.Phone> phones,
138                    java.util.List<com.liferay.portal.model.Website> websites,
139                    com.liferay.portal.service.ServiceContext serviceContext)
140                    throws com.liferay.portal.kernel.exception.PortalException,
141                            com.liferay.portal.kernel.exception.SystemException;
142    }