#3 is the answer, but need to verify carefully this works (with Prabath and
(Sameera or Kishanthan))

If this works, this is a common pattern we can used at other places.

On Fri, Nov 14, 2014 at 9:53 AM, Roshan Deniyage <rosh...@wso2.com> wrote:

> +1 for the option no : 03. Admin services are web services and those need
> to got to a separate layer. In that layer no business logic is required.
>
> Roshan Deniyage
> Associate Technical Lead
> WSO2, Inc: http://wso2.com
>
> Mobile    :  +94 777636406
> Twitter    :  *https://twitter.com/roshku <https://twitter.com/roshku>*
> LinkedIn :  https://www.linkedin.com/in/roshandeniyage
>
>
> On Thu, Nov 13, 2014 at 10:36 PM, Godwin Amila Shrimal <god...@wso2.com>
> wrote:
>
>> Hi,
>>
>> We have Admin Services in carbon products which are needed to access as
>> OSGI Services in the carbon context. Most of the time in Admin Services, it
>> check weather user is authorized in the method, So we cannot register same
>> Admin Service as a OSGI Service and access it. Since there are cases user
>> is not authorized when we access as a OSGI Service. What is the best way to
>> reuse the code and create OSGI Service and Admin Service.
>>
>> After discussing with some folks, i thought following mechanism to
>> implement it.
>>
>> 1. Create an interface for the Service
>> 2. Create an Implementation as OSGI Service
>> 3. Create Admin Service which reuse the OSGI Service and apply additional
>> security. (Here there will be no business logic and additional security
>> will only applied.)
>>
>>
>> Please give feedback on this.
>>
>>
>> Thanks
>> Godwin
>>
>>
>>
>> --
>> *Godwin Amila Shrimal*
>> Senior Software Engineer
>> WSO2 Inc.; http://wso2.com
>> lean.enterprise.middleware
>>
>> mobile: *+94772264165*
>> linkedin: *http://lnkd.in/KUum6D <http://lnkd.in/KUum6D>*
>> twitter: https://twitter.com/godwinamila
>>
>> _______________________________________________
>> Architecture mailing list
>> Architecture@wso2.org
>> https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture
>>
>>
>
> _______________________________________________
> Architecture mailing list
> Architecture@wso2.org
> https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture
>
>


-- 
============================
Srinath Perera, Ph.D.
   http://people.apache.org/~hemapani/
   http://srinathsview.blogspot.com/
_______________________________________________
Architecture mailing list
Architecture@wso2.org
https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture

Reply via email to