|
Home > Archive > Commerce Server General > February 2006 > How to assign a user to a category using commerce server API?
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
How to assign a user to a category using commerce server API?
|
|
|
| Hi,
Do we have any commerce server API using which i can assign a user for a
category through web UI and also i want to list categories (assigned) when
that user logins in using the web ui.
| |
| Ravi Shankar 2006-02-26, 10:46 am |
| Hi Zoom,
In Commerce Server there is a concept of CatalogSets. There is a provision
to store CatalogSets related information in the UserProfile object. I can
think of two ways you'd be able to do this
1. Use the user_pref_1 fields in the UserProfile to store the categories
you want a user to be able to browse. You'd need to create a page where in
all categories would be displayed and someone will select the ones they want.
You should then store this in the UserProfile.
So when the user logs in onto the site. Get the list of categories and use
that to display only that set.
2. The second method is to break up your catalog into multiple catalogs so
that the separation of catalogs is at the category level (current category =
new catalog). Then create catalog sets (clubbing multiple catalogs to form a
catlog set) and store the catalog set ID in the user profile.
So in this case when the user logs in you'd get the catalog set ID, retrieve
the list of catalogs and display only those. The advantage of this method is
that you'd not have to modify your normal catalog/category browsing pages.
The catalogSet API are available at
http://msdn.microsoft.com/library/?....asp?frame=true
--
Ravi Shankar
"Zoom" wrote:
> Hi,
>
> Do we have any commerce server API using which i can assign a user for a
> category through web UI and also i want to list categories (assigned) when
> that user logins in using the web ui.
| |
|
| Hi Shankar,
Thanks for your reply. Both the case will not work for me.
We are building an UI which does most of the functionality of Bizdesk. This
UI will not be exposed to anonymous user. It will be exposed only to few
people. And i'm using windows authentication.
If you edit an existing category under security section in Biz desk you will
see a permission button. Using which you can assign/deny rights for a
category. I want this to be done using web UI.
"Ravi Shankar" wrote:
[vbcol=seagreen]
> Hi Zoom,
>
> In Commerce Server there is a concept of CatalogSets. There is a provision
> to store CatalogSets related information in the UserProfile object. I can
> think of two ways you'd be able to do this
>
> 1. Use the user_pref_1 fields in the UserProfile to store the categories
> you want a user to be able to browse. You'd need to create a page where in
> all categories would be displayed and someone will select the ones they want.
> You should then store this in the UserProfile.
>
> So when the user logs in onto the site. Get the list of categories and use
> that to display only that set.
>
> 2. The second method is to break up your catalog into multiple catalogs so
> that the separation of catalogs is at the category level (current category =
> new catalog). Then create catalog sets (clubbing multiple catalogs to form a
> catlog set) and store the catalog set ID in the user profile.
>
> So in this case when the user logs in you'd get the catalog set ID, retrieve
> the list of catalogs and display only those. The advantage of this method is
> that you'd not have to modify your normal catalog/category browsing pages.
>
> The catalogSet API are available at
> http://msdn.microsoft.com/library/?....asp?frame=true
> --
> Ravi Shankar
>
>
> "Zoom" wrote:
>
| |
| Ravi Shankar 2006-02-27, 5:51 pm |
| Hi Zoom,
Ahh... now the intent becomes clear.. I understood the user as a site user
and not a catalog editor. I suggest you look at the Commerce Server FP1. The
Catalog Editor in FP1 (also the Discount Manager) has a very zipppy looking
UI (which is incedentally WinForms-based). The permissions for users is
Domain Based and based on AZMAN with a MMC based interface.
In CS2006... Microsoft has moved all the backend (BizDesk) funcitonality
into a WinForms UI App + WebService based model.
I'd recommend you have a serious look at the functionality available in
CS2006 before investing substantially in creating an alternative to BizDesk 
--
Ravi Shankar
"Zoom" wrote:
[vbcol=seagreen]
> Hi Shankar,
>
> Thanks for your reply. Both the case will not work for me.
> We are building an UI which does most of the functionality of Bizdesk. This
> UI will not be exposed to anonymous user. It will be exposed only to few
> people. And i'm using windows authentication.
>
> If you edit an existing category under security section in Biz desk you will
> see a permission button. Using which you can assign/deny rights for a
> category. I want this to be done using web UI.
>
>
> "Ravi Shankar" wrote:
>
|
|
|
|
|