Re: [Architecture] About EMM-Android Local Push Notification Mechanism

2014-04-09 Thread Harshan Liyanage
Hi Kasun, I think we must implement the method you are proposing. Since this AlarmManager system service will wakeup our EMM agent in every 10 mins (or in configured intervals) it will make sure that our EMM agent is running in the device. Otherwise there would be no way that we could guarantee

Re: [Architecture] EMM - UI Design

2014-05-04 Thread Harshan Liyanage
Hi, It's true that we should have unified UI's for all the applications. But reinventing the front-end MVC frameworks won't be a good idea (agree with Chan's idea). IMO we should look deeper into this and find a proper way to do the front-ends of our application (at least selecting the

[Architecture] Writing Unit tests for iOS EMM client

2014-05-05 Thread Harshan Liyanage
Hi, I have started $subject for WSO2 EMM next release. In the iOS client we need to add unit tests for reading/writing a plist file and for asynchronous network operations. I'm using SenTestingKit[1] as the unit testing framework. It's the default unit testing framework in ios sdk prior to ios 7.

Re: [Architecture] Writing Unit tests for iOS EMM client

2014-05-05 Thread Harshan Liyanage
-framework/KIF [2] - https://github.com/kif-framework/KIF/blob/master/LICENSE Regards, Dilshan On Mon, May 5, 2014 at 2:02 PM, Harshan Liyanage hars...@wso2.com wrote: Hi, I have started $subject for WSO2 EMM next release. In the iOS client we need to add unit tests for reading/writing a plist

[Architecture] Using maven to create build Android Cordova-Android projects in AppFactory

2014-07-16 Thread Harshan Liyanage
Hi, Currently I'm involved in using maven to create build Android / Cordova-Android application projects as a part of MEAP project which will be used to create build mobile application projects using AppFactory. There is a android-maven plugin [3] a maven-archetype [4] which can be used for

Re: [Architecture] Using maven to create build Android Cordova-Android projects in AppFactory

2014-07-17 Thread Harshan Liyanage
including latest Android L preview On Wed, Jul 16, 2014 at 6:23 PM, Harshan Liyanage hars...@wso2.com wrote: Hi, Currently I'm involved in using maven to create build Android / Cordova-Android application projects as a part of MEAP project which will be used to create build mobile

Re: [Architecture] A mechanism to communicate server shutdown to the bundles, just before actual server shutdown

2014-09-14 Thread Harshan Liyanage
Hi Jayanga, Why can't register the CarbonServerShutdownPrepareService in normal OSGi service registration manner (without registering it in server shutdown)? Is that because you need to have synchronized manner or any other particular reason to do so? Thanks, Best Regards, Lakshitha Harshan

Re: [Architecture] Integrating BAM with EMM

2014-09-29 Thread Harshan Liyanage
Hi Inosh, Please find my comments inline. User's who have violated a policy during a certain period.(This will catch if the user violates a policy and then again adheres to it later) I think it would be better to get the list of users who have violated a particular policy first. Lets give the

Re: [Architecture] What is the best/wso2 way to authenticate REST endpoints.

2014-10-22 Thread Harshan Liyanage
Hi, Using OAuth will be beneficial future-proof as well. You can use it easily when the APIs are exposed to the public. +1 for using OAuth for API Security. Thanks, Best Regards, Lakshitha Harshan Software Engineer Mobile: *+94724423048* Email: hars...@wso2.com Blog :

[Architecture] Proposed Device Operations Flow of CDM

2014-11-03 Thread Harshan Liyanage
Hi, Please find the attached proposed device operations flow of CDM. Your suggestions feedback is highly appreciated. Thanks, Best Regards, Lakshitha Harshan Software Engineer Mobile: *+94724423048* Email: hars...@wso2.com Blog : http://harshanliyanage.blogspot.com/ *WSO2, Inc. :** wso2.com

Re: [Architecture] Proposed Device Operations Flow of CDM

2014-11-03 Thread Harshan Liyanage
between out queue and device platform bundle? Regards, Inosh On Mon, Nov 3, 2014 at 3:20 PM, Harshan Liyanage hars...@wso2.com wrote: Hi, Please find the attached proposed device operations flow of CDM. Your suggestions feedback is highly appreciated. Thanks, Best Regards, Lakshitha

Re: [Architecture] Proposed Device Operations Flow of CDM

2014-11-03 Thread Harshan Liyanage
the device via the GCM or APNS respectively. How is this handled? Regards, Nira On Mon, Nov 3, 2014 at 5:36 PM, Harshan Liyanage hars...@wso2.com wrote: Hi InoshP, Before explaining the above scenario I'll explain the process of payload generation when a request for new operation comes

Re: [Architecture] OSGI Service and Admin Services

2014-11-14 Thread Harshan Liyanage
Hi Godwin, IMO keeping the business logic separate from the services will be more appropriate. So that you can change the business logic later without breaking the service contract. Thanks, Lakshitha Harshan Software Engineer Mobile: *+94724423048* Email: hars...@wso2.com Blog :

Re: [Architecture] Proposal for Carbon Offsets

2014-11-14 Thread Harshan Liyanage
Hi, Yeah. I think having different offsets for different products will definitely confuse the customers who are already familiar with our products. But as Shammi has mentioned if we could have standard port-offsets for production deployments that might be useful in troubleshooting support

Re: [Architecture] Proposed Device Operations Flow of CDM

2014-11-16 Thread Harshan Liyanage
*platform-independent* *form*? What is the expected use-case of this? Regards, Dilan. *Dilan U. Ariyaratne* Software Engineer WSO2 Inc. http://wso2.com/ Mobile: +94775149066 lean . enterprise . middleware On Mon, Nov 3, 2014 at 5:36 PM, Harshan Liyanage hars...@wso2.com wrote: Hi

Re: [Architecture] Proposed Device Operations Flow of CDM

2014-11-17 Thread Harshan Liyanage
wrong) Thanks. *Dilan U. Ariyaratne* Software Engineer WSO2 Inc. http://wso2.com/ Mobile: +94775149066 lean . enterprise . middleware On Mon, Nov 17, 2014 at 8:16 AM, Harshan Liyanage hars...@wso2.com wrote: Hi, *Platform-specific payload *is the actual payload which

Re: [Architecture] [BAM] [Security] Securing REST API

2015-02-02 Thread Harshan Liyanage
+1 for using OAuth security for the APIs. Can't use guys use the API everywhere concept in this use-case? So that you can simply have the OAuth security for APIs. Best Regards, Lakshitha Harshan Software Engineer Mobile: *+94724423048* Email: hars...@wso2.com Blog :

Re: [Architecture] BAM 3.0 REST APIs for AnalyticsDataService / Indexing / Search

2015-01-19 Thread Harshan Liyanage
Hi Gimantha, AFAIK when writing REST APIs you have use POST verb to create a resource and the resource data should be sent as the POST request body. I totally agree with Sinthuja's comment regarding url pattern of *POST /analytics/{tableName}*. IMO you should not use POST methods to the

Re: [Architecture] BAM 3.0 REST APIs for AnalyticsDataService / Indexing / Search

2015-01-20 Thread Harshan Liyanage
Hi Gimantha, Could you please explain the use-case for the API #6? IMO there should not be any operation to fetch a list of records by ids. Instead there could be an API which sends a list of records as the response for a query. For the API #14 you can still use GET method with query strings. I

Re: [Architecture] BAM 3.0 REST APIs for AnalyticsDataService / Indexing / Search

2015-02-12 Thread Harshan Liyanage
method is changed, so it returns the records. So +1 for removing the API #6. @Sinduja, @Harshan Thanks for the reference links and for the feedback. On Tue, Jan 20, 2015 at 6:52 PM, Harshan Liyanage hars...@wso2.com wrote: Hi Gimantha, Could you please explain the use-case for the API #6

Re: [Architecture] BAM 3.0 REST APIs for AnalyticsDataService / Indexing / Search

2015-02-16 Thread Harshan Liyanage
Hi Gimantha, I think Frank has explained everything about the usage of *GET /analytics/tables/{tableName}*. Anyway what my point is that if we have used *GET* */analytics/tables/{tableName} *to check the existence of the table it would work nice if the table does not exist. But if the table

Re: [Architecture] Pre-populate API Manager with one API which can be used OOTB

2015-02-16 Thread Harshan Liyanage
Hi Nisala, Normally it is unacceptable to have more than 3 arguments for a method when you write a clean code. I think you will have to refactor all these methods before proceed with your work because these methods already have too many arguments. As stated in [1], The ideal number of arguments

Re: [Architecture] BAM 3.0 REST APIs for AnalyticsDataService / Indexing / Search

2015-02-19 Thread Harshan Liyanage
...@wso2.com wrote: Hi Harshan, if you only want an indicator whether or not a table exists, the API you specify is the right way to go :-) And it's a nice RESTful API... Best regards, Frank 2015-02-17 6:08 GMT+01:00 Harshan Liyanage hars...@wso2.com: Hi Gimantha, I think Frank has

[Architecture] CDM Operation Managemen

2015-02-15 Thread Harshan Liyanage
Hi, Operation Management functionality will allow users, admins policy engines to remotely perform concrete operations on a device/devices. A Device Operation will contain the operation-code the payload of the operation (such as a configuration payload) if exists. An operation can be

Re: [Architecture] Additional fields found in iOS mobile device management

2015-02-15 Thread Harshan Liyanage
Hi Dilshan, Currently the device table in mobile database has following fields. - MOBILE_DEVICE_ID - REG_ID - IMEI - IMSI - OS_VERSION - DEVICE_MODEL - VENDOR When considering iOS platform I think that we can map all other iOS fields to above fields except for the

Re: [Architecture] OSG level security

2015-02-15 Thread Harshan Liyanage
Hi, I also agree with Aruna's point. We have to trust the admin users who has physical access to the system. If those users are malicious users, they can even bring the entire system down if they want. In such cases I believe that we don't have anything to do. Thanks, Lakshitha Harshan

Re: [Architecture] Moving the OAuth 2.0 Dynamic Client Registration(DCR) feature to WSO2 Identity Server

2016-02-05 Thread Harshan Liyanage
uggest you could use something like "oauth2/client" which is more informative and has a good resource definition. Thanks, Harshan Liyanage Software Engineer Mobile: *+94724423048* Email: hars...@wso2.com Blog : http://harshanliyanage.blogspot.com/ *WSO2, Inc. :** wso2.com <http://wso2.

Re: [Architecture] [EMM] Android agent auto enrollment

2016-01-27 Thread Harshan Liyanage
Hi, Is the service app signed by the vendor? if it so why don't we use the service app to get the serial number? Good point. I think that should be possible. If so we can skip steps 6 and 7. Thanks, Harshan Liyanage Software Engineer Mobile: *+94724423048* Email: hars...@wso2.com Blog : http

Re: [Architecture] [EMM] Enabling application white listing and application blacklisting support

2016-02-01 Thread Harshan Liyanage
, MD). But still we can achieve it via the application policies for user-roles. Thanks, Harshan Liyanage Software Engineer Mobile: *+94724423048* Email: hars...@wso2.com Blog : http://harshanliyanage.blogspot.com/ *WSO2, Inc. :** wso2.com <http://wso2.com/>* lean.enterprise.middleware.

Re: [Architecture] [EMM] Android agent auto enrollment

2016-01-27 Thread Harshan Liyanage
prior to generating access tokens? In the existing EMM implementation we use Dynamic-client-registration to do that. I think we can use the same here. However we need to modify the flow diagram to reflect that. Thanks. Harshan Liyanage Software Engineer Mobile: *+94724423048* Email: hars...@wso2.com

Re: [Architecture] Circuit Breaker Pattern for MSF4J

2016-03-30 Thread Harshan Liyanage
if the service is continuously failing. But I think it would be better if we can provide both options in a configurable manner. So it is up to the developer to decide which method to use. Thanks, Harshan Liyanage Software Engineer Mobile: *+94724423048* Email: hars...@wso2.com Blog : http://harshanliy

Re: [Architecture] [CDMF] [EMM 2.1.0] Basic Use-cases for Dashboard Analytics Feature

2016-03-30 Thread Harshan Liyanage
. That'll be a nice feature to have. Thanks, Harshan Liyanage Software Engineer Mobile: *+94724423048* Email: hars...@wso2.com Blog : http://harshanliyanage.blogspot.com/ *WSO2, Inc. :** wso2.com <http://wso2.com/>* lean.enterprise.middleware. On Wed, Mar 30, 2016 at 7:08 AM, Dilan Udara Ariyaratn

Re: [Architecture] [IoT] Load Distribution for Device + Server Communication.

2017-03-01 Thread Harshan Liyanage
vice spends a lesser time in executing getPendingOperations API. For that we'll have to use queues for both ways (fetching / updating) so that we could fetch / update data from in-memory queue rather than from DB which is more efficient. Hence +1 for using Queues. Thanks, Harshan Liyanage EMM/Io

Re: [Architecture] Feature Management of IoT Server

2016-11-02 Thread Harshan Liyanage
tion from the device instance while it's enrolling as you have suggested. Then we can insert it to the tables only if that device model does not exists in the database. Thanks, Harshan Liyanage EMM/IoT TG WSO2 On Nov 2, 2016 10:03 PM, "Ayyoob Hamza" <ayy...@wso2.com> wrote:

Re: [Architecture] Feature Management of IoT Server

2016-11-02 Thread Harshan Liyanage
Hi Ayyoob, Yes you are correct. But I took the barometer as an example. However there may be real scenarios where some devices does not have GPS so that we can't access the location info. In such cases we need to disable "Location" operation for those devices. Thanks, Harshan Liyana

Re: [Architecture] Feature Management of IoT Server

2016-11-02 Thread Harshan Liyanage
independent of the device model (correct me if I'm wrong). Thanks, Harshan Liyanage EMM/IoT TG Mobile: *+94765672894* Email: hars...@wso2.com Blog : http://harshanliyanage.blogspot.com/ *WSO2, Inc. :** wso2.com <http://wso2.com/>* lean.enterprise.middleware. On Wed, Nov 2, 2016 at 9

[Architecture] [Dev] [VOTE] Release WSO2 Enterprise Mobility Manager 2.2.0 RC2

2016-11-29 Thread Harshan Liyanage
roken - do not release (explain why) Thanks and Regards, Harshan Liyanage EMM/IoT TG Mobile: *+94765672894* Email: hars...@wso2.com Blog : http://harshanliyanage.blogspot.com/ *WSO2, Inc. :** wso2.com <http://wso2.com/>* lean.enterprise.middleware.

Re: [Architecture] FCM for Android

2016-11-30 Thread Harshan Liyanage
the wakeup call. Thanks, Harshan Liyanage EMM/IoT TG WSO2 On Dec 1, 2016 9:54 AM, "Pasindu Upulwan" <pasindujw...@cse.mrt.ac.lk> wrote: > Hi Inosh, > > Instead of letting the app to fetch the operation from the IoT/EMM server > (step 7 in the diagram), is it poss

Re: [Architecture] [IoT] Simplifying IoT device type plugin with a descriptor

2016-11-30 Thread Harshan Liyanage
model. - Ability to specify custom tables - Ability to specify custom queries/DAOs - Extension model where we can specify custom implementations which are required for the device plugin WDYT? Thanks, Harshan Liyanage EMM/IoT TG Mobile: *+94765672894* Email: hars...@wso2.com Blog

Re: [Architecture] Restructuring Device Type Plugins for IoT

2016-11-30 Thread Harshan Liyanage
out from core as a plugin-extension? Thanks, Harshan Liyanage EMM/IoT TG Mobile: *+94765672894* Email: hars...@wso2.com Blog : http://harshanliyanage.blogspot.com/ *WSO2, Inc. :** wso2.com <http://wso2.com/>* lean.enterprise.middleware. On Wed, Nov 23, 2016 at 9:26 AM, Ruwan Yatawara <ru

Re: [Architecture] Device Connectivity Graph for IoT Server & related concerns

2017-05-08 Thread Harshan Liyanage
erve power. Since we already have location data in device-info payload, there's no need for sending the same information to the DAS unless there is a need for real-time device tracking kinda scenario. Thanks, Harshan Liyanage EMM/IoT TG Mobile: *+94765672894* Email: hars...@wso2.com Blog :

Re: [Architecture] Methods to get currentSubject and currentStep in authentication script

2018-07-20 Thread Harshan Liyanage
+1 for 'context.currentKnownSubject' Thanks, Harshan Liyanage Mobile: *+94765672894* Email: hars...@wso2.com Blog: http://harshanliyanage.blogspot.com/ Medium: https://medium.com/@harshan.dll *WSO2, Inc.:** wso2.com <http://wso2.com/>* lean.enterprise.middleware. On Fri, Jul 20, 2018 at

Re: [Architecture] Old access token cleanup when token generating, renewing and revoking.

2018-07-19 Thread Harshan Liyanage
Hi Nuwan, Thanks for your detailed clarifications. Both explanations are perfectly valid. Regards, Harshan Liyanage Mobile: *+94765672894* Email: hars...@wso2.com Blog: http://harshanliyanage.blogspot.com/ Medium: https://medium.com/@harshan.dll *WSO2, Inc.:** wso2.com <http://wso2.

Re: [Architecture] Methods to get currentSubject and currentStep in authentication script

2018-07-16 Thread Harshan Liyanage
, Harshan Liyanage Mobile: *+94765672894* Email: hars...@wso2.com Blog: http://harshanliyanage.blogspot.com/ Medium: https://medium.com/@harshan.dll *WSO2, Inc.:** wso2.com <http://wso2.com/>* lean.enterprise.middleware. On Sat, Jul 14, 2018 at 2:38 PM Senthalan Kanagalingam wrote: > H

Re: [Architecture] Stream Processor HA improved archectecture

2018-07-12 Thread Harshan Liyanage
if the node is passive? Thanks, Harshan Liyanage Mobile: *+94765672894* Email: hars...@wso2.com Blog: http://harshanliyanage.blogspot.com/ Medium: https://medium.com/@harshan.dll *WSO2, Inc.:** wso2.com <http://wso2.com/>* lean.enterprise.middleware. On Fri, Jul 13, 2018 at 9:01 AM

Re: [Architecture] Methods to get currentSubject and currentStep in authentication script

2018-07-12 Thread Harshan Liyanage
, I suggest you change it to something more meaningful name such as *context.lastSubject*. I'm +1 with *context.currentStep.* Thanks, Harshan Liyanage Mobile: *+94765672894* Email: hars...@wso2.com Blog: http://harshanliyanage.blogspot.com/ Medium: https://medium.com/@harshan.dll *WSO2, Inc