com.liferay.portal.service
Interface OrganizationService


@Transactional(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, java.lang.String type, boolean recursable, long regionId, long countryId, int statusId, java.lang.String comments, java.util.List<Address> addresses, java.util.List<EmailAddress> emailAddresses, java.util.List<OrgLabor> orgLabors, java.util.List<Phone> phones, java.util.List<Website> websites, ServiceContext serviceContext)
           
 Organization addOrganization(long parentOrganizationId, java.lang.String name, java.lang.String type, boolean recursable, long regionId, long countryId, int statusId, java.lang.String comments, ServiceContext serviceContext)
           
 void addPasswordPolicyOrganizations(long passwordPolicyId, long[] organizationIds)
           
 void deleteOrganization(long organizationId)
           
 java.util.List<Organization> getManageableOrganizations(long userId, java.lang.String actionId)
           
 java.util.List<Organization> getManageableOrganizations(long userId, java.lang.String actionId, boolean recurse)
           
 Organization getOrganization(long organizationId)
           
 long getOrganizationId(long companyId, java.lang.String name)
           
 java.util.List<Organization> getUserOrganizations(long userId)
           
 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, java.lang.String type, boolean recursable, long regionId, long countryId, int statusId, java.lang.String comments, java.util.List<Address> addresses, java.util.List<EmailAddress> emailAddresses, java.util.List<OrgLabor> orgLabors, java.util.List<Phone> phones, java.util.List<Website> websites, ServiceContext serviceContext)
           
 Organization updateOrganization(long organizationId, long parentOrganizationId, java.lang.String name, java.lang.String type, boolean recursable, long regionId, long countryId, int statusId, java.lang.String comments, ServiceContext serviceContext)
           
 

Method Detail

addGroupOrganizations

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

addPasswordPolicyOrganizations

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

addOrganization

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

addOrganization

Organization addOrganization(long parentOrganizationId,
                             java.lang.String name,
                             java.lang.String type,
                             boolean recursable,
                             long regionId,
                             long countryId,
                             int statusId,
                             java.lang.String comments,
                             java.util.List<Address> addresses,
                             java.util.List<EmailAddress> emailAddresses,
                             java.util.List<OrgLabor> orgLabors,
                             java.util.List<Phone> phones,
                             java.util.List<Website> websites,
                             ServiceContext serviceContext)
                             throws com.liferay.portal.PortalException,
                                    com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

deleteOrganization

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

getManageableOrganizations

@Transactional(propagation=SUPPORTS,
               readOnly=true)
java.util.List<Organization> getManageableOrganizations(long userId,
                                                                      java.lang.String actionId)
                                                        throws com.liferay.portal.PortalException,
                                                               com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

getManageableOrganizations

@Transactional(propagation=SUPPORTS,
               readOnly=true)
java.util.List<Organization> getManageableOrganizations(long userId,
                                                                      java.lang.String actionId,
                                                                      boolean recurse)
                                                        throws com.liferay.portal.PortalException,
                                                               com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

getOrganization

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

getOrganizationId

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

getUserOrganizations

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

setGroupOrganizations

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

unsetGroupOrganizations

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

unsetPasswordPolicyOrganizations

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

updateOrganization

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

updateOrganization

Organization updateOrganization(long organizationId,
                                long parentOrganizationId,
                                java.lang.String name,
                                java.lang.String type,
                                boolean recursable,
                                long regionId,
                                long countryId,
                                int statusId,
                                java.lang.String comments,
                                java.util.List<Address> addresses,
                                java.util.List<EmailAddress> emailAddresses,
                                java.util.List<OrgLabor> orgLabors,
                                java.util.List<Phone> phones,
                                java.util.List<Website> websites,
                                ServiceContext serviceContext)
                                throws com.liferay.portal.PortalException,
                                       com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException