public interface ProductsUserServiceLocal extends ProductsUserService, BaseProductsOwnerServiceLocal<User,UserLocatorVO>
| Modifier and Type | Method and Description |
|---|---|
void |
applyProductGainActions(User owner,
java.util.Collection<Product> gainedProducts)
Applies all additional actions to be performed in case of gain of the specified products.
|
void |
applyProductLossActions(User owner,
java.util.Collection<Product> lostProducts,
java.util.Collection<Product> gainedProducts)
Applies all additional actions to be performed in case of loss of the specified products.
|
java.util.Set<UserAccount> |
getLostAccounts(User user,
java.util.Collection<Product> lostProducts,
java.util.Collection<Product> gainedProducts)
gets the accounts which the user will loose if the given products are unassigned, so the user doesn't have access
to the products anymore.
|
getUserProductLogscanHaveProductUnassigned, getDataassign, getActiveProducts, unassignvoid applyProductGainActions(User owner, java.util.Collection<Product> gainedProducts)
owner - the user loosing access to the given products.gainedProducts - the regained products in case of a group changes; these are the products of the new group.void applyProductLossActions(User owner, java.util.Collection<Product> lostProducts, java.util.Collection<Product> gainedProducts)
owner - The user loosing access to the given products.lostProducts - The products to which the user will loose access.gainedProducts - The products he has at the same time gained. For example, when changing groups. Otherwise,
null.java.util.Set<UserAccount> getLostAccounts(User user, java.util.Collection<Product> lostProducts, java.util.Collection<Product> gainedProducts)
user - lostProducts - all products which will be unassigned to the user.gainedProducts - all products which will be assigned to the user in case of a group change. This can be null
or an empty collection in
case of a plain product unassignment.