Class AccountEntryLocalServiceWrapper

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

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

    • AccountEntryLocalServiceWrapper

      public AccountEntryLocalServiceWrapper()
    • AccountEntryLocalServiceWrapper

      public AccountEntryLocalServiceWrapper(AccountEntryLocalService accountEntryLocalService)
  • Method Details

    • activateAccountEntries

      public void activateAccountEntries(long[] accountEntryIds) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      activateAccountEntries in interface AccountEntryLocalService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • activateAccountEntry

      public AccountEntry activateAccountEntry(AccountEntry accountEntry) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      activateAccountEntry in interface AccountEntryLocalService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • activateAccountEntry

      public AccountEntry activateAccountEntry(long accountEntryId) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      activateAccountEntry in interface AccountEntryLocalService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • addAccountEntry

      public AccountEntry addAccountEntry(AccountEntry accountEntry)
      Adds the account entry to the database. Also notifies the appropriate model listeners.

      Important: Inspect AccountEntryLocalServiceImpl 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:
      addAccountEntry in interface AccountEntryLocalService
      Parameters:
      accountEntry - the account entry
      Returns:
      the account entry that was added
    • addAccountEntry

      public AccountEntry addAccountEntry(long userId, long parentAccountEntryId, String name, String description, String[] domains, String emailAddress, byte[] logoBytes, String taxIdNumber, String type, int status, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      addAccountEntry in interface AccountEntryLocalService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • addOrUpdateAccountEntry

      public AccountEntry addOrUpdateAccountEntry(String externalReferenceCode, long userId, long parentAccountEntryId, String name, String description, String[] domains, String emailAddress, byte[] logoBytes, String taxIdNumber, String type, int status, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      addOrUpdateAccountEntry in interface AccountEntryLocalService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • createAccountEntry

      public AccountEntry createAccountEntry(long accountEntryId)
      Creates a new account entry with the primary key. Does not add the account entry to the database.
      Specified by:
      createAccountEntry in interface AccountEntryLocalService
      Parameters:
      accountEntryId - the primary key for the new account entry
      Returns:
      the new account entry
    • createPersistedModel

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

      public void deactivateAccountEntries(long[] accountEntryIds) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      deactivateAccountEntries in interface AccountEntryLocalService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • deactivateAccountEntry

      public AccountEntry deactivateAccountEntry(AccountEntry accountEntry) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      deactivateAccountEntry in interface AccountEntryLocalService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • deactivateAccountEntry

      public AccountEntry deactivateAccountEntry(long accountEntryId) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      deactivateAccountEntry in interface AccountEntryLocalService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • deleteAccountEntries

      public void deleteAccountEntries(long[] accountEntryIds) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      deleteAccountEntries in interface AccountEntryLocalService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • deleteAccountEntriesByCompanyId

      public void deleteAccountEntriesByCompanyId(long companyId)
      Specified by:
      deleteAccountEntriesByCompanyId in interface AccountEntryLocalService
    • deleteAccountEntry

      public AccountEntry deleteAccountEntry(AccountEntry accountEntry) throws com.liferay.portal.kernel.exception.PortalException
      Deletes the account entry from the database. Also notifies the appropriate model listeners.

      Important: Inspect AccountEntryLocalServiceImpl 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:
      deleteAccountEntry in interface AccountEntryLocalService
      Parameters:
      accountEntry - the account entry
      Returns:
      the account entry that was removed
      Throws:
      PortalException
      com.liferay.portal.kernel.exception.PortalException
    • deleteAccountEntry

      public AccountEntry deleteAccountEntry(long accountEntryId) throws com.liferay.portal.kernel.exception.PortalException
      Deletes the account entry with the primary key from the database. Also notifies the appropriate model listeners.

      Important: Inspect AccountEntryLocalServiceImpl 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:
      deleteAccountEntry in interface AccountEntryLocalService
      Parameters:
      accountEntryId - the primary key of the account entry
      Returns:
      the account entry that was removed
      Throws:
      PortalException - if a account entry 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 AccountEntryLocalService
      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 AccountEntryLocalService
      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 AccountEntryLocalService
      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 AccountEntryLocalService
    • 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 AccountEntryLocalService
      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.AccountEntryModelImpl.

      Specified by:
      dynamicQuery in interface AccountEntryLocalService
      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.AccountEntryModelImpl.

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

      public AccountEntry fetchAccountEntry(long accountEntryId)
      Specified by:
      fetchAccountEntry in interface AccountEntryLocalService
    • fetchAccountEntryByExternalReferenceCode

      public AccountEntry fetchAccountEntryByExternalReferenceCode(String externalReferenceCode, long companyId)
      Specified by:
      fetchAccountEntryByExternalReferenceCode in interface AccountEntryLocalService
    • fetchAccountEntryByUuidAndCompanyId

      public AccountEntry fetchAccountEntryByUuidAndCompanyId(String uuid, long companyId)
      Returns the account entry with the matching UUID and company.
      Specified by:
      fetchAccountEntryByUuidAndCompanyId in interface AccountEntryLocalService
      Parameters:
      uuid - the account entry's UUID
      companyId - the primary key of the company
      Returns:
      the matching account entry, or null if a matching account entry could not be found
    • fetchPersonAccountEntry

      public AccountEntry fetchPersonAccountEntry(long userId)
      Specified by:
      fetchPersonAccountEntry in interface AccountEntryLocalService
    • fetchSupplierAccountEntry

      public AccountEntry fetchSupplierAccountEntry(long userId)
      Specified by:
      fetchSupplierAccountEntry in interface AccountEntryLocalService
    • fetchUserAccountEntry

      public AccountEntry fetchUserAccountEntry(long userId, long accountEntryId)
      Specified by:
      fetchUserAccountEntry in interface AccountEntryLocalService
    • getAccountEntries

      public List<AccountEntry> getAccountEntries(int start, int end)
      Returns a range of all the account entries.

      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.AccountEntryModelImpl.

      Specified by:
      getAccountEntries in interface AccountEntryLocalService
      Parameters:
      start - the lower bound of the range of account entries
      end - the upper bound of the range of account entries (not inclusive)
      Returns:
      the range of account entries
    • getAccountEntries

      public List<AccountEntry> getAccountEntries(long companyId, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<AccountEntry> orderByComparator)
      Specified by:
      getAccountEntries in interface AccountEntryLocalService
    • getAccountEntriesCount

      public int getAccountEntriesCount()
      Returns the number of account entries.
      Specified by:
      getAccountEntriesCount in interface AccountEntryLocalService
      Returns:
      the number of account entries
    • getAccountEntriesCount

      public int getAccountEntriesCount(long companyId, int status)
      Specified by:
      getAccountEntriesCount in interface AccountEntryLocalService
    • getAccountEntry

      public AccountEntry getAccountEntry(long accountEntryId) throws com.liferay.portal.kernel.exception.PortalException
      Returns the account entry with the primary key.
      Specified by:
      getAccountEntry in interface AccountEntryLocalService
      Parameters:
      accountEntryId - the primary key of the account entry
      Returns:
      the account entry
      Throws:
      PortalException - if a account entry with the primary key could not be found
      com.liferay.portal.kernel.exception.PortalException
    • getAccountEntryByExternalReferenceCode

      public AccountEntry getAccountEntryByExternalReferenceCode(String externalReferenceCode, long companyId) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      getAccountEntryByExternalReferenceCode in interface AccountEntryLocalService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getAccountEntryByUuidAndCompanyId

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

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

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

      public AccountEntry getGuestAccountEntry(long companyId) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      getGuestAccountEntry in interface AccountEntryLocalService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getIndexableActionableDynamicQuery

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

      public String getOSGiServiceIdentifier()
      Returns the OSGi service identifier.
      Specified by:
      getOSGiServiceIdentifier in interface AccountEntryLocalService
      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 AccountEntryLocalService
      Specified by:
      getPersistedModel in interface com.liferay.portal.kernel.service.PersistedModelLocalService
      Throws:
      PortalException
      com.liferay.portal.kernel.exception.PortalException
    • getUserAccountEntries

      public List<AccountEntry> getUserAccountEntries(long userId, Long parentAccountEntryId, String keywords, String[] types, int start, int end) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      getUserAccountEntries in interface AccountEntryLocalService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getUserAccountEntries

      public List<AccountEntry> getUserAccountEntries(long userId, Long parentAccountEntryId, String keywords, String[] types, Integer status, int start, int end) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      getUserAccountEntries in interface AccountEntryLocalService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getUserAccountEntries

      public List<AccountEntry> getUserAccountEntries(long userId, Long parentAccountEntryId, String keywords, String[] types, Integer status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<AccountEntry> orderByComparator) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      getUserAccountEntries in interface AccountEntryLocalService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getUserAccountEntriesCount

      public int getUserAccountEntriesCount(long userId, Long parentAccountEntryId, String keywords, String[] types) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      getUserAccountEntriesCount in interface AccountEntryLocalService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getUserAccountEntriesCount

      public int getUserAccountEntriesCount(long userId, Long parentAccountEntryId, String keywords, String[] types, Integer status) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      getUserAccountEntriesCount in interface AccountEntryLocalService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • searchAccountEntries

      public com.liferay.portal.kernel.search.BaseModelSearchResult<AccountEntry> searchAccountEntries(long companyId, String keywords, LinkedHashMap<String,Object> params, int cur, int delta, String orderByField, boolean reverse)
      Specified by:
      searchAccountEntries in interface AccountEntryLocalService
    • updateAccountEntry

      public AccountEntry updateAccountEntry(AccountEntry accountEntry)
      Updates the account entry in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.

      Important: Inspect AccountEntryLocalServiceImpl 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:
      updateAccountEntry in interface AccountEntryLocalService
      Parameters:
      accountEntry - the account entry
      Returns:
      the account entry that was updated
    • updateAccountEntry

      public AccountEntry updateAccountEntry(long accountEntryId, long parentAccountEntryId, String name, String description, boolean deleteLogo, String[] domains, String emailAddress, byte[] logoBytes, String taxIdNumber, int status, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      updateAccountEntry in interface AccountEntryLocalService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • updateDefaultBillingAddressId

      public AccountEntry updateDefaultBillingAddressId(long accountEntryId, long addressId) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      updateDefaultBillingAddressId in interface AccountEntryLocalService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • updateDefaultShippingAddressId

      public AccountEntry updateDefaultShippingAddressId(long accountEntryId, long addressId) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      updateDefaultShippingAddressId in interface AccountEntryLocalService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • updateDomains

      public AccountEntry updateDomains(long accountEntryId, String[] domains) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      updateDomains in interface AccountEntryLocalService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • updateExternalReferenceCode

      public AccountEntry updateExternalReferenceCode(AccountEntry accountEntry, String externalReferenceCode) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      updateExternalReferenceCode in interface AccountEntryLocalService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • updateExternalReferenceCode

      public AccountEntry updateExternalReferenceCode(long accountEntryId, String externalReferenceCode) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      updateExternalReferenceCode in interface AccountEntryLocalService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • updateRestrictMembership

      public AccountEntry updateRestrictMembership(long accountEntryId, boolean restrictMembership) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      updateRestrictMembership in interface AccountEntryLocalService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • updateStatus

      public AccountEntry updateStatus(AccountEntry accountEntry, int status) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      updateStatus in interface AccountEntryLocalService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • updateStatus

      public AccountEntry updateStatus(long accountEntryId, int status) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      updateStatus in interface AccountEntryLocalService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • updateStatus

      public AccountEntry updateStatus(long userId, long accountEntryId, int status, com.liferay.portal.kernel.service.ServiceContext serviceContext, Map<String,Serializable> workflowContext) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      updateStatus in interface AccountEntryLocalService
      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 AccountEntryLocalService getWrappedService()
      Specified by:
      getWrappedService in interface com.liferay.portal.kernel.service.ServiceWrapper<AccountEntryLocalService>
    • setWrappedService

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