Liferay 6.0.5

com.liferay.portal.service
Class OrganizationLocalServiceWrapper

java.lang.Object
  extended by com.liferay.portal.service.OrganizationLocalServiceWrapper
All Implemented Interfaces:
OrganizationLocalService

public class OrganizationLocalServiceWrapper
extends Object
implements OrganizationLocalService

This class is a wrapper for OrganizationLocalService.

See Also:
OrganizationLocalService
ServiceBuilder generated this class. Modifications in this class will be overwritten the next time is generated.

Constructor Summary
OrganizationLocalServiceWrapper(OrganizationLocalService organizationLocalService)
           
 
Method Summary
 void addGroupOrganizations(long groupId, long[] organizationIds)
           
 Organization addOrganization(long userId, long parentOrganizationId, String name, String type, boolean recursable, long regionId, long countryId, int statusId, String comments, ServiceContext serviceContext)
           
 Organization addOrganization(Organization organization)
          Adds the organization to the database.
 void addOrganizationResources(long userId, Organization organization)
           
 void addPasswordPolicyOrganizations(long passwordPolicyId, long[] organizationIds)
           
 Organization createOrganization(long organizationId)
          Creates a new organization with the primary key.
 void deleteLogo(long organizationId)
           
 void deleteOrganization(long organizationId)
          Deletes the organization with the primary key from the database.
 void deleteOrganization(Organization organization)
          Deletes the organization from the database.
 List dynamicQuery(DynamicQuery dynamicQuery)
          Performs a dynamic query on the database and returns the matching rows.
 List dynamicQuery(DynamicQuery dynamicQuery, int start, int end)
          Performs a dynamic query on the database and returns a range of the matching rows.
 List dynamicQuery(DynamicQuery dynamicQuery, int start, int end, OrderByComparator orderByComparator)
          Performs a dynamic query on the database and returns an ordered range of the matching rows.
 long dynamicQueryCount(DynamicQuery dynamicQuery)
          Counts the number of rows that match the dynamic query.
 List<Organization> getGroupOrganizations(long groupId)
           
 Organization getOrganization(long organizationId)
          Gets the organization with the primary key.
 Organization getOrganization(long companyId, String name)
           
 long getOrganizationId(long companyId, String name)
           
 List<Organization> getOrganizations(int start, int end)
          Gets a range of all the organizations.
 List<Organization> getOrganizations(long[] organizationIds)
           
 int getOrganizationsCount()
          Gets the number of organizations.
 List<Organization> getParentOrganizations(long organizationId)
           
 List<Organization> getSuborganizations(List<Organization> organizations)
           
 List<Organization> getSubsetOrganizations(List<Organization> allOrganizations, List<Organization> availableOrganizations)
           
 List<Organization> getUserOrganizations(long userId)
           
 List<Organization> getUserOrganizations(long userId, boolean inheritUserGroups)
           
 List<Organization> getUserOrganizations(long userId, boolean inheritUserGroups, int start, int end)
           
 List<Organization> getUserOrganizations(long userId, int start, int end)
           
 int getUserOrganizationsCount(long userId)
           
 OrganizationLocalService getWrappedOrganizationLocalService()
           
 boolean hasGroupOrganization(long groupId, long organizationId)
           
 boolean hasPasswordPolicyOrganization(long passwordPolicyId, long organizationId)
           
 boolean hasUserOrganization(long userId, long organizationId)
           
 boolean hasUserOrganization(long userId, long organizationId, boolean inheritSuborganizations, boolean inheritUserGroups, boolean includeSpecifiedOrganization)
           
 void rebuildTree(long companyId, boolean force)
           
 Hits search(long companyId, long parentOrganizationId, String keywords, LinkedHashMap<String,Object> params, int start, int end, Sort sort)
           
 List<Organization> search(long companyId, long parentOrganizationId, String keywords, String type, Long regionId, Long countryId, LinkedHashMap<String,Object> params, int start, int end)
           
 List<Organization> search(long companyId, long parentOrganizationId, String keywords, String type, Long regionId, Long countryId, LinkedHashMap<String,Object> params, int start, int end, OrderByComparator obc)
           
 List<Organization> search(long companyId, long parentOrganizationId, String name, String type, String street, String city, String zip, Long regionId, Long countryId, LinkedHashMap<String,Object> params, boolean andOperator, int start, int end)
           
 List<Organization> search(long companyId, long parentOrganizationId, String name, String type, String street, String city, String zip, Long regionId, Long countryId, LinkedHashMap<String,Object> params, boolean andOperator, int start, int end, OrderByComparator obc)
           
 Hits search(long companyId, long parentOrganizationId, String name, String type, String street, String city, String zip, String region, String country, LinkedHashMap<String,Object> params, boolean andSearch, int start, int end, Sort sort)
           
 int searchCount(long companyId, long parentOrganizationId, String keywords, String type, Long regionId, Long countryId, LinkedHashMap<String,Object> params)
           
 int searchCount(long companyId, long parentOrganizationId, String name, String type, String street, String city, String zip, Long regionId, Long countryId, LinkedHashMap<String,Object> params, boolean andOperator)
           
 void setGroupOrganizations(long groupId, long[] organizationIds)
           
 void unsetGroupOrganizations(long groupId, long[] organizationIds)
           
 void unsetPasswordPolicyOrganizations(long passwordPolicyId, long[] organizationIds)
           
 void updateAsset(long userId, Organization organization, long[] assetCategoryIds, String[] assetTagNames)
           
 Organization updateOrganization(long companyId, long organizationId, long parentOrganizationId, String name, String type, boolean recursable, long regionId, long countryId, int statusId, String comments, ServiceContext serviceContext)
           
 Organization updateOrganization(Organization organization)
          Updates the organization in the database.
 Organization updateOrganization(Organization organization, boolean merge)
          Updates the organization in the database.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OrganizationLocalServiceWrapper

public OrganizationLocalServiceWrapper(OrganizationLocalService organizationLocalService)
Method Detail

addOrganization

public Organization addOrganization(Organization organization)
                             throws SystemException
Adds the organization to the database. Also notifies the appropriate model listeners.

Specified by:
addOrganization in interface OrganizationLocalService
Parameters:
organization - the organization to add
Returns:
the organization that was added
Throws:
SystemException - if a system exception occurred

createOrganization

public Organization createOrganization(long organizationId)
Creates a new organization with the primary key. Does not add the organization to the database.

Specified by:
createOrganization in interface OrganizationLocalService
Parameters:
organizationId - the primary key for the new organization
Returns:
the new organization

deleteOrganization

public void deleteOrganization(long organizationId)
                        throws PortalException,
                               SystemException
Deletes the organization with the primary key from the database. Also notifies the appropriate model listeners.

Specified by:
deleteOrganization in interface OrganizationLocalService
Parameters:
organizationId - the primary key of the organization to delete
Throws:
PortalException - if a organization with the primary key could not be found
SystemException - if a system exception occurred

deleteOrganization

public void deleteOrganization(Organization organization)
                        throws SystemException
Deletes the organization from the database. Also notifies the appropriate model listeners.

Specified by:
deleteOrganization in interface OrganizationLocalService
Parameters:
organization - the organization to delete
Throws:
SystemException - if a system exception occurred

dynamicQuery

public List dynamicQuery(DynamicQuery dynamicQuery)
                  throws SystemException
Performs a dynamic query on the database and returns the matching rows.

Specified by:
dynamicQuery in interface OrganizationLocalService
Parameters:
dynamicQuery - the dynamic query to search with
Returns:
the matching rows
Throws:
SystemException - if a system exception occurred

dynamicQuery

public List dynamicQuery(DynamicQuery dynamicQuery,
                         int start,
                         int end)
                  throws SystemException
Performs a dynamic query on the database and returns a range of the matching rows.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Specified by:
dynamicQuery in interface OrganizationLocalService
Parameters:
dynamicQuery - the dynamic query to search with
start - the lower bound of the range of model instances to return
end - the upper bound of the range of model instances to return (not inclusive)
Returns:
the range of matching rows
Throws:
SystemException - if a system exception occurred

dynamicQuery

public List dynamicQuery(DynamicQuery dynamicQuery,
                         int start,
                         int end,
                         OrderByComparator orderByComparator)
                  throws SystemException
Performs a dynamic query on the database and returns an ordered range of the matching rows.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Specified by:
dynamicQuery in interface OrganizationLocalService
Parameters:
dynamicQuery - the dynamic query to search with
start - the lower bound of the range of model instances to return
end - the upper bound of the range of model instances to return (not inclusive)
orderByComparator - the comparator to order the results by
Returns:
the ordered range of matching rows
Throws:
SystemException - if a system exception occurred

dynamicQueryCount

public long dynamicQueryCount(DynamicQuery dynamicQuery)
                       throws SystemException
Counts the number of rows that match the dynamic query.

Specified by:
dynamicQueryCount in interface OrganizationLocalService
Parameters:
dynamicQuery - the dynamic query to search with
Returns:
the number of rows that match the dynamic query
Throws:
SystemException - if a system exception occurred

getOrganization

public Organization getOrganization(long organizationId)
                             throws PortalException,
                                    SystemException
Gets the organization with the primary key.

Specified by:
getOrganization in interface OrganizationLocalService
Parameters:
organizationId - the primary key of the organization to get
Returns:
the organization
Throws:
PortalException - if a organization with the primary key could not be found
SystemException - if a system exception occurred

getOrganizations

public List<Organization> getOrganizations(int start,
                                           int end)
                                    throws SystemException
Gets a range of all the organizations.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Specified by:
getOrganizations in interface OrganizationLocalService
Parameters:
start - the lower bound of the range of organizations to return
end - the upper bound of the range of organizations to return (not inclusive)
Returns:
the range of organizations
Throws:
SystemException - if a system exception occurred

getOrganizationsCount

public int getOrganizationsCount()
                          throws SystemException
Gets the number of organizations.

Specified by:
getOrganizationsCount in interface OrganizationLocalService
Returns:
the number of organizations
Throws:
SystemException - if a system exception occurred

updateOrganization

public Organization updateOrganization(Organization organization)
                                throws SystemException
Updates the organization in the database. Also notifies the appropriate model listeners.

Specified by:
updateOrganization in interface OrganizationLocalService
Parameters:
organization - the organization to update
Returns:
the organization that was updated
Throws:
SystemException - if a system exception occurred

updateOrganization

public Organization updateOrganization(Organization organization,
                                       boolean merge)
                                throws SystemException
Updates the organization in the database. Also notifies the appropriate model listeners.

Specified by:
updateOrganization in interface OrganizationLocalService
Parameters:
organization - the organization to update
merge - whether to merge the organization with the current session. See BatchSession.update(com.liferay.portal.kernel.dao.orm.Session, com.liferay.portal.model.BaseModel, boolean) for an explanation.
Returns:
the organization that was updated
Throws:
SystemException - if a system exception occurred

addGroupOrganizations

public void addGroupOrganizations(long groupId,
                                  long[] organizationIds)
                           throws PortalException,
                                  SystemException
Specified by:
addGroupOrganizations in interface OrganizationLocalService
Throws:
PortalException
SystemException

addOrganization

public Organization addOrganization(long userId,
                                    long parentOrganizationId,
                                    String name,
                                    String type,
                                    boolean recursable,
                                    long regionId,
                                    long countryId,
                                    int statusId,
                                    String comments,
                                    ServiceContext serviceContext)
                             throws PortalException,
                                    SystemException
Specified by:
addOrganization in interface OrganizationLocalService
Throws:
PortalException
SystemException

addOrganizationResources

public void addOrganizationResources(long userId,
                                     Organization organization)
                              throws PortalException,
                                     SystemException
Specified by:
addOrganizationResources in interface OrganizationLocalService
Throws:
PortalException
SystemException

addPasswordPolicyOrganizations

public void addPasswordPolicyOrganizations(long passwordPolicyId,
                                           long[] organizationIds)
                                    throws SystemException
Specified by:
addPasswordPolicyOrganizations in interface OrganizationLocalService
Throws:
SystemException

deleteLogo

public void deleteLogo(long organizationId)
                throws PortalException,
                       SystemException
Specified by:
deleteLogo in interface OrganizationLocalService
Throws:
PortalException
SystemException

getGroupOrganizations

public List<Organization> getGroupOrganizations(long groupId)
                                         throws SystemException
Specified by:
getGroupOrganizations in interface OrganizationLocalService
Throws:
SystemException

getOrganization

public Organization getOrganization(long companyId,
                                    String name)
                             throws PortalException,
                                    SystemException
Specified by:
getOrganization in interface OrganizationLocalService
Throws:
PortalException
SystemException

getOrganizationId

public long getOrganizationId(long companyId,
                              String name)
                       throws SystemException
Specified by:
getOrganizationId in interface OrganizationLocalService
Throws:
SystemException

getOrganizations

public List<Organization> getOrganizations(long[] organizationIds)
                                    throws PortalException,
                                           SystemException
Specified by:
getOrganizations in interface OrganizationLocalService
Throws:
PortalException
SystemException

getParentOrganizations

public List<Organization> getParentOrganizations(long organizationId)
                                          throws PortalException,
                                                 SystemException
Specified by:
getParentOrganizations in interface OrganizationLocalService
Throws:
PortalException
SystemException

getSuborganizations

public List<Organization> getSuborganizations(List<Organization> organizations)
                                       throws SystemException
Specified by:
getSuborganizations in interface OrganizationLocalService
Throws:
SystemException

getSubsetOrganizations

public List<Organization> getSubsetOrganizations(List<Organization> allOrganizations,
                                                 List<Organization> availableOrganizations)
Specified by:
getSubsetOrganizations in interface OrganizationLocalService

getUserOrganizations

public List<Organization> getUserOrganizations(long userId)
                                        throws PortalException,
                                               SystemException
Specified by:
getUserOrganizations in interface OrganizationLocalService
Throws:
PortalException
SystemException

getUserOrganizations

public List<Organization> getUserOrganizations(long userId,
                                               boolean inheritUserGroups)
                                        throws PortalException,
                                               SystemException
Specified by:
getUserOrganizations in interface OrganizationLocalService
Throws:
PortalException
SystemException

getUserOrganizations

public List<Organization> getUserOrganizations(long userId,
                                               boolean inheritUserGroups,
                                               int start,
                                               int end)
                                        throws PortalException,
                                               SystemException
Specified by:
getUserOrganizations in interface OrganizationLocalService
Throws:
PortalException
SystemException

getUserOrganizations

public List<Organization> getUserOrganizations(long userId,
                                               int start,
                                               int end)
                                        throws PortalException,
                                               SystemException
Specified by:
getUserOrganizations in interface OrganizationLocalService
Throws:
PortalException
SystemException

getUserOrganizationsCount

public int getUserOrganizationsCount(long userId)
                              throws SystemException
Specified by:
getUserOrganizationsCount in interface OrganizationLocalService
Throws:
SystemException

hasGroupOrganization

public boolean hasGroupOrganization(long groupId,
                                    long organizationId)
                             throws SystemException
Specified by:
hasGroupOrganization in interface OrganizationLocalService
Throws:
SystemException

hasPasswordPolicyOrganization

public boolean hasPasswordPolicyOrganization(long passwordPolicyId,
                                             long organizationId)
                                      throws SystemException
Specified by:
hasPasswordPolicyOrganization in interface OrganizationLocalService
Throws:
SystemException

hasUserOrganization

public boolean hasUserOrganization(long userId,
                                   long organizationId)
                            throws SystemException
Specified by:
hasUserOrganization in interface OrganizationLocalService
Throws:
SystemException

hasUserOrganization

public boolean hasUserOrganization(long userId,
                                   long organizationId,
                                   boolean inheritSuborganizations,
                                   boolean inheritUserGroups,
                                   boolean includeSpecifiedOrganization)
                            throws PortalException,
                                   SystemException
Specified by:
hasUserOrganization in interface OrganizationLocalService
Throws:
PortalException
SystemException

rebuildTree

public void rebuildTree(long companyId,
                        boolean force)
                 throws SystemException
Specified by:
rebuildTree in interface OrganizationLocalService
Throws:
SystemException

search

public Hits search(long companyId,
                   long parentOrganizationId,
                   String keywords,
                   LinkedHashMap<String,Object> params,
                   int start,
                   int end,
                   Sort sort)
            throws SystemException
Specified by:
search in interface OrganizationLocalService
Throws:
SystemException

search

public List<Organization> search(long companyId,
                                 long parentOrganizationId,
                                 String keywords,
                                 String type,
                                 Long regionId,
                                 Long countryId,
                                 LinkedHashMap<String,Object> params,
                                 int start,
                                 int end)
                          throws SystemException
Specified by:
search in interface OrganizationLocalService
Throws:
SystemException

search

public List<Organization> search(long companyId,
                                 long parentOrganizationId,
                                 String keywords,
                                 String type,
                                 Long regionId,
                                 Long countryId,
                                 LinkedHashMap<String,Object> params,
                                 int start,
                                 int end,
                                 OrderByComparator obc)
                          throws SystemException
Specified by:
search in interface OrganizationLocalService
Throws:
SystemException

search

public List<Organization> search(long companyId,
                                 long parentOrganizationId,
                                 String name,
                                 String type,
                                 String street,
                                 String city,
                                 String zip,
                                 Long regionId,
                                 Long countryId,
                                 LinkedHashMap<String,Object> params,
                                 boolean andOperator,
                                 int start,
                                 int end)
                          throws SystemException
Specified by:
search in interface OrganizationLocalService
Throws:
SystemException

search

public List<Organization> search(long companyId,
                                 long parentOrganizationId,
                                 String name,
                                 String type,
                                 String street,
                                 String city,
                                 String zip,
                                 Long regionId,
                                 Long countryId,
                                 LinkedHashMap<String,Object> params,
                                 boolean andOperator,
                                 int start,
                                 int end,
                                 OrderByComparator obc)
                          throws SystemException
Specified by:
search in interface OrganizationLocalService
Throws:
SystemException

search

public Hits search(long companyId,
                   long parentOrganizationId,
                   String name,
                   String type,
                   String street,
                   String city,
                   String zip,
                   String region,
                   String country,
                   LinkedHashMap<String,Object> params,
                   boolean andSearch,
                   int start,
                   int end,
                   Sort sort)
            throws SystemException
Specified by:
search in interface OrganizationLocalService
Throws:
SystemException

searchCount

public int searchCount(long companyId,
                       long parentOrganizationId,
                       String keywords,
                       String type,
                       Long regionId,
                       Long countryId,
                       LinkedHashMap<String,Object> params)
                throws SystemException
Specified by:
searchCount in interface OrganizationLocalService
Throws:
SystemException

searchCount

public int searchCount(long companyId,
                       long parentOrganizationId,
                       String name,
                       String type,
                       String street,
                       String city,
                       String zip,
                       Long regionId,
                       Long countryId,
                       LinkedHashMap<String,Object> params,
                       boolean andOperator)
                throws SystemException
Specified by:
searchCount in interface OrganizationLocalService
Throws:
SystemException

setGroupOrganizations

public void setGroupOrganizations(long groupId,
                                  long[] organizationIds)
                           throws PortalException,
                                  SystemException
Specified by:
setGroupOrganizations in interface OrganizationLocalService
Throws:
PortalException
SystemException

unsetGroupOrganizations

public void unsetGroupOrganizations(long groupId,
                                    long[] organizationIds)
                             throws PortalException,
                                    SystemException
Specified by:
unsetGroupOrganizations in interface OrganizationLocalService
Throws:
PortalException
SystemException

unsetPasswordPolicyOrganizations

public void unsetPasswordPolicyOrganizations(long passwordPolicyId,
                                             long[] organizationIds)
                                      throws SystemException
Specified by:
unsetPasswordPolicyOrganizations in interface OrganizationLocalService
Throws:
SystemException

updateAsset

public void updateAsset(long userId,
                        Organization organization,
                        long[] assetCategoryIds,
                        String[] assetTagNames)
                 throws PortalException,
                        SystemException
Specified by:
updateAsset in interface OrganizationLocalService
Throws:
PortalException
SystemException

updateOrganization

public Organization updateOrganization(long companyId,
                                       long organizationId,
                                       long parentOrganizationId,
                                       String name,
                                       String type,
                                       boolean recursable,
                                       long regionId,
                                       long countryId,
                                       int statusId,
                                       String comments,
                                       ServiceContext serviceContext)
                                throws PortalException,
                                       SystemException
Specified by:
updateOrganization in interface OrganizationLocalService
Throws:
PortalException
SystemException

getWrappedOrganizationLocalService

public OrganizationLocalService getWrappedOrganizationLocalService()

Liferay 6.0.5