[Camps-users] APPLICATION_ROLE purpose?

Ethan Rowe ethan at endpoint.com
Sun Jan 24 17:51:56 UTC 2010


On 01/24/2010 08:06 AM, Gert van der Spoel wrote:
> Hi,
>
> What is the idea/purpose behind APPLICATION_ROLE?
>
> Together with RUN_ENVIRONMENT it is to be set as Interchange variables from
> what I read ..
> RUN_ENVIRONMENT makes sense, but for APPLICATION_ROLE I do not see the idea
> I guess (without diving into code hehe).
>
> The Interchange website I am planning to use camps with is a customerfacing
> e-commerce site ... which would I suppose classify it as 'frontside' ...
> However I have in my catalog/pages/admin/ .... some pages which are part of
> the customized admin UI ... Which is 'backside' ...?   Or should I see
> APPLICATION_ROLE as something different.
>    

Gert,

You can use the application role however you want.  The original camp 
system from which the APPLICATION_ROLE magic is derived was for a system 
which had two distinct roles within their infrastructure, using a common 
code base.  If the application role was "frontside", it activated one 
set of behaviors and deactivated others, while "backside" activated a 
variety of administrative functions not available for the public.

I probably should not have carried the application role stuff as 
literally into the generic camp system as I did, but so it goes.  Stick 
with "frontside" and you'll be fine.  :)

Hope this helps.
- Ethan

-- 
Ethan Rowe
End Point Corporation
ethan at endpoint.com



More information about the Camps-users mailing list