public interface ProductServiceLocal extends ProductService, CRUDServiceLocal<Product,ProductDTO,ProductData,ProductNature>
| Modifier and Type | Method and Description |
|---|---|
boolean |
canViewProducts()
Returns true if the logged user can view products
|
AdminProduct |
createAdminProduct(AdminGroup group)
Creates an administrator product which will be default for the given (still transient) adminitrator group
|
void |
createRelationship(Product product,
Property<?,?> dtoProperty,
SimpleEntity entity)
Make sure the given value is related to the given product via a DTO property.
|
java.util.List<Product> |
listByRoles(java.util.Collection<Role> roles)
Lists products by roles
|
java.util.List<Product> |
listEntities()
Returns a list of product entities.
|
org.cyclos.impl.users.UserProductsQueryResult |
permissionQuery(Permission... permissions)
Returns an object that can apply to a query of users that have one of the given permissions
|
org.cyclos.impl.users.UserProductsQueryResult |
productQuery(java.util.Collection<Product> products)
Returns an object that can apply to a query of users that have one of the given products
|
void |
removeAllRelationships(Property<?,?> dtoProperty,
SimpleEntity entity)
For each product related to the given value via DTO path, remove the value from the collection, and, if the
collection is empty, remove the
corresponding permission
|
ActiveProductsData |
toActiveProduct(org.cyclos.impl.users.ProductsAccessor accessor)
Converts the given products accessor into an
ActiveProductsData |
void |
updateProductPasswordActions(PasswordType passwordType)
Creates password actions for global admin products when a new password type is created
|
getSearchData, searchfind, findAll, getEntityClass, newEntity, remove, removeAll, toDTO, toEntity, validategetData, getDataForNew, load, remove, removeAll, saveboolean canViewProducts()
AdminProduct createAdminProduct(AdminGroup group)
void createRelationship(Product product, Property<?,?> dtoProperty, SimpleEntity entity)
java.util.List<Product> listByRoles(java.util.Collection<Role> roles)
java.util.List<Product> listEntities()
org.cyclos.impl.users.UserProductsQueryResult permissionQuery(Permission... permissions)
org.cyclos.impl.users.UserProductsQueryResult productQuery(java.util.Collection<Product> products)
void removeAllRelationships(Property<?,?> dtoProperty, SimpleEntity entity)
ActiveProductsData toActiveProduct(org.cyclos.impl.users.ProductsAccessor accessor)
ActiveProductsDatavoid updateProductPasswordActions(PasswordType passwordType)