Class AccountEntryLocalServiceUtil
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic void
activateAccountEntries
(long[] accountEntryIds) static AccountEntry
activateAccountEntry
(long accountEntryId) static AccountEntry
activateAccountEntry
(AccountEntry accountEntry) 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) static AccountEntry
addAccountEntry
(AccountEntry accountEntry) Adds the account entry to the database.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) static AccountEntry
createAccountEntry
(long accountEntryId) Creates a new account entry with the primary key.static com.liferay.portal.kernel.model.PersistedModel
createPersistedModel
(Serializable primaryKeyObj) static void
deactivateAccountEntries
(long[] accountEntryIds) static AccountEntry
deactivateAccountEntry
(long accountEntryId) static AccountEntry
deactivateAccountEntry
(AccountEntry accountEntry) static void
deleteAccountEntries
(long[] accountEntryIds) static void
deleteAccountEntriesByCompanyId
(long companyId) static AccountEntry
deleteAccountEntry
(long accountEntryId) Deletes the account entry with the primary key from the database.static AccountEntry
deleteAccountEntry
(AccountEntry accountEntry) Deletes the account entry from the database.static com.liferay.portal.kernel.model.PersistedModel
deletePersistedModel
(com.liferay.portal.kernel.model.PersistedModel persistedModel) static <T> T
dslQuery
(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery) static int
dslQueryCount
(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery) static com.liferay.portal.kernel.dao.orm.DynamicQuery
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.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.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.static long
dynamicQueryCount
(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) Returns the number of rows matching the dynamic query.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.static AccountEntry
fetchAccountEntry
(long accountEntryId) static AccountEntry
fetchAccountEntryByExternalReferenceCode
(String externalReferenceCode, long companyId) static AccountEntry
fetchAccountEntryByUuidAndCompanyId
(String uuid, long companyId) Returns the account entry with the matching UUID and company.static AccountEntry
fetchPersonAccountEntry
(long userId) static AccountEntry
fetchSupplierAccountEntry
(long userId) static AccountEntry
fetchUserAccountEntry
(long userId, long accountEntryId) static List<AccountEntry>
getAccountEntries
(int start, int end) Returns a range of all the account entries.static List<AccountEntry>
getAccountEntries
(long companyId, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<AccountEntry> orderByComparator) static int
Returns the number of account entries.static int
getAccountEntriesCount
(long companyId, int status) static AccountEntry
getAccountEntry
(long accountEntryId) Returns the account entry with the primary key.static AccountEntry
getAccountEntryByExternalReferenceCode
(String externalReferenceCode, long companyId) static AccountEntry
getAccountEntryByUuidAndCompanyId
(String uuid, long companyId) Returns the account entry with the matching UUID and company.static com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery
static com.liferay.portal.kernel.dao.orm.ExportActionableDynamicQuery
getExportActionableDynamicQuery
(com.liferay.exportimport.kernel.lar.PortletDataContext portletDataContext) static AccountEntry
getGuestAccountEntry
(long companyId) static com.liferay.portal.kernel.dao.orm.IndexableActionableDynamicQuery
static String
Returns the OSGi service identifier.static com.liferay.portal.kernel.model.PersistedModel
getPersistedModel
(Serializable primaryKeyObj) static AccountEntryLocalService
static List<AccountEntry>
getUserAccountEntries
(long userId, Long parentAccountEntryId, String keywords, String[] types, int start, int end) static List<AccountEntry>
getUserAccountEntries
(long userId, Long parentAccountEntryId, String keywords, String[] types, Integer status, int start, int end) 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) static int
getUserAccountEntriesCount
(long userId, Long parentAccountEntryId, String keywords, String[] types) static int
getUserAccountEntriesCount
(long userId, Long parentAccountEntryId, String keywords, String[] types, Integer status) 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) 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) static AccountEntry
updateAccountEntry
(AccountEntry accountEntry) Updates the account entry in the database or adds it if it does not yet exist.static AccountEntry
updateDefaultBillingAddressId
(long accountEntryId, long addressId) static AccountEntry
updateDefaultShippingAddressId
(long accountEntryId, long addressId) static AccountEntry
updateDomains
(long accountEntryId, String[] domains) static AccountEntry
updateExternalReferenceCode
(long accountEntryId, String externalReferenceCode) static AccountEntry
updateExternalReferenceCode
(AccountEntry accountEntry, String externalReferenceCode) static AccountEntry
updateRestrictMembership
(long accountEntryId, boolean restrictMembership) static AccountEntry
updateStatus
(long accountEntryId, int status) static AccountEntry
updateStatus
(long userId, long accountEntryId, int status, com.liferay.portal.kernel.service.ServiceContext serviceContext, Map<String, Serializable> workflowContext) static AccountEntry
updateStatus
(AccountEntry accountEntry, int status)
-
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
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
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
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
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
tocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromcom.liferay.account.model.impl.AccountEntryModelImpl
.- Parameters:
dynamicQuery
- the dynamic querystart
- the lower bound of the range of model instancesend
- 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
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
tocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromcom.liferay.account.model.impl.AccountEntryModelImpl
.- Parameters:
dynamicQuery
- the dynamic querystart
- the lower bound of the range of model instancesend
- the upper bound of the range of model instances (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)- 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 queryprojection
- the projection to apply to the query- Returns:
- the number of rows matching the dynamic query
-
fetchAccountEntry
-
fetchAccountEntryByExternalReferenceCode
public static AccountEntry fetchAccountEntryByExternalReferenceCode(String externalReferenceCode, long companyId) -
fetchAccountEntryByUuidAndCompanyId
Returns the account entry with the matching UUID and company.- Parameters:
uuid
- the account entry's UUIDcompanyId
- the primary key of the company- Returns:
- the matching account entry, or
null
if a matching account entry could not be found
-
fetchPersonAccountEntry
-
fetchSupplierAccountEntry
-
fetchUserAccountEntry
-
getAccountEntries
Returns a range of all the account entries.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
tocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromcom.liferay.account.model.impl.AccountEntryModelImpl
.- Parameters:
start
- the lower bound of the range of account entriesend
- 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 UUIDcompanyId
- 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
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
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
-