Package org.cyclos.entities.users
Interface ProductOwner
-
- All Superinterfaces:
HasNetwork,IEntity
- All Known Implementing Classes:
AdminGroup,BasicGroup,BrokerGroup,Group,GroupSet,MemberGroup,User,UserGroup
public interface ProductOwner extends IEntity, HasNetwork
Common interface for entities which own products.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default booleanaddProduct(Product product)Adds a product to this ownerdefault SortedSet<Long>getAllProductIds()Returns the ids of all products assigned to all levels which affect this ownerProductOwnergetNextLevelProductOwner()Returns a possibly null next-level ownerSet<Product>getPhysicalProducts()Returns the persistent and attached products collection that can be modified to cascadeSortedSet<Long>getProductIds()Returns the redundant product ids directly assigned to this ownerSet<Product>getProducts()Returns all products directly assigned to this ownerdefault booleanremoveProduct(Product product)Removes a product from this ownervoidupdateProductIds(SortedSet<Long> productIds)Sets the redundant comma-separated list of product ids directly assigned to this owner-
Methods inherited from interface org.cyclos.entities.HasNetwork
getNetwork, isGlobal
-
-
-
-
Method Detail
-
addProduct
default boolean addProduct(Product product)
Adds a product to this owner
-
getAllProductIds
default SortedSet<Long> getAllProductIds()
Returns the ids of all products assigned to all levels which affect this owner
-
getNextLevelProductOwner
ProductOwner getNextLevelProductOwner()
Returns a possibly null next-level owner
-
getPhysicalProducts
Set<Product> getPhysicalProducts()
Returns the persistent and attached products collection that can be modified to cascade
-
getProductIds
SortedSet<Long> getProductIds()
Returns the redundant product ids directly assigned to this owner
-
removeProduct
default boolean removeProduct(Product product)
Removes a product from this owner
-
-