Class AccountGroupLocalServiceWrapper

java.lang.Object
com.liferay.account.service.AccountGroupLocalServiceWrapper
All Implemented Interfaces:
AccountGroupLocalService, com.liferay.portal.kernel.service.BaseLocalService, com.liferay.portal.kernel.service.PersistedModelLocalService, com.liferay.portal.kernel.service.ServiceWrapper<AccountGroupLocalService>

public class AccountGroupLocalServiceWrapper extends Object implements AccountGroupLocalService, com.liferay.portal.kernel.service.ServiceWrapper<AccountGroupLocalService>
Provides a wrapper for AccountGroupLocalService.
See Also:
Generated:
  • Constructor Details

    • AccountGroupLocalServiceWrapper

      public AccountGroupLocalServiceWrapper()
    • AccountGroupLocalServiceWrapper

      public AccountGroupLocalServiceWrapper(AccountGroupLocalService accountGroupLocalService)
  • Method Details

    • addAccountGroup

      public AccountGroup addAccountGroup(AccountGroup accountGroup)
      Adds the account group to the database. Also notifies the appropriate model listeners.

      Important: Inspect AccountGroupLocalServiceImpl 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:
      addAccountGroup in interface AccountGroupLocalService
      Parameters:
      accountGroup - the account group
      Returns:
      the account group that was added
    • addAccountGroup

      public AccountGroup addAccountGroup(long userId, String description, String name, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      addAccountGroup in interface AccountGroupLocalService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • checkGuestAccountGroup

      public AccountGroup checkGuestAccountGroup(long companyId) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      checkGuestAccountGroup in interface AccountGroupLocalService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • createAccountGroup

      public AccountGroup createAccountGroup(long accountGroupId)
      Creates a new account group with the primary key. Does not add the account group to the database.
      Specified by:
      createAccountGroup in interface AccountGroupLocalService
      Parameters:
      accountGroupId - the primary key for the new account group
      Returns:
      the new account group
    • createPersistedModel

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

      public AccountGroup deleteAccountGroup(AccountGroup accountGroup) throws com.liferay.portal.kernel.exception.PortalException
      Deletes the account group from the database. Also notifies the appropriate model listeners.

      Important: Inspect AccountGroupLocalServiceImpl 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:
      deleteAccountGroup in interface AccountGroupLocalService
      Parameters:
      accountGroup - the account group
      Returns:
      the account group that was removed
      Throws:
      PortalException
      com.liferay.portal.kernel.exception.PortalException
    • deleteAccountGroup

      public AccountGroup deleteAccountGroup(long accountGroupId) throws com.liferay.portal.kernel.exception.PortalException
      Deletes the account group with the primary key from the database. Also notifies the appropriate model listeners.

      Important: Inspect AccountGroupLocalServiceImpl 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:
      deleteAccountGroup in interface AccountGroupLocalService
      Parameters:
      accountGroupId - the primary key of the account group
      Returns:
      the account group that was removed
      Throws:
      PortalException - if a account group with the primary key could not be found
      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 AccountGroupLocalService
      Specified by:
      deletePersistedModel in interface com.liferay.portal.kernel.service.PersistedModelLocalService
      Throws:
      PortalException
      com.liferay.portal.kernel.exception.PortalException
    • dslQuery

      public <T> T dslQuery(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery)
      Specified by:
      dslQuery in interface AccountGroupLocalService
      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 AccountGroupLocalService
      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 AccountGroupLocalService
    • 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 AccountGroupLocalService
      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.account.model.impl.AccountGroupModelImpl.

      Specified by:
      dynamicQuery in interface AccountGroupLocalService
      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.account.model.impl.AccountGroupModelImpl.

      Specified by:
      dynamicQuery in interface AccountGroupLocalService
      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 AccountGroupLocalService
      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 AccountGroupLocalService
      Parameters:
      dynamicQuery - the dynamic query
      projection - the projection to apply to the query
      Returns:
      the number of rows matching the dynamic query
    • fetchAccountGroup

      public AccountGroup fetchAccountGroup(long accountGroupId)
      Specified by:
      fetchAccountGroup in interface AccountGroupLocalService
    • fetchAccountGroupByExternalReferenceCode

      public AccountGroup fetchAccountGroupByExternalReferenceCode(String externalReferenceCode, long companyId)
      Specified by:
      fetchAccountGroupByExternalReferenceCode in interface AccountGroupLocalService
    • fetchAccountGroupByUuidAndCompanyId

      public AccountGroup fetchAccountGroupByUuidAndCompanyId(String uuid, long companyId)
      Returns the account group with the matching UUID and company.
      Specified by:
      fetchAccountGroupByUuidAndCompanyId in interface AccountGroupLocalService
      Parameters:
      uuid - the account group's UUID
      companyId - the primary key of the company
      Returns:
      the matching account group, or null if a matching account group could not be found
    • getAccountGroup

      public AccountGroup getAccountGroup(long accountGroupId) throws com.liferay.portal.kernel.exception.PortalException
      Returns the account group with the primary key.
      Specified by:
      getAccountGroup in interface AccountGroupLocalService
      Parameters:
      accountGroupId - the primary key of the account group
      Returns:
      the account group
      Throws:
      PortalException - if a account group with the primary key could not be found
      com.liferay.portal.kernel.exception.PortalException
    • getAccountGroupByExternalReferenceCode

      public AccountGroup getAccountGroupByExternalReferenceCode(String externalReferenceCode, long companyId) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      getAccountGroupByExternalReferenceCode in interface AccountGroupLocalService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getAccountGroupByUuidAndCompanyId

      public AccountGroup getAccountGroupByUuidAndCompanyId(String uuid, long companyId) throws com.liferay.portal.kernel.exception.PortalException
      Returns the account group with the matching UUID and company.
      Specified by:
      getAccountGroupByUuidAndCompanyId in interface AccountGroupLocalService
      Parameters:
      uuid - the account group's UUID
      companyId - the primary key of the company
      Returns:
      the matching account group
      Throws:
      PortalException - if a matching account group could not be found
      com.liferay.portal.kernel.exception.PortalException
    • getAccountGroupIds

      public long[] getAccountGroupIds(long accountEntryId)
      Specified by:
      getAccountGroupIds in interface AccountGroupLocalService
    • getAccountGroups

      public List<AccountGroup> getAccountGroups(int start, int end)
      Returns a range of all the account groups.

      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.account.model.impl.AccountGroupModelImpl.

      Specified by:
      getAccountGroups in interface AccountGroupLocalService
      Parameters:
      start - the lower bound of the range of account groups
      end - the upper bound of the range of account groups (not inclusive)
      Returns:
      the range of account groups
    • getAccountGroups

      public List<AccountGroup> getAccountGroups(long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<AccountGroup> orderByComparator)
      Specified by:
      getAccountGroups in interface AccountGroupLocalService
    • getAccountGroups

      public List<AccountGroup> getAccountGroups(long companyId, String name, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<AccountGroup> orderByComparator)
      Specified by:
      getAccountGroups in interface AccountGroupLocalService
    • getAccountGroupsByAccountEntryId

      public List<AccountGroup> getAccountGroupsByAccountEntryId(long accountEntryId, int start, int end)
      Specified by:
      getAccountGroupsByAccountEntryId in interface AccountGroupLocalService
    • getAccountGroupsByAccountGroupId

      public List<AccountGroup> getAccountGroupsByAccountGroupId(long[] accountGroupIds)
      Specified by:
      getAccountGroupsByAccountGroupId in interface AccountGroupLocalService
    • getAccountGroupsCount

      public int getAccountGroupsCount()
      Returns the number of account groups.
      Specified by:
      getAccountGroupsCount in interface AccountGroupLocalService
      Returns:
      the number of account groups
    • getAccountGroupsCount

      public int getAccountGroupsCount(long companyId)
      Specified by:
      getAccountGroupsCount in interface AccountGroupLocalService
    • getAccountGroupsCount

      public long getAccountGroupsCount(long companyId, String name)
      Specified by:
      getAccountGroupsCount in interface AccountGroupLocalService
    • getAccountGroupsCountByAccountEntryId

      public int getAccountGroupsCountByAccountEntryId(long accountEntryId)
      Specified by:
      getAccountGroupsCountByAccountEntryId in interface AccountGroupLocalService
    • getActionableDynamicQuery

      public com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery getActionableDynamicQuery()
      Specified by:
      getActionableDynamicQuery in interface AccountGroupLocalService
    • getDefaultAccountGroup

      public AccountGroup getDefaultAccountGroup(long companyId)
      Specified by:
      getDefaultAccountGroup in interface AccountGroupLocalService
    • getExportActionableDynamicQuery

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

      public com.liferay.portal.kernel.dao.orm.IndexableActionableDynamicQuery getIndexableActionableDynamicQuery()
      Specified by:
      getIndexableActionableDynamicQuery in interface AccountGroupLocalService
    • getOSGiServiceIdentifier

      public String getOSGiServiceIdentifier()
      Returns the OSGi service identifier.
      Specified by:
      getOSGiServiceIdentifier in interface AccountGroupLocalService
      Returns:
      the OSGi service identifier
    • getPersistedModel

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

      public boolean hasDefaultAccountGroup(long companyId)
      Specified by:
      hasDefaultAccountGroup in interface AccountGroupLocalService
    • searchAccountGroups

      public com.liferay.portal.kernel.search.BaseModelSearchResult<AccountGroup> searchAccountGroups(long companyId, String keywords, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<AccountGroup> orderByComparator)
      Specified by:
      searchAccountGroups in interface AccountGroupLocalService
    • searchAccountGroups

      public com.liferay.portal.kernel.search.BaseModelSearchResult<AccountGroup> searchAccountGroups(long companyId, String keywords, LinkedHashMap<String,Object> params, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<AccountGroup> orderByComparator)
      Specified by:
      searchAccountGroups in interface AccountGroupLocalService
    • updateAccountGroup

      public AccountGroup updateAccountGroup(AccountGroup accountGroup)
      Updates the account group in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.

      Important: Inspect AccountGroupLocalServiceImpl 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:
      updateAccountGroup in interface AccountGroupLocalService
      Parameters:
      accountGroup - the account group
      Returns:
      the account group that was updated
    • updateAccountGroup

      public AccountGroup updateAccountGroup(long accountGroupId, String description, String name, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      updateAccountGroup in interface AccountGroupLocalService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • updateExternalReferenceCode

      public AccountGroup updateExternalReferenceCode(AccountGroup accountGroup, String externalReferenceCode) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      updateExternalReferenceCode in interface AccountGroupLocalService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • updateExternalReferenceCode

      public AccountGroup updateExternalReferenceCode(long accountGroupId, String externalReferenceCode) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      updateExternalReferenceCode in interface AccountGroupLocalService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getBasePersistence

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

      public AccountGroupLocalService getWrappedService()
      Specified by:
      getWrappedService in interface com.liferay.portal.kernel.service.ServiceWrapper<AccountGroupLocalService>
    • setWrappedService

      public void setWrappedService(AccountGroupLocalService accountGroupLocalService)
      Specified by:
      setWrappedService in interface com.liferay.portal.kernel.service.ServiceWrapper<AccountGroupLocalService>