public final class CartHelper extends Object
Cart
Modifier and Type | Field and Description |
---|---|
private static String |
__PLUGIN_NODE_NAME |
private static String |
__ROOT_CART_NODETYPE |
Modifier | Constructor and Description |
---|---|
private |
CartHelper() |
Modifier and Type | Method and Description |
---|---|
static ModifiableTraversableAmetysObject |
getCartsNode(AmetysObjectResolver resolver)
Get the root plugin storage object.
|
private static ModifiableTraversableAmetysObject |
getOrCreateNode(ModifiableTraversableAmetysObject parentNode,
String nodeName,
String nodeType) |
static String |
getXPathQueryForReadAccess(UserIdentity user,
Set<GroupIdentity> groups)
Creates the XPath query to get all carts in READ access
|
static String |
getXPathQueryForWriteAccess(UserIdentity user,
Set<GroupIdentity> groups)
Creates the XPath query to get all carts in WRITE access
|
private static final String __PLUGIN_NODE_NAME
private static final String __ROOT_CART_NODETYPE
private CartHelper()
public static ModifiableTraversableAmetysObject getCartsNode(AmetysObjectResolver resolver) throws AmetysRepositoryException
resolver
- The Ametys object resolverAmetysRepositoryException
- if a repository error occurs.private static ModifiableTraversableAmetysObject getOrCreateNode(ModifiableTraversableAmetysObject parentNode, String nodeName, String nodeType) throws AmetysRepositoryException
AmetysRepositoryException
public static String getXPathQueryForReadAccess(UserIdentity user, Set<GroupIdentity> groups)
user
- The usergroups
- The user's groupspublic static String getXPathQueryForWriteAccess(UserIdentity user, Set<GroupIdentity> groups)
user
- The usergroups
- The user's groups