|
Liferay 6.0.5 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.liferay.portlet.shopping.service.ShoppingItemLocalServiceUtil
public class ShoppingItemLocalServiceUtil
The utility for the shopping item local service. This utility wraps ShoppingItemLocalServiceImpl
and is the primary access point for service operations in application layer code running on the local server.
Never modify this class directly. Add custom service methods to ShoppingItemLocalServiceImpl
and rerun ServiceBuilder to regenerate this class.
This is a local service. 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.
ShoppingItemLocalService
,
ShoppingItemLocalServiceBaseImpl
,
ShoppingItemLocalServiceImpl
Constructor Summary | |
---|---|
ShoppingItemLocalServiceUtil()
|
Method Summary | |
---|---|
static void |
addBookItems(long userId,
long groupId,
long categoryId,
String[] isbns)
|
static ShoppingItem |
addItem(long userId,
long groupId,
long categoryId,
String sku,
String name,
String description,
String properties,
String fieldsQuantities,
boolean requiresShipping,
int stockQuantity,
boolean featured,
Boolean sale,
boolean smallImage,
String smallImageURL,
File smallFile,
boolean mediumImage,
String mediumImageURL,
File mediumFile,
boolean largeImage,
String largeImageURL,
File largeFile,
List<ShoppingItemField> itemFields,
List<ShoppingItemPrice> itemPrices,
ServiceContext serviceContext)
|
static void |
addItemResources(long itemId,
boolean addCommunityPermissions,
boolean addGuestPermissions)
|
static void |
addItemResources(long itemId,
String[] communityPermissions,
String[] guestPermissions)
|
static void |
addItemResources(ShoppingItem item,
boolean addCommunityPermissions,
boolean addGuestPermissions)
|
static void |
addItemResources(ShoppingItem item,
String[] communityPermissions,
String[] guestPermissions)
|
static ShoppingItem |
addShoppingItem(ShoppingItem shoppingItem)
Adds the shopping item to the database. |
static ShoppingItem |
createShoppingItem(long itemId)
Creates a new shopping item with the primary key. |
static void |
deleteItem(long itemId)
|
static void |
deleteItem(ShoppingItem item)
|
static void |
deleteItems(long groupId,
long categoryId)
|
static void |
deleteShoppingItem(long itemId)
Deletes the shopping item with the primary key from the database. |
static void |
deleteShoppingItem(ShoppingItem shoppingItem)
Deletes the shopping item from the database. |
static List |
dynamicQuery(DynamicQuery dynamicQuery)
Performs a dynamic query on the database and returns the matching rows. |
static List |
dynamicQuery(DynamicQuery dynamicQuery,
int start,
int end)
Performs a dynamic query on the database and returns a range of the matching rows. |
static List |
dynamicQuery(DynamicQuery dynamicQuery,
int start,
int end,
OrderByComparator orderByComparator)
Performs a dynamic query on the database and returns an ordered range of the matching rows. |
static long |
dynamicQueryCount(DynamicQuery dynamicQuery)
Counts the number of rows that match the dynamic query. |
static int |
getCategoriesItemsCount(long groupId,
List<Long> categoryIds)
|
static List<ShoppingItem> |
getFeaturedItems(long groupId,
long categoryId,
int numOfItems)
|
static ShoppingItem |
getItem(long itemId)
|
static ShoppingItem |
getItem(long companyId,
String sku)
|
static ShoppingItem |
getItemByLargeImageId(long largeImageId)
|
static ShoppingItem |
getItemByMediumImageId(long mediumImageId)
|
static ShoppingItem |
getItemBySmallImageId(long smallImageId)
|
static List<ShoppingItem> |
getItems(long groupId,
long categoryId)
|
static List<ShoppingItem> |
getItems(long groupId,
long categoryId,
int start,
int end,
OrderByComparator obc)
|
static int |
getItemsCount(long groupId,
long categoryId)
|
static ShoppingItem[] |
getItemsPrevAndNext(long itemId,
OrderByComparator obc)
|
static List<ShoppingItem> |
getSaleItems(long groupId,
long categoryId,
int numOfItems)
|
static ShoppingItemLocalService |
getService()
|
static ShoppingItem |
getShoppingItem(long itemId)
Gets the shopping item with the primary key. |
static List<ShoppingItem> |
getShoppingItems(int start,
int end)
Gets a range of all the shopping items. |
static int |
getShoppingItemsCount()
Gets the number of shopping items. |
static List<ShoppingItem> |
search(long groupId,
long[] categoryIds,
String keywords,
int start,
int end)
|
static int |
searchCount(long groupId,
long[] categoryIds,
String keywords)
|
void |
setService(ShoppingItemLocalService service)
|
static ShoppingItem |
updateItem(long userId,
long itemId,
long groupId,
long categoryId,
String sku,
String name,
String description,
String properties,
String fieldsQuantities,
boolean requiresShipping,
int stockQuantity,
boolean featured,
Boolean sale,
boolean smallImage,
String smallImageURL,
File smallFile,
boolean mediumImage,
String mediumImageURL,
File mediumFile,
boolean largeImage,
String largeImageURL,
File largeFile,
List<ShoppingItemField> itemFields,
List<ShoppingItemPrice> itemPrices,
ServiceContext serviceContext)
|
static ShoppingItem |
updateShoppingItem(ShoppingItem shoppingItem)
Updates the shopping item in the database. |
static ShoppingItem |
updateShoppingItem(ShoppingItem shoppingItem,
boolean merge)
Updates the shopping item in the database. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ShoppingItemLocalServiceUtil()
Method Detail |
---|
public static ShoppingItem addShoppingItem(ShoppingItem shoppingItem) throws SystemException
shoppingItem
- the shopping item to add
SystemException
- if a system exception occurredpublic static ShoppingItem createShoppingItem(long itemId)
itemId
- the primary key for the new shopping item
public static void deleteShoppingItem(long itemId) throws PortalException, SystemException
itemId
- the primary key of the shopping item to delete
PortalException
- if a shopping item with the primary key could not be found
SystemException
- if a system exception occurredpublic static void deleteShoppingItem(ShoppingItem shoppingItem) throws SystemException
shoppingItem
- the shopping item to delete
SystemException
- if a system exception occurredpublic static List dynamicQuery(DynamicQuery dynamicQuery) throws SystemException
dynamicQuery
- the dynamic query to search with
SystemException
- if a system exception occurredpublic static List dynamicQuery(DynamicQuery dynamicQuery, int start, int end) throws SystemException
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 QueryUtil.ALL_POS
will return the full result set.
dynamicQuery
- the dynamic query to search withstart
- the lower bound of the range of model instances to returnend
- the upper bound of the range of model instances to return (not inclusive)
SystemException
- if a system exception occurredpublic static List dynamicQuery(DynamicQuery dynamicQuery, int start, int end, OrderByComparator orderByComparator) throws SystemException
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 QueryUtil.ALL_POS
will return the full result set.
dynamicQuery
- the dynamic query to search withstart
- the lower bound of the range of model instances to returnend
- the upper bound of the range of model instances to return (not inclusive)orderByComparator
- the comparator to order the results by
SystemException
- if a system exception occurredpublic static long dynamicQueryCount(DynamicQuery dynamicQuery) throws SystemException
dynamicQuery
- the dynamic query to search with
SystemException
- if a system exception occurredpublic static ShoppingItem getShoppingItem(long itemId) throws PortalException, SystemException
itemId
- the primary key of the shopping item to get
PortalException
- if a shopping item with the primary key could not be found
SystemException
- if a system exception occurredpublic static List<ShoppingItem> getShoppingItems(int start, int end) throws SystemException
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 QueryUtil.ALL_POS
will return the full result set.
start
- the lower bound of the range of shopping items to returnend
- the upper bound of the range of shopping items to return (not inclusive)
SystemException
- if a system exception occurredpublic static int getShoppingItemsCount() throws SystemException
SystemException
- if a system exception occurredpublic static ShoppingItem updateShoppingItem(ShoppingItem shoppingItem) throws SystemException
shoppingItem
- the shopping item to update
SystemException
- if a system exception occurredpublic static ShoppingItem updateShoppingItem(ShoppingItem shoppingItem, boolean merge) throws SystemException
shoppingItem
- the shopping item to updatemerge
- whether to merge the shopping item with the current session. See BatchSession.update(com.liferay.portal.kernel.dao.orm.Session, com.liferay.portal.model.BaseModel, boolean)
for an explanation.
SystemException
- if a system exception occurredpublic static void addBookItems(long userId, long groupId, long categoryId, String[] isbns) throws PortalException, SystemException
PortalException
SystemException
public static ShoppingItem addItem(long userId, long groupId, long categoryId, String sku, String name, String description, String properties, String fieldsQuantities, boolean requiresShipping, int stockQuantity, boolean featured, Boolean sale, boolean smallImage, String smallImageURL, File smallFile, boolean mediumImage, String mediumImageURL, File mediumFile, boolean largeImage, String largeImageURL, File largeFile, List<ShoppingItemField> itemFields, List<ShoppingItemPrice> itemPrices, ServiceContext serviceContext) throws PortalException, SystemException
PortalException
SystemException
public static void addItemResources(long itemId, boolean addCommunityPermissions, boolean addGuestPermissions) throws PortalException, SystemException
PortalException
SystemException
public static void addItemResources(long itemId, String[] communityPermissions, String[] guestPermissions) throws PortalException, SystemException
PortalException
SystemException
public static void addItemResources(ShoppingItem item, boolean addCommunityPermissions, boolean addGuestPermissions) throws PortalException, SystemException
PortalException
SystemException
public static void addItemResources(ShoppingItem item, String[] communityPermissions, String[] guestPermissions) throws PortalException, SystemException
PortalException
SystemException
public static void deleteItem(long itemId) throws PortalException, SystemException
PortalException
SystemException
public static void deleteItem(ShoppingItem item) throws PortalException, SystemException
PortalException
SystemException
public static void deleteItems(long groupId, long categoryId) throws PortalException, SystemException
PortalException
SystemException
public static int getCategoriesItemsCount(long groupId, List<Long> categoryIds) throws SystemException
SystemException
public static List<ShoppingItem> getFeaturedItems(long groupId, long categoryId, int numOfItems) throws SystemException
SystemException
public static ShoppingItem getItem(long itemId) throws PortalException, SystemException
PortalException
SystemException
public static ShoppingItem getItem(long companyId, String sku) throws PortalException, SystemException
PortalException
SystemException
public static ShoppingItem getItemByLargeImageId(long largeImageId) throws PortalException, SystemException
PortalException
SystemException
public static ShoppingItem getItemByMediumImageId(long mediumImageId) throws PortalException, SystemException
PortalException
SystemException
public static ShoppingItem getItemBySmallImageId(long smallImageId) throws PortalException, SystemException
PortalException
SystemException
public static List<ShoppingItem> getItems(long groupId, long categoryId) throws SystemException
SystemException
public static List<ShoppingItem> getItems(long groupId, long categoryId, int start, int end, OrderByComparator obc) throws SystemException
SystemException
public static int getItemsCount(long groupId, long categoryId) throws SystemException
SystemException
public static ShoppingItem[] getItemsPrevAndNext(long itemId, OrderByComparator obc) throws PortalException, SystemException
PortalException
SystemException
public static List<ShoppingItem> getSaleItems(long groupId, long categoryId, int numOfItems) throws SystemException
SystemException
public static List<ShoppingItem> search(long groupId, long[] categoryIds, String keywords, int start, int end) throws SystemException
SystemException
public static int searchCount(long groupId, long[] categoryIds, String keywords) throws SystemException
SystemException
public static ShoppingItem updateItem(long userId, long itemId, long groupId, long categoryId, String sku, String name, String description, String properties, String fieldsQuantities, boolean requiresShipping, int stockQuantity, boolean featured, Boolean sale, boolean smallImage, String smallImageURL, File smallFile, boolean mediumImage, String mediumImageURL, File mediumFile, boolean largeImage, String largeImageURL, File largeFile, List<ShoppingItemField> itemFields, List<ShoppingItemPrice> itemPrices, ServiceContext serviceContext) throws PortalException, SystemException
PortalException
SystemException
public static ShoppingItemLocalService getService()
public void setService(ShoppingItemLocalService service)
|
Liferay 6.0.5 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |