Class AccountEntryLocalServiceUtil

java.lang.Object
com.liferay.account.service.AccountEntryLocalServiceUtil

public class AccountEntryLocalServiceUtil extends Object
Provides the local service utility for AccountEntry. This utility wraps com.liferay.account.service.impl.AccountEntryLocalServiceImpl and is an access point for service operations in application layer code running on the local server. 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:
  • Constructor Details

    • AccountEntryLocalServiceUtil

      public AccountEntryLocalServiceUtil()
  • Method Details

    • activateAccountEntries

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

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

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

      public static 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

      public static 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

      public static 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

      public static 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

      public static com.liferay.portal.kernel.model.PersistedModel createPersistedModel(Serializable primaryKeyObj) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • deactivateAccountEntries

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

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

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

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

      public static void deleteAccountEntriesByCompanyId(long companyId)
    • deleteAccountEntry

      public static 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

      public static 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

      public static com.liferay.portal.kernel.model.PersistedModel deletePersistedModel(com.liferay.portal.kernel.model.PersistedModel persistedModel) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • dslQuery

      public static <T> T dslQuery(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery)
    • dslQueryCount

      public static int dslQueryCount(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery)
    • dynamicQuery

      public static com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery()
    • dynamicQuery

      public static <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

      public static <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

      public static <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

      public static 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

      public static 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

      public static AccountEntry fetchAccountEntry(long accountEntryId)
    • fetchAccountEntryByExternalReferenceCode

      public static AccountEntry fetchAccountEntryByExternalReferenceCode(String externalReferenceCode, long companyId)
    • fetchAccountEntryByUuidAndCompanyId

      public static 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

      public static AccountEntry fetchPersonAccountEntry(long userId)
    • fetchSupplierAccountEntry

      public static AccountEntry fetchSupplierAccountEntry(long userId)
    • fetchUserAccountEntry

      public static AccountEntry fetchUserAccountEntry(long userId, long accountEntryId)
    • getAccountEntries

      public static 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

      public static List<AccountEntry> getAccountEntries(long companyId, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<AccountEntry> orderByComparator)
    • getAccountEntriesCount

      public static int getAccountEntriesCount()
      Returns the number of account entries.
      Returns:
      the number of account entries
    • getAccountEntriesCount

      public static int getAccountEntriesCount(long companyId, int status)
    • getAccountEntry

      public static 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

      public static AccountEntry getAccountEntryByExternalReferenceCode(String externalReferenceCode, long companyId) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getAccountEntryByUuidAndCompanyId

      public static 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

      public static com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery getActionableDynamicQuery()
    • getExportActionableDynamicQuery

      public static com.liferay.portal.kernel.dao.orm.ExportActionableDynamicQuery getExportActionableDynamicQuery(com.liferay.exportimport.kernel.lar.PortletDataContext portletDataContext)
    • getGuestAccountEntry

      public static AccountEntry getGuestAccountEntry(long companyId) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getIndexableActionableDynamicQuery

      public static com.liferay.portal.kernel.dao.orm.IndexableActionableDynamicQuery getIndexableActionableDynamicQuery()
    • getOSGiServiceIdentifier

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

      public static com.liferay.portal.kernel.model.PersistedModel getPersistedModel(Serializable primaryKeyObj) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getUserAccountEntries

      public static 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

      public static 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

      public static 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

      public static 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

      public static 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

      public static 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

      public static 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

      public static 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

      public static AccountEntry updateDefaultBillingAddressId(long accountEntryId, long addressId) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • updateDefaultShippingAddressId

      public static AccountEntry updateDefaultShippingAddressId(long accountEntryId, long addressId) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • updateDomains

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

      public static AccountEntry updateExternalReferenceCode(AccountEntry accountEntry, String externalReferenceCode) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • updateExternalReferenceCode

      public static AccountEntry updateExternalReferenceCode(long accountEntryId, String externalReferenceCode) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • updateRestrictMembership

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

      public static AccountEntry updateStatus(AccountEntry accountEntry, int status) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • updateStatus

      public static AccountEntry updateStatus(long accountEntryId, int status) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • updateStatus

      public static 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
    • getService

      public static AccountEntryLocalService getService()