Liferay 6.0-ee-sp2

com.liferay.portal.service
Interface OrganizationService

All Known Implementing Classes:
OrganizationServiceWrapper

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

The interface for the organization remote service.

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.

See Also:
OrganizationServiceUtil, OrganizationServiceBaseImpl, com.liferay.portal.service.impl.OrganizationServiceImpl

Method Summary
 void addGroupOrganizations(long groupId, long[] organizationIds)
           
 Organization addOrganization(long parentOrganizationId, String name, String type, boolean recursable, long regionId, long countryId, int statusId, String comments, List<Address> addresses, List<EmailAddress> emailAddresses, List<OrgLabor> orgLabors, List<Phone> phones, List<Website> websites, ServiceContext serviceContext)
           
 Organization addOrganization(long parentOrganizationId, String name, String type, boolean recursable, long regionId, long countryId, int statusId, String comments, ServiceContext serviceContext)
           
 void addPasswordPolicyOrganizations(long passwordPolicyId, long[] organizationIds)
           
 void deleteLogo(long organizationId)
           
 void deleteOrganization(long organizationId)
           
 List<Organization> getManageableOrganizations(String actionId, int max)
           
 Organization getOrganization(long organizationId)
           
 long getOrganizationId(long companyId, String name)
           
 List<Organization> getOrganizations(long companyId, long parentOrganizationId)
           
 List<Organization> getOrganizations(long companyId, long parentOrganizationId, int start, int end)
           
 int getOrganizationsCount(long companyId, long parentOrganizationId)
           
 List<Organization> getUserOrganizations(long userId)
           
 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, String name, String type, boolean recursable, long regionId, long countryId, int statusId, String comments, List<Address> addresses, List<EmailAddress> emailAddresses, List<OrgLabor> orgLabors, List<Phone> phones, List<Website> websites, ServiceContext serviceContext)
           
 Organization updateOrganization(long organizationId, long parentOrganizationId, String name, String type, boolean recursable, long regionId, long countryId, int statusId, String comments, ServiceContext serviceContext)
           
 

Method Detail

addGroupOrganizations

void addGroupOrganizations(long groupId,
                           long[] organizationIds)
                           throws PortalException,
                                  SystemException
Throws:
PortalException
SystemException

addOrganization

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

addOrganization

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

addPasswordPolicyOrganizations

void addPasswordPolicyOrganizations(long passwordPolicyId,
                                    long[] organizationIds)
                                    throws PortalException,
                                           SystemException
Throws:
PortalException
SystemException

deleteLogo

void deleteLogo(long organizationId)
                throws PortalException,
                       SystemException
Throws:
PortalException
SystemException

deleteOrganization

void deleteOrganization(long organizationId)
                        throws PortalException,
                               SystemException
Throws:
PortalException
SystemException

getManageableOrganizations

@Transactional(propagation=SUPPORTS,
               readOnly=true)
List<Organization> getManageableOrganizations(String actionId,
                                                                                       int max)
                                              throws PortalException,
                                                     SystemException
Throws:
PortalException
SystemException

getOrganization

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

getOrganizationId

@Transactional(propagation=SUPPORTS,
               readOnly=true)
long getOrganizationId(long companyId,
                                                                String name)
                       throws SystemException
Throws:
SystemException

getOrganizations

@Transactional(propagation=SUPPORTS,
               readOnly=true)
List<Organization> getOrganizations(long companyId,
                                                                             long parentOrganizationId)
                                    throws SystemException
Throws:
SystemException

getOrganizations

@Transactional(propagation=SUPPORTS,
               readOnly=true)
List<Organization> getOrganizations(long companyId,
                                                                             long parentOrganizationId,
                                                                             int start,
                                                                             int end)
                                    throws SystemException
Throws:
SystemException

getOrganizationsCount

@Transactional(propagation=SUPPORTS,
               readOnly=true)
int getOrganizationsCount(long companyId,
                                                                   long parentOrganizationId)
                          throws SystemException
Throws:
SystemException

getUserOrganizations

@Transactional(propagation=SUPPORTS,
               readOnly=true)
List<Organization> getUserOrganizations(long userId)
                                        throws PortalException,
                                               SystemException
Throws:
PortalException
SystemException

getUserOrganizations

@Transactional(propagation=SUPPORTS,
               readOnly=true)
List<Organization> getUserOrganizations(long userId,
                                                                                 boolean inheritUserGroups)
                                        throws PortalException,
                                               SystemException
Throws:
PortalException
SystemException

setGroupOrganizations

void setGroupOrganizations(long groupId,
                           long[] organizationIds)
                           throws PortalException,
                                  SystemException
Throws:
PortalException
SystemException

unsetGroupOrganizations

void unsetGroupOrganizations(long groupId,
                             long[] organizationIds)
                             throws PortalException,
                                    SystemException
Throws:
PortalException
SystemException

unsetPasswordPolicyOrganizations

void unsetPasswordPolicyOrganizations(long passwordPolicyId,
                                      long[] organizationIds)
                                      throws PortalException,
                                             SystemException
Throws:
PortalException
SystemException

updateOrganization

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

updateOrganization

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

Liferay 6.0-ee-sp2