public interface ProductServiceLocal extends ProductService, CRUDServiceLocal<Product,ProductDTO,ProductData,ProductNature>
| Modifier and Type | Method and Description |
|---|---|
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.
|
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
|
void |
removePossibleInitialGroupFromBrokerProduct(UserGroup group)
removes a group from any BrokerProduct.possibleInitialGroups, usually as a result of disabling a group.
|
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, list, searchfind, findAll, getEntityClass, newEntity, remove, removeAll, toDTO, toEntity, validategetData, getDataForNew, load, remove, removeAll, saveAdminProduct 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()
void removeAllRelationships(Property<?,?> dtoProperty, SimpleEntity entity)
void removePossibleInitialGroupFromBrokerProduct(UserGroup group)
ActiveProductsData toActiveProduct(org.cyclos.impl.users.ProductsAccessor accessor)
ActiveProductsDatavoid updateProductPasswordActions(PasswordType passwordType)