com.liferay.portal.service
Interface OrganizationLocalService


public interface OrganizationLocalService

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.OrganizationLocalServiceImpl. Modify methods in that class and rerun ServiceBuilder to populate this class and all other generated classes.

This is a local service. Methods of this service will not have security checks based on the propagated JAAS credentials because this service can only be accessed from within the same VM.

Author:
Brian Wing Shun Chan
See Also:
OrganizationLocalServiceUtil

Method Summary
 void addGroupOrganizations(long groupId, long[] organizationIds)
           
 Organization addOrganization(long userId, long parentOrganizationId, java.lang.String name, int type, boolean recursable, long regionId, long countryId, int statusId, java.lang.String comments)
           
 Organization addOrganization(Organization organization)
           
 void addOrganizationResources(long userId, Organization organization)
           
 void addPasswordPolicyOrganizations(long passwordPolicyId, long[] organizationIds)
           
 void deleteOrganization(long organizationId)
           
 void deleteOrganization(Organization organization)
           
 java.util.List<java.lang.Object> dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
           
 java.util.List<java.lang.Object> dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end)
           
 java.util.List<Organization> getGroupOrganizations(long groupId)
           
 java.util.List<Organization> getManageableOrganizations(long userId)
           
 Organization getOrganization(long organizationId)
           
 Organization getOrganization(long companyId, java.lang.String name)
           
 long getOrganizationId(long companyId, java.lang.String name)
           
 java.util.List<Organization> getOrganizations(int start, int end)
           
 java.util.List<Organization> getOrganizations(long[] organizationIds)
           
 int getOrganizationsCount()
           
 java.util.List<Organization> getParentOrganizations(long organizationId)
           
 java.util.List<Organization> getSuborganizations(java.util.List<Organization> organizations)
           
 java.util.List<Organization> getSubsetOrganizations(java.util.List<Organization> allOrganizations, java.util.List<Organization> availableOrganizations)
           
 java.util.List<Organization> getUserOrganizations(long userId)
           
 int getUserOrganizationsCount(long userId)
           
 boolean hasGroupOrganization(long groupId, long organizationId)
           
 boolean hasPasswordPolicyOrganization(long passwordPolicyId, long organizationId)
           
 boolean hasUserOrganization(long userId, long organizationId)
           
 java.util.List<Organization> search(long companyId, long parentOrganizationId, java.lang.String keywords, int type, java.lang.Long regionId, java.lang.Long countryId, java.util.LinkedHashMap<java.lang.String,java.lang.Object> params, int start, int end)
           
 java.util.List<Organization> search(long companyId, long parentOrganizationId, java.lang.String keywords, int type, java.lang.Long regionId, java.lang.Long countryId, java.util.LinkedHashMap<java.lang.String,java.lang.Object> params, int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 java.util.List<Organization> search(long companyId, long parentOrganizationId, java.lang.String name, int type, java.lang.String street, java.lang.String city, java.lang.String zip, java.lang.Long regionId, java.lang.Long countryId, java.util.LinkedHashMap<java.lang.String,java.lang.Object> params, boolean andOperator, int start, int end)
           
 java.util.List<Organization> search(long companyId, long parentOrganizationId, java.lang.String name, int type, java.lang.String street, java.lang.String city, java.lang.String zip, java.lang.Long regionId, java.lang.Long countryId, java.util.LinkedHashMap<java.lang.String,java.lang.Object> params, boolean andOperator, int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 int searchCount(long companyId, long parentOrganizationId, java.lang.String keywords, int type, java.lang.Long regionId, java.lang.Long countryId, java.util.LinkedHashMap<java.lang.String,java.lang.Object> params)
           
 int searchCount(long companyId, long parentOrganizationId, java.lang.String name, int type, java.lang.String street, java.lang.String city, java.lang.String zip, java.lang.Long regionId, java.lang.Long countryId, java.util.LinkedHashMap<java.lang.String,java.lang.Object> params, boolean andOperator)
           
 void setGroupOrganizations(long groupId, long[] organizationIds)
           
 void unsetGroupOrganizations(long groupId, long[] organizationIds)
           
 void unsetPasswordPolicyOrganizations(long passwordPolicyId, long[] organizationIds)
           
 Organization updateOrganization(long companyId, long organizationId, long parentOrganizationId, java.lang.String name, int type, boolean recursable, long regionId, long countryId, int statusId, java.lang.String comments)
           
 Organization updateOrganization(Organization organization)
           
 

Method Detail

addOrganization

Organization addOrganization(Organization organization)
                             throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

deleteOrganization

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

deleteOrganization

void deleteOrganization(Organization organization)
                        throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

dynamicQuery

java.util.List<java.lang.Object> dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
                                              throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

dynamicQuery

java.util.List<java.lang.Object> dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
                                              int start,
                                              int end)
                                              throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

getOrganization

Organization getOrganization(long organizationId)
                             throws com.liferay.portal.SystemException,
                                    com.liferay.portal.PortalException
Throws:
com.liferay.portal.SystemException
com.liferay.portal.PortalException

getOrganizations

java.util.List<Organization> getOrganizations(int start,
                                              int end)
                                              throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

getOrganizationsCount

int getOrganizationsCount()
                          throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

updateOrganization

Organization updateOrganization(Organization organization)
                                throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

addGroupOrganizations

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

addOrganization

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

addOrganizationResources

void addOrganizationResources(long userId,
                              Organization organization)
                              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.SystemException
Throws:
com.liferay.portal.SystemException

getGroupOrganizations

java.util.List<Organization> getGroupOrganizations(long groupId)
                                                   throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

getManageableOrganizations

java.util.List<Organization> getManageableOrganizations(long userId)
                                                        throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

getOrganization

Organization getOrganization(long companyId,
                             java.lang.String name)
                             throws com.liferay.portal.PortalException,
                                    com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

getOrganizationId

long getOrganizationId(long companyId,
                       java.lang.String name)
                       throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

getOrganizations

java.util.List<Organization> getOrganizations(long[] organizationIds)
                                              throws com.liferay.portal.PortalException,
                                                     com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

getParentOrganizations

java.util.List<Organization> getParentOrganizations(long organizationId)
                                                    throws com.liferay.portal.PortalException,
                                                           com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

getSuborganizations

java.util.List<Organization> getSuborganizations(java.util.List<Organization> organizations)
                                                 throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

getSubsetOrganizations

java.util.List<Organization> getSubsetOrganizations(java.util.List<Organization> allOrganizations,
                                                    java.util.List<Organization> availableOrganizations)

getUserOrganizations

java.util.List<Organization> getUserOrganizations(long userId)
                                                  throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

getUserOrganizationsCount

int getUserOrganizationsCount(long userId)
                              throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

hasGroupOrganization

boolean hasGroupOrganization(long groupId,
                             long organizationId)
                             throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

hasUserOrganization

boolean hasUserOrganization(long userId,
                            long organizationId)
                            throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

hasPasswordPolicyOrganization

boolean hasPasswordPolicyOrganization(long passwordPolicyId,
                                      long organizationId)
                                      throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

search

java.util.List<Organization> search(long companyId,
                                    long parentOrganizationId,
                                    java.lang.String keywords,
                                    int type,
                                    java.lang.Long regionId,
                                    java.lang.Long countryId,
                                    java.util.LinkedHashMap<java.lang.String,java.lang.Object> params,
                                    int start,
                                    int end)
                                    throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

search

java.util.List<Organization> search(long companyId,
                                    long parentOrganizationId,
                                    java.lang.String keywords,
                                    int type,
                                    java.lang.Long regionId,
                                    java.lang.Long countryId,
                                    java.util.LinkedHashMap<java.lang.String,java.lang.Object> params,
                                    int start,
                                    int end,
                                    com.liferay.portal.kernel.util.OrderByComparator obc)
                                    throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

search

java.util.List<Organization> search(long companyId,
                                    long parentOrganizationId,
                                    java.lang.String name,
                                    int type,
                                    java.lang.String street,
                                    java.lang.String city,
                                    java.lang.String zip,
                                    java.lang.Long regionId,
                                    java.lang.Long countryId,
                                    java.util.LinkedHashMap<java.lang.String,java.lang.Object> params,
                                    boolean andOperator,
                                    int start,
                                    int end)
                                    throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

search

java.util.List<Organization> search(long companyId,
                                    long parentOrganizationId,
                                    java.lang.String name,
                                    int type,
                                    java.lang.String street,
                                    java.lang.String city,
                                    java.lang.String zip,
                                    java.lang.Long regionId,
                                    java.lang.Long countryId,
                                    java.util.LinkedHashMap<java.lang.String,java.lang.Object> params,
                                    boolean andOperator,
                                    int start,
                                    int end,
                                    com.liferay.portal.kernel.util.OrderByComparator obc)
                                    throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

searchCount

int searchCount(long companyId,
                long parentOrganizationId,
                java.lang.String keywords,
                int type,
                java.lang.Long regionId,
                java.lang.Long countryId,
                java.util.LinkedHashMap<java.lang.String,java.lang.Object> params)
                throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

searchCount

int searchCount(long companyId,
                long parentOrganizationId,
                java.lang.String name,
                int type,
                java.lang.String street,
                java.lang.String city,
                java.lang.String zip,
                java.lang.Long regionId,
                java.lang.Long countryId,
                java.util.LinkedHashMap<java.lang.String,java.lang.Object> params,
                boolean andOperator)
                throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

setGroupOrganizations

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

unsetGroupOrganizations

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

unsetPasswordPolicyOrganizations

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

updateOrganization

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