Commit Graph

499 Commits

Author SHA1 Message Date
lasanthaDLPDS
2fd7601139 Refactor and modify storage management logic 2018-09-10 01:14:35 +05:30
lasanthaDLPDS
c950223283 Refactor the source 2018-09-09 21:21:17 +05:30
lasanthaDLPDS
1cce5d7e34 Improve app managing functionalties and refactor the source 2018-09-08 08:55:53 +05:30
lasanthaDLPDS
9379c2ae47 Fix build failure 2018-08-19 15:33:20 +05:30
lasanthaDLPDS
797652b741 Merge branch 'application-mgt-new' of https://github.com/wso2/carbon-device-mgt into application-mgt-new 2018-08-19 13:22:22 +05:30
Dharmakeerhi Lasantha
bc162d05fd
Merge pull request #1199 from NishadiPrasangini/AppManager
App manager
2018-04-23 11:17:34 +05:30
lasanthaDLPDS
c755dc018a Add Application updating functionality 2018-03-28 00:08:42 +05:30
lasanthaDLPDS
6c65aef26c Remove unnecessary imports 2018-03-22 00:29:19 +05:30
lasanthaDLPDS
d5b2bfd510 Modify Application and Release validation methods
Ahis commit contaisns followings. Added a query to get application release when application id and release UUID is passed. Modified application validation method and removed unnecessary logic. Modified Application release validation method aand removed unnecessary logic. As a result of these modifications, modified relevant method calls as well
2018-03-21 23:53:46 +05:30
lasanthaDLPDS
47a02dc903 Add permision check and app status check for deletion 2018-03-21 17:41:32 +05:30
lasanthaDLPDS
a05c412d77 Copy publisher and store web apps into IoTS webapp folder
Added p2.inf configuration to copy store and publisher web apps into IoTS webapp folder
2018-03-20 18:10:49 +05:30
lasanthaDLPDS
0b78df50a7 Add application deleting functionality
Modified DAO layer. When delete an application it is moved to REMOVED status.
2018-03-20 17:43:37 +05:30
lasanthaDLPDS
c95733a781 Add iOS applications and Web Clip publishing functionality
This commit contains followings
Added dependencies for URL validation and plist parsing.
Added version retrieval functionality for iOS application
Added WEB clip publishing functionality.
In order to compatible with above functionalities modified the source
2018-03-20 17:14:15 +05:30
lasanthaDLPDS
b45d11bfdc Fix issues in swagger definition 2018-03-20 09:54:24 +05:30
lasanthaDLPDS
976d0ad60d Modify application retrieval API
As per the API designing best practices, added offset and limit query parameters for application getting API.
2018-03-19 20:37:30 +05:30
lasanthaDLPDS
71aa6762ac Refactor APPM DAO Layer
Refactored the APPM DAO layer. Further verified and added required functionality to compatible with other DBMS, such as Oracle, PostgreSQL, MSSQL
2018-03-19 18:41:23 +05:30
lasantha
f9559a510b Remove tenant id from the Application Release bean 2018-03-12 11:14:15 +05:30
lasantha
e00aa1be09 Fix build failure
Removed application release management service refernce from the ApplicationManagementUtil.java
2018-03-12 11:13:07 +05:30
lasantha
6f18a70d4b Add application release updating logic into the service layer
Adding application release updating logic and application release creating logic into the service layer.
2018-03-12 11:07:47 +05:30
lasantha
f83b466955 Format the application management API source 2018-03-12 11:00:29 +05:30
lasantha
8b505a7741 Reformat the DAO layer and add application release updating SQL logic
In order to fix DAO issues and improve the logic, modified the DAO layer. Further added generic application release SQL to update application release.
2018-03-12 10:57:23 +05:30
lasantha
1b7451327e Remove application release management service source.
The application release management service source is moved to application management service. Therefore removed the application release management service source from the application management component.
2018-03-12 10:45:45 +05:30
lasantha
fc30d00ecd Fix minor DAO layer issues 2018-03-05 17:57:04 +05:30
lasantha
b0eafe7180 Fixed application management issues and improve functionalities 2018-03-05 17:15:40 +05:30
lasantha
7278408b44 Refactored the source code 2018-03-05 17:15:40 +05:30
lasantha
c3f04eeed0 refactored the Application management DAO layer 2018-03-05 17:15:39 +05:30
lasantha
6e3cc085ff Fixed application getting issues and improved the application getting functionality
Improved application functionalities. Modified service layer, DAO layer and API layer
2018-03-05 17:14:48 +05:30
lasantha
ef0e7ee738 adding sorting orders 2018-03-05 17:11:44 +05:30
lasantha
9f609964b7 adding application types 2018-03-05 17:11:44 +05:30
lasantha
6b0e281112 Adding APK file validation functionalty
To implement apk file validation we are using external library. APK parser: https://github.com/hsiafan/apk-parser
2018-03-05 17:11:44 +05:30
lasantha
460a356bee Adding Application management functionalities and API
Adding application, application lifecycle and application release management business logic and also API implementation
2018-03-05 17:11:44 +05:30
lasantha
5ee9983305 modified application management store API
This is WIP API and in order to avoid build failure commented few lines and those need to be fixed when the development continues
2018-03-05 17:11:44 +05:30
lasantha
c3d0b375a5 Adding App storing functionalities
Adding App deleting, editing and storing fucntionalities and fixed related bugs. To delete application artifacts, used recursive method and validation application is removed from the storage management. Since application validation is doing at application management and it is guaranteed that storage management is called after the application management removed the application validation from storage management
2018-03-05 17:11:44 +05:30
lasantha
2cbf78d464 Fixed issues in Generic DAO Impl 2018-03-05 17:11:44 +05:30
nishadi
565087f4f2 Changed CommentManagementAPIImpl
Message of the errors were changed.
2018-02-28 12:16:20 +05:30
nishadi
b5c28943ee Changed CommentManagementAPIImpl
changed returning null into response ok.
2018-02-28 11:22:51 +05:30
nishadi
2981a1537e Changed CommentManagementAPIImpl
changed returning null into response ok.
2018-02-28 11:21:41 +05:30
nishadi
f82368990f Changed CommentManagementAPIImpl 2018-02-27 17:23:49 +05:30
nishadi
0ac0efcf2e Add new methods
Exception handling test methods for rating methods
2018-02-27 17:22:08 +05:30
nishadi
e70899a193 Add new methods
Exception handling test methods for rating methods
2018-02-27 16:47:12 +05:30
nishadi
55a005e992 Add new methods
Exception handling test methods for rating methods
2018-02-27 15:36:27 +05:30
nishadi
dab9208168 Add new methods
TestAddCommentInternalError and TestDeleteComment.
2018-02-27 13:04:38 +05:30
nishadi
dff3cf7645 Reformatted the codes 2018-02-26 23:30:11 +05:30
nishadi
9936bda78b CommentManagementAPITest class
adding copyright message.
2018-02-26 23:14:17 +05:30
nishadi
891c3410ee CommentManagementAPITest class
adding copyright message.
2018-02-26 22:56:39 +05:30
nishadi
87d48dca98 Reformat CommentManagementAPITest class 2018-02-24 19:14:10 +05:30
nishadi
37f595d382 Added CommentManagementAPITest class
Test of CommentManagementAPI class
2018-02-24 18:56:09 +05:30
nishadi
97915e29be Application mgt api Pom.xml changed 2018-02-24 18:40:18 +05:30
nishadi
20c1ba1052 CommentManager
Tenant Id variable was added to CommentManagerImpl class.
2018-02-24 18:39:25 +05:30
nishadi
471e6e3b21 CommentManagerImpl
Variable values changed.
2018-02-24 18:37:47 +05:30
nishadi
072d8b6455 CommentManagementAPIImpl 2018-02-24 18:34:27 +05:30
nishadi
7d22c45636 CommentManagementAPIImpl 2018-02-24 18:33:38 +05:30
nishadi
c26903c446 CommentManagementAPIImpl
variable redundant reduced.
2018-02-24 18:32:33 +05:30
nishadi
c3f8d15910 CommentManagementAPIImpl
newStar variable changed.
2018-02-24 18:31:10 +05:30
nishadi
ef059800e2 CommentManagementAPIImpl
CommentManagementAPIImpl class moved to store/api/services/impl directory.
2018-02-24 18:29:31 +05:30
nishadi
b60f3f0a9e CommentManagementApi
CommentManagementApi class moved to store/api/services directory.
2018-02-24 18:28:13 +05:30
nishadi
c216048b57 Test Resources
log4j.properties and testng.xml files added.
2018-02-24 18:25:48 +05:30
nishadi
09a2c484f0 CommentMgtTestHelper
Dummy data for comments Testing.
2018-02-24 18:21:32 +05:30
Madawa Soysa
b911c9e169 Adding entity application mapping to the database
When an application installation request is made other than adding an application install operation a mapping between the devices and the installed applications are kept in the database. In a case where an enterprise wide installation happens a mapping is made with the respective entity and the application.

This commit implement the mapping function.

Related to issue wso2/product-iots#1688
2018-02-20 18:51:34 +05:30
Madawa Soysa
debe93cb03 Improving application subscription API
Changing the DeviceIdentifier bean to the same as org.wso2.carbon.device.mgt.common.DeviceIdentifier and implement the install app device.

Adding an ApplicationInstallResponse as the response to respond with more information to the application install request.

related to wso2/product-iots#1688
2018-02-19 10:22:08 +05:30
Madawa Soysa
f66ff60ada Adding a method to retrieve Application by UUID
Application install request is made for a UUID which is associated with an application release. In order to get the details of the application to build the payload of the install application operation, it is required to get the application from the database related to the UUID.
2018-02-19 10:22:08 +05:30
Madawa Soysa
690eff6660 Refactoring mobile application subscription API 2018-02-19 10:22:08 +05:30
lasantha
6792c21210 Rmoved the lifecycle managemt
Removed the lifecycle management core and formatted the source
2018-02-15 10:36:28 +05:30
lasantha
9b1820dca5 Adding Lifecycle Management functionalities and fixed related bugs 2018-02-14 16:51:49 +05:30
lasantha
fb8d9dd494 refactored the source and fixed some bugs 2018-02-07 00:14:01 +05:30
lasantha
669881eae7 adding appliction release functionalites and fixed build failure 2018-02-05 19:23:57 +05:30
lasantha
f17c36d13f Added app release updating fucntionality and fixed APPM related bugs 2018-02-04 23:28:07 +05:30
lasantha
c392f0e57d merge with upstream and fixed conflicts 2018-02-04 04:13:14 +05:30
lasantha
fdac04dd3e complete app release getting flow and fixed related bugs 2018-02-04 04:05:04 +05:30
lasantha
569007514e Added app release creation method and fixed issues 2018-02-02 12:59:31 +05:30
lasantha
317386afb8 bump version of the app manager component 2018-01-28 10:29:54 +05:30
nishadi
c50de8e2de Modified CommentsDAOmpl
Removed concatenation.
2018-01-18 16:33:04 +05:30
nishadi
a321bf934b Modified CommentsManagerImpl
Reformatted.
2018-01-18 16:26:40 +05:30
nishadi
40771cbfcd Modified CommentDAOImpl
String sql change int constant.
2018-01-18 16:21:18 +05:30
nishadi
8f8ec9a86a parameter in the consumes annotation changed to application/json 2018-01-18 15:56:38 +05:30
nishadi
eced883e7f Error response message changed. 2018-01-18 15:54:34 +05:30
nishadi
7242c63e60 CommentId changed into commentId 2018-01-18 14:54:15 +05:30
nishadi
27d3862ac8 CommentId changed into commentId 2018-01-18 14:42:40 +05:30
nishadi
3b86f8a443 CommentId changed into commentId 2018-01-18 14:16:48 +05:30
nishadi
da0b147050 modified commentsManagerImpl
Reformatted.
2018-01-18 13:31:21 +05:30
nishadi
f02a0b9e6c Modified pom.xml at org.wso2.carbon.device.application.mgt.common
Extra dependency to "org.wso2.carbon.device.application.mgt.core" is removed.
2018-01-18 11:32:32 +05:30
nishadi
4ea87284f2 Modified CommentAPIImpl
Reformatted
2018-01-18 11:17:05 +05:30
nishadi
a1868939a7 Modified CommentDAOImpl
Reformatted
2018-01-18 02:44:56 +05:30
nishadi
30ae09b067 Modified CommentDAOImpl
Reformatted
2018-01-18 02:42:57 +05:30
nishadi
c35ccf9888 Modified CommentManagerImpl
Changed the messages of the Exceptions.
2018-01-18 02:06:15 +05:30
nishadi
62ac3455dd Changed license year 2018-01-18 00:11:52 +05:30
nishadi
ff3eacd0ba Removed suppressing deprecated warning. 2018-01-18 00:06:41 +05:30
nishadi
a6f2486ec6 Modified Comment ManagementAPiImpl
changed returning error response message into "return Response.status(Response.Status.INTERNAL_SERVER_ERROR).entity(msg).build();"
2018-01-18 00:03:46 +05:30
nishadi
919a7a8ddd Modified pom.xml at org.wso2.carbon.device.application.mgt.api
removed extra dependencies
2018-01-17 17:27:18 +05:30
nishadi
4c1d8dfa4d Modified APIUtil
Modified the osgi contexts and reformatted.
2018-01-17 16:28:17 +05:30
nishadi
3cc15d0df0 Reformatted the code. 2018-01-17 16:06:41 +05:30
nishadi
3bfb2addbb Reformatted the code. 2018-01-17 15:58:01 +05:30
nishadi
1bbd0b1aa5 Modified CommentManagerImpl ,CommentManagementAPIImpl,CommentManagementAPI
Modified the exceptions.
2018-01-17 15:32:59 +05:30
nishadi
c1dca737f7 Modified CommentManager
Edited the comments.
2018-01-17 15:16:29 +05:30
nishadi
3bd6d03b4c Modified CommentManagerImpl and CommentManager
wrapped & thrown the sql and db exceptions with CommentManagementException and ApplicationManagementException.
2018-01-17 15:13:22 +05:30
nishadi
caa47417bc Modified CommentManagerImpl
removed catch (SQLException e) and catch (DBConnectionException e).
2018-01-17 14:27:44 +05:30
nishadi
74ea82c926 Modified CommentManagerImpl
Renamed ApplicationManagementDAOFactory.getCommentDAO as commentDAO
2018-01-17 13:36:42 +05:30
nishadi
a45ba625fe Renamed apAppCommentId into CommentId 2018-01-17 12:26:42 +05:30
nishadi
906535eb24 Modify CommentsManagerImpl
Removed Not found Exception
2018-01-17 11:51:32 +05:30
nishadi
4fb77cbee8 Modify CommentsManagerImpl
Removed throwing NullPointerException;
2018-01-17 11:45:14 +05:30