Class OrganizationLocalServiceBaseImpl

Object
com.liferay.portal.kernel.service.BaseLocalServiceImpl
com.liferay.portal.service.base.OrganizationLocalServiceBaseImpl
All Implemented Interfaces:
com.liferay.portal.kernel.module.framework.service.IdentifiableOSGiService, com.liferay.portal.kernel.service.BaseLocalService, com.liferay.portal.kernel.service.change.tracking.CTService<com.liferay.portal.kernel.model.Organization>, com.liferay.portal.kernel.service.OrganizationLocalService, com.liferay.portal.kernel.service.PersistedModelLocalService
Direct Known Subclasses:
OrganizationLocalServiceImpl

public abstract class OrganizationLocalServiceBaseImpl extends com.liferay.portal.kernel.service.BaseLocalServiceImpl implements com.liferay.portal.kernel.module.framework.service.IdentifiableOSGiService, com.liferay.portal.kernel.service.OrganizationLocalService
Provides the base implementation for the organization local service.

This implementation exists only as a container for the default service methods generated by ServiceBuilder. All custom service methods should be put in OrganizationLocalServiceImpl.

Author:
Brian Wing Shun Chan
See Also:
{$generated.description}
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected com.liferay.counter.kernel.service.CounterLocalService
     
    protected com.liferay.portal.kernel.service.persistence.GroupPersistence
     
    protected com.liferay.portal.kernel.service.persistence.OrganizationFinder
     
    protected com.liferay.portal.kernel.service.OrganizationLocalService
     
    protected com.liferay.portal.kernel.service.persistence.OrganizationPersistence
     
    protected com.liferay.portal.kernel.service.persistence.UserPersistence
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    addGroupOrganization(long groupId, long organizationId)
     
    boolean
    addGroupOrganization(long groupId, com.liferay.portal.kernel.model.Organization organization)
     
    boolean
    addGroupOrganizations(long groupId, long[] organizationIds)
     
    boolean
    addGroupOrganizations(long groupId, List<com.liferay.portal.kernel.model.Organization> organizations)
     
    com.liferay.portal.kernel.model.Organization
    addOrganization(com.liferay.portal.kernel.model.Organization organization)
    Adds the organization to the database.
    boolean
    addUserOrganization(long userId, long organizationId)
     
    boolean
    addUserOrganization(long userId, com.liferay.portal.kernel.model.Organization organization)
     
    boolean
    addUserOrganizations(long userId, long[] organizationIds)
     
    boolean
    addUserOrganizations(long userId, List<com.liferay.portal.kernel.model.Organization> organizations)
     
    void
     
    void
     
    void
     
    com.liferay.portal.kernel.model.Organization
    createOrganization(long organizationId)
    Creates a new organization with the primary key.
    com.liferay.portal.kernel.model.PersistedModel
     
    void
    deleteGroupOrganization(long groupId, long organizationId)
     
    void
    deleteGroupOrganization(long groupId, com.liferay.portal.kernel.model.Organization organization)
     
    void
    deleteGroupOrganizations(long groupId, long[] organizationIds)
     
    void
    deleteGroupOrganizations(long groupId, List<com.liferay.portal.kernel.model.Organization> organizations)
     
    com.liferay.portal.kernel.model.Organization
    deleteOrganization(long organizationId)
    Deletes the organization with the primary key from the database.
    com.liferay.portal.kernel.model.Organization
    deleteOrganization(com.liferay.portal.kernel.model.Organization organization)
    Deletes the organization from the database.
    com.liferay.portal.kernel.model.PersistedModel
    deletePersistedModel(com.liferay.portal.kernel.model.PersistedModel persistedModel)
     
    void
    deleteUserOrganization(long userId, long organizationId)
     
    void
    deleteUserOrganization(long userId, com.liferay.portal.kernel.model.Organization organization)
     
    void
    deleteUserOrganizations(long userId, long[] organizationIds)
     
    void
    deleteUserOrganizations(long userId, List<com.liferay.portal.kernel.model.Organization> organizations)
     
    void
     
    <T> T
    dslQuery(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery)
     
    int
    dslQueryCount(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery)
     
    com.liferay.portal.kernel.dao.orm.DynamicQuery
     
    <T> List<T>
    dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
    Performs a dynamic query on the database and returns the matching rows.
    <T> List<T>
    dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end)
    Performs a dynamic query on the database and returns a range of the matching rows.
    <T> List<T>
    dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<T> orderByComparator)
    Performs a dynamic query on the database and returns an ordered range of the matching rows.
    long
    dynamicQueryCount(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
    Returns the number of rows matching the dynamic query.
    long
    dynamicQueryCount(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, com.liferay.portal.kernel.dao.orm.Projection projection)
    Returns the number of rows matching the dynamic query.
    com.liferay.portal.kernel.model.Organization
    fetchOrganization(long organizationId)
     
    com.liferay.portal.kernel.model.Organization
    fetchOrganizationByExternalReferenceCode(String externalReferenceCode, long companyId)
     
    com.liferay.portal.kernel.model.Organization
    Returns the organization with the matching UUID and company.
    com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery
     
    com.liferay.portal.kernel.service.persistence.BasePersistence<com.liferay.portal.kernel.model.Organization>
     
    com.liferay.counter.kernel.service.CounterLocalService
    Returns the counter local service.
    com.liferay.portal.kernel.service.persistence.change.tracking.CTPersistence<com.liferay.portal.kernel.model.Organization>
     
    com.liferay.portal.kernel.dao.orm.ExportActionableDynamicQuery
    getExportActionableDynamicQuery(com.liferay.exportimport.kernel.lar.PortletDataContext portletDataContext)
     
    List<com.liferay.portal.kernel.model.Organization>
    getGroupOrganizations(long groupId)
     
    List<com.liferay.portal.kernel.model.Organization>
    getGroupOrganizations(long groupId, int start, int end)
     
    List<com.liferay.portal.kernel.model.Organization>
    getGroupOrganizations(long groupId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Organization> orderByComparator)
     
    int
     
    long[]
    getGroupPrimaryKeys(long organizationId)
    Returns the groupIds of the groups associated with the organization.
    com.liferay.portal.kernel.dao.orm.IndexableActionableDynamicQuery
     
    Class<com.liferay.portal.kernel.model.Organization>
     
    protected String
     
    com.liferay.portal.kernel.model.Organization
    getOrganization(long organizationId)
    Returns the organization with the primary key.
    com.liferay.portal.kernel.model.Organization
    getOrganizationByExternalReferenceCode(String externalReferenceCode, long companyId)
     
    com.liferay.portal.kernel.model.Organization
    Returns the organization with the matching UUID and company.
    com.liferay.portal.kernel.service.persistence.OrganizationFinder
    Returns the organization finder.
    com.liferay.portal.kernel.service.OrganizationLocalService
    Returns the organization local service.
    com.liferay.portal.kernel.service.persistence.OrganizationPersistence
    Returns the organization persistence.
    List<com.liferay.portal.kernel.model.Organization>
    getOrganizations(int start, int end)
    Returns a range of all the organizations.
    int
    Returns the number of organizations.
    Returns the OSGi service identifier.
    com.liferay.portal.kernel.model.PersistedModel
     
    List<com.liferay.portal.kernel.model.Organization>
    getUserOrganizations(long userId)
     
    List<com.liferay.portal.kernel.model.Organization>
    getUserOrganizations(long userId, int start, int end)
     
    List<com.liferay.portal.kernel.model.Organization>
    getUserOrganizations(long userId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Organization> orderByComparator)
     
    int
     
    long[]
    getUserPrimaryKeys(long organizationId)
    Returns the userIds of the users associated with the organization.
    boolean
    hasGroupOrganization(long groupId, long organizationId)
     
    boolean
    hasGroupOrganizations(long groupId)
     
    boolean
    hasUserOrganization(long userId, long organizationId)
     
    boolean
    hasUserOrganizations(long userId)
     
    protected void
    initActionableDynamicQuery(com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery actionableDynamicQuery)
     
    protected void
    Performs a SQL query.
    void
    setCounterLocalService(com.liferay.counter.kernel.service.CounterLocalService counterLocalService)
    Sets the counter local service.
    void
    setGroupOrganizations(long groupId, long[] organizationIds)
     
    void
    setOrganizationFinder(com.liferay.portal.kernel.service.persistence.OrganizationFinder organizationFinder)
    Sets the organization finder.
    void
    setOrganizationLocalService(com.liferay.portal.kernel.service.OrganizationLocalService organizationLocalService)
    Sets the organization local service.
    void
    setOrganizationPersistence(com.liferay.portal.kernel.service.persistence.OrganizationPersistence organizationPersistence)
    Sets the organization persistence.
    void
    setUserOrganizations(long userId, long[] organizationIds)
     
    com.liferay.portal.kernel.model.Organization
    updateOrganization(com.liferay.portal.kernel.model.Organization organization)
    Updates the organization in the database or adds it if it does not yet exist.
    <R, E extends Throwable>
    R
    updateWithUnsafeFunction(com.liferay.petra.function.UnsafeFunction<com.liferay.portal.kernel.service.persistence.change.tracking.CTPersistence<com.liferay.portal.kernel.model.Organization>,R,E> updateUnsafeFunction)
     

    Methods inherited from class com.liferay.portal.kernel.service.BaseLocalServiceImpl

    getClassLoader, getLocalizationMap

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface com.liferay.portal.kernel.service.OrganizationLocalService

    addOrganization, addOrganization, addOrganizationResources, addOrganizationUserByEmailAddress, addOrUpdateOrganization, addPasswordPolicyOrganizations, addUserOrganizationByEmailAddress, deleteLogo, deleteUserOrganizationByEmailAddress, fetchOrganization, getChildrenTypes, getGroupUserOrganizations, getNoAssetOrganizations, getOrganization, getOrganizationId, getOrganizations, getOrganizations, getOrganizations, getOrganizations, getOrganizations, getOrganizations, getOrganizations, getOrganizationsAndUsers, getOrganizationsAndUsersCount, getOrganizationsCount, getOrganizationsCount, getOrganizationsCount, getParentOrganizations, getSuborganizations, getSuborganizations, getSuborganizationsCount, getSubsetOrganizations, getTypes, getUserOrganizationIds, getUserOrganizations, hasPasswordPolicyOrganization, hasUserOrganization, isCountryEnabled, isCountryRequired, isRootable, rebuildTree, search, search, search, search, search, search, searchCount, searchCount, searchOrganizations, searchOrganizations, searchOrganizationsAndUsers, searchOrganizationsAndUsersCount, unsetGroupOrganizations, unsetPasswordPolicyOrganizations, updateAsset, updateLogo, updateOrganization

    Methods inherited from interface com.liferay.portal.kernel.service.PersistedModelLocalService

    fetchPersistedModel
  • Field Details

    • organizationLocalService

      @BeanReference(type=com.liferay.portal.kernel.service.OrganizationLocalService.class) protected com.liferay.portal.kernel.service.OrganizationLocalService organizationLocalService
    • organizationPersistence

      @BeanReference(type=com.liferay.portal.kernel.service.persistence.OrganizationPersistence.class) protected com.liferay.portal.kernel.service.persistence.OrganizationPersistence organizationPersistence
    • organizationFinder

      @BeanReference(type=com.liferay.portal.kernel.service.persistence.OrganizationFinder.class) protected com.liferay.portal.kernel.service.persistence.OrganizationFinder organizationFinder
    • counterLocalService

      @BeanReference(type=com.liferay.counter.kernel.service.CounterLocalService.class) protected com.liferay.counter.kernel.service.CounterLocalService counterLocalService
    • groupPersistence

      @BeanReference(type=com.liferay.portal.kernel.service.persistence.GroupPersistence.class) protected com.liferay.portal.kernel.service.persistence.GroupPersistence groupPersistence
    • userPersistence

      @BeanReference(type=com.liferay.portal.kernel.service.persistence.UserPersistence.class) protected com.liferay.portal.kernel.service.persistence.UserPersistence userPersistence
  • Constructor Details

    • OrganizationLocalServiceBaseImpl

      public OrganizationLocalServiceBaseImpl()
  • Method Details

    • addOrganization

      @Indexable(type=REINDEX) public com.liferay.portal.kernel.model.Organization addOrganization(com.liferay.portal.kernel.model.Organization organization)
      Adds the organization to the database. Also notifies the appropriate model listeners.

      Important: Inspect OrganizationLocalServiceImpl for overloaded versions of the method. If provided, use these entry points to the API, as the implementation logic may require the additional parameters defined there.

      Specified by:
      addOrganization in interface com.liferay.portal.kernel.service.OrganizationLocalService
      Parameters:
      organization - the organization
      Returns:
      the organization that was added
    • createOrganization

      @Transactional(enabled=false) public com.liferay.portal.kernel.model.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 com.liferay.portal.kernel.service.OrganizationLocalService
      Parameters:
      organizationId - the primary key for the new organization
      Returns:
      the new organization
    • deleteOrganization

      @Indexable(type=DELETE) public com.liferay.portal.kernel.model.Organization deleteOrganization(long organizationId) throws com.liferay.portal.kernel.exception.PortalException
      Deletes the organization with the primary key from the database. Also notifies the appropriate model listeners.

      Important: Inspect OrganizationLocalServiceImpl for overloaded versions of the method. If provided, use these entry points to the API, as the implementation logic may require the additional parameters defined there.

      Specified by:
      deleteOrganization in interface com.liferay.portal.kernel.service.OrganizationLocalService
      Parameters:
      organizationId - the primary key of the organization
      Returns:
      the organization that was removed
      Throws:
      com.liferay.portal.kernel.exception.PortalException - if a organization with the primary key could not be found
    • deleteOrganization

      @Indexable(type=DELETE) public com.liferay.portal.kernel.model.Organization deleteOrganization(com.liferay.portal.kernel.model.Organization organization) throws com.liferay.portal.kernel.exception.PortalException
      Deletes the organization from the database. Also notifies the appropriate model listeners.

      Important: Inspect OrganizationLocalServiceImpl for overloaded versions of the method. If provided, use these entry points to the API, as the implementation logic may require the additional parameters defined there.

      Specified by:
      deleteOrganization in interface com.liferay.portal.kernel.service.OrganizationLocalService
      Parameters:
      organization - the organization
      Returns:
      the organization that was removed
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • dslQuery

      public <T> T dslQuery(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery)
      Specified by:
      dslQuery in interface com.liferay.portal.kernel.service.OrganizationLocalService
      Specified by:
      dslQuery in interface com.liferay.portal.kernel.service.PersistedModelLocalService
    • dslQueryCount

      public int dslQueryCount(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery)
      Specified by:
      dslQueryCount in interface com.liferay.portal.kernel.service.OrganizationLocalService
      Specified by:
      dslQueryCount in interface com.liferay.portal.kernel.service.PersistedModelLocalService
    • dynamicQuery

      public com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery()
      Specified by:
      dynamicQuery in interface com.liferay.portal.kernel.service.OrganizationLocalService
    • dynamicQuery

      public <T> List<T> dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
      Performs a dynamic query on the database and returns the matching rows.
      Specified by:
      dynamicQuery in interface com.liferay.portal.kernel.service.OrganizationLocalService
      Parameters:
      dynamicQuery - the dynamic query
      Returns:
      the matching rows
    • dynamicQuery

      public <T> List<T> dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end)
      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 com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from com.liferay.portal.model.impl.OrganizationModelImpl.

      Specified by:
      dynamicQuery in interface com.liferay.portal.kernel.service.OrganizationLocalService
      Parameters:
      dynamicQuery - the dynamic query
      start - the lower bound of the range of model instances
      end - the upper bound of the range of model instances (not inclusive)
      Returns:
      the range of matching rows
    • dynamicQuery

      public <T> List<T> dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<T> orderByComparator)
      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 com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from com.liferay.portal.model.impl.OrganizationModelImpl.

      Specified by:
      dynamicQuery in interface com.liferay.portal.kernel.service.OrganizationLocalService
      Parameters:
      dynamicQuery - the dynamic query
      start - the lower bound of the range of model instances
      end - the upper bound of the range of model instances (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      Returns:
      the ordered range of matching rows
    • dynamicQueryCount

      public long dynamicQueryCount(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
      Returns the number of rows matching the dynamic query.
      Specified by:
      dynamicQueryCount in interface com.liferay.portal.kernel.service.OrganizationLocalService
      Parameters:
      dynamicQuery - the dynamic query
      Returns:
      the number of rows matching the dynamic query
    • dynamicQueryCount

      public long dynamicQueryCount(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, com.liferay.portal.kernel.dao.orm.Projection projection)
      Returns the number of rows matching the dynamic query.
      Specified by:
      dynamicQueryCount in interface com.liferay.portal.kernel.service.OrganizationLocalService
      Parameters:
      dynamicQuery - the dynamic query
      projection - the projection to apply to the query
      Returns:
      the number of rows matching the dynamic query
    • fetchOrganization

      public com.liferay.portal.kernel.model.Organization fetchOrganization(long organizationId)
      Specified by:
      fetchOrganization in interface com.liferay.portal.kernel.service.OrganizationLocalService
    • fetchOrganizationByUuidAndCompanyId

      public com.liferay.portal.kernel.model.Organization fetchOrganizationByUuidAndCompanyId(String uuid, long companyId)
      Returns the organization with the matching UUID and company.
      Specified by:
      fetchOrganizationByUuidAndCompanyId in interface com.liferay.portal.kernel.service.OrganizationLocalService
      Parameters:
      uuid - the organization's UUID
      companyId - the primary key of the company
      Returns:
      the matching organization, or null if a matching organization could not be found
    • fetchOrganizationByExternalReferenceCode

      public com.liferay.portal.kernel.model.Organization fetchOrganizationByExternalReferenceCode(String externalReferenceCode, long companyId)
      Specified by:
      fetchOrganizationByExternalReferenceCode in interface com.liferay.portal.kernel.service.OrganizationLocalService
    • getOrganizationByExternalReferenceCode

      public com.liferay.portal.kernel.model.Organization getOrganizationByExternalReferenceCode(String externalReferenceCode, long companyId) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      getOrganizationByExternalReferenceCode in interface com.liferay.portal.kernel.service.OrganizationLocalService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getOrganization

      public com.liferay.portal.kernel.model.Organization getOrganization(long organizationId) throws com.liferay.portal.kernel.exception.PortalException
      Returns the organization with the primary key.
      Specified by:
      getOrganization in interface com.liferay.portal.kernel.service.OrganizationLocalService
      Parameters:
      organizationId - the primary key of the organization
      Returns:
      the organization
      Throws:
      com.liferay.portal.kernel.exception.PortalException - if a organization with the primary key could not be found
    • getActionableDynamicQuery

      public com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery getActionableDynamicQuery()
      Specified by:
      getActionableDynamicQuery in interface com.liferay.portal.kernel.service.OrganizationLocalService
    • getIndexableActionableDynamicQuery

      public com.liferay.portal.kernel.dao.orm.IndexableActionableDynamicQuery getIndexableActionableDynamicQuery()
      Specified by:
      getIndexableActionableDynamicQuery in interface com.liferay.portal.kernel.service.OrganizationLocalService
    • initActionableDynamicQuery

      protected void initActionableDynamicQuery(com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery actionableDynamicQuery)
    • getExportActionableDynamicQuery

      public com.liferay.portal.kernel.dao.orm.ExportActionableDynamicQuery getExportActionableDynamicQuery(com.liferay.exportimport.kernel.lar.PortletDataContext portletDataContext)
      Specified by:
      getExportActionableDynamicQuery in interface com.liferay.portal.kernel.service.OrganizationLocalService
    • createPersistedModel

      public com.liferay.portal.kernel.model.PersistedModel createPersistedModel(Serializable primaryKeyObj) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      createPersistedModel in interface com.liferay.portal.kernel.service.OrganizationLocalService
      Specified by:
      createPersistedModel in interface com.liferay.portal.kernel.service.PersistedModelLocalService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • deletePersistedModel

      public com.liferay.portal.kernel.model.PersistedModel deletePersistedModel(com.liferay.portal.kernel.model.PersistedModel persistedModel) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      deletePersistedModel in interface com.liferay.portal.kernel.service.OrganizationLocalService
      Specified by:
      deletePersistedModel in interface com.liferay.portal.kernel.service.PersistedModelLocalService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getBasePersistence

      public com.liferay.portal.kernel.service.persistence.BasePersistence<com.liferay.portal.kernel.model.Organization> getBasePersistence()
      Specified by:
      getBasePersistence in interface com.liferay.portal.kernel.service.PersistedModelLocalService
    • getPersistedModel

      public com.liferay.portal.kernel.model.PersistedModel getPersistedModel(Serializable primaryKeyObj) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      getPersistedModel in interface com.liferay.portal.kernel.service.OrganizationLocalService
      Specified by:
      getPersistedModel in interface com.liferay.portal.kernel.service.PersistedModelLocalService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getOrganizationByUuidAndCompanyId

      public com.liferay.portal.kernel.model.Organization getOrganizationByUuidAndCompanyId(String uuid, long companyId) throws com.liferay.portal.kernel.exception.PortalException
      Returns the organization with the matching UUID and company.
      Specified by:
      getOrganizationByUuidAndCompanyId in interface com.liferay.portal.kernel.service.OrganizationLocalService
      Parameters:
      uuid - the organization's UUID
      companyId - the primary key of the company
      Returns:
      the matching organization
      Throws:
      com.liferay.portal.kernel.exception.PortalException - if a matching organization could not be found
    • getOrganizations

      public List<com.liferay.portal.kernel.model.Organization> getOrganizations(int start, int end)
      Returns 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 com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from com.liferay.portal.model.impl.OrganizationModelImpl.

      Specified by:
      getOrganizations in interface com.liferay.portal.kernel.service.OrganizationLocalService
      Parameters:
      start - the lower bound of the range of organizations
      end - the upper bound of the range of organizations (not inclusive)
      Returns:
      the range of organizations
    • getOrganizationsCount

      public int getOrganizationsCount()
      Returns the number of organizations.
      Specified by:
      getOrganizationsCount in interface com.liferay.portal.kernel.service.OrganizationLocalService
      Returns:
      the number of organizations
    • updateOrganization

      @Indexable(type=REINDEX) public com.liferay.portal.kernel.model.Organization updateOrganization(com.liferay.portal.kernel.model.Organization organization)
      Updates the organization in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.

      Important: Inspect OrganizationLocalServiceImpl for overloaded versions of the method. If provided, use these entry points to the API, as the implementation logic may require the additional parameters defined there.

      Specified by:
      updateOrganization in interface com.liferay.portal.kernel.service.OrganizationLocalService
      Parameters:
      organization - the organization
      Returns:
      the organization that was updated
    • addGroupOrganization

      public boolean addGroupOrganization(long groupId, long organizationId)
      Specified by:
      addGroupOrganization in interface com.liferay.portal.kernel.service.OrganizationLocalService
    • addGroupOrganization

      public boolean addGroupOrganization(long groupId, com.liferay.portal.kernel.model.Organization organization)
      Specified by:
      addGroupOrganization in interface com.liferay.portal.kernel.service.OrganizationLocalService
    • addGroupOrganizations

      public boolean addGroupOrganizations(long groupId, long[] organizationIds)
      Specified by:
      addGroupOrganizations in interface com.liferay.portal.kernel.service.OrganizationLocalService
    • addGroupOrganizations

      public boolean addGroupOrganizations(long groupId, List<com.liferay.portal.kernel.model.Organization> organizations)
      Specified by:
      addGroupOrganizations in interface com.liferay.portal.kernel.service.OrganizationLocalService
    • clearGroupOrganizations

      public void clearGroupOrganizations(long groupId)
      Specified by:
      clearGroupOrganizations in interface com.liferay.portal.kernel.service.OrganizationLocalService
    • deleteGroupOrganization

      public void deleteGroupOrganization(long groupId, long organizationId)
      Specified by:
      deleteGroupOrganization in interface com.liferay.portal.kernel.service.OrganizationLocalService
    • deleteGroupOrganization

      public void deleteGroupOrganization(long groupId, com.liferay.portal.kernel.model.Organization organization)
      Specified by:
      deleteGroupOrganization in interface com.liferay.portal.kernel.service.OrganizationLocalService
    • deleteGroupOrganizations

      public void deleteGroupOrganizations(long groupId, long[] organizationIds)
      Specified by:
      deleteGroupOrganizations in interface com.liferay.portal.kernel.service.OrganizationLocalService
    • deleteGroupOrganizations

      public void deleteGroupOrganizations(long groupId, List<com.liferay.portal.kernel.model.Organization> organizations)
      Specified by:
      deleteGroupOrganizations in interface com.liferay.portal.kernel.service.OrganizationLocalService
    • getGroupPrimaryKeys

      public long[] getGroupPrimaryKeys(long organizationId)
      Returns the groupIds of the groups associated with the organization.
      Specified by:
      getGroupPrimaryKeys in interface com.liferay.portal.kernel.service.OrganizationLocalService
      Parameters:
      organizationId - the organizationId of the organization
      Returns:
      long[] the groupIds of groups associated with the organization
    • getGroupOrganizations

      public List<com.liferay.portal.kernel.model.Organization> getGroupOrganizations(long groupId)
      Specified by:
      getGroupOrganizations in interface com.liferay.portal.kernel.service.OrganizationLocalService
    • getGroupOrganizations

      public List<com.liferay.portal.kernel.model.Organization> getGroupOrganizations(long groupId, int start, int end)
      Specified by:
      getGroupOrganizations in interface com.liferay.portal.kernel.service.OrganizationLocalService
    • getGroupOrganizations

      public List<com.liferay.portal.kernel.model.Organization> getGroupOrganizations(long groupId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Organization> orderByComparator)
      Specified by:
      getGroupOrganizations in interface com.liferay.portal.kernel.service.OrganizationLocalService
    • getGroupOrganizationsCount

      public int getGroupOrganizationsCount(long groupId)
      Specified by:
      getGroupOrganizationsCount in interface com.liferay.portal.kernel.service.OrganizationLocalService
    • hasGroupOrganization

      public boolean hasGroupOrganization(long groupId, long organizationId)
      Specified by:
      hasGroupOrganization in interface com.liferay.portal.kernel.service.OrganizationLocalService
    • hasGroupOrganizations

      public boolean hasGroupOrganizations(long groupId)
      Specified by:
      hasGroupOrganizations in interface com.liferay.portal.kernel.service.OrganizationLocalService
    • setGroupOrganizations

      public void setGroupOrganizations(long groupId, long[] organizationIds)
      Specified by:
      setGroupOrganizations in interface com.liferay.portal.kernel.service.OrganizationLocalService
    • addUserOrganization

      public boolean addUserOrganization(long userId, long organizationId)
      Specified by:
      addUserOrganization in interface com.liferay.portal.kernel.service.OrganizationLocalService
    • addUserOrganization

      public boolean addUserOrganization(long userId, com.liferay.portal.kernel.model.Organization organization)
      Specified by:
      addUserOrganization in interface com.liferay.portal.kernel.service.OrganizationLocalService
    • addUserOrganizations

      public boolean addUserOrganizations(long userId, long[] organizationIds)
      Specified by:
      addUserOrganizations in interface com.liferay.portal.kernel.service.OrganizationLocalService
    • addUserOrganizations

      public boolean addUserOrganizations(long userId, List<com.liferay.portal.kernel.model.Organization> organizations)
      Specified by:
      addUserOrganizations in interface com.liferay.portal.kernel.service.OrganizationLocalService
    • clearUserOrganizations

      public void clearUserOrganizations(long userId)
      Specified by:
      clearUserOrganizations in interface com.liferay.portal.kernel.service.OrganizationLocalService
    • deleteUserOrganization

      public void deleteUserOrganization(long userId, long organizationId)
      Specified by:
      deleteUserOrganization in interface com.liferay.portal.kernel.service.OrganizationLocalService
    • deleteUserOrganization

      public void deleteUserOrganization(long userId, com.liferay.portal.kernel.model.Organization organization)
      Specified by:
      deleteUserOrganization in interface com.liferay.portal.kernel.service.OrganizationLocalService
    • deleteUserOrganizations

      public void deleteUserOrganizations(long userId, long[] organizationIds)
      Specified by:
      deleteUserOrganizations in interface com.liferay.portal.kernel.service.OrganizationLocalService
    • deleteUserOrganizations

      public void deleteUserOrganizations(long userId, List<com.liferay.portal.kernel.model.Organization> organizations)
      Specified by:
      deleteUserOrganizations in interface com.liferay.portal.kernel.service.OrganizationLocalService
    • getUserPrimaryKeys

      public long[] getUserPrimaryKeys(long organizationId)
      Returns the userIds of the users associated with the organization.
      Specified by:
      getUserPrimaryKeys in interface com.liferay.portal.kernel.service.OrganizationLocalService
      Parameters:
      organizationId - the organizationId of the organization
      Returns:
      long[] the userIds of users associated with the organization
    • getUserOrganizations

      public List<com.liferay.portal.kernel.model.Organization> getUserOrganizations(long userId)
      Specified by:
      getUserOrganizations in interface com.liferay.portal.kernel.service.OrganizationLocalService
    • getUserOrganizations

      public List<com.liferay.portal.kernel.model.Organization> getUserOrganizations(long userId, int start, int end)
      Specified by:
      getUserOrganizations in interface com.liferay.portal.kernel.service.OrganizationLocalService
    • getUserOrganizations

      public List<com.liferay.portal.kernel.model.Organization> getUserOrganizations(long userId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Organization> orderByComparator)
      Specified by:
      getUserOrganizations in interface com.liferay.portal.kernel.service.OrganizationLocalService
    • getUserOrganizationsCount

      public int getUserOrganizationsCount(long userId)
      Specified by:
      getUserOrganizationsCount in interface com.liferay.portal.kernel.service.OrganizationLocalService
    • hasUserOrganization

      public boolean hasUserOrganization(long userId, long organizationId)
      Specified by:
      hasUserOrganization in interface com.liferay.portal.kernel.service.OrganizationLocalService
    • hasUserOrganizations

      public boolean hasUserOrganizations(long userId)
      Specified by:
      hasUserOrganizations in interface com.liferay.portal.kernel.service.OrganizationLocalService
    • setUserOrganizations

      public void setUserOrganizations(long userId, long[] organizationIds)
      Specified by:
      setUserOrganizations in interface com.liferay.portal.kernel.service.OrganizationLocalService
    • getOrganizationLocalService

      public com.liferay.portal.kernel.service.OrganizationLocalService getOrganizationLocalService()
      Returns the organization local service.
      Returns:
      the organization local service
    • setOrganizationLocalService

      public void setOrganizationLocalService(com.liferay.portal.kernel.service.OrganizationLocalService organizationLocalService)
      Sets the organization local service.
      Parameters:
      organizationLocalService - the organization local service
    • getOrganizationPersistence

      public com.liferay.portal.kernel.service.persistence.OrganizationPersistence getOrganizationPersistence()
      Returns the organization persistence.
      Returns:
      the organization persistence
    • setOrganizationPersistence

      public void setOrganizationPersistence(com.liferay.portal.kernel.service.persistence.OrganizationPersistence organizationPersistence)
      Sets the organization persistence.
      Parameters:
      organizationPersistence - the organization persistence
    • getOrganizationFinder

      public com.liferay.portal.kernel.service.persistence.OrganizationFinder getOrganizationFinder()
      Returns the organization finder.
      Returns:
      the organization finder
    • setOrganizationFinder

      public void setOrganizationFinder(com.liferay.portal.kernel.service.persistence.OrganizationFinder organizationFinder)
      Sets the organization finder.
      Parameters:
      organizationFinder - the organization finder
    • getCounterLocalService

      public com.liferay.counter.kernel.service.CounterLocalService getCounterLocalService()
      Returns the counter local service.
      Returns:
      the counter local service
    • setCounterLocalService

      public void setCounterLocalService(com.liferay.counter.kernel.service.CounterLocalService counterLocalService)
      Sets the counter local service.
      Parameters:
      counterLocalService - the counter local service
    • afterPropertiesSet

      public void afterPropertiesSet()
    • destroy

      public void destroy()
    • getOSGiServiceIdentifier

      public String getOSGiServiceIdentifier()
      Returns the OSGi service identifier.
      Specified by:
      getOSGiServiceIdentifier in interface com.liferay.portal.kernel.module.framework.service.IdentifiableOSGiService
      Specified by:
      getOSGiServiceIdentifier in interface com.liferay.portal.kernel.service.OrganizationLocalService
      Returns:
      the OSGi service identifier
    • getCTPersistence

      public com.liferay.portal.kernel.service.persistence.change.tracking.CTPersistence<com.liferay.portal.kernel.model.Organization> getCTPersistence()
      Specified by:
      getCTPersistence in interface com.liferay.portal.kernel.service.change.tracking.CTService<com.liferay.portal.kernel.model.Organization>
      Specified by:
      getCTPersistence in interface com.liferay.portal.kernel.service.OrganizationLocalService
    • getModelClass

      public Class<com.liferay.portal.kernel.model.Organization> getModelClass()
      Specified by:
      getModelClass in interface com.liferay.portal.kernel.service.change.tracking.CTService<com.liferay.portal.kernel.model.Organization>
      Specified by:
      getModelClass in interface com.liferay.portal.kernel.service.OrganizationLocalService
    • updateWithUnsafeFunction

      public <R, E extends Throwable> R updateWithUnsafeFunction(com.liferay.petra.function.UnsafeFunction<com.liferay.portal.kernel.service.persistence.change.tracking.CTPersistence<com.liferay.portal.kernel.model.Organization>,R,E> updateUnsafeFunction) throws E
      Specified by:
      updateWithUnsafeFunction in interface com.liferay.portal.kernel.service.change.tracking.CTService<com.liferay.portal.kernel.model.Organization>
      Specified by:
      updateWithUnsafeFunction in interface com.liferay.portal.kernel.service.OrganizationLocalService
      Throws:
      E extends Throwable
    • getModelClassName

      protected String getModelClassName()
    • runSQL

      protected void runSQL(String sql)
      Performs a SQL query.
      Parameters:
      sql - the sql query