com.liferay.portal.service
Interface OrganizationService


@Transactional(isolation=PORTAL,
               rollbackFor={com.liferay.portal.PortalException.class,com.liferay.portal.SystemException.class})
public interface OrganizationService

View Source

ServiceBuilder generated this class. Modifications in this class will be overwritten the next time is generated.

This interface defines the service. The default implementation is com.liferay.portal.service.impl.OrganizationServiceImpl}. Modify methods in that class and rerun ServiceBuilder to populate this class and all other generated classes.

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.

Author:
Brian Wing Shun Chan
See Also:
OrganizationServiceUtil

Method Summary
 void addGroupOrganizations(long groupId, long[] organizationIds)
           
 Organization addOrganization(long parentOrganizationId, java.lang.String name, int type, boolean recursable, long regionId, long countryId, int statusId, java.lang.String comments)
           
 void addPasswordPolicyOrganizations(long passwordPolicyId, long[] organizationIds)
           
 void deleteOrganization(long organizationId)
           
 Organization getOrganization(long organizationId)
           
 long getOrganizationId(long companyId, java.lang.String name)
           
 java.util.List<Organization> getUserOrganizations(long userId)
           
 java.util.List<Organization> getUserOrganizations(long userId, boolean inheritUserGroups)
           
 void setGroupOrganizations(long groupId, long[] organizationIds)
           
 void unsetGroupOrganizations(long groupId, long[] organizationIds)
           
 void unsetPasswordPolicyOrganizations(long passwordPolicyId, long[] organizationIds)
           
 Organization updateOrganization(long organizationId, long parentOrganizationId, java.lang.String name, int type, boolean recursable, long regionId, long countryId, int statusId, java.lang.String comments)
           
 

Method Detail

addGroupOrganizations

void addGroupOrganizations(long groupId,
                           long[] organizationIds)
                           throws java.rmi.RemoteException,
                                  com.liferay.portal.PortalException,
                                  com.liferay.portal.SystemException
Throws:
java.rmi.RemoteException
com.liferay.portal.PortalException
com.liferay.portal.SystemException

addPasswordPolicyOrganizations

void addPasswordPolicyOrganizations(long passwordPolicyId,
                                    long[] organizationIds)
                                    throws java.rmi.RemoteException,
                                           com.liferay.portal.PortalException,
                                           com.liferay.portal.SystemException
Throws:
java.rmi.RemoteException
com.liferay.portal.PortalException
com.liferay.portal.SystemException

addOrganization

Organization addOrganization(long parentOrganizationId,
                             java.lang.String name,
                             int type,
                             boolean recursable,
                             long regionId,
                             long countryId,
                             int statusId,
                             java.lang.String comments)
                             throws java.rmi.RemoteException,
                                    com.liferay.portal.PortalException,
                                    com.liferay.portal.SystemException
Throws:
java.rmi.RemoteException
com.liferay.portal.PortalException
com.liferay.portal.SystemException

deleteOrganization

void deleteOrganization(long organizationId)
                        throws java.rmi.RemoteException,
                               com.liferay.portal.PortalException,
                               com.liferay.portal.SystemException
Throws:
java.rmi.RemoteException
com.liferay.portal.PortalException
com.liferay.portal.SystemException

getOrganization

@Transactional(propagation=SUPPORTS,
               readOnly=true)
Organization getOrganization(long organizationId)
                             throws java.rmi.RemoteException,
                                    com.liferay.portal.PortalException,
                                    com.liferay.portal.SystemException
Throws:
java.rmi.RemoteException
com.liferay.portal.PortalException
com.liferay.portal.SystemException

getOrganizationId

@Transactional(propagation=SUPPORTS,
               readOnly=true)
long getOrganizationId(long companyId,
                                     java.lang.String name)
                       throws java.rmi.RemoteException,
                              com.liferay.portal.SystemException
Throws:
java.rmi.RemoteException
com.liferay.portal.SystemException

getUserOrganizations

@Transactional(propagation=SUPPORTS,
               readOnly=true)
java.util.List<Organization> getUserOrganizations(long userId)
                                                  throws java.rmi.RemoteException,
                                                         com.liferay.portal.PortalException,
                                                         com.liferay.portal.SystemException
Throws:
java.rmi.RemoteException
com.liferay.portal.PortalException
com.liferay.portal.SystemException

getUserOrganizations

@Transactional(propagation=SUPPORTS,
               readOnly=true)
java.util.List<Organization> getUserOrganizations(long userId,
                                                                boolean inheritUserGroups)
                                                  throws java.rmi.RemoteException,
                                                         com.liferay.portal.PortalException,
                                                         com.liferay.portal.SystemException
Throws:
java.rmi.RemoteException
com.liferay.portal.PortalException
com.liferay.portal.SystemException

setGroupOrganizations

void setGroupOrganizations(long groupId,
                           long[] organizationIds)
                           throws java.rmi.RemoteException,
                                  com.liferay.portal.PortalException,
                                  com.liferay.portal.SystemException
Throws:
java.rmi.RemoteException
com.liferay.portal.PortalException
com.liferay.portal.SystemException

unsetGroupOrganizations

void unsetGroupOrganizations(long groupId,
                             long[] organizationIds)
                             throws java.rmi.RemoteException,
                                    com.liferay.portal.PortalException,
                                    com.liferay.portal.SystemException
Throws:
java.rmi.RemoteException
com.liferay.portal.PortalException
com.liferay.portal.SystemException

unsetPasswordPolicyOrganizations

void unsetPasswordPolicyOrganizations(long passwordPolicyId,
                                      long[] organizationIds)
                                      throws java.rmi.RemoteException,
                                             com.liferay.portal.PortalException,
                                             com.liferay.portal.SystemException
Throws:
java.rmi.RemoteException
com.liferay.portal.PortalException
com.liferay.portal.SystemException

updateOrganization

Organization updateOrganization(long organizationId,
                                long parentOrganizationId,
                                java.lang.String name,
                                int type,
                                boolean recursable,
                                long regionId,
                                long countryId,
                                int statusId,
                                java.lang.String comments)
                                throws java.rmi.RemoteException,
                                       com.liferay.portal.PortalException,
                                       com.liferay.portal.SystemException
Throws:
java.rmi.RemoteException
com.liferay.portal.PortalException
com.liferay.portal.SystemException