Package org.ametys.plugins.cart
Class CartHelper
java.lang.Object
org.ametys.plugins.cart.CartHelper
Helper for
Cart
-
Method Summary
Modifier and TypeMethodDescriptiongetCartsNode
(AmetysObjectResolver resolver) Get the root plugin storage object.static String
getXPathQueryForReadAccess
(UserIdentity user, Set<GroupIdentity> groups) Creates the XPath query to get all carts in READ accessstatic String
getXPathQueryForWriteAccess
(UserIdentity user, Set<GroupIdentity> groups) Creates the XPath query to get all carts in WRITE access
-
Method Details
-
getCartsNode
public static ModifiableTraversableAmetysObject getCartsNode(AmetysObjectResolver resolver) throws AmetysRepositoryException Get the root plugin storage object.- Parameters:
resolver
- The Ametys object resolver- Returns:
- the root plugin storage object.
- Throws:
AmetysRepositoryException
- if a repository error occurs.
-
getXPathQueryForReadAccess
Creates the XPath query to get all carts in READ access- Parameters:
user
- The usergroups
- The user's groups- Returns:
- The XPath query
-
getXPathQueryForWriteAccess
Creates the XPath query to get all carts in WRITE access- Parameters:
user
- The usergroups
- The user's groups- Returns:
- The XPath query
-