Package org.cyclos.services.users
Interface BaseProductsOwnerService<VO extends EntityVO,D extends ProductsCollections>
-
- All Superinterfaces:
Service
- All Known Subinterfaces:
BaseProductsOwnerServiceLocal<O,VO,D>,ProductsGroupService,ProductsGroupServiceLocal,ProductsUserService,ProductsUserServiceLocal
public interface BaseProductsOwnerService<VO extends EntityVO,D extends ProductsCollections> extends Service
Service used to view / manage products of a product owner entity. A product owner can be either a group or an individual user.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanassign(@NotNull ProductVO product, VO owner)Assigns the given product to the product owner.ActiveProductsDatagetActiveProducts(VO owner, ChannelVO channel, PrincipalTypeVO principalType)Returns theActiveProductsData, containing all the actual product data for the user/group with the given id and the specified channel (if null then it doesn't filter the products by channel) and principal type (if null then it doesn't filter the products by principal type).DgetData(VO ownerVO)Returns the data used to view / manage an owner's individual productsList<ProductAssignmentLogVO>getLogs(VO owner)Returns the log for the individually assigned products to the given user.booleanunassign(@NotNull ProductVO product, VO ownerId)Unassigns the given product from the owner
-
-
-
Method Detail
-
assign
boolean assign(@NotNull @NotNull ProductVO product, @NotNull VO owner) throws FrameworkExceptionAssigns the given product to the product owner.- Throws:
FrameworkException
-
getActiveProducts
ActiveProductsData getActiveProducts(@NotNull VO owner, ChannelVO channel, PrincipalTypeVO principalType) throws FrameworkException
Returns theActiveProductsData, containing all the actual product data for the user/group with the given id and the specified channel (if null then it doesn't filter the products by channel) and principal type (if null then it doesn't filter the products by principal type).- Throws:
FrameworkException
-
getData
D getData(VO ownerVO) throws FrameworkException
Returns the data used to view / manage an owner's individual products- Throws:
FrameworkException
-
getLogs
List<ProductAssignmentLogVO> getLogs(@NotNull VO owner) throws FrameworkException
Returns the log for the individually assigned products to the given user.- Throws:
FrameworkException
-
unassign
boolean unassign(@NotNull @NotNull ProductVO product, @NotNull VO ownerId) throws FrameworkExceptionUnassigns the given product from the owner- Throws:
FrameworkException
-
-