001    /**
002     * Copyright (c) 2000-2011 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.exception.PortalException;
018    import com.liferay.portal.kernel.exception.SystemException;
019    import com.liferay.portal.kernel.jsonwebservice.JSONWebService;
020    import com.liferay.portal.kernel.transaction.Isolation;
021    import com.liferay.portal.kernel.transaction.Propagation;
022    import com.liferay.portal.kernel.transaction.Transactional;
023    
024    /**
025     * The interface for the organization remote service.
026     *
027     * <p>
028     * 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.
029     * </p>
030     *
031     * @author Brian Wing Shun Chan
032     * @see OrganizationServiceUtil
033     * @see com.liferay.portal.service.base.OrganizationServiceBaseImpl
034     * @see com.liferay.portal.service.impl.OrganizationServiceImpl
035     * @generated
036     */
037    @JSONWebService
038    @Transactional(isolation = Isolation.PORTAL, rollbackFor =  {
039            PortalException.class, SystemException.class})
040    public interface OrganizationService {
041            /*
042             * NOTE FOR DEVELOPERS:
043             *
044             * 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.
045             */
046            public void addGroupOrganizations(long groupId, long[] organizationIds)
047                    throws com.liferay.portal.kernel.exception.PortalException,
048                            com.liferay.portal.kernel.exception.SystemException;
049    
050            public com.liferay.portal.model.Organization addOrganization(
051                    long parentOrganizationId, java.lang.String name,
052                    java.lang.String type, boolean recursable, long regionId,
053                    long countryId, int statusId, java.lang.String comments,
054                    java.util.List<com.liferay.portal.model.Address> addresses,
055                    java.util.List<com.liferay.portal.model.EmailAddress> emailAddresses,
056                    java.util.List<com.liferay.portal.model.OrgLabor> orgLabors,
057                    java.util.List<com.liferay.portal.model.Phone> phones,
058                    java.util.List<com.liferay.portal.model.Website> websites,
059                    com.liferay.portal.service.ServiceContext serviceContext)
060                    throws com.liferay.portal.kernel.exception.PortalException,
061                            com.liferay.portal.kernel.exception.SystemException;
062    
063            public com.liferay.portal.model.Organization addOrganization(
064                    long parentOrganizationId, java.lang.String name,
065                    java.lang.String type, boolean recursable, long regionId,
066                    long countryId, int statusId, java.lang.String comments,
067                    com.liferay.portal.service.ServiceContext serviceContext)
068                    throws com.liferay.portal.kernel.exception.PortalException,
069                            com.liferay.portal.kernel.exception.SystemException;
070    
071            public void addPasswordPolicyOrganizations(long passwordPolicyId,
072                    long[] organizationIds)
073                    throws com.liferay.portal.kernel.exception.PortalException,
074                            com.liferay.portal.kernel.exception.SystemException;
075    
076            public void deleteLogo(long organizationId)
077                    throws com.liferay.portal.kernel.exception.PortalException,
078                            com.liferay.portal.kernel.exception.SystemException;
079    
080            public void deleteOrganization(long organizationId)
081                    throws com.liferay.portal.kernel.exception.PortalException,
082                            com.liferay.portal.kernel.exception.SystemException;
083    
084            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
085            public java.util.List<com.liferay.portal.model.Organization> getManageableOrganizations(
086                    java.lang.String actionId, int max)
087                    throws com.liferay.portal.kernel.exception.PortalException,
088                            com.liferay.portal.kernel.exception.SystemException;
089    
090            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
091            public com.liferay.portal.model.Organization getOrganization(
092                    long organizationId)
093                    throws com.liferay.portal.kernel.exception.PortalException,
094                            com.liferay.portal.kernel.exception.SystemException;
095    
096            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
097            public long getOrganizationId(long companyId, java.lang.String name)
098                    throws com.liferay.portal.kernel.exception.SystemException;
099    
100            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
101            public java.util.List<com.liferay.portal.model.Organization> getOrganizations(
102                    long companyId, long parentOrganizationId)
103                    throws com.liferay.portal.kernel.exception.SystemException;
104    
105            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
106            public java.util.List<com.liferay.portal.model.Organization> getOrganizations(
107                    long companyId, long parentOrganizationId, int start, int end)
108                    throws com.liferay.portal.kernel.exception.SystemException;
109    
110            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
111            public int getOrganizationsCount(long companyId, long parentOrganizationId)
112                    throws com.liferay.portal.kernel.exception.SystemException;
113    
114            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
115            public java.util.List<com.liferay.portal.model.Organization> getUserOrganizations(
116                    long userId)
117                    throws com.liferay.portal.kernel.exception.PortalException,
118                            com.liferay.portal.kernel.exception.SystemException;
119    
120            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
121            public java.util.List<com.liferay.portal.model.Organization> getUserOrganizations(
122                    long userId, boolean inheritUserGroups)
123                    throws com.liferay.portal.kernel.exception.PortalException,
124                            com.liferay.portal.kernel.exception.SystemException;
125    
126            public void setGroupOrganizations(long groupId, long[] organizationIds)
127                    throws com.liferay.portal.kernel.exception.PortalException,
128                            com.liferay.portal.kernel.exception.SystemException;
129    
130            public void unsetGroupOrganizations(long groupId, long[] organizationIds)
131                    throws com.liferay.portal.kernel.exception.PortalException,
132                            com.liferay.portal.kernel.exception.SystemException;
133    
134            public void unsetPasswordPolicyOrganizations(long passwordPolicyId,
135                    long[] organizationIds)
136                    throws com.liferay.portal.kernel.exception.PortalException,
137                            com.liferay.portal.kernel.exception.SystemException;
138    
139            public com.liferay.portal.model.Organization updateOrganization(
140                    long organizationId, long parentOrganizationId, java.lang.String name,
141                    java.lang.String type, boolean recursable, long regionId,
142                    long countryId, int statusId, java.lang.String comments,
143                    java.util.List<com.liferay.portal.model.Address> addresses,
144                    java.util.List<com.liferay.portal.model.EmailAddress> emailAddresses,
145                    java.util.List<com.liferay.portal.model.OrgLabor> orgLabors,
146                    java.util.List<com.liferay.portal.model.Phone> phones,
147                    java.util.List<com.liferay.portal.model.Website> websites,
148                    com.liferay.portal.service.ServiceContext serviceContext)
149                    throws com.liferay.portal.kernel.exception.PortalException,
150                            com.liferay.portal.kernel.exception.SystemException;
151    
152            public com.liferay.portal.model.Organization updateOrganization(
153                    long organizationId, long parentOrganizationId, java.lang.String name,
154                    java.lang.String type, boolean recursable, long regionId,
155                    long countryId, int statusId, java.lang.String comments,
156                    com.liferay.portal.service.ServiceContext serviceContext)
157                    throws com.liferay.portal.kernel.exception.PortalException,
158                            com.liferay.portal.kernel.exception.SystemException;
159    }