Class CommerceInventoryWarehouseLocalServiceUtil
com.liferay.commerce.inventory.service.impl.CommerceInventoryWarehouseLocalServiceImpl 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 CommerceInventoryWarehouseaddCommerceInventoryWarehouse(CommerceInventoryWarehouse commerceInventoryWarehouse) Adds the commerce inventory warehouse to the database.static CommerceInventoryWarehouseaddCommerceInventoryWarehouse(String externalReferenceCode, Map<Locale, String> nameMap, Map<Locale, String> descriptionMap, boolean active, String street1, String street2, String street3, String city, String zip, String commerceRegionCode, String commerceCountryCode, double latitude, double longitude, com.liferay.portal.kernel.service.ServiceContext serviceContext) static CommerceInventoryWarehousecreateCommerceInventoryWarehouse(long commerceInventoryWarehouseId) Creates a new commerce inventory warehouse with the primary key.static com.liferay.portal.kernel.model.PersistedModelcreatePersistedModel(Serializable primaryKeyObj) static CommerceInventoryWarehousedeleteCommerceInventoryWarehouse(long commerceInventoryWarehouseId) Deletes the commerce inventory warehouse with the primary key from the database.static CommerceInventoryWarehousedeleteCommerceInventoryWarehouse(CommerceInventoryWarehouse commerceInventoryWarehouse) Deletes the commerce inventory warehouse from the database.static com.liferay.portal.kernel.model.PersistedModeldeletePersistedModel(com.liferay.portal.kernel.model.PersistedModel persistedModel) static <T> TdslQuery(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery) static intdslQueryCount(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery) static com.liferay.portal.kernel.dao.orm.DynamicQuerystatic <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 longdynamicQueryCount(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) Returns the number of rows matching the dynamic query.static longdynamicQueryCount(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 CommerceInventoryWarehousefetchCommerceInventoryWarehouse(long commerceInventoryWarehouseId) static CommerceInventoryWarehousefetchCommerceInventoryWarehouseByExternalReferenceCode(String externalReferenceCode, long companyId) static CommerceInventoryWarehousefetchCommerceInventoryWarehouseByUuidAndCompanyId(String uuid, long companyId) Returns the commerce inventory warehouse with the matching UUID and company.static CommerceInventoryWarehousegeolocateCommerceInventoryWarehouse(long commerceInventoryWarehouseId, double latitude, double longitude) static com.liferay.portal.kernel.dao.orm.ActionableDynamicQuerystatic CommerceInventoryWarehousegetCommerceInventoryWarehouse(long commerceInventoryWarehouseId) Returns the commerce inventory warehouse with the primary key.static CommerceInventoryWarehousegetCommerceInventoryWarehouseByExternalReferenceCode(String externalReferenceCode, long companyId) static CommerceInventoryWarehousegetCommerceInventoryWarehouseByUuidAndCompanyId(String uuid, long companyId) Returns the commerce inventory warehouse with the matching UUID and company.static List<CommerceInventoryWarehouse>getCommerceInventoryWarehouses(int start, int end) Returns a range of all the commerce inventory warehouses.static List<CommerceInventoryWarehouse>getCommerceInventoryWarehouses(long companyId) static List<CommerceInventoryWarehouse>getCommerceInventoryWarehouses(long companyId, boolean active, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryWarehouse> orderByComparator) static List<CommerceInventoryWarehouse>getCommerceInventoryWarehouses(long companyId, boolean active, String commerceCountryCode, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryWarehouse> orderByComparator) static List<CommerceInventoryWarehouse>getCommerceInventoryWarehouses(long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryWarehouse> orderByComparator) static List<CommerceInventoryWarehouse>getCommerceInventoryWarehouses(long companyId, long accountEntryId, long groupId, boolean active) static List<CommerceInventoryWarehouse>getCommerceInventoryWarehouses(long accountEntryId, long groupId, String sku) static intReturns the number of commerce inventory warehouses.static intgetCommerceInventoryWarehousesCount(long companyId) static intgetCommerceInventoryWarehousesCount(long companyId, boolean active) static intgetCommerceInventoryWarehousesCount(long companyId, boolean active, String commerceCountryCode) static com.liferay.portal.kernel.dao.orm.ExportActionableDynamicQuerygetExportActionableDynamicQuery(com.liferay.exportimport.kernel.lar.PortletDataContext portletDataContext) static com.liferay.portal.kernel.dao.orm.IndexableActionableDynamicQuerystatic StringReturns the OSGi service identifier.static com.liferay.portal.kernel.model.PersistedModelgetPersistedModel(Serializable primaryKeyObj) static List<CommerceInventoryWarehouse>search(long companyId, Boolean active, String commerceCountryCode, String keywords, int start, int end, com.liferay.portal.kernel.search.Sort sort) static intsearchCommerceInventoryWarehousesCount(long companyId, Boolean active, String commerceCountryCode, String keywords) static CommerceInventoryWarehousesetActive(long commerceInventoryWarehouseId, boolean active) static CommerceInventoryWarehouseupdateCommerceInventoryWarehouse(long commerceInventoryWarehouseId, Map<Locale, String> nameMap, Map<Locale, String> descriptionMap, boolean active, String street1, String street2, String street3, String city, String zip, String commerceRegionCode, String commerceCountryCode, double latitude, double longitude, long mvccVersion, com.liferay.portal.kernel.service.ServiceContext serviceContext) static CommerceInventoryWarehouseupdateCommerceInventoryWarehouse(CommerceInventoryWarehouse commerceInventoryWarehouse) Updates the commerce inventory warehouse in the database or adds it if it does not yet exist.static CommerceInventoryWarehouseupdateCommerceInventoryWarehouseExternalReferenceCode(String externalReferenceCode, long commerceInventoryWarehouseId)
-
Constructor Details
-
CommerceInventoryWarehouseLocalServiceUtil
public CommerceInventoryWarehouseLocalServiceUtil()
-
-
Method Details
-
addCommerceInventoryWarehouse
public static CommerceInventoryWarehouse addCommerceInventoryWarehouse(CommerceInventoryWarehouse commerceInventoryWarehouse) Adds the commerce inventory warehouse to the database. Also notifies the appropriate model listeners.Important: Inspect CommerceInventoryWarehouseLocalServiceImpl 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:
commerceInventoryWarehouse- the commerce inventory warehouse- Returns:
- the commerce inventory warehouse that was added
-
addCommerceInventoryWarehouse
public static CommerceInventoryWarehouse addCommerceInventoryWarehouse(String externalReferenceCode, Map<Locale, String> nameMap, Map<Locale, throws com.liferay.portal.kernel.exception.PortalExceptionString> descriptionMap, boolean active, String street1, String street2, String street3, String city, String zip, String commerceRegionCode, String commerceCountryCode, double latitude, double longitude, com.liferay.portal.kernel.service.ServiceContext serviceContext) - Throws:
com.liferay.portal.kernel.exception.PortalException
-
createCommerceInventoryWarehouse
public static CommerceInventoryWarehouse createCommerceInventoryWarehouse(long commerceInventoryWarehouseId) Creates a new commerce inventory warehouse with the primary key. Does not add the commerce inventory warehouse to the database.- Parameters:
commerceInventoryWarehouseId- the primary key for the new commerce inventory warehouse- Returns:
- the new commerce inventory warehouse
-
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
-
deleteCommerceInventoryWarehouse
public static CommerceInventoryWarehouse deleteCommerceInventoryWarehouse(CommerceInventoryWarehouse commerceInventoryWarehouse) throws com.liferay.portal.kernel.exception.PortalException Deletes the commerce inventory warehouse from the database. Also notifies the appropriate model listeners.Important: Inspect CommerceInventoryWarehouseLocalServiceImpl 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:
commerceInventoryWarehouse- the commerce inventory warehouse- Returns:
- the commerce inventory warehouse that was removed
- Throws:
com.liferay.portal.kernel.exception.PortalException
-
deleteCommerceInventoryWarehouse
public static CommerceInventoryWarehouse deleteCommerceInventoryWarehouse(long commerceInventoryWarehouseId) throws com.liferay.portal.kernel.exception.PortalException Deletes the commerce inventory warehouse with the primary key from the database. Also notifies the appropriate model listeners.Important: Inspect CommerceInventoryWarehouseLocalServiceImpl 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:
commerceInventoryWarehouseId- the primary key of the commerce inventory warehouse- Returns:
- the commerce inventory warehouse that was removed
- Throws:
com.liferay.portal.kernel.exception.PortalException- if a commerce inventory warehouse 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 - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromcom.liferay.commerce.inventory.model.impl.CommerceInventoryWarehouseModelImpl.- 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 - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromcom.liferay.commerce.inventory.model.impl.CommerceInventoryWarehouseModelImpl.- 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
-
fetchCommerceInventoryWarehouse
public static CommerceInventoryWarehouse fetchCommerceInventoryWarehouse(long commerceInventoryWarehouseId) -
fetchCommerceInventoryWarehouseByExternalReferenceCode
public static CommerceInventoryWarehouse fetchCommerceInventoryWarehouseByExternalReferenceCode(String externalReferenceCode, long companyId) -
fetchCommerceInventoryWarehouseByUuidAndCompanyId
public static CommerceInventoryWarehouse fetchCommerceInventoryWarehouseByUuidAndCompanyId(String uuid, long companyId) Returns the commerce inventory warehouse with the matching UUID and company.- Parameters:
uuid- the commerce inventory warehouse's UUIDcompanyId- the primary key of the company- Returns:
- the matching commerce inventory warehouse, or
nullif a matching commerce inventory warehouse could not be found
-
geolocateCommerceInventoryWarehouse
public static CommerceInventoryWarehouse geolocateCommerceInventoryWarehouse(long commerceInventoryWarehouseId, double latitude, double longitude) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
getActionableDynamicQuery
public static com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery getActionableDynamicQuery() -
getCommerceInventoryWarehouse
public static CommerceInventoryWarehouse getCommerceInventoryWarehouse(long commerceInventoryWarehouseId) throws com.liferay.portal.kernel.exception.PortalException Returns the commerce inventory warehouse with the primary key.- Parameters:
commerceInventoryWarehouseId- the primary key of the commerce inventory warehouse- Returns:
- the commerce inventory warehouse
- Throws:
com.liferay.portal.kernel.exception.PortalException- if a commerce inventory warehouse with the primary key could not be found
-
getCommerceInventoryWarehouseByExternalReferenceCode
public static CommerceInventoryWarehouse getCommerceInventoryWarehouseByExternalReferenceCode(String externalReferenceCode, long companyId) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
getCommerceInventoryWarehouseByUuidAndCompanyId
public static CommerceInventoryWarehouse getCommerceInventoryWarehouseByUuidAndCompanyId(String uuid, long companyId) throws com.liferay.portal.kernel.exception.PortalException Returns the commerce inventory warehouse with the matching UUID and company.- Parameters:
uuid- the commerce inventory warehouse's UUIDcompanyId- the primary key of the company- Returns:
- the matching commerce inventory warehouse
- Throws:
com.liferay.portal.kernel.exception.PortalException- if a matching commerce inventory warehouse could not be found
-
getCommerceInventoryWarehouses
Returns a range of all the commerce inventory warehouses.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromcom.liferay.commerce.inventory.model.impl.CommerceInventoryWarehouseModelImpl.- Parameters:
start- the lower bound of the range of commerce inventory warehousesend- the upper bound of the range of commerce inventory warehouses (not inclusive)- Returns:
- the range of commerce inventory warehouses
-
getCommerceInventoryWarehouses
-
getCommerceInventoryWarehouses
public static List<CommerceInventoryWarehouse> getCommerceInventoryWarehouses(long companyId, boolean active, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryWarehouse> orderByComparator) -
getCommerceInventoryWarehouses
public static List<CommerceInventoryWarehouse> getCommerceInventoryWarehouses(long companyId, boolean active, String commerceCountryCode, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryWarehouse> orderByComparator) -
getCommerceInventoryWarehouses
public static List<CommerceInventoryWarehouse> getCommerceInventoryWarehouses(long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryWarehouse> orderByComparator) -
getCommerceInventoryWarehouses
public static List<CommerceInventoryWarehouse> getCommerceInventoryWarehouses(long companyId, long accountEntryId, long groupId, boolean active) -
getCommerceInventoryWarehouses
public static List<CommerceInventoryWarehouse> getCommerceInventoryWarehouses(long accountEntryId, long groupId, String sku) -
getCommerceInventoryWarehousesCount
public static int getCommerceInventoryWarehousesCount()Returns the number of commerce inventory warehouses.- Returns:
- the number of commerce inventory warehouses
-
getCommerceInventoryWarehousesCount
public static int getCommerceInventoryWarehousesCount(long companyId) -
getCommerceInventoryWarehousesCount
public static int getCommerceInventoryWarehousesCount(long companyId, boolean active) -
getCommerceInventoryWarehousesCount
public static int getCommerceInventoryWarehousesCount(long companyId, boolean active, String commerceCountryCode) -
getExportActionableDynamicQuery
public static com.liferay.portal.kernel.dao.orm.ExportActionableDynamicQuery getExportActionableDynamicQuery(com.liferay.exportimport.kernel.lar.PortletDataContext portletDataContext) -
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
-
search
public static List<CommerceInventoryWarehouse> search(long companyId, Boolean active, String commerceCountryCode, String keywords, int start, int end, com.liferay.portal.kernel.search.Sort sort) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
searchCommerceInventoryWarehousesCount
public static int searchCommerceInventoryWarehousesCount(long companyId, Boolean active, String commerceCountryCode, String keywords) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
setActive
public static CommerceInventoryWarehouse setActive(long commerceInventoryWarehouseId, boolean active) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
updateCommerceInventoryWarehouse
public static CommerceInventoryWarehouse updateCommerceInventoryWarehouse(CommerceInventoryWarehouse commerceInventoryWarehouse) Updates the commerce inventory warehouse in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.Important: Inspect CommerceInventoryWarehouseLocalServiceImpl 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:
commerceInventoryWarehouse- the commerce inventory warehouse- Returns:
- the commerce inventory warehouse that was updated
-
updateCommerceInventoryWarehouse
public static CommerceInventoryWarehouse updateCommerceInventoryWarehouse(long commerceInventoryWarehouseId, Map<Locale, String> nameMap, Map<Locale, throws com.liferay.portal.kernel.exception.PortalExceptionString> descriptionMap, boolean active, String street1, String street2, String street3, String city, String zip, String commerceRegionCode, String commerceCountryCode, double latitude, double longitude, long mvccVersion, com.liferay.portal.kernel.service.ServiceContext serviceContext) - Throws:
com.liferay.portal.kernel.exception.PortalException
-
updateCommerceInventoryWarehouseExternalReferenceCode
public static CommerceInventoryWarehouse updateCommerceInventoryWarehouseExternalReferenceCode(String externalReferenceCode, long commerceInventoryWarehouseId) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
getService
-