Login  Register

Re: Need for ProductRole

Posted by cjhowe on Jul 12, 2006; 3:51pm
URL: http://ofbiz.116.s1.nabble.com/Need-for-ProductRole-tp169561p169567.html

The "Parties" tab are used as partyId/role pairs.  For
instance for the catalog / parties tab setting a
partyId in the roleType of "Customer" will give that
person access to that catalog in the chooseCatalog
screen in ecommerce and in the order entry (if they
have permission to the order entry backend).  

There are very few of these roleTypes that use has
been defined, so it's mostly to your custom situation.

--- Ian Gilbert <[hidden email]>
wrote:

> Thanks Scott,
>
> Is this using the 'Parties' tab?  This doesn't
> actually seem to do anything or am I missing
> something?  There is also a 'Parties' tab on the
> catalog admin page.  Would 'ProductServices.xml'
> require modification for this to work?  To clarify
> the objective is to make only certain products
> (or categories of products or catalogs) available to
> certain users.  I think that these should be
> invisible and not appear if they are not available
> to the user but any granular level (e.g. unless
> the customer was associated with the product then
> they couldn't purchase it although they may be
> able to buy it).  I am looking to test this feature
> if it exists (and document it).
>
> Thanks and best wishes
>
> Ian
>
>
> On Tue, July 11, 2006 10:27, Scott Gray wrote:
> > Hi Ian
> >
> >
> > It looks like the role is set on the category
> admin page in the Catalog App.
> > i.e.
>
https://localhost:8443/catalog/control/EditCategoryParties?productCategoryId=101

> >
> >
> > Regards
> > Scott
> >
> >
> > Ian Gilbert wrote:
> >
> >> Hi David,
> >>
> >>
> >> I can't see how to set this I'm afraid.  There
> doesn't seem to be a ProductCategoryRole tab in
> >> the party manager.  Is this done in Webtools?
> How would this be done?
> >>
> >> I am curious as we had a requirement to do this a
> while ago but it was delayed and it might be
> >> a quick fix now.
> >>
> >> Very best wishes
> >>
> >>
> >> Ian
> >>
> >>
> >>
> >> On Mon, July 10, 2006 17:54, David E. Jones
> wrote:
> >>
> >>
> >>
> >>
> >>> This probably the best pattern to use, ie Party
> -> ProductCategoryRole ->
> >>> ProductCategoryMember
> >>> -> Product
> >>>
> >>>
> >>>
> >>> The reason I say this is that the pattern is
> already being used for role-limited permissions
> >>> in the Catalog Manager. For details see the
> product permission checking simple-method in
> >>> ProductServices.xml.
> >>>
> >>>
> >>>
> >>> -David
> >>>
> >>>
> >>>
> >>>
> >>> Chris Howe wrote:
> >>>
> >>>
> >>>
> >>>> There are Category roles.  Adding a product to
> a
> >>>> category that someone has permissions over
> would be generally easier to manage.  Remember
> >>>> that catalogs don't need to be associated with
> product stores to be useful using custom
> >>>> screens and categories don't need to be
> associated with catalogs.
> >>>>
> >>>> --- Al Byers <[hidden email]>
> wrote:
> >>>>
> >>>>
> >>>>
> >>>>
> >>>>> I think I have a need for a ProductRole that
> mirrors
> >>>>> the ContentRole entity. I want to associate a
> manager with a product. Is there another way
> >>>>> to do this? If not, should I just create such
> an entity for this custom use or should it
> >>>>> be something to propose for general use?
> >>>>>
> >>>>> -Al
> >>>>>
> >>>>>
> >>>>>
> >>>>>
> >>
> >>
> >>
> >
>
>
> --
> Ian Gilbert
> www.ethicalshopper.net
> Fair trade: the alternative choice for your everyday
> shopping
> 0845 456 2429
>
> WHAT DO YOU DRINK AT WORK?
> We can supply your organisation with high quality
> fair trade tea and
> coffee.  Discounts are available for regular orders.
>  Contact us for more
> details.
>
>