Interface AccountEntryLocalService

All Superinterfaces:
com.liferay.portal.kernel.service.BaseLocalService, com.liferay.portal.kernel.service.PersistedModelLocalService
All Known Implementing Classes:
AccountEntryLocalServiceWrapper

@ProviderType @Transactional(isolation=PORTAL, rollbackFor={com.liferay.portal.kernel.exception.PortalException.class,com.liferay.portal.kernel.exception.SystemException.class}) public interface AccountEntryLocalService extends com.liferay.portal.kernel.service.BaseLocalService, com.liferay.portal.kernel.service.PersistedModelLocalService
Provides the local service interface for AccountEntry. Methods of this service will not have security checks based on the propagated JAAS credentials because this service can only be accessed from within the same VM.
See Also:
Generated:
  • Method Details

    • activateAccountEntries

      void activateAccountEntries(long[] accountEntryIds) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • activateAccountEntry

      AccountEntry activateAccountEntry(AccountEntry accountEntry) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • activateAccountEntry

      AccountEntry activateAccountEntry(long accountEntryId) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • addAccountEntry

      @Indexable(type=REINDEX) 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.

      Parameters:
      accountEntry - the account entry
      Returns:
      the account entry that was added
    • addAccountEntry

      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
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • addOrUpdateAccountEntry

      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
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • createAccountEntry

      @Transactional(enabled=false) AccountEntry createAccountEntry(long accountEntryId)
      Creates a new account entry with the primary key. Does not add the account entry to the database.
      Parameters:
      accountEntryId - the primary key for the new account entry
      Returns:
      the new account entry
    • createPersistedModel

      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.PersistedModelLocalService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • deactivateAccountEntries

      void deactivateAccountEntries(long[] accountEntryIds) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • deactivateAccountEntry

      AccountEntry deactivateAccountEntry(AccountEntry accountEntry) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • deactivateAccountEntry

      AccountEntry deactivateAccountEntry(long accountEntryId) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • deleteAccountEntries

      void deleteAccountEntries(long[] accountEntryIds) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • deleteAccountEntriesByCompanyId

      void deleteAccountEntriesByCompanyId(long companyId)
    • deleteAccountEntry

      @Indexable(type=DELETE) @SystemEvent(type=1) 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.

      Parameters:
      accountEntry - the account entry
      Returns:
      the account entry that was removed
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • deleteAccountEntry

      @Indexable(type=DELETE) 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.

      Parameters:
      accountEntryId - the primary key of the account entry
      Returns:
      the account entry that was removed
      Throws:
      com.liferay.portal.kernel.exception.PortalException - if a account entry with the primary key could not be found
    • deletePersistedModel

      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.PersistedModelLocalService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • dslQuery

      @Transactional(propagation=SUPPORTS, readOnly=true) <T> T dslQuery(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery)
      Specified by:
      dslQuery in interface com.liferay.portal.kernel.service.PersistedModelLocalService
    • dslQueryCount

      @Transactional(propagation=SUPPORTS, readOnly=true) int dslQueryCount(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery)
      Specified by:
      dslQueryCount in interface com.liferay.portal.kernel.service.PersistedModelLocalService
    • dynamicQuery

      @Transactional(propagation=SUPPORTS, readOnly=true) com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery()
    • dynamicQuery

      @Transactional(propagation=SUPPORTS, readOnly=true) <T> List<T> dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
      Performs a dynamic query on the database and returns the matching rows.
      Parameters:
      dynamicQuery - the dynamic query
      Returns:
      the matching rows
    • dynamicQuery

      @Transactional(propagation=SUPPORTS, readOnly=true) <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.

      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

      @Transactional(propagation=SUPPORTS, readOnly=true) <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.

      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

      @Transactional(propagation=SUPPORTS, readOnly=true) long dynamicQueryCount(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
      Returns the number of rows matching the dynamic query.
      Parameters:
      dynamicQuery - the dynamic query
      Returns:
      the number of rows matching the dynamic query
    • dynamicQueryCount

      @Transactional(propagation=SUPPORTS, readOnly=true) 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.
      Parameters:
      dynamicQuery - the dynamic query
      projection - the projection to apply to the query
      Returns:
      the number of rows matching the dynamic query
    • fetchAccountEntry

      @Transactional(propagation=SUPPORTS, readOnly=true) AccountEntry fetchAccountEntry(long accountEntryId)
    • fetchAccountEntryByExternalReferenceCode

      @Transactional(propagation=SUPPORTS, readOnly=true) AccountEntry fetchAccountEntryByExternalReferenceCode(String externalReferenceCode, long companyId)
    • fetchAccountEntryByUuidAndCompanyId

      @Transactional(propagation=SUPPORTS, readOnly=true) AccountEntry fetchAccountEntryByUuidAndCompanyId(String uuid, long companyId)
      Returns the account entry with the matching UUID and company.
      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

      @Transactional(propagation=SUPPORTS, readOnly=true) AccountEntry fetchPersonAccountEntry(long userId)
    • fetchSupplierAccountEntry

      @Transactional(propagation=SUPPORTS, readOnly=true) AccountEntry fetchSupplierAccountEntry(long userId)
    • fetchUserAccountEntry

      @Transactional(propagation=SUPPORTS, readOnly=true) AccountEntry fetchUserAccountEntry(long userId, long accountEntryId)
    • getAccountEntries

      @Transactional(propagation=SUPPORTS, readOnly=true) 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.

      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

      @Transactional(propagation=SUPPORTS, readOnly=true) List<AccountEntry> getAccountEntries(long companyId, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<AccountEntry> orderByComparator)
    • getAccountEntriesCount

      @Transactional(propagation=SUPPORTS, readOnly=true) int getAccountEntriesCount()
      Returns the number of account entries.
      Returns:
      the number of account entries
    • getAccountEntriesCount

      @Transactional(propagation=SUPPORTS, readOnly=true) int getAccountEntriesCount(long companyId, int status)
    • getAccountEntry

      @Transactional(propagation=SUPPORTS, readOnly=true) AccountEntry getAccountEntry(long accountEntryId) throws com.liferay.portal.kernel.exception.PortalException
      Returns the account entry with the primary key.
      Parameters:
      accountEntryId - the primary key of the account entry
      Returns:
      the account entry
      Throws:
      com.liferay.portal.kernel.exception.PortalException - if a account entry with the primary key could not be found
    • getAccountEntryByExternalReferenceCode

      @Transactional(propagation=SUPPORTS, readOnly=true) AccountEntry getAccountEntryByExternalReferenceCode(String externalReferenceCode, long companyId) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getAccountEntryByUuidAndCompanyId

      @Transactional(propagation=SUPPORTS, readOnly=true) AccountEntry getAccountEntryByUuidAndCompanyId(String uuid, long companyId) throws com.liferay.portal.kernel.exception.PortalException
      Returns the account entry with the matching UUID and company.
      Parameters:
      uuid - the account entry's UUID
      companyId - the primary key of the company
      Returns:
      the matching account entry
      Throws:
      com.liferay.portal.kernel.exception.PortalException - if a matching account entry could not be found
    • getActionableDynamicQuery

      @Transactional(propagation=SUPPORTS, readOnly=true) com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery getActionableDynamicQuery()
    • getExportActionableDynamicQuery

      @Transactional(propagation=SUPPORTS, readOnly=true) com.liferay.portal.kernel.dao.orm.ExportActionableDynamicQuery getExportActionableDynamicQuery(com.liferay.exportimport.kernel.lar.PortletDataContext portletDataContext)
    • getGuestAccountEntry

      @Transactional(propagation=SUPPORTS, readOnly=true) AccountEntry getGuestAccountEntry(long companyId) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getIndexableActionableDynamicQuery

      @Transactional(propagation=SUPPORTS, readOnly=true) com.liferay.portal.kernel.dao.orm.IndexableActionableDynamicQuery getIndexableActionableDynamicQuery()
    • getOSGiServiceIdentifier

      String getOSGiServiceIdentifier()
      Returns the OSGi service identifier.
      Returns:
      the OSGi service identifier
    • getPersistedModel

      @Transactional(propagation=SUPPORTS, readOnly=true) 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.PersistedModelLocalService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getUserAccountEntries

      @Transactional(propagation=SUPPORTS, readOnly=true) List<AccountEntry> getUserAccountEntries(long userId, Long parentAccountEntryId, String keywords, String[] types, int start, int end) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getUserAccountEntries

      @Transactional(propagation=SUPPORTS, readOnly=true) List<AccountEntry> getUserAccountEntries(long userId, Long parentAccountEntryId, String keywords, String[] types, Integer status, int start, int end) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getUserAccountEntries

      @Transactional(propagation=SUPPORTS, readOnly=true) 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
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getUserAccountEntriesCount

      @Transactional(propagation=SUPPORTS, readOnly=true) int getUserAccountEntriesCount(long userId, Long parentAccountEntryId, String keywords, String[] types) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getUserAccountEntriesCount

      @Transactional(propagation=SUPPORTS, readOnly=true) int getUserAccountEntriesCount(long userId, Long parentAccountEntryId, String keywords, String[] types, Integer status) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • searchAccountEntries

      @Transactional(propagation=SUPPORTS, readOnly=true) com.liferay.portal.kernel.search.BaseModelSearchResult<AccountEntry> searchAccountEntries(long companyId, String keywords, LinkedHashMap<String,Object> params, int cur, int delta, String orderByField, boolean reverse)
    • updateAccountEntry

      @Indexable(type=REINDEX) 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.

      Parameters:
      accountEntry - the account entry
      Returns:
      the account entry that was updated
    • updateAccountEntry

      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
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • updateDefaultBillingAddressId

      @Indexable(type=REINDEX) AccountEntry updateDefaultBillingAddressId(long accountEntryId, long addressId) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • updateDefaultShippingAddressId

      @Indexable(type=REINDEX) AccountEntry updateDefaultShippingAddressId(long accountEntryId, long addressId) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • updateDomains

      @Indexable(type=REINDEX) AccountEntry updateDomains(long accountEntryId, String[] domains) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • updateExternalReferenceCode

      @Indexable(type=REINDEX) AccountEntry updateExternalReferenceCode(AccountEntry accountEntry, String externalReferenceCode) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • updateExternalReferenceCode

      @Indexable(type=REINDEX) AccountEntry updateExternalReferenceCode(long accountEntryId, String externalReferenceCode) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • updateRestrictMembership

      AccountEntry updateRestrictMembership(long accountEntryId, boolean restrictMembership) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • updateStatus

      @Indexable(type=REINDEX) AccountEntry updateStatus(AccountEntry accountEntry, int status) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • updateStatus

      @Indexable(type=REINDEX) AccountEntry updateStatus(long accountEntryId, int status) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • updateStatus

      @Indexable(type=REINDEX) 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
      Throws:
      com.liferay.portal.kernel.exception.PortalException