1
22
23 package com.liferay.portal.service;
24
25 import com.liferay.portal.PortalException;
26 import com.liferay.portal.SystemException;
27 import com.liferay.portal.kernel.annotation.Isolation;
28 import com.liferay.portal.kernel.annotation.Propagation;
29 import com.liferay.portal.kernel.annotation.Transactional;
30
31
55 @Transactional(isolation = Isolation.PORTAL, rollbackFor = {
56 PortalException.class, SystemException.class})
57 public interface OrganizationService {
58 public void addGroupOrganizations(long groupId, long[] organizationIds)
59 throws java.rmi.RemoteException, com.liferay.portal.PortalException,
60 com.liferay.portal.SystemException;
61
62 public void addPasswordPolicyOrganizations(long passwordPolicyId,
63 long[] organizationIds)
64 throws java.rmi.RemoteException, com.liferay.portal.PortalException,
65 com.liferay.portal.SystemException;
66
67 public com.liferay.portal.model.Organization addOrganization(
68 long parentOrganizationId, java.lang.String name, int type,
69 boolean recursable, long regionId, long countryId, int statusId,
70 java.lang.String comments)
71 throws java.rmi.RemoteException, com.liferay.portal.PortalException,
72 com.liferay.portal.SystemException;
73
74 public void deleteOrganization(long organizationId)
75 throws java.rmi.RemoteException, com.liferay.portal.PortalException,
76 com.liferay.portal.SystemException;
77
78 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
79 public com.liferay.portal.model.Organization getOrganization(
80 long organizationId)
81 throws java.rmi.RemoteException, com.liferay.portal.PortalException,
82 com.liferay.portal.SystemException;
83
84 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
85 public long getOrganizationId(long companyId, java.lang.String name)
86 throws java.rmi.RemoteException, com.liferay.portal.SystemException;
87
88 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
89 public java.util.List<com.liferay.portal.model.Organization> getUserOrganizations(
90 long userId)
91 throws java.rmi.RemoteException, com.liferay.portal.SystemException;
92
93 public void setGroupOrganizations(long groupId, long[] organizationIds)
94 throws java.rmi.RemoteException, com.liferay.portal.PortalException,
95 com.liferay.portal.SystemException;
96
97 public void unsetGroupOrganizations(long groupId, long[] organizationIds)
98 throws java.rmi.RemoteException, com.liferay.portal.PortalException,
99 com.liferay.portal.SystemException;
100
101 public void unsetPasswordPolicyOrganizations(long passwordPolicyId,
102 long[] organizationIds)
103 throws java.rmi.RemoteException, com.liferay.portal.PortalException,
104 com.liferay.portal.SystemException;
105
106 public com.liferay.portal.model.Organization updateOrganization(
107 long organizationId, long parentOrganizationId, java.lang.String name,
108 int type, boolean recursable, long regionId, long countryId,
109 int statusId, java.lang.String comments)
110 throws java.rmi.RemoteException, com.liferay.portal.PortalException,
111 com.liferay.portal.SystemException;
112 }