public interface ProductsHandler
| Modifier and Type | Method and Description |
|---|---|
org.cyclos.impl.users.ProductsAccessor |
getAccessibleGroupsAccessor()
Returns a products accessor for products on any of the current user's accessible groups
|
org.cyclos.impl.users.ProductsAccessor |
getAccessor(BasicUser user,
boolean resolveForLoggedUser)
INTERNAL: This method is intended to be invoked only from SessionData.
|
org.cyclos.impl.users.ProductsAccessor |
getAccessor(BasicUser user,
Network network)
Returns a product accessor for the given user and network.
|
org.cyclos.impl.users.ProductsAccessor |
getAccessor(java.util.Collection<? extends BasicGroup> groups)
Returns a products accessor for products on any of the given groups
|
org.cyclos.impl.users.ProductsAccessor |
getAccessor(ProductOwner owner)
Returns a products accessor for the given product owner
|
org.cyclos.impl.users.ProductsAccessor |
getAccessorFor(java.util.Collection<? extends BasicProduct> products)
Returns a products accessor for the given products
|
<R,K> java.util.List<R> |
toList(java.util.Collection<K> allKeys,
org.cyclos.impl.utils.BooleanPropertiesHolder<K> booleanProperties,
java.lang.Class<R> resultType,
Property<?,R> keyProperty)
Converts a map of some type to
BooleanProperties into a list of objects, for each entry, uses
BooleanProperties.instantiate(Class) to instantiate a bean and fills the key as a propery in the resulting beans |
org.cyclos.impl.users.ProductsAccessor getAccessibleGroupsAccessor()
org.cyclos.impl.users.ProductsAccessor getAccessor(BasicUser user, boolean resolveForLoggedUser)
resolveForLoggedUser - if true the only valid value for user param is the logged userjava.lang.IllegalArgumentException - if the user parameter is not the logged user in case of resolveForLoggedUser flag is trueorg.cyclos.impl.users.ProductsAccessor getAccessor(BasicUser user, Network network)
org.cyclos.impl.users.ProductsAccessor getAccessor(java.util.Collection<? extends BasicGroup> groups)
org.cyclos.impl.users.ProductsAccessor getAccessor(ProductOwner owner)
org.cyclos.impl.users.ProductsAccessor getAccessorFor(java.util.Collection<? extends BasicProduct> products)
<R,K> java.util.List<R> toList(java.util.Collection<K> allKeys,
org.cyclos.impl.utils.BooleanPropertiesHolder<K> booleanProperties,
java.lang.Class<R> resultType,
Property<?,R> keyProperty)
BooleanProperties into a list of objects, for each entry, uses
BooleanProperties.instantiate(Class) to instantiate a bean and fills the key as a propery in the resulting beans