Interface ProductServiceLocal

    • Method Detail

      • canViewProducts

        boolean canViewProducts()
        Returns true if the logged user can view products
      • createAdminProduct

        AdminProduct createAdminProduct​(AdminGroup group)
        Creates an administrator product which will be default for the given (still transient) adminitrator group
      • createRelationship

        void createRelationship​(Product product,
                                Property<?,​?> dtoProperty,
                                SimpleEntity entity)
        Make sure the given value is related to the given product via a DTO property. Also makes sure the corresponding permission is set
      • getProductConverter

        <DTO extends ProductDTOProductConversionHandler<?,​DTO,​?> getProductConverter​(DTO dto)
        Returns the associated conversion handler for the given dto.
      • listEntities

        List<Product> listEntities()
        Returns a list of product entities.
      • permissionQuery

        UserProductsQueryResult permissionQuery​(Permission... permissions)
        Returns an object that can apply to a query of users that have one of the given permissions
      • removeAllRelationships

        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
      • updateProductPasswordActions

        void updateProductPasswordActions​(PasswordType passwordType)
        Creates password actions for global admin products when a new password type is created