mirror of
https://repository.entgra.net/community/device-mgt-core.git
synced 2025-10-06 02:01:45 +00:00
Merge branch 'application-mgt-new' into 'master'
Add new entgra app manager Closes product-iots#104, product-iots#108, product-iots#110, product-iots#111, product-iots#113, product-iots#160, and product-iots#145 See merge request entgra/carbon-device-mgt!359 (cherry picked from commit b74351680aa622b9819cddfbf76f01906a20fcad)de8ad75bAdded aplication management component02100415Initialize application management DAOs7f6b33a0Fixes for Error handling10951510Added Response DTOc53e5d5eAdded MySQL DAOc6263ae2Added filiter to app listb808fa02Added aplication management component29bd1283Initialize application management DAOsec78984cFixes for Error handling493de22dAdded Response DTO9d5e912dAdded MySQL DAO76342ee7Added filiter to app lista15b179dAdded testng filesaba2ffecRemoved unnecessary test suites.ff211708Added application-mgt features.f09905a2Changes to DB queries345c7863Fixed APP Mgmt Features.5d8b8ab6Added DAOsb5480948fixed API version0d68322bFixing issues in db fileds954cb3e1Fixed the issue in the insterface ApplicationManagementAPI2128c3f1Added application-mgt UI feature04d1082bResolved conflicts.baed4318Added properties to platform and subscription84c64439Fixed build issues.c957894aMerge branch 'application-mgt' of github.com:wso2/carbon-device-mgt into application-mgt5361ad20Refactored Application-Mgt code.8b32cf9fAdded Security filter configs.34366f4eMerge branch 'application-mgt' of github.com:wso2/carbon-device-mgt into application-mgt5e1be78cUpdated mysql dbscript2c150081Refactored Application Mgt DTO layer.9dde7867Refactored Application-Mgt Database access layer.6abd289cRemoved unnecessary packages for application-mgt core.36d82c85Fixed issues in APPM DB scripts.0d3598d2Refactored Application-Mgt DAO layer.fa88673aChanged lifecycle management to application from released5ba2665Fixed H2 database issue in App-Mgr.43ef32b3Refactor services69ace640Refactoring services classesdd07101eFixed MySQL script23ea67deFixes for filter propertiesc89491b9Changes to schema9343032cChanges to App Management Externsions Frameworkdd6e70ceFirst cut of refactoring the code.d882a058Reverting back to runtime exceptions.810c0383Fixing the compilation failure issues.e6703f47Merge pull request #754 from sinthuja/app-mgt-refactoring242cf06fRefactoring the APP manager code, second phase.fd18ab71Fixing issues in resolving the configuration resolving.8d6e4cfaFixing issues in resolving the configuration resolving.6994d4bfMerge branch 'app-mgt-refactoring' into wso2-application-mgtb25f1466Fixed issue in Lifecycle class352c881cRefactor code41def8feAdding first cut of platform manager capabilities.b183ec3eMerge remote-tracking branch 'wso2/application-mgt' into wso2-application-mgtfe26352eAdding platform manager first API.6020b3fbAdding platform manager first API.2b0ae8c5Added creating app functionality6a18d7abFixed conflicts52b2739bRefactoring DAOsac871fdbFixed exception class to PlatformDAOExceptiond7b784b0Removed published from platforms9bc23a92Fixed the mysql script for app management59f43886Adding the update platform API.a7569456fixing the build issue due to removing the method in platform manager.e5704ac0Using the platformManger service instead of using the DAO.fe3325ebMerge remote-tracking branch 'wso2/application-mgt' into wso2-application-mgt6d6aa50bAdded functionailty to update app58eab351Merge branch 'application-mgt' of github.com:wso2/carbon-device-mgt into application-mgtd3f87a30Refactor edit apps functionality10f1158cRefactor code5811eb6aremoved externsions from apif3bca0f8Merging with master4140e212Adding Maven Code style check28f1ecfbImplementing application operations for app management64e5a15dMerge pull request #870 from chathurace/appm8f427867Resolving merge conflicts98458550Changing the check style plugin7b5b504fReverting the cahnges to API name64cfee38Reverting the change9a54c137Merging pull request #871 from Megala55484be2Added the datasourceServiceb1fc0fcfFixing minor issues related with platformb872ea2cMerge pull request #871 from Megala21/application-mgt73a0a119Merge remote-tracking branch 'upstream/application-mgt' into appme79c9b49Fixing minor issues with database queries149719d6Merge remote-tracking branch 'upstream/application-mgt' into appm_newf16b03ffFixing minor issues in closing the database statements and resultsets6605c137improvements to database transaction handling and implementing application delete.1d74d8adMerge pull request #876 from chathurace/application-mgteda5b590Adding platform removal7d191d63Fixing minor issues in PlatformDeployment2ab43c89Merge remote-tracking branch 'upstream/application-mgt' into appm_newfbef98b2Merge pull request #878 from Megala21/appm_new9bc069a9Adding Axis2Oberserver and improving the databse queries3ec1bb1eMerge remote-tracking branch 'upstream/application-mgt' into appm_newec0be018Re-structuring and adding changes after testing612905bcAdding oracle scripts and impl for PlatformManagement1ab9807dAdding postgre mssql database supports for PlatformManagement8dc7e278Adding javadoc comments1baca952Merge pull request #886 from Megala21/appm_new071e4512implementing application lifecycle management3f279918merging platform management9f76f51elifecycle management changes03e63071Merge pull request #888 from chathurace/application-mgt6e912fccAdding initial fixes for lifecycle state14b770a4Merge pull request #895 from Megala21/appm_new41fa1cb5Adding fixed life-cyle related operations for application21253f2fMerge branch 'application-mgt' of https://github.com/wso2/carbon-device-mgt into appm_new9ec12587Fixing issues with Application Management with mysqlba5f1e6cMerge pull request #898 from Megala21/appm_newc428cf10Refactoringb05b3925Merge pull request #899 from Megala21/appm_newd948d85bApp Publisher React application. Initial Commit.72f0e195Created basic directory structure03b6faa7Created the project file structure.44737750Created the login page.c7c0f62cThe base layout completed.f5feb897Adding initial application release related artifacts5a8bf10dAdding Artifacts download APISd2705b14Added the stepper and App creation first step.4d16d73bCreated the Step 2 and 3 basic forms. Code Formatting.7fd7fbb3Adding refactoring as per maven checkstyle plugin98ff1179Merge pull request #903 from Megala21/appm_newcbc061f7Changes as per the comments.884511fdFixing issues for mysql database and adding CRUD operations to application releasee4ddac22Merge pull request #908 from Megala21/appm_newdc2aa386Fixed license header and removed empty tags.9460c4fbMerge pull request #902 from menakaj/application-mgt17c23b96Fixing some issues05300893Minor fixes to mysql script and refactoringc10f4e35Merge pull request #913 from Megala21/appm_newc145b771Implimenting API classes for App-mgt Store9c31b939Fixing minor issuesc04e4d3cCommitting initial refactoring for visibility change.5278fa88Adding postgresql database support for application and applicaion release346153daMerge pull request #949 from Megala21/appm_newe54ab93dMerge branch 'application-mgt' of https://github.com/wso2/carbon-device-mgt into application-mgtee76f6cbAdding app-mgt store interface methods and implementationsf4a3eb46App-mgt store impl refactoringbc074ccfMerge remote-tracking branch 'wso2/application-mgt' into wso2-application-mgtac24413fMerge pull request #951 from amalhub/application-mgt78f8507bMerge remote-tracking branch 'wso2/application-mgt' into wso2-application-mgt887675fdCommitting first cut of modifications to the visibility manager.2d4de10cAdding some fixes for the application management and visibility management.7fc37d66Adding oracle support to application and application release05e22047Merge pull request #952 from Megala21/appm_newd0edbb8aCommitting the fixes for the database schema.ace4d8d4Merge remote-tracking branch 'wso2/application-mgt' into wso2-application-mgt783ead21Merge branch 'wso2-application-mgt' into application-mgt9656b9b7Fixing the error reported by check styles plugin.3d337ed5Merge pull request #953 from sinthuja/application-mgt319d8449Added prop types and started creating the data table component.94f12668Removed Overview section.61befd5aCreated the DataTable component.39925efaCreated the application listing and platform create components.c389a5ecAdded extra features to data table.0746c2f6Fixed platform create and platform listing components.9ce111b7Fixed application listing and form formatting.e32b6d16Added missing key attributes to the table rows.89b4e6dcApplication search feature for data table. Basic stage.b70bf91fAdded form validation and image visualization to application and platform...692ed6aaAdding some more validations fot the application management.9ea3be06Fixing the NPE in the application toString operation.7f0fe115Merge pull request #955 from sinthuja/application-mgta2e2abc7Changes as per the React development guidelines. (Changed the file extensions to JSX)56ce0392Merge pull request #954 from menakaj/application-mgt7a08f421Adding support for custom theming4df74315Refactoring6e1a48f0Modify theme supportdf59cccfMerge pull request #956 from Megala21/appm_new1e191cdfAdding Device-Application mapping implementation83f300aeMerge branch 'application-mgt' of https://github.com/wso2/carbon-device-mgt into application-mgtae80bd8bApp-mgt store mapping validatione09e1ec6Merge pull request #957 from amalhub/application-mgt137d970fApp-mgt store response refactor0e9d4037Merge branch 'application-mgt' of https://github.com/wso2/carbon-device-mgt into application-mgt5beb2b21Adding App-Mgt store implementations8186f675App-mgt store code refactors9c490d19Adding the flexibility to change the css files5614914eRefactoring the files81f427f3App-mgt store removing device type specific impl39bc1e74Merge pull request #958 from amalhub/application-mgt8f3d11farefactoring theming support591962c2Adding the first cut of base UI.aae017d6Moving the css files to public folderd2d56a3dRefactoring237f4cbcRefactoringe5ca86ccRenaming variables and adding comment9f759f8aAdding some fixes with login page.c2789ff9Moving the theme loading method to a common place549e7131Merge pull request #959 from Megala21/appm_newec025b25Adding feature for publisher ui4a880a97Adding login page redirection.3496c9c7Removing the unnecessary feature zip bundling from component.d04777a1Merge branch 'wso2-application-mgt' into application-mgt611eb785Merge pull request #961 from sinthuja/application-mgtb3d2abf9Added tags to platform create page and basic backend integration api implementation.7ff5823eAuthentication handling initial impl and code formatting according to...a4e342edCreated Authentication Handler API for Application Management.2b6f9a9eApi integration stage 2: Create and retrieve apps and platforms.4bbfa335Api integration stage 3: Defined apis for application and platform.133dc55aCode reformatting and styling.2f726c67Updating to have the parent state only.acb74c5cAdding missing files to the source.59d99732Removing the unnecessary file.d71e58b7Cleaning and removing the themes package usage.81203364Merge pull request #962 from sinthuja/application-mgt9619371cRemoved inline styling and fixed multiple form submit.a582997cChanged to camel case text.ddbaa0e6Merge remote-tracking branch 'upstream/application-mgt' into appm_new034fe931Merge pull request #963 from menakaj/application-mgt5537ee5cAdding publisher ui feature74e07170Resolving conflicts8dbaba1fResolving conflicts58442536Refactoringb4b9fffaMerge pull request #967 from Megala21/appm_new48023c5dChanging the image return to be a base6 format324147b9Reverting the changes to scss filesa1a68ff5Refactoringf56b77e4Merge pull request #970 from Megala21/appm_new1825f59eFixing the pomc951b2caMerge pull request #971 from Megala21/appm_newb9721845Changed to camel case text.52f9a0adRestored the camel case text.28d44fecMerge pull request #972 from menakaj/application-mgt0264c6c5Fixing build failure7569773dMerge pull request #973 from Megala21/appm_newdb5d71b9Integrated reactstrap components for base and app-create.828bb316Package refactoring and adding release app component.5ba21119Release and Edit application components.8ee0bd04Created Application View Component with styles.60310d3cCreated custom components for image button, notification view and notification item.c9bdceafAdding Platform TAG functionalities5f4c0ce9Merge branch 'application-mgt' of https://github.com/wso2/carbon-device-mgt into appm0fc1d360Remove unused SQL String00e3ac82implementing appmanager subscriptions391ca59eRemoved extra linesa077a293Merge pull request #978 from pasindujw/appma64a32f0Changes as per the code review.e1a948b4Merge pull request #974 from menakaj/application-mgtde43164cRemoved unwanted dependencies.3ce30dd2Merge pull request #983 from menakaj/application-mgte0bb4c85Integrated WSO2 Font package.da146bfbCreated Floating action button component.4a09b414Stage 1: Added material design colors and WSO2 fonts.f7d6bbd6Layout modifications.426dea0aMoved internal CSS files to a single common CSS and imported in index.html.cec54c3dChanges as per the code review.c0609887Merge pull request #1001 from menakaj/application-mgtf441976cMoving css files to publica foler485ff83fMerge pull request #1008 from Megala21/migrate_applicationd0a52becMerging with app management branch9a61cf87Adding support for internationalization1bcd1707Refactoringd8c74d9cMerge pull request #1012 from chathurace/application-mgt0032acadMerge pull request #1010 from Megala21/migrate_application3c76c78dMaking the icon to be returned with the Applicationce986cb1Adding the ApplicationManagement API to return the images with the getApplication request3e6c3d7fRefactoring068edaa1Changing the Storage pathafb67accMerge pull request #1016 from Megala21/migrate_application498b2c02temperory store related changes.48fbc40bAdding platform retrieval based on tag and getting platform tagsded69090Merge remote-tracking branch 'upstream/application-mgt' into migrate_application5a09c430Merge pull request #1018 from Megala21/migrate_application8a343fc6App-mgt store device validation for install410fc69bAdding changes for store.6374b5d9Merge branch 'wso2-application-mgt' into application-mgt70df40f2Merge pull request #1021 from amalhub/application-mgtb61bb7afMaking the store to read the server backend configurations from config file.0989f1acRemoving unused components.a8806501Merge remote-tracking branch 'upstream/application-mgt' into migrate_application5c23d42dAdding icon support for platformf417f785Adding icon update2fcf1c4eRefactoring813302e5Refactoringc0e2c3c2Merge pull request #1023 from Megala21/migrate_applicationb15e5329Fixing the store retrieve the backend details from config file.f1aa4b69Adding the server config to be read and used.816f378frenaming the method name.e57ff1d3removing index.js from store.66f8472dMerge pull request #1024 from sinthuja/application-mgtf58d38acAdding git ignore to avoid node modules, etc files getting committed.fc3b32b8Fixing the issue in wso2 fonts in loading the icons.4cdb1fc4Stepper header implementation stage 1.7fa3c886Api integration: Application Create steps.34ff40efAdded form validations for application create.55f3b4d0Revert "Moving css files to publica foler"b3bd70adAdded responsive styling.594996b3Modified Chip component based on Material Design specs.adad9b30Moved CSS files back to components.cba4eaaeAdded chips.3ea10491Modified platform view with better styling.3cbcefe3Added WSO2 Logo7f05b182Modified application view with better styling.ed2af138Added custom application listing table.8b310786Fixed axios not defined issue.da51c4b2Fixed table rendering issue.3c83cd9bAdded logo component, material design button styles. Replaced logo in main page.8f1c09f7Modified Floating button based on Material Design specs.6b944a4eAdded material design button styles.75427e10Added user name to the header.51aa5e53Redesigned the Platform listing based on material-design specs.1333b9c4Added missing dependency.5f430a9bRemoved npm-debug.log file and added to .gitignore.c34ab35eModified Chip design.62f19e74Added page title.42db66cdModified page title font and table hover background color.b55878d9Added i18n definitions.87aaeca8Restored absolute path in index.html.6056a433Resolved Conflicts9eb25444Merge pull request #1022 from menakaj/application-mgtb66ad9abAdding UserOptions drop down, and adding the store ui to the pom.f01f150aMerge branch 'wso2-application-mgt' into application-mgt362a2d1dAdding user login option.c750aed4Added application management apis.34b35158Added i18n definition.672833c5Modified application edit url pattern.ba5c7eb6Added button styling in platform cards.bd9a54f1Removed style loader for wso2 fonts from webpack.config.js0e0f6b9fFixed styling.7e15b408Merge pull request #1025 from menakaj/application-mgtb6304106Changed element class names.fc443227Styled 'Not found' error page.1533f85dMerge pull request #1026 from menakaj/application-mgt99af739fStepper component created and added it to the application creation modal.71875904Fixed malformed code.bde1f806Modified the Stepper footer button layout.7ec90258Modified stepper based on material design specs.ead3c74fAdded key field to data table columns and rows.97afd638Modal footer button layout styles.4a065f40Modified Switch component based on Material Guidelines.543dd455Removed unnecessary div elements.20b58330Refactored platform listing imports.ddfbf78eMinor changes in switch and step components.bf974f53Changed import84883203Font change in Chip component.4779521cCreated platform create stepper and content.a526ec14Removed console.logs24aef45dMerge pull request #1027 from menakaj/application-mgt596b25a5Adding logout option.4d65bb70Adding jaggery.conf to store.251fba78Merge branch 'wso2-application-mgt' into application-mgt241392faAdding store features and adding internationalization for the User Options component.418e0afcUpdating the license header.370e1a8aMerge pull request #1028 from sinthuja/application-mgta37cdbdbOptimized imports747fe5d8Merge pull request #1029 from menakaj/application-mgt179e34aaAdding support for application category7a8f3c64Refactoring0fefa094Refactoring57c91bc2Making the auth handler to be compatible with the store and publisher.1a4fa74eRemoving the backslash in the path.f45ba70bMerge pull request #1031 from sinthuja/application-mgte26d8592Adding initiail changes89495d9cApp-mgt-store Adding version name and code simplificationd8ff31b6Adding remaining changesa1806eb8Refactoringb32c59b8Refactoring300e7a71Changes according maven check style plugin470ec89fMerge pull request #1030 from Megala21/migrate_application90bf818fMerge branch 'application-mgt' of https://github.com/wso2/carbon-device-mgt into application-mgtc0ffb024Code formatting659713b5Code formatting9c364e66Merge pull request #1032 from amalhub/application-mgt73e820b7Fixing code formatting issues in DataTable components.5756fa15Fixing code formatting issues in Platform related components.17bce6feAdding the store user interface. (#1084)ede7680bFixed build failure9300d27fMerge pull request #1085 from lasanthaDLPDS/application-mgtf4c3a0b1Remove unnecessary pages and units96ad19f6Merge pull request #1086 from lasanthaDLPDS/application-mgt6f2f9854changing the sso config for storedc6ab1dbresolved issues and resolved merge conflicts with master branch81be917eadding application registrating functionality and partial DAO modefications45c668ecadding DAO methods for pplication managemente99f6ba4Merge pull request #1081 from menakaj/application-mgtcac80fc2Merge pull request #1087 from Kamidu/application-mgtd196e3e0Adding DAO layer changes460bda42adding role restriction DAO layer implementation1c639395adding app manager changes - not completec21ddceaadding application and release management implementation11ea50e8Adding AP improvements(incomplete)667f997fmerging with master branch05b12216increase versionf8c5ff95Device API layer into two sections. named as store and publisher486aac1cadding application release creation functioanlity (NC)393d1163resolve pom issues627aaab2Adding Comment Management APIb9bb6830Adding Implementation of Comment Management APIdbd9ad77Modified API Util46f087f2Adding Comment Management Exception6dbdddb3Adding Comment Manager Interfacec00345e7Modify Application Releasea0ef2dbaAdding Comment849474deAdding Pagination Request for application-mgt9f67e527Adding Pagination Result for application-mgt9f447956Modify Configuration87d1928fModify Configuration Management50966546Adding Pagination Configuration for application-mgt35e41742Modify Application Management DAO Factory99857c9aModify Util64e8faa1Adding CommentDAO Interface6b6a5bdbAdding Comment Manager Interface819034f9Adding Implementation of Comment Managerf7caa02bModify pom.xml at org.wso2.carbon.device.application.mgt.common7fb0faa2Modify pom.xml at org.wso2.carbon.device.application.mgt.api5dce27e2Adding CommentDAOImpla6434d91Modify APIUtil7849d093Modify APIUtil0f4e4ea4Modify CommentManagementAPI06059cacModify CommentManagementAPIImpl453559a0Modify CommentManagementAPIImpl99b916d6Modify Commenta1911432Modify PaginationConfiguration4fb77cbeModify CommentsManagerImpl906535ebModify CommentsManagerImpla45ba625Renamed apAppCommentId into CommentId74ea82c9Modified CommentManagerImplcaa47417Modified CommentManagerImpl3bd6d03bModified CommentManagerImpl and CommentManagerc1dca737Modified CommentManager1bbd0b1aModified CommentManagerImpl ,CommentManagementAPIImpl,CommentManagementAPI3bfb2addReformatted the code.3cc15d0dReformatted the code.4c1d8dfaModified APIUtil919a7a8dModified pom.xml at org.wso2.carbon.device.application.mgt.apia6f2486eModified Comment ManagementAPiImplff3eacd0Removed suppressing deprecated warning.62ac3455Changed license yearc35ccf98Modified CommentManagerImpl30ae09b0Modified CommentDAOImpla1868939Modified CommentDAOImpl883ac442Adding travis build config4ea87284Modified CommentAPIImplf02a0b9eModified pom.xml at org.wso2.carbon.device.application.mgt.common08a09109Merge pull request #1160 from madawas/application-mgt-newda0b1470modified commentsManagerImpl3b86f8a4CommentId changed into commentId27d3862aCommentId changed into commentId0115ebc1Adding travis build config7242c63eCommentId changed into commentIdeced883eError response message changed.8f8ec9a8parameter in the consumes annotation changed to application/json40771cbfModified CommentDAOImpla321bf93Modified CommentsManagerImplc50de8e2Modified CommentsDAOmplde78869eMerge pull request #1144 from NishadiPrasangini/AppManager02415dfdmerge with upstream masterae1c99f6Merge branch 'master' of https://github.com/wso2/carbon-device-mgt into application-mgt-new317386afbump version of the app manager component56900751Added app release creation method and fixed issuesfdac04ddcomplete app release getting flow and fixed related bugsc392f0e5merge with upstream and fixed conflictsf17c36d1Added app release updating fucntionality and fixed APPM related bugs669881eaadding appliction release functionalites and fixed build failurefb8d9dd4refactored the source and fixed some bugs8403455fMerge pull request #1182 from lasanthaDLPDS/application-mgt-new9b1820dcAdding Lifecycle Management functionalities and fixed related bugs6792c212Rmoved the lifecycle managemta0fa98d5Merge pull request #1185 from lasanthaDLPDS/application-mgt-new690eff66Refactoring mobile application subscription APIf66ff60aAdding a method to retrieve Application by UUIDdebe93cbImproving application subscription APIb911c9e1Adding entity application mapping to the database09a2c484CommentMgtTestHelperc216048bTest Resourcesb60f3f0aCommentManagementApief059800CommentManagementAPIImplc3f8d159CommentManagementAPIImplc26903c4CommentManagementAPIImpl7d22c456CommentManagementAPIImpl072d8b64CommentManagementAPIImpl471e6e3bCommentManagerImpl20c1ba10CommentManager97915e29Application mgt api Pom.xml changed37f595d3Added CommentManagementAPITest class87d48dcaReformat CommentManagementAPITest class891c3410CommentManagementAPITest class9936bda7CommentManagementAPITest classdff3cf76Reformatted the codesdab92081Add new methods55a005e9Add new methodse70899a1Add new methods0ac0efcfAdd new methodsf8236899Changed CommentManagementAPIImpl2981a153Changed CommentManagementAPIImplb5c28943Changed CommentManagementAPIImpl565087f4Changed CommentManagementAPIImpl8b4e3ec0Merge pull request #1186 from madawas/application-mgt-new2cbf78d4Fixed issues in Generic DAO Implc3d0b375Adding App storing functionalities5ee99833modified application management store API460a356bAdding Application management functionalities and API6b0e2811Adding APK file validation functionalty9f609964adding application typesef0e7ee7adding sorting orders6e3cc085Fixed application getting issues and improved the application getting functionalityc3f04eeerefactored the Application management DAO layer7278408bRefactored the source codeb0eafe71Fixed application management issues and improve functionalitiesfc30d00eFix minor DAO layer issues1b745132Remove application release management service source.8b505a77Reformat the DAO layer and add application release updating SQL logicf83b4669Format the application management API source6f18a70dAdd application release updating logic into the service layere00aa1beFix build failuref9559a51Remove tenant id from the Application Release bean71aa6762Refactor APPM DAO Layer976d0ad6Modify application retrieval APIb45d11bfFix issues in swagger definitionc95733a7Add iOS applications and Web Clip publishing functionality0b78df50Add application deleting functionalitya05c412dCopy publisher and store web apps into IoTS webapp folder47a02dc9Add permision check and app status check for deletiond5b2bfd5Modify Application and Release validation methods6c65aef2Remove unnecessary importsc755dc01Add Application updating functionalitybc162d05Merge pull request #1199 from NishadiPrasangini/AppManager797652b7Merge branch 'application-mgt-new' of...d293b5b1Fix merge conflixts9379c2aeFix build failure1cce5d7eImprove app managing functionalties and refactor the sourcec9502232Refactor the source2fd76011Refactor and modify storage management logice5ef68faImprove comment management26568273Improve app creating logic and comment management4316cb0eAdd javadoc comments and improve logic22222512Modify isRestricted data type20118437Adding APK parcing and ipa parsing capability05d5ab2eMerge pull request #2 from inoshperera/application-mgt-newa01ecdb9Modify ArtifactParser and get the version of an artifact through ArtifatcParser34fad87cFixing the conflictsf9ec82e4Merge with upstream34fe4278Add swagger annotations to ApplicationRelease bean3e2f757cImprove lifecycle management61c0ebc9Adding unit tests case infrastructure to core and adding unit testcases for ArtifactsParser.java14ea6dbbfixing conflicts57efe389Merge branch 'application-mgt-new' of...625589deMerge pull request #3 from inoshperera/application-mgt-new18c3ee23Adding the changes for the app manager0dea5cd0Resolve conflicts93af2920Resolve conflicts4c5cdc75Adding application release creating logicf861134fMerge branch 'application-mgt-new' of...b3874ee1Refactor the sourceff968842Refactor the sourcea6cdbb85Adding unit test for StorageManagementUtilTest.javae6f099d4Merge branch 'application-mgt-new' of...8983fd6dformatting fixes10528886Test Case for StorageManagementUtilTest (#4)6a9cec4cAdd scopes to publisher mgt API (#5)000ce6eeDB Scripts for App Manager (#6)6066d93eAdd review management421dc5edMerge branch 'application-mgt-new' of...7d59c342Application mgt new (#7)4ded86a1Add app manager osgi fixes6da8dadaImprove comment managementf5615c5eMerge branch 'application-mgt-new' of...7630cb0fFix the osgi issues1ea47c83Improve review mnagement WIP1bee1a29Merge branch 'application-mgt-new' of...b883fc1cAdd CIc23770dbFix the osgi and validate issues10663240Merge branch 'application-mgt-new' of...b38c1e11Merge branch 'application-mgt-new' of...d9daffceRemove review management tests1484a74fUpdate .gitlab-ci.yml05141eadMerge branch 'application-mgt-new' into 'application-mgt-new'9df8660bAdd package name to ApplicationRelease and change ApplicationType enum8ff0f275Merge branch 'application-mgt-new' into 'application-mgt-new'48f0636fFix DAO layer issues and improve review managementd1095826Merge branch 'application-mgt-new' into 'application-mgt-new'a4e17ef9Adding app install basics WIP874a83cefixing conflictsb856aa36Merge branch 'application-mgt-new' of...a0030a9badding seriasation IDdac15e52Merge branch 'application-mgt-new' into 'application-mgt-new'21a87d8bfixing app get and few issues in app create2e0bacbdBug fixes in app creation logic56048907Merge branch 'application-mgt-new' into 'application-mgt-new'3e16ec96Improve review management45624325Complete review managementb0520ac9Refactor the source:75008e38Fixes to get create app working27e4dc14add created related fixesc7956b7aFix service registering issue4512a4e2working state on happy path app create1c124f45Merge branch 'application-mgt-new' into 'application-mgt-new'ae476d85fixing conflicts107e46a0App create fixedbe6f7288Merge branch 'application-mgt-new' into 'application-mgt-new'f1e0b1a4adding get app by ID69e172cfconflict resolvingdf65b685app get by IDf6532e2eMerge branch 'application-mgt-new' into 'application-mgt-new'23e3732aFix build failured038291fMerge branch 'application-mgt-new' into 'application-mgt-new'7ecaf232Fix store API deploying issue1e8b0f24Merge branch 'application-mgt-new' into 'application-mgt-new'ea6a6446Improve app manager functionalities6f020076Fix API tags registering issuee5559b65Merge branch 'application-mgt-new' into 'application-mgt-new'94d3f1b3Fix SQL issuesabf9c05fImprove applications retreving methodf4e1ca68Improve publisher APIs36cb2f61Merge branch 'application-mgt-new' into 'application-mgt-new'409f6fceFix get lifecycle issueb283c1dfImprove lifecycle management2c9ea2b5Fix lifecycle adding issuedeb50133Merge branch 'application-mgt-new' into 'application-mgt-new'4e7f1e40partial fix on app update apis7dd7dc8dpartial fix on app update apis -2dbc38271fixing conflics and fixes to app update APIs853d0957conflict fixesd9d0d0a5add getLifecycleState checka3b8cef1Fixing connection issue, dao layer fixesba0dec38Merge branch 'application-mgt-new' into 'application-mgt-new'4692eb5fImprove review management functionalities54cee927Fix transaction handeling issue1e4d14d8Fix review managing issuesf37a478aRefactor the source7388bcadMerge master branch9978af09Bump APPM versionbd7da87eMerge branch 'application-mgt-new' into 'application-mgt-new'74be4d8aImprove application releases getting logiccd28edc6Filx application getting API issue1a6a391aMerge branch 'application-mgt-new' into 'application-mgt-new'425938e3Add app release inserting APIc1a23bfeAdd create new app release API88417415Fiz merge conflictsbc8e91a7Upgrade application mgt version7e139763Upgrade app management featureb6a0b75fFix build failuref810c1a7Fix minor issues and add app manager UI into the featurec8daa00aMerge branch 'application-mgt-new' into 'application-mgt-new'c4c92f0fAdding application management initial pub UIa7a8a9c6Improve APPM publisher functionality and add UI sourcebc3e2fc8Merge branch 'application-mgt-new' into 'application-mgt-new'e2acb5c4Fix application installing issue911bc6f9Fix application getting issue0cb26066Fix lifecycle instance initiating issueb06e6ee7Merge branch 'application-mgt-new' into 'application-mgt-new'fbcb1d0eAdd modification to application creating logic4d4507afDeploy react app as war file5a3f3a3dModify .gitignore filecd60f25bMerge branch 'application-mgt-new' into 'application-mgt-new'49c1279dAPPM publisher UI deploying as web app73a8ed8bMerge branch 'application-mgt-new' into 'application-mgt-new'98d14b08Fix merge conflicts14f57e84Merge branch 'application-mgt-new' into 'application-mgt-new'30f4c6ffMerge branch 'master' of gitlab.com:entgra/carbon-device-mgt into application-mgt-new1e7bf6c0Merge branch 'application-mgt-new' into 'application-mgt-new'd7c92612Add new UI theme dependencies69b65aa0Remove unnecessary filesd4090e03Merge branch 'appmnew' into 'application-mgt-new'f010304eAdded ant design to the publisher6ad21b47added new files05d2e3daMerge branch 'application-mgt-new' into 'application-mgt-new'b440c571Improve APPM publisher logic2a5cc97dFixed routingea2dd0a0configured of LESS Module in webpack9361a700Removed comments3dc7758dCreated login pageb3fb1f22Add modification for app manager publisher29efebdbMerge branch 'application-mgt-new' of gitlab.com:entgra/carbon-device-mgt into application-mgt-newed780cbeFix app release deleting APIc7cb3319Added routingsa29ce189Merge branch 'application-mgt-new' into 'application-mgt-new'3c9ba37bMerge branch 'application-mgt-new' of gitlab.com:entgra/carbon-device-mgt into application-mgt-new9dc885e8Fix minor issues in APPM publisher40e9fbebCreated Component for Sub Routesdc518dccAdd modification for app getting logic7ee73849Changed webpack to absolute path15f38ba1Added login to router6e25a0bcImprove DB connection handlingcf11ed67Adding todos5717e81cmodefying DAO layer02b99eb4Merge branch 'application-mgt-new' of gitlab.com:tcdlpds/carbon-device-mgt into application-mgt-newb2260b69Add modification to app creating flow9876d868Refactor the source536a2ca8Created new routes with router configab4b5d17Created Layout for dashboard3c50af2aRemoved unused routs93c935f7Merge branch 'application-mgt-new' into 'application-mgt-new'f8ec1be9Overrided css class for headerc9045875Created class for add new app1c4779d7Created Apps tablee3fcf68cAdded filtering optionb591bedeadded steps to create app0c5ce12eMerge branch 'application-mgt-new' into 'application-mgt-new'6ba46facchange xml file and add relevant permission related to app mgmt lifecycle3bb2e8a5Add new method to put permission taking String parametersdc5547bbfix the dependency issue due to using DeviceManagementDataHolder when getting UserRealmbb808fd9Rechange the app manager lifecycle xml file, add comments and headerse5fb01f2Add application create fixesf0633fb2Fix SQL issuesa84ff254Fix h2 sql issuesf714feb2add new methods to check whether the app is updatable or installable in a given state968ec07cAdd Fixes for h2 sqlc67117ebchange application-mgt.xml class related to the test cases4c9f0936Fix server startup issue.64507c10ensure unit tests related to LifeCycleManager running without issues8fa6abf6Fix h2 SQL syntax errors74e4b2caFix app adding issuec51176f2fixed logo370605d2completed designing apps pageb5dc76d0removed unused importsc8b983fbAdd seperate class to facilitate unit tests related to the LifeCycleManagementTestae1d0cbfcreated the step one59d3407cmoved items to leftf4ec3e21added all form items to single page2f0f47feFix Application Creating Issue017aa7afRemove commented code6a52997aFix syntax issue in get application call329499a9resolve conflicts52a91e26Merge branch 'application-mgt-new' of...6fd321bffixed logod47651c5completed designing apps pagea1f6bc99removed unused imports075a9737created the step one7e4cc369Fix app hash value getting issue03dc9e88Improve app create responseb06a908fModify Entity Class name071ef71cFix app installing issue for same package name2916574cMerge branch 'application-mgt-new' into 'application-mgt-new'a79b6009Fix merge conflictse467453fIntegrate lifecycle management functionality36127cecadded semicolons in line endingsf260dfdcchanged layout of add nuw app in publishera2ff850dchanged layout of add nuw app in publisher42a91ac9Merge branch 'application-mgt-new' of...e747c0bdAdd API for getting applications380d8f65Merge branch 'application-mgt-new' of...19f088d2Add get application and add new release APIs6c543922Add ne APIs and refactor4681ac25Merge branch 'application-mgt-new' of...42a4196eFix token generating for APPM and add WIP codee93de0b6Merge branch 'application-mgt-new' of...eeb4d961Created folder structure for redux6dbcb37eSend request from login page6fe5b11dFix app manager access token creating issue369bc869Merge branch 'application-mgt-new' of...71c79273Merge branch 'application-mgt-new' into 'application-mgt-new'cf8e23ffFix get applications API response18f4f877completed login with redirection96fc71c0Fix minor issues in APPM proxyf5c1eea6removed console logs9f402d5fPublisher: added default child routec64cb805Merge branch 'application-mgt-new' of...e1bad465Fix Handler issuesee80e42ePublisher: added basic redirection to login page if not logged in281511d9Merge branch 'application-mgt-new' of...c9f92891Add application artifact dowloading APIf1672ee9Add artifact download API0095d188Merge branch 'application-mgt-new' of...707d8851Improve APPM proxy response38c7f621Additional methods and unit tests to LifeCycleManagerf7027213Merge branch 'lasantha' into 'application-mgt-new'dd5109c2Merge branch 'application-mgt-new' into 'application-mgt-new'7c256630Merge branch 'application-mgt-new' of...40eecf75Merge branch 'application-mgt-new' into 'application-mgt-new'39b1f0b7Remove v0.9 APIc2afa112Remove v0.9 API source84e3beb6Fix merge conflicts9fab4883Add changes in master branchb90ceac8Merge branch 'application-mgt-new' into 'application-mgt-new'460394c9Improve application edit functionality5865cecfMerge branch 'application-mgt-new' of...7703d217Add App updating APIc1cf3fabfixed error redirectionb3d87186listed apps9a580e51fixed routing5c6a3cbaImprove web app authentication1c86d57dchanged routes7301d983Merge branch 'application-mgt-new' of...8bf0a673Add missing log line5837e53dFix scope issue in APPM publisher4babef62Merge branch 'application-mgt-new' of...93fa110aFix App update issuec3689010Merge branch 'application-mgt-new' of...68b97952Fix application update issue6e711ed1Merge branch 'application-mgt-new' into 'application-mgt-new'9c80756crefactored Apps Componentca1f147cfixed wrong redirection1cd23097created component to load apps321a2e90Created component to list apps1b3390f1Load data from Redux state6ce3ecebget Data42727786changed platform to devicetypefeb68e9aChanged hard coded urls to config44822459Merge branch 'application-mgt-new' into 'application-mgt-new'eb6998f2Fix application release update method4864d5f8moved components to sub directory31ce3fb9changed action types to single objectfffad9eedisplayed modal title from redux9843e6f0loaded modal with redux04c03c9fFix application release adding API9dc007c1loaded releases in modal (basic view)89cf2543Merge branch 'application-mgt-new' of...d79c11c7Add admin API interface for app publisher5399ae1aAdd subscription management exception class6dafe59eImprove application create functionalityb991ed22Improve get applications method20b13d15changed Icon and color on App Cardccc7021dMerge branch 'application-mgt-new' of...16e2da3cAdd API for getting application release1d14bc39Link release to Release component795acbe2Merge branch 'application-mgt-new' of...3a5cf16cMerge branch 'application-mgt-new' of gitlab.com:entgra/carbon-device-mgt into application-mgt-newf95f8727Add application release deleting API1712792ddisplay release1100db4dAdd lifecycle retrieving API7ef9485bFix issues in lifecycle retrieving APId0f48a2cRemove lifecycle graph classes79d09ecbMerge branch 'application-mgt-new' into 'application-mgt-new'8926e7ffMerge branch 'application-mgt-new' into 'application-mgt-new'1900d1d1Add frontend-maven-plugin7e3ec78cMerge branch 'application-mgt-new' into 'application-mgt-new'018d078eImprove life cycle manager6d9c5223viewed basic diagram in lifecyclea3798b8bcreated util to auto arrange nodes in LifeCyclee1589575Merge branch 'application-mgt-new' of...e293a236Add application delete admin API07e7d961Merge branch 'application-mgt-new' of...a3d75df8Add lifecycle adding API6d4252a5Fix issues in lifecycle adding method38006c8fFix issues in lifecycle management featuref93185a1Improve publisher jax-rs logicf3abf07dMerge branch 'application-mgt-new' into 'application-mgt-new'29e06ddfMerge branch 'application-mgt-new' of...6a67e592Get lifecycle from API62e0430dCreate lifecycle diagram1c8d5bfcCreate lifecycle diagram3cb9fd3aMerge branch 'application-mgt-new' into 'application-mgt-new'a9a608bcAdd APIs for getting registered tags and categories3eb69a9fImprove the format of category and tag classes69837ccdMerge branch 'application-mgt-new' into 'application-mgt-new'1a3d3215Add API for delete an application tagb39a52fdCreate new action for lifecycle modal91171029add test cases438577dcremove node jse39b34afremove node jsed30867fAdd APIs which are related to application tag management70440cb8Merge branch 'application-mgt-new' of gitlab.com:tcdlpds/carbon-device-mgt into application-mgt-new9257b072fix the saving location48d606bdMerge branch 'application-mgt-new' of...c2018da2Fix issue: Publisher6b9d24f8Create action for change lifecycle7f70dd96Merge branch 'application-mgt-new' of...1b0983daFix isues in app release updateb4643d84Add tag managing APIs for app managerbe992c4badd APIs for managing caregoriesc6440a77Add support for application category list adding for an application.b48fa9dfFix minor issue in App publisher interfacef356b0dfImprove APPM publisher APIs8a6411baAdd APPM store APIs for getting application data7b2cd886Merge branch 'application-mgt-new' into 'application-mgt-new'25d95699Add APIs for APPM review managementabee848erender Lifecycle from new library35a62ae5Merge branch 'application-mgt-new' of...a1b8632aImprove review management03ae3042Fix lifecycle changing issue5ea379dfImprove review management and lifecycle management in APPMb19c79bbCreate action for change lifecyclec5826424Merge branch 'application-mgt-new' of...fdd9d77aCreate change lifecycle function756324d8Fix minor issue in publisher ui lifecycle6300b7ffChange invoker call of lifecycle in publisher ui26fa7ae1Change invoker call of lifecycle in publisher ui6e3742afAdd APIs for APPM review managementbdca7640Merge branch 'application-mgt-new' into 'application-mgt-new'726739a8Fix merge conflicts1c5bb8c0Merge branch 'application-mgt-new' into 'application-mgt-new'569809b1Add API to update an application release reviewe8743f00Add admin APIs for review management15dac5bcAdd review deleting functionalitybd80f5d4Merge branch 'application-mgt-new' into 'application-mgt-new'14db806fFix lifecycle not updating issue753a3478Display screenshots and iconcdca1900Add headers with viewport meta tagc99d5723Make layout responsive7c593d83Add APIs for subscription management8096322fMerge branch 'application-mgt-new' into 'application-mgt-new'64747a8cMake layout responsive9c9790f2Merge branch 'application-mgt-new' of...e59ed1d8Load screenshots from array8071d926Merge branch 'application-mgt-new' into 'application-mgt-new'ab841939Add improvement for user subscription method in APPMc1c821e0Add device subscription functionality for APPMefa17d2eMerge with upstream master7b8e6822Add minor fixes in APP subscription flow199e924eMerge branch 'application-mgt-new' into 'application-mgt-new'06e9591eFix device-mgt operation log displaying issue06a8b3e1Merge branch 'application-mgt-new' into 'application-mgt-new'0a884812Improve APPM subscribing method35f6cd64Merge branch 'application-mgt-new' into 'application-mgt-new'9c45f907Improve APPM subscribing method93d29e06Improve APP subscription API19a758a2Fix merge conflicts44287d4bMerge branch 'application-mgt-new' into 'application-mgt-new'2ca6637bCreate APPM's basic store view443a0830Merge branch 'application-mgt-new' into 'application-mgt-new'45c7924eImprove review response in APPM4ddc50e9Add review managemente Admin API mappingb244208cImprove review management interfacedd707b98Merge branch 'application-mgt-new' of gitlab.com:entgra/carbon-device-mgt into application-mgt-newb6174243Add component to display reviews in APPM Store121a7435Merge branch 'application-mgt-new' into 'application-mgt-new'e41742b7Improve app subscription functionality8b3761fcFix merge conflictsc0398949Refactor App subscription methoddd780352Improve APPM subscription handelingf1c783cdImprove APPm sub storing method52c7a7ecImprove app subscription functionality0c939c54Merge branch 'application-mgt-new' into 'application-mgt-new'aa6f6402Merge branch 'application-mgt-new' of gitlab.com:entgra/carbon-device-mgt into application-mgt-new9dad03b7Improve category adding APIcf658bf9Imporove APPM subscriptions3e0360a6Improve app subscription functionality15764149Merge branch 'application-mgt-new' into 'application-mgt-new'a8782461Merge branch 'application-mgt-new' of gitlab.com:entgra/carbon-device-mgt into application-mgt-new0ae7479dAdd web clip support for APPMe0f2d1e1Improve app subscription functionalitye97ff113Merge branch 'application-mgt-new' into 'application-mgt-new'28bc9f3aImprove web clip registering in APPMd241c9faMerge branch 'application-mgt-new' of gitlab.com:entgra/carbon-device-mgt into application-mgt-new9b66b8e4Fix issues in category updating functionality77fa8cd6Improve app subscription functionality18cf4c5aMerge branch 'application-mgt-new' into 'application-mgt-new'1b5d9565Merge branch 'application-mgt-new' of gitlab.com:entgra/carbon-device-mgt into application-mgt-newbe7c1005Improve web clip registering method76b34b32Add gson dependency to commonsc9c4d7a6Android enterpise app install payload creation857f9057Modify setting app typeefc660adMerge branch 'application-mgt-new' into 'application-mgt-new'3179653bAdd APPM public app supporta5694371Improve app subscription functionality0ef803c2Merge branch 'application-mgt-new' into 'application-mgt-new'3135d71aMerge branch 'application-mgt-new' of gitlab.com:entgra/carbon-device-mgt into application-mgt-new4829d697Merge branch 'application-mgt-new' into 'application-mgt-new'c0ff4ba3Add temporary button to install269c6486Merge branch 'application-mgt-new' into 'application-mgt-new'62d6abe6Fix delete category issue3c6ba111create component to install app by users368186f5Move App Manager Request Handler to a New Component92fd8a62change 401 redirection in APPM store Uia9de6af5change 401 redirection in APPM publisher Ui316f93b1Remove unnecessary loga5ffc12eMerge branch 'application-mgt-new' into 'application-mgt-new'29b2c41cAdd iOS enterprise app install113be7e6Create components to install by group & role13d2f072Merge branch 'application-mgt-new' into 'application-mgt-new'9f7b05a5Merge branch 'application-mgt-new' into 'application-mgt-new'caa3717dCreate components to install by deviceb56430feDisable install button when selected nothing33661290Remove redux from release view in store164b3415Change routes in store2260bd00Implement GET/POST/PUT/DELETE methods and refactor module name7b682a35Fix typos in app installation components13960f77add device type versioning APIsf32f38a0Merge branch 'device-type-version' into 'application-mgt-new'4a38f877Pass props via routerd188b18bRemove redux from detailed rating componentff7158bfRemove redux from APPM store3a3de0ffRemove redux from apps table componentf92e2087Merge branch 'application-mgt-new' into 'application-mgt-new'a1ba80f0Merge branch 'application-mgt-new' into 'application-mgt-new'c0e30184Android enterpise app install payload creationf372ba20Modify setting app type93a5fe87Improve app subscription functionalityb88b4a4aImprove app installation4aa42aedImprove app release adding methoda0f28ce9Improve APPM review management7f0be5f2Merge with upstream master061317c4Merge branch 'application-mgt-new' into 'application-mgt-new'4d8446ffFix device mgt h2 DB script issue33521bcbMerge branch 'application-mgt-new' into 'application-mgt-new'f130351aImprove and refactor APPM source48c87384Merge branch 'application-mgt-new' into 'application-mgt-new'129ff794Change api requests in publisher4581238cMake banner uploading as optional.43d16268Merge branch 'application-mgt-new' into 'application-mgt-new'b41e0f38Completed Manage tag component704ef44dFixed api calls in store62475867Merge branch 'application-mgt-new' into 'application-mgt-new'6c0bc623Fix review add DAO issuecb84151cMerge branch 'application-mgt-new' into 'application-mgt-new'7eac984eImprove app getting functionality in APPM publisher6cc9d816Fix minor issue in review management34a14aa9Improve review management DAOb2650f5cMerge branch 'application-mgt-new' into 'application-mgt-new'e67feefeMake banner uploading as optional.ebc72069Change api requests in publisher9638081bFix review add DAO issue937c0868Improve app getting functionality in APPM publisherac817c61Fix minor issue in review managementef224a75Fix remaining api calls in APPM UI756999a1Fix APPM deadlock issue in review managemente6f54646Merge branch 'application-mgt-new' into 'application-mgt-new'723a605cFix merge conflict8a36baffFix invalid package name1d2ecc5bRemove dummy review915a4cafMerge branch 'application-mgt-new' into 'application-mgt-new'65c102ebCreate new lifecycle component in APPM publisher UI05d23272Complete lifecycle component in APPM publisher UIcaa3ae76Merge branch 'application-mgt-new' into 'application-mgt-new'0e4234dbRetrieve session auth data from the header value X-Platforma8843711Fix issue with auth data persistence keycd9e3e52Implement multipart request handling through invokeraaf4e5dcRemove older App Mgt handler sourcef15fdae8Refactor ui request interceptor7f541a07Merge branch 'application-mgt-new' into 'application-mgt-new'a4f7984aImprove app creating method by validating supported OS types in the request.822dc090Refactore codeaa247bc1Improve publisher review management340d28c0Improve UI intercepter responseef8e7314Merge branch 'application-mgt-new' into 'application-mgt-new'b7e6fed1Construct artifact download URL by using sys propsae91bb3aMerge branch 'application-mgt-new' into 'application-mgt-new'a3a485ddCreate component to add application9180df4fMerge branch 'application-mgt-new' of...66ce5889Change add app api call in APPM Publisher uie846207aMerge branch 'application-mgt-new' into 'application-mgt-new'51fbee44Improve ent app release updating flow9bf880cbImprove ent app release update method0d0a1c3bFix app registering UI issue73979a9cMerge branch 'application-mgt-new' into 'application-mgt-new'c6a96d66Fix possible NPE when media type is not specified5482c12aImplement logout handler9cf570c4Refactor Login Handlerd110aa66Merge branch 'application-mgt-new' into 'application-mgt-new'f1c99a5bCreate dynamic component to create applicatione5c37ca2Complete add app functionality in APPM UI79543df6Merge branch 'application-mgt-new' into 'application-mgt-new'fc26e299Completed add release functionality in APPM UIe0e63014Add app release updating featurec6dc68a3Merge branch 'application-mgt-new' into 'application-mgt-new'76050a1aMerge branch 'application-mgt-new' into 'application-mgt-new'c62207f6Add twitter emojis to reviews1ab3cd0cMerge branch 'application-mgt-new' of...46f39c09Add appm device subscription update featurec3a5fbbeMerge branch 'application-mgt-new' into 'application-mgt-new'3e3d8fe1Fix app install functionaity in APPM UIf3b5a374Merge branch 'application-mgt-new' into 'application-mgt-new'29434aceFormat and improve APPM publisher service34ec7f78Merge branch 'application-mgt-new' into 'application-mgt-new'f1637224Pack request interceptor separately and remove X-Platform header870b5c34Merge branch 'application-mgt-new' into 'application-mgt-new'd0ca2ec1Completed edit release functionality in APPM UI519cb163Merge branch 'application-mgt-new' into 'application-mgt-new'f3a4abb1Change invoker uri and remove headersafa6b54cCreate component to edir releaseff2524a2Merge branch 'application-mgt-new' into 'application-mgt-new'feff5602Improve and format APPM DAO sourceb401335bCreate component to edit release792e5244Merge branch 'application-mgt-new' of...56fc3f84Improve appm source and device subs update logicf76e6c94Completed edit ent app basic functionalityb827ba06Merge branch 'application-mgt-new' into 'application-mgt-new'4ad87b4eMerge branch 'application-mgt-new' of...b4c84b1dMerge branch 'application-mgt-new' into 'application-mgt-new'f66ad9ddCreate filter payload in AppsTable component1f175bc1Merge branch 'application-mgt-new' into 'application-mgt-new'7675f5a3Fix cannot remove child issuef5689042Create component to edit review7296e386Format APPM sourcea5d39e76Improve review update logic30a6b3eeFormat APPM source23b05430Merge branch 'application-mgt-new' into 'application-mgt-new'aaefdb36Merge branch 'application-mgt-new' of...2d2efb1bComplete edit release functionality72fbd7d3Merge branch 'application-mgt-new' into 'application-mgt-new'27373ef3Move review delete functionality into store28ff065cImprove app release getting logicded64aa1Merge branch 'application-mgt-new' into 'application-mgt-new'6e9fd255Complete delete review functionalityacc42c2cMerge branch 'application-mgt-new' into 'application-mgt-new'4aa2ea65Remove disabled lifecycle states in change lifecycle component345125c0Merge branch 'application-mgt-new' into 'application-mgt-new'f48f939eFormat APPM source4f1796e2Merge branch 'application-mgt-new' into 'application-mgt-new'093d31a6Fix app loading issue in publisherb5ecee56Merge branch 'application-mgt-new' into 'application-mgt-new'9059bc3aFix UI issues in APPM8108122bMerge branch 'application-mgt-new' into 'application-mgt-new'60ac2b64Add configuration to change theme color in APPM publisher UIc65c0fb0Fix Theme change issues in publisher UIe5e7dc5bAdd theming feature to storea5f75df9Change error messages in publisher1ec26cefMerge branch 'application-mgt-new' into 'application-mgt-new'4d59b8d9Add UI improvemnts to APPM UIb8271779Merge branch 'application-mgt-new' into 'application-mgt-new'a372e424Improve APPM logic8d3611d0Fix app release artfact updating issuefce3596eMerge branch 'application-mgt-new' into 'application-mgt-new'68492227Fix device load issue in APPM store25284d54Merge branch 'application-mgt-new' into 'application-mgt-new'a34c98aaFix app install issue in APPM storeaef5b84bMerge branch 'application-mgt-new' into 'application-mgt-new'fcc95318Improve app subscribing API URLsf24cc434Merge with master branch43cb9e9eMerge branch 'master' of gitlab.com:entgra/carbon-device-mgt into application-mgt-newe8aa337dFix merge conflicts86fb8b16Improve app subscription flow198bfc11Fix app installing issue in APPM4c79f3f1Improve APPM MDM configs38216ecdMerge branch 'application-mgt-new' into 'application-mgt-new'62d0a048Get configuration with React Context in APPM store151ca7d5Remove origin from configuration file in APPM stored8ce0ec7Merge remote-tracking branch 'upstream/application-mgt-new' into application-mgt-new147fe09aMerge branch 'application-mgt-new' into 'application-mgt-new'69cad8c4Create step form to add new app2dcbf921Complete step form in add new appc49b8cc4Get configuration with React Context in APPM publisher7951267aMerge branch 'application-mgt-new' into 'application-mgt-new'5847be9aFix publisher logging issue052859bfMerge branch 'application-mgt-new' into 'application-mgt-new'ab581e51Fix device loading issue in APPM store1dc99b70Merge branch 'application-mgt-new' into 'application-mgt-new'bfe154e7Fix retired app loading issue in APPM UIb3eaa6aeMerge branch 'application-mgt-new' into 'application-mgt-new'6bf646a8Update artifact download URLd757f7dbMerge branch 'application-mgt-new' into 'application-mgt-new'673a87b9Create step form to add new appda555606Complete step form in add new app9289bbcbGet configuration with React Context in APPM publisherff1fe51bFix publisher logging issuec96a381cFix device loading issue in APPM store02e3bca9Fix retired app loading issue in APPM UI0f4eaa57Add ui improvements to APPM2558bdc1Merge remote-tracking branch 'upstream/application-mgt-new' into application-mgt-newaf75a20bChange APPM update responses690c619eMerge branch 'application-mgt-new' into 'application-mgt-new'c8086f8bFix installation error in APPM uia3e37255Merge branch 'application-mgt-new' into 'application-mgt-new'2d2ffde0Fix device loading issue in add new app in APPM UI70310c55Merge branch 'application-mgt-new' into 'application-mgt-new'80081186Fix the unnecessary resource file creating.e0719774Modify edit release component to update the release without refreshing96ad057cMerge branch 'application-mgt-new' into 'application-mgt-new'a3b796d7Add copywrite notice to APPM UI3761d58cFix redirecting issue in APPM Store73165530Merge branch 'application-mgt-new' into 'application-mgt-new'4e23dbf5Merge with upstream mastera33a8081Improve APPM error messages.bc284737Add the logout feature to APPM ui16868f98Merge branch 'application-mgt-new' into 'application-mgt-new'0900034eModify get applications query to support retrieving all applications28e92190Merge branch 'application-mgt-new' of gitlab.com:entgra/carbon-device-mgt into application-mgt-newd4f4751bFix the web-clip device type issue of the APPM store4077bc95Merge branch 'application-mgt-new' into 'application-mgt-new'343fbe07Merge branch 'application-mgt-new' of gitlab.com:entgra/carbon-device-mgt into application-mgt-new3a29ab98Add device-mgt react app40ec7023Merge with upstream76b4953eAdd device-mgt react ui feature16cefc8aMerge branch 'application-mgt-new' into 'application-mgt-new'cc9e034eAdd react device-mgt device view pagec417b970Add react device-mgt device view pagea4f1bed3Merge branch 'application-mgt-new' into 'application-mgt-new'd7b290acAdd nav bar to device mgt reat appcda07164Merge branch 'application-mgt-new' of...e3a8c85cMerge branch 'application-mgt-new' into 'application-mgt-new'95b1b1e4Merge branch 'application-mgt-new' of...705d061bFix the responsive issues of the APPM UIdbfe6b30Change the artifactId of the device-mgt pom.xml file6e714822Add the copyright notice to device-mgt react app27ce00b1Merge branch 'application-mgt-new' into 'application-mgt-new'05e4da17Fix the responsive issues of the device-mgt react app7215d0beMerge branch 'application-mgt-new' into 'application-mgt-new'91617a6dModify enrollment app install policy to support new app manager2eeec362Merge branch 'application-mgt-new' into 'application-mgt-new'a41b5313Fix merge conflictsb3860d50Fix build failure65c462bcMerge branch 'application-mgt-new' into 'application-mgt-new'7a48f72fImprove error messages logging5f4abf8fMerge branch 'application-mgt-new' into 'application-mgt-new'bf678949Merge branch 'master' of gitlab.com:entgra/carbon-device-mgt into application-mgt-new272077a8Merge branch 'application-mgt-new' into 'application-mgt-new'cfd0f709Add new application typec204e6f9Fix server starting issue6e8d139cMerge branch 'application-mgt-new' into 'application-mgt-new'ed557fc5Fix merge conflicts0e22d24eMerge branch 'application-mgt-new' into 'application-mgt-new'5c924012Fix server starting issue8ce33186Merge branch 'application-mgt-new' into 'application-mgt-new'a3e0eb03Fix custom app loading issue0a0ac706Merge branch 'application-mgt-new' into 'application-mgt-new'919eeab2Merge branch 'master' of https://gitlab.com/entgra/carbon-device-mgt into application-mgt-new34f1b25cFix app-install operation adding issue for custom appsd45b153aMerge branch 'application-mgt-new' into 'application-mgt-new'239b1b9bAdd application installation response via pull notification5cf89ec2Add application installation response via pull notification1eb70051Merge branch 'application-mgt-new' into 'application-mgt-new'85fe985aFix server starting issuefd7436eaMerge branch 'application-mgt-new' into 'application-mgt-new'705f6fbbMerge branch 'application-mgt-new' of...30d4a570Fix platform config listing2c7463a0Add device transferring across tenants2e811aa1Fix config fetching and device type filtering for tenants73ec7dd1Merge branch 'master' of gitlab.com:entgra/carbon-device-mgt into application-mgt-new27e01e80Fix server starting issue5e8f6903Merge branch 'application-mgt-new' into 'application-mgt-new'c129fb1cFix image loading issue in tenant mode28b4d52dFix app loading issued9999ad5Merge branch 'application-mgt-new' into 'application-mgt-new'738c4991Merge with upstream/master20bbb6b9Re add missing method8e9d6403Merge branch 'application-mgt-new' into 'application-mgt-new'545ca7e2Changing status related APIs to honour tenant ID52de9b85Merge branch 'reports' into 'application-mgt-new'c5793bcfAPI endpoint to get all devices which are enrolled between two datesbfed1108Merge branch 'master' of https://gitlab.com/entgra/carbon-device-mgt into application-mgt-newc29dc4ddMerge branch 'master' into 'application-mgt-new'20dd0b88Merge branch 'application-mgt-new' of...59188bcdFix error logs of DAO implementations7e62c6a7Improve error logs in DAO implementationscc2eccaeFix configuration retrieval issue with non default admin credentialsa2341e8aFix subscription method issue740ad2a6Add image upload previews and validation in add new app form2b902e87Merge branch 'application-mgt-new' of...4e9628dfMerge branch 'master' of https://gitlab.com/entgra/carbon-device-mgt into application-mgt-new252b9194Merge branch 'application-mgt-new' into 'application-mgt-new'8ff264a0Fix error logs of DAO implementations8a917029Create an API to get device details with given app installed2732de21Create an API to get subscribed Category details9886b9f2Create the uninstall ui of the APPM store4cfa0789Improve the subscribed category details API61bd91b2Improve the subscribed devices and category details APIs7323ea02Modify the subscribed devices and category APIs2103e0eaModify the uninstall UI of the APPM store03e28c3eMerge branch 'application-mgt-new' into 'application-mgt-new'c9f12d47Implement scheduled application install/uninstall taskc91e1c43Merge branch 'application-mgt-new' into 'application-mgt-new'6786ed0fAdd UI Improvements to APPM UIca26098dMerge branch 'application-mgt-new' into 'application-mgt-new'fdf66001UI to generate reports852518f9Merge branch 'application-mgt-new' into 'application-mgt-new'5b50cddeDevice Location history view feature4e4b2fb5Merge branch 'newGeo' into 'application-mgt-new'1c0288d3Merge branch 'policy-type-creation' into 'master'5cb706f2Add android enterprise support for IoTS.11610d36Add android enterprise support for IoTS.6b51d1fdImprove app subscribing functionality4c51c0afCreate an API to get device details with given app installed5cbe25c0Create an API to get subscribed Category details153b7f13Create the uninstall ui of the APPM storee3b29ee5Improve the subscribed category details APIc08e631cImprove the subscribed devices and category details APIse4311d4eModify the subscribed devices and category APIsd3631943Modify the uninstall UI of the APPM storecfdbb919Create an API to get device details with given app installed29951a15Create an API to get subscribed Category details9d1171b6Improve the subscribed category details API58c866f3Improve the subscribed devices and category details APIsc095ca40Fix the uninstall operation of the uninstall API4ac94746Merge branch 'application-mgt-new' of...298c58e8Fix merge conflictsf6098a75Sync with upstream masterbaf382c7Fix formatting issues33cac65dFix build failure44adc963Fix build failure7a5a2319Merge branch 'application-mgt-new' of gitlab.com:entgra/carbon-device-mgt into conflicts-fixa4f99c9cMerge branch 'conflicts-fix' into 'application-mgt-new'8c40a81cSync with upstream masterb127c301Merge branch 'application-mgt-new' into 'application-mgt-new'cd374ab3Fix icon size & change paddings of the tile in APPM store36f44d29Merge branch 'application-mgt-new' of...e9cb3eaeUse common function to handle ajax call errors in APPM UI795edd4cImprove device delete UId43971b1Remove unnecessary comments3e169251Merge branch 'application-mgt-new' into 'application-mgt-new'2e690892Fix app name length issue in APPM Storeff875c33Add scheduled install/uninstall feature to APPM store uie956b288Merge branch 'application-mgt-new' of...220aba8eMerge branch 'application-mgt-new' into 'application-mgt-new'0abe6f16Fix APPM API deploying issue on gateway128c226cMerge branch 'application-mgt-new' into 'application-mgt-new'407cbc6eAdd supported OS versions to add new app form in APPM UIf1f7a3d9Add supported OS versions to add new release form in APPM UI0bbd34cfMerge branch 'application-mgt-new' into 'application-mgt-new'8b4c2f0eRedirect logged-out user within the loading screen in APPM UI97beaeb6Add missing scopes to application-mgt.xml617ba878Merge branch 'application-mgt-new' into 'application-mgt-new'0757783bFix the navigation bar issue in APPM UIef98998aFix the navigation bar issue in APPM UI43ba5d7eFix issue in retrieving IoTS devices8d8b041fMerge branch 'application-mgt-new' into 'application-mgt-new'd9a04e09Improve APPM app saving functionalitybc406b6cAdd UI feature to delete set of devicesec4511ceAdd UI feature to delete set of devices51b001c2Merge branch 'application-mgt-new' into 'application-mgt-new'caf7cd13Add MsSQL and MySQL db scriptsac0d01e1Merge branch 'application-mgt-new' into 'application-mgt-new'4d3c7e1cFix APPM login issuef710c548Add UI improvements to edit release view in APPM UI11c4d155Merge branch 'application-mgt-new' into 'application-mgt-new'594ab3edMerge branch 'application-mgt-new' into 'application-mgt-new'74069d34Improve the screenshots view of the APPM UIa2bcc1c0Improve APPM app uninstall operation payload70720523Merge branch 'application-mgt-new' into 'application-mgt-new'16ee8ec8Fix app uninstall issue for Android2d987681Merge branch 'application-mgt-new' into 'application-mgt-new'c859ff96Merge branch 'application-mgt-new' into 'application-mgt-new'533871d6Fix null value issue in scheduled install/uninstall operation in APPM UIb21de791Remove unnecessary console log lines in APPM UI6d16259aImprove schedule install/ uninstall component's UI in APPM store5153feaeFix login redirection issue in APPM Store UI3c9d2007Validate supported OS versions in 'Add new app' form in APPM Publisher UId3077da6Merge branch 'application-mgt-new' into 'application-mgt-new'354dcd3fAdd null and empty check for device location related valuesc762c9d2Change bulk action UIb92046faChange UI structure5ba56207Improve delete device UIc69f9c9fFix spelling mistakese068317aAdd devices to groupsc0a34086Merge branch 'application-mgt-new' into 'application-mgt-new'fefdb7abAdd new servlet to get logged-in user's data7f1f62bdMerge branch 'application-mgt-new' into 'application-mgt-new'f0d8f4d0Merge branch 'application-mgt-new' into 'application-mgt-new'9d161734Add white background for page headers in APPM UIe3b07fb2Merge branch 'application-mgt-new' of...112eb1f7Call user API to get logged-in user's data when loading APPM publisher UI7a9fddf6Disenroll devicece40ea57Fix server error issue when calling get logged-in user in APPM02cac02dAdd javadoc comments to UserHandler class812c2999Merge branch 'application-mgt-new' into 'application-mgt-new'88fed3e8Modify the add release component of the APPM publisher2961c1d2Modify the app details drawer of the APPM publisher2978f6f0Improve the form config object of the add release component8e8411abAdd the row and col tags to add release feature06dee0e6Fix the app search bar icon issue of the APPM publisher2856765cMerge branch 'application-mgt-new' into 'application-mgt-new'cc0ba744Add the function call to mobile nav bar of the APPM ui69fec58fMerge branch 'application-mgt-new' into 'application-mgt-new'd28d3ef3Collapse navigation drawer when clicking on a link.d19d9f20Improve the profile feature to Show the logged user name820f9481Fix the os version issue of the APPM publisherace268e1Merge branch 'application-mgt-new' into 'application-mgt-new'46d28ccaAdd MsSQL and Oracle support for APPM8505d65bMerge branch 'application-mgt-new' into 'application-mgt-new'0b238b9cMerge with upstream master2efbad9eUpgrade APPM version6abcb8f3Merge branch 'application-mgt-new' of gitlab.com:entgra/carbon-device-mgt into application-mgt-new6b72f711Fic MsSQL and Oracle prepared statement building issue2cdb2776Merge branch 'application-mgt-new' into 'application-mgt-new'e867c4a8Upgrade ui-request-interceptor version in APPM2392afedUpgrade ui-request-interceptor feature version6ee1fa6eMerge branch 'application-mgt-new' into 'application-mgt-new'c75291c8Fix sql query00526352Fix MsSQL and Oracle syntax issues84bf9123Add entgra license header1ffdba1cAdd entgra license header8b52acf1Merge branch 'AppManagerSQL' into 'application-mgt-new'12d68579Fix ui issues in android enterprise7bfbf578Fix UI issues in android enterprisef7596926Merge branch 'application-mgt-new' into 'application-mgt-new'b291c814Fix Device dis-enrollment issue in APPMc833132dFix Device dis-enrollment issue in APPMafb487deImprove APPM subscribing functionalityde640638Merge branch 'application-mgt-new' into 'application-mgt-new'3039e305Change Entgra IoT Server version to 4.0.05e384c94Improve APPM subscription flow72bcc6a5Merge branch 'application-mgt-new' into 'application-mgt-new'5dfc7b04Fix app installing issue in multiple timesa7580506Merge branch 'application-mgt-new' into 'application-mgt-new'af002401Merge branch 'application-mgt-new' into 'application-mgt-new'4e61f771Add corrective action bean class4e06e950Add correctiveAction to policy bean classbb1a3f62Add correctiveAction to policy wrapper bean class622e1842Add corrective actions in policy wrapper to policy objectff0de037Add DAO methods and implementation of policy corrective actionsf82b5431Add implementation of corrective actions in policy service1c36eec8Add constants of corrective action policy8bf89411Modify transform policy method to support retrieving corrective policy as a feature1e0ca09fHandle policy transform exceptionca2a1b85Add UI controller method to retrieve all policies by policy type62c01aa5Add a new unit for corrective action1d2444f1Add policy type and corrective action UI for create policyfc916d4eAdd policy type and corrective action UI for edit policye3905e79Add policy type and corrective action UI for view policy5b53136bAdd create table query for corrective action0359acf3Add corrective action table to test scripts2e8a7067Fix MsSQL syntax issues.632fa880Fix MsSQL syntax issues.b5a14337Improve SQL queries in APPM0dbd4bf2fix compilation error548ad336Adding status column to GROUP table and honuring same in API0c068635Add missing policy type in policy update queryd1e6aab5Improve APPM DAO layer to support MsSQLd43bfecdMerge branch 'application-mgt-new' into 'application-mgt-new'dfc4ce98Add improvements to add & edit application forms in APPM UI60947eb1Improve app subscribing flowec3f5afcPrevent same policy ID bieng avaialble in selecting a corrective policy8178a3cdMessage to display when a selected corrective policy is changed to general or deleted22ef153dUpdate ratings & review when adding/editing or deleting a review in APPM13bdeee8Set favicon when loading APPM UIb4d76b89Fix code issues in App Upload form in APPM UIa8e2fbbfMerge branch 'application-mgt-new' of gitlab.com:entgra/carbon-device-mgt into application-mgt-new90570e1dAdd "Any OS version" option to supported OS version in APPM publisher UI0a9d2e64Rename Any OS version's key to "All" in APPM publisher UIecbd423bMerge branch 'application-mgt-new' into 'application-mgt-new'7477c405Merge branch 'application-mgt-new' into 'application-mgt-new'0539971fMerge branch 'corrective-policy' into 'application-mgt-new'02a8fd35Add main devicemgt features to dashboard318736bcAdd feature descriptionsf3d34a0aAdd return generated keys flagb7cb0718Merge branch 'application-mgt-new' into 'application-mgt-new'36021014Merge branch 'application-mgt-new' of gitlab.com:entgra/carbon-device-mgt into application-mgt-new422e106cMS sql related bug fixes55f0ddd3Merge branch 'application-mgt-new' into 'application-mgt-new'bb681c43Message to display in view when a selected corrective policy is changed to general or deleted0db39981MS SQL based syntax fixes3c11838cMerge branch 'corrective-policy' into 'application-mgt-new'41f53d06Merge branch 'application-mgt-new' into 'application-mgt-new'78bd339cAdd loading animation when installing/uninstall app in APPM store502c8662Merge branch 'application-mgt-new' into 'application-mgt-new'd4f3754eAdd new admin API to get app subscription datab5a86d8eMerge branch 'application-mgt-new' of gitlab.com:entgra/carbon-device-mgt into application-mgt-new6c784914Add loading animation to filter & lifecycle components in APPM6a5e21ddCreate UI to display installed devicesc3349a89Improve scope in device subscription view APId1af3d7eMerge branch 'application-mgt-new' into 'application-mgt-new'951325eeAdd ui improvements to APPM Publisher UI2103306fImprove APPM sourcee58ca403Merge branch 'application-mgt-new' into 'application-mgt-new'd7572456Merge branch 'application-mgt-new' of...e762d35aRemove subscription type from APPM publisher filter UIedf9486aMerge branch 'application-mgt-new' into 'application-mgt-new'67f442f1Merge branch 'application-mgt-new' of gitlab.com:entgra/carbon-device-mgt into application-mgt-new5436d9ddAdd roles and enrolled devices of users08860acfAdd ui improvements to APPM Publisher UI3789a2d1Add ui improvements to APPM Publisher UI84b54c19Merge branch 'application-mgt-new' into 'application-mgt-new'48ffb02cFix apple logo not displaying in UI DEP config6717723dMerge branch 'application-mgt-new' into 'application-mgt-new'0f8d4a02Merge branch 'master' into 'application-mgt-new'e57dd65dUpdate geo featur UI and date time pickerba2a9c6aMerge branch 'application-mgt-new' into 'application-mgt-new'7dc9fbb0Fix error on retrieving location22cd3a09Add tabs on user info modal3cb822efMerge branch 'application-mgt-new' of...b6a2c3fbMerge branch 'application-mgt-new' into 'application-mgt-new'cd062f07Add UI improvements to APPM UIdff6d74cMerge remote-tracking branch 'upstream/application-mgt-new' into application-mgt-new2757d96cAdd new service to update APPM DB for enterprise install9807a360Add ui improvements to APPM Publisher UI54dc3e48Merge branch 'application-mgt-new' into 'application-mgt-new'4989ac2dAdd new API to perform ent. app installationa78d3e17Group create/edit/delete/share functions1907d57bMerge branch 'application-mgt-new' into 'application-mgt-new'2c2584bcAdd devicemgt React app UI improvements991110beMerge branch 'application-mgt-new' into 'application-mgt-new'7f5325b8fix for corrective policya9a99bb8Merge branch 'application-mgt-new' into 'application-mgt-new'35be7cc7Fix the mysql based syntax issuesd6845cd4Add new API endpoints253afa51Fix transaction handling9ccdf298Merge branch 'application-mgt-new' into 'application-mgt-new'0250cc17Merge branch 'application-mgt-new' into 'application-mgt-new'7eb3a5d7Fix issues in APPM subscription flow8feb157bMerge branch 'application-mgt-new' of gitlab.com:entgra/carbon-device-mgt into application-mgt-new1e3ac362Remove super admin tenant domain from /user API response0e20dcb0Merge branch 'application-mgt-new' into 'application-mgt-new'6f42f1fdAdd new app attribute to identify android enterprise app9dd7444cAdd unrestricted roles field to Add new app form6245e564Add refresh button to subscription details table84ad27f2Add custom forbidden alerts messages in APPM publisher UI9303d374Add custom forbidden alerts messages in APPM store UI9fa4047dMerge remote-tracking branch 'upstream/application-mgt-new' into application-mgt-newc5bc96d8Fix invalid support OS version issue in APPM publisher UI1a7806e0Merge branch 'application-mgt-new' into 'application-mgt-new'db0b3622Merge branch 'application-mgt-new' of gitlab.com:entgra/carbon-device-mgt into application-mgt-newdbd21719Merge branch 'master' of gitlab.com:entgra/carbon-device-mgt into application-mgt-new
This commit is contained in:
parent
4a3a9b587e
commit
18cf916c02
14
.gitignore
vendored
14
.gitignore
vendored
@ -26,3 +26,17 @@ target
|
||||
|
||||
# virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml
|
||||
hs_err_pid*
|
||||
components/application-mgt/org.wso2.carbon.device.application.mgt.publisher.ui/react-app/node_modules/
|
||||
components/application-mgt/org.wso2.carbon.device.application.mgt.publisher.ui/react-app/package-lock.json
|
||||
components/application-mgt/org.wso2.carbon.device.application.mgt.publisher.ui/react-app/npm-debug.log
|
||||
components/application-mgt/org.wso2.carbon.device.application.mgt.publisher.ui/react-app/dist/
|
||||
components/application-mgt/org.wso2.carbon.device.application.mgt.publisher.ui/react-app/tmp/
|
||||
components/application-mgt/org.wso2.carbon.device.application.mgt.store.ui/react-app/node_modules/
|
||||
components/application-mgt/org.wso2.carbon.device.application.mgt.store.ui/react-app/dist/
|
||||
components/application-mgt/org.wso2.carbon.device.application.mgt.store.ui/react-app/package-lock.json
|
||||
components/application-mgt/org.wso2.carbon.device.application.mgt.store.ui/react-app/tmp/
|
||||
components/device-mgt/io.entgra.device.mgt.ui/react-app/node_modules/
|
||||
components/device-mgt/io.entgra.device.mgt.ui/react-app/dist/
|
||||
components/device-mgt/io.entgra.device.mgt.ui/react-app/package-lock.json
|
||||
components/device-mgt/io.entgra.device.mgt.ui/react-app/tmp/
|
||||
|
||||
|
||||
@ -24,4 +24,4 @@ deploy:
|
||||
script:
|
||||
- mvn $MAVEN_CLI_OPTS deploy -Dmaven.test.skip=true
|
||||
only:
|
||||
- master@entgra/carbon-device-mgt
|
||||
- master@entgra/carbon-device-mgt
|
||||
|
||||
@ -21,7 +21,6 @@ package org.wso2.carbon.apimgt.application.extension.api;
|
||||
import org.apache.commons.lang.StringUtils;
|
||||
import org.apache.commons.logging.Log;
|
||||
import org.apache.commons.logging.LogFactory;
|
||||
import org.json.simple.JSONObject;
|
||||
import org.wso2.carbon.apimgt.application.extension.APIManagementProviderService;
|
||||
import org.wso2.carbon.apimgt.application.extension.api.util.APIUtil;
|
||||
import org.wso2.carbon.apimgt.application.extension.api.util.RegistrationProfile;
|
||||
@ -32,10 +31,9 @@ import org.wso2.carbon.apimgt.integration.client.OAuthRequestInterceptor;
|
||||
import org.wso2.carbon.apimgt.integration.client.store.StoreClient;
|
||||
import org.wso2.carbon.base.MultitenantConstants;
|
||||
import org.wso2.carbon.context.PrivilegedCarbonContext;
|
||||
import org.wso2.carbon.device.mgt.common.DeviceManagementException;
|
||||
import org.wso2.carbon.device.mgt.common.exceptions.DeviceManagementException;
|
||||
import org.wso2.carbon.user.api.UserStoreException;
|
||||
|
||||
import javax.ws.rs.DELETE;
|
||||
import javax.ws.rs.POST;
|
||||
import javax.ws.rs.Path;
|
||||
import javax.ws.rs.QueryParam;
|
||||
|
||||
@ -23,7 +23,7 @@ import org.apache.commons.logging.LogFactory;
|
||||
import org.wso2.carbon.apimgt.application.extension.APIManagementProviderService;
|
||||
import org.wso2.carbon.base.MultitenantConstants;
|
||||
import org.wso2.carbon.context.PrivilegedCarbonContext;
|
||||
import org.wso2.carbon.device.mgt.common.DeviceManagementException;
|
||||
import org.wso2.carbon.device.mgt.common.exceptions.DeviceManagementException;
|
||||
import org.wso2.carbon.device.mgt.core.service.DeviceManagementProviderService;
|
||||
import org.wso2.carbon.registry.api.Resource;
|
||||
import org.wso2.carbon.registry.core.Registry;
|
||||
@ -31,7 +31,6 @@ import org.wso2.carbon.registry.core.exceptions.RegistryException;
|
||||
import org.wso2.carbon.registry.core.service.RegistryService;
|
||||
import org.wso2.carbon.user.core.service.RealmService;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
import java.util.StringTokenizer;
|
||||
|
||||
@ -44,9 +43,11 @@ public class APIUtil {
|
||||
private static final String DEFAULT_CDMF_API_TAG = "device_management";
|
||||
private static final String DEFAULT_AGENT_API_TAG = "device_agent";
|
||||
private static final String DEFAULT_CERT_API_TAG = "scep_management";
|
||||
private static final String DEFAULT_APP_MGT_TAG = "application_management";
|
||||
private static final String DEFAULT_APP_MGT_REVIEW_MGT_TAG = "review_management";
|
||||
private static final String DEFAULT_APP_MGT_SUB_MGT_TAG = "subscription_management";
|
||||
private static final String DEFAULT_ANALYTICS_ARTIFACT_TAG = "analytics_artifacts_management";
|
||||
|
||||
|
||||
public static final String PERMISSION_PROPERTY_NAME = "name";
|
||||
|
||||
public static String getAuthenticatedUser() {
|
||||
@ -111,6 +112,9 @@ public class APIUtil {
|
||||
allowedApisTags.add(DEFAULT_CDMF_API_TAG);
|
||||
allowedApisTags.add(DEFAULT_CERT_API_TAG);
|
||||
allowedApisTags.add(DEFAULT_AGENT_API_TAG);
|
||||
allowedApisTags.add(DEFAULT_APP_MGT_TAG);
|
||||
allowedApisTags.add(DEFAULT_APP_MGT_REVIEW_MGT_TAG);
|
||||
allowedApisTags.add(DEFAULT_APP_MGT_SUB_MGT_TAG);
|
||||
allowedApisTags.add(DEFAULT_ANALYTICS_ARTIFACT_TAG);
|
||||
return allowedApisTags;
|
||||
}
|
||||
|
||||
@ -2741,7 +2741,7 @@ parameters:
|
||||
name: limit
|
||||
in: query
|
||||
description: |
|
||||
Maximum size of resource array to return.
|
||||
Maximum length of resource array to return.
|
||||
default: 25
|
||||
type: integer
|
||||
|
||||
|
||||
@ -1823,7 +1823,7 @@ parameters:
|
||||
name: limit
|
||||
in: query
|
||||
description: |
|
||||
Maximum size of resource array to return.
|
||||
Maximum length of resource array to return.
|
||||
default: 25
|
||||
type: integer
|
||||
|
||||
|
||||
@ -0,0 +1,112 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project xmlns="http://maven.apache.org/POM/4.0.0"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
||||
<parent>
|
||||
<artifactId>application-mgt</artifactId>
|
||||
<groupId>org.wso2.carbon.devicemgt</groupId>
|
||||
<version>4.0.0-SNAPSHOT</version>
|
||||
<relativePath>../pom.xml</relativePath>
|
||||
</parent>
|
||||
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<artifactId>org.wso2.carbon.device.application.mgt.addons</artifactId>
|
||||
<version>4.0.0-SNAPSHOT</version>
|
||||
<name>WSO2 Carbon - Application Management Add-Ons</name>
|
||||
<description>WSO2 Carbon - Application Management Add-Ons</description>
|
||||
<url>https://entgra.io</url>
|
||||
|
||||
<build>
|
||||
<plugins>
|
||||
<plugin>
|
||||
<groupId>org.apache.felix</groupId>
|
||||
<artifactId>maven-scr-plugin</artifactId>
|
||||
</plugin>
|
||||
<plugin>
|
||||
<groupId>org.apache.felix</groupId>
|
||||
<artifactId>maven-bundle-plugin</artifactId>
|
||||
<version>1.4.0</version>
|
||||
<extensions>true</extensions>
|
||||
<configuration>
|
||||
<instructions>
|
||||
<Bundle-SymbolicName>${project.artifactId}</Bundle-SymbolicName>
|
||||
<Bundle-Name>${project.artifactId}</Bundle-Name>
|
||||
<Bundle-Version>${carbon.device.mgt.version}</Bundle-Version>
|
||||
<Bundle-Description>Application Management Add-Ons Bundle</Bundle-Description>
|
||||
<Import-Package>
|
||||
com.google.gson,
|
||||
io.swagger.annotations.*;resolution:=optional
|
||||
</Import-Package>
|
||||
<Export-Package>
|
||||
org.wso2.carbon.device.application.mgt.addons.*
|
||||
</Export-Package>
|
||||
</instructions>
|
||||
</configuration>
|
||||
</plugin>
|
||||
</plugins>
|
||||
</build>
|
||||
|
||||
<dependencies>
|
||||
<dependency>
|
||||
<groupId>org.apache.cxf</groupId>
|
||||
<artifactId>cxf-rt-frontend-jaxws</artifactId>
|
||||
<scope>provided</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.apache.cxf</groupId>
|
||||
<artifactId>cxf-rt-frontend-jaxrs</artifactId>
|
||||
<scope>provided</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.apache.cxf</groupId>
|
||||
<artifactId>cxf-rt-transports-http</artifactId>
|
||||
<scope>provided</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.eclipse.osgi</groupId>
|
||||
<artifactId>org.eclipse.osgi</artifactId>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.eclipse.equinox</groupId>
|
||||
<artifactId>org.eclipse.equinox.common</artifactId>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.wso2.carbon</groupId>
|
||||
<artifactId>org.wso2.carbon.logging</artifactId>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>commons-codec.wso2</groupId>
|
||||
<artifactId>commons-codec</artifactId>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>commons-io.wso2</groupId>
|
||||
<artifactId>commons-io</artifactId>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>io.swagger</groupId>
|
||||
<artifactId>swagger-annotations</artifactId>
|
||||
<scope>provided</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.json.wso2</groupId>
|
||||
<artifactId>json</artifactId>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>com.google.code.gson</groupId>
|
||||
<artifactId>gson</artifactId>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.wso2.carbon.devicemgt</groupId>
|
||||
<artifactId>org.wso2.carbon.device.application.mgt.common</artifactId>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>javax.servlet</groupId>
|
||||
<artifactId>javax.servlet-api</artifactId>
|
||||
<scope>provided</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.hibernate</groupId>
|
||||
<artifactId>hibernate-validator</artifactId>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
</project>
|
||||
@ -0,0 +1,46 @@
|
||||
/* Copyright (c) 2019, Entgra (Pvt) Ltd. (http://www.entgra.io) All Rights Reserved.
|
||||
*
|
||||
* Entgra (Pvt) Ltd. licenses this file to you under the Apache License,
|
||||
* Version 2.0 (the "License"); you may not use this file except
|
||||
* in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing,
|
||||
* software distributed under the License is distributed on an
|
||||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
* KIND, either express or implied. See the License for the
|
||||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
*/
|
||||
package org.wso2.carbon.device.application.mgt.addons;
|
||||
|
||||
|
||||
import javax.servlet.Filter;
|
||||
import javax.servlet.FilterChain;
|
||||
import javax.servlet.FilterConfig;
|
||||
import javax.servlet.ServletException;
|
||||
import javax.servlet.ServletRequest;
|
||||
import javax.servlet.ServletResponse;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
import java.io.IOException;
|
||||
|
||||
public class ApiOriginFilter implements Filter {
|
||||
public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain)
|
||||
throws IOException, ServletException {
|
||||
HttpServletResponse res = (HttpServletResponse) response;
|
||||
res.addHeader("Access-Control-Allow-Origin", "*");
|
||||
res.addHeader("Access-Control-Allow-Methods", "GET, POST, DELETE, PUT");
|
||||
res.addHeader("Access-Control-Allow-Headers", "Content-Type");
|
||||
chain.doFilter(request, response);
|
||||
}
|
||||
|
||||
public void destroy() {
|
||||
//do nothing
|
||||
}
|
||||
|
||||
public void init(FilterConfig filterConfig) throws ServletException {
|
||||
//do nothing
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,53 @@
|
||||
/* Copyright (c) 2019, Entgra (Pvt) Ltd. (http://www.entgra.io) All Rights Reserved.
|
||||
*
|
||||
* Entgra (Pvt) Ltd. licenses this file to you under the Apache License,
|
||||
* Version 2.0 (the "License"); you may not use this file except
|
||||
* in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing,
|
||||
* software distributed under the License is distributed on an
|
||||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
* KIND, either express or implied. See the License for the
|
||||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
*/
|
||||
package org.wso2.carbon.device.application.mgt.addons;
|
||||
|
||||
|
||||
import javax.ws.rs.WebApplicationException;
|
||||
import javax.ws.rs.core.StreamingOutput;
|
||||
import java.io.IOException;
|
||||
import java.io.InputStream;
|
||||
import java.io.OutputStream;
|
||||
|
||||
/**
|
||||
* org.wso2.carbon.device.application.mgt.addons.FileStreamingOutput to allow the user to send the files as Stream.
|
||||
*/
|
||||
public class FileStreamingOutput implements StreamingOutput {
|
||||
private InputStream inputStream;
|
||||
|
||||
public FileStreamingOutput(InputStream inputStream) {
|
||||
this.inputStream = inputStream;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void write(OutputStream outputStream) throws IOException, WebApplicationException {
|
||||
try {
|
||||
byte[] buffer = new byte[inputStream.available()];
|
||||
inputStream.read(buffer);
|
||||
outputStream.write(buffer);
|
||||
outputStream.flush();
|
||||
} finally {
|
||||
if (inputStream != null) {
|
||||
inputStream.close();
|
||||
}
|
||||
if (outputStream != null) {
|
||||
outputStream.close();
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
@ -1,12 +1,11 @@
|
||||
/*
|
||||
* Copyright (c) 2017, WSO2 Inc. (http://www.wso2.org) All Rights Reserved.
|
||||
/* Copyright (c) 2019, Entgra (Pvt) Ltd. (http://www.entgra.io) All Rights Reserved.
|
||||
*
|
||||
* WSO2 Inc. licenses this file to you under the Apache License,
|
||||
* Entgra (Pvt) Ltd. licenses this file to you under the Apache License,
|
||||
* Version 2.0 (the "License"); you may not use this file except
|
||||
* in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing,
|
||||
* software distributed under the License is distributed on an
|
||||
@ -15,12 +14,11 @@
|
||||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
*/
|
||||
|
||||
package org.wso2.carbon.certificate.mgt.jaxrs.api.common;
|
||||
|
||||
package org.wso2.carbon.device.application.mgt.addons;
|
||||
|
||||
import com.google.gson.Gson;
|
||||
import com.google.gson.GsonBuilder;
|
||||
import org.wso2.carbon.device.application.mgt.addons.jaxrs.AnnotationExclusionStrategy;
|
||||
|
||||
import javax.ws.rs.Consumes;
|
||||
import javax.ws.rs.Produces;
|
||||
@ -30,16 +28,23 @@ import javax.ws.rs.core.MultivaluedMap;
|
||||
import javax.ws.rs.ext.MessageBodyReader;
|
||||
import javax.ws.rs.ext.MessageBodyWriter;
|
||||
import javax.ws.rs.ext.Provider;
|
||||
import java.io.*;
|
||||
import java.io.IOException;
|
||||
import java.io.InputStream;
|
||||
import java.io.InputStreamReader;
|
||||
import java.io.OutputStream;
|
||||
import java.io.OutputStreamWriter;
|
||||
import java.lang.annotation.Annotation;
|
||||
import java.lang.reflect.Type;
|
||||
|
||||
import static javax.ws.rs.core.MediaType.APPLICATION_JSON;
|
||||
|
||||
/**
|
||||
* This provider is used to change a JSON object to complex object and inversely in request and response.
|
||||
*/
|
||||
@Provider
|
||||
@Produces(APPLICATION_JSON)
|
||||
@Consumes(APPLICATION_JSON)
|
||||
public class GsonMessageBodyHandler implements MessageBodyWriter<Object>, MessageBodyReader<Object> {
|
||||
public class JSONMessageHandler implements MessageBodyWriter<Object>, MessageBodyReader<Object> {
|
||||
|
||||
private Gson gson;
|
||||
private static final String UTF_8 = "UTF-8";
|
||||
@ -50,7 +55,9 @@ public class GsonMessageBodyHandler implements MessageBodyWriter<Object>, Messag
|
||||
|
||||
private Gson getGson() {
|
||||
if (gson == null) {
|
||||
final GsonBuilder gsonBuilder = new GsonBuilder();
|
||||
final GsonBuilder gsonBuilder = new GsonBuilder()
|
||||
.setDateFormat("EEE, dd MMM yyyy HH:mm:ss zzz")
|
||||
.setExclusionStrategies(new AnnotationExclusionStrategy());
|
||||
gson = gsonBuilder.create();
|
||||
}
|
||||
return gson;
|
||||
@ -59,13 +66,8 @@ public class GsonMessageBodyHandler implements MessageBodyWriter<Object>, Messag
|
||||
public Object readFrom(Class<Object> objectClass, Type type, Annotation[] annotations, MediaType mediaType,
|
||||
MultivaluedMap<String, String> stringStringMultivaluedMap, InputStream entityStream)
|
||||
throws IOException, WebApplicationException {
|
||||
|
||||
InputStreamReader reader = new InputStreamReader(entityStream, "UTF-8");
|
||||
|
||||
try {
|
||||
try (InputStreamReader reader = new InputStreamReader(entityStream, UTF_8)) {
|
||||
return getGson().fromJson(reader, type);
|
||||
} finally {
|
||||
reader.close();
|
||||
}
|
||||
}
|
||||
|
||||
@ -80,12 +82,8 @@ public class GsonMessageBodyHandler implements MessageBodyWriter<Object>, Messag
|
||||
public void writeTo(Object object, Class<?> aClass, Type type, Annotation[] annotations, MediaType mediaType,
|
||||
MultivaluedMap<String, Object> stringObjectMultivaluedMap, OutputStream entityStream)
|
||||
throws IOException, WebApplicationException {
|
||||
|
||||
OutputStreamWriter writer = new OutputStreamWriter(entityStream, UTF_8);
|
||||
try {
|
||||
try (OutputStreamWriter writer = new OutputStreamWriter(entityStream, UTF_8)) {
|
||||
getGson().toJson(object, type, writer);
|
||||
} finally {
|
||||
writer.close();
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,71 @@
|
||||
/* Copyright (c) 2019, Entgra (Pvt) Ltd. (http://www.entgra.io) All Rights Reserved.
|
||||
*
|
||||
* Entgra (Pvt) Ltd. licenses this file to you under the Apache License,
|
||||
* Version 2.0 (the "License"); you may not use this file except
|
||||
* in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing,
|
||||
* software distributed under the License is distributed on an
|
||||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
* KIND, either express or implied. See the License for the
|
||||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
*/
|
||||
package org.wso2.carbon.device.application.mgt.addons;
|
||||
|
||||
import com.google.gson.Gson;
|
||||
import com.google.gson.GsonBuilder;
|
||||
import com.google.gson.JsonObject;
|
||||
import com.google.gson.JsonParser;
|
||||
import org.apache.cxf.jaxrs.ext.multipart.Attachment;
|
||||
import org.wso2.carbon.device.application.mgt.addons.jaxrs.AnnotationExclusionStrategy;
|
||||
|
||||
import javax.ws.rs.Consumes;
|
||||
import javax.ws.rs.WebApplicationException;
|
||||
import javax.ws.rs.core.MediaType;
|
||||
import javax.ws.rs.core.MultivaluedMap;
|
||||
import javax.ws.rs.ext.MessageBodyReader;
|
||||
import javax.ws.rs.ext.Provider;
|
||||
import java.io.ByteArrayOutputStream;
|
||||
import java.io.IOException;
|
||||
import java.io.InputStream;
|
||||
import java.lang.annotation.Annotation;
|
||||
import java.lang.reflect.Type;
|
||||
|
||||
/**
|
||||
* Provider for the text/plain type of input. Particularly use-ful for the complex objects sent along with Multipart
|
||||
* request.
|
||||
*/
|
||||
@Provider
|
||||
@Consumes(MediaType.TEXT_PLAIN)
|
||||
public class MultipartCustomProvider implements MessageBodyReader<Object> {
|
||||
private Gson gson;
|
||||
|
||||
public MultipartCustomProvider() {
|
||||
final GsonBuilder gsonBuilder = new GsonBuilder().setDateFormat("EEE, dd MMM yyyy HH:mm:ss zzz")
|
||||
.setExclusionStrategies(new AnnotationExclusionStrategy());
|
||||
gson = gsonBuilder.create();
|
||||
}
|
||||
@Override
|
||||
public boolean isReadable(Class<?> aClass, Type type, Annotation[] annotations, MediaType mediaType) {
|
||||
return !aClass.equals(Attachment.class);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Object readFrom(Class<Object> objectClass, Type type, Annotation[] annotations, MediaType mediaType,
|
||||
MultivaluedMap<String, String> headers, InputStream inputStream) throws IOException,
|
||||
WebApplicationException {
|
||||
ByteArrayOutputStream result = new ByteArrayOutputStream();
|
||||
byte[] buffer = new byte[1024];
|
||||
int length;
|
||||
while ((length = inputStream.read(buffer)) != -1) {
|
||||
result.write(buffer, 0, length);
|
||||
}
|
||||
String jsonString = result.toString();
|
||||
JsonObject obj = new JsonParser().parse(jsonString).getAsJsonObject();
|
||||
return gson.fromJson(obj, type);
|
||||
}
|
||||
}
|
||||
@ -1,12 +1,11 @@
|
||||
/*
|
||||
* Copyright (c) 2017, WSO2 Inc. (http://www.wso2.org) All Rights Reserved.
|
||||
/* Copyright (c) 2019, Entgra (Pvt) Ltd. (http://www.entgra.io) All Rights Reserved.
|
||||
*
|
||||
* WSO2 Inc. licenses this file to you under the Apache License,
|
||||
* Entgra (Pvt) Ltd. licenses this file to you under the Apache License,
|
||||
* Version 2.0 (the "License"); you may not use this file except
|
||||
* in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing,
|
||||
* software distributed under the License is distributed on an
|
||||
@ -15,8 +14,7 @@
|
||||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
*/
|
||||
|
||||
package org.wso2.carbon.device.mgt.jaxrs.exception;
|
||||
package org.wso2.carbon.device.application.mgt.addons;
|
||||
|
||||
import org.apache.commons.logging.Log;
|
||||
import org.apache.commons.logging.LogFactory;
|
||||
@ -30,6 +28,7 @@ import org.apache.cxf.phase.AbstractPhaseInterceptor;
|
||||
import org.apache.cxf.phase.Phase;
|
||||
|
||||
import javax.validation.ConstraintViolation;
|
||||
import javax.validation.ConstraintViolationException;
|
||||
import javax.validation.Validation;
|
||||
import javax.validation.Validator;
|
||||
import javax.validation.ValidatorFactory;
|
||||
@ -0,0 +1,36 @@
|
||||
/* Copyright (c) 2019, Entgra (Pvt) Ltd. (http://www.entgra.io) All Rights Reserved.
|
||||
*
|
||||
* Entgra (Pvt) Ltd. licenses this file to you under the Apache License,
|
||||
* Version 2.0 (the "License"); you may not use this file except
|
||||
* in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing,
|
||||
* software distributed under the License is distributed on an
|
||||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
* KIND, either express or implied. See the License for the
|
||||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
*/
|
||||
package org.wso2.carbon.device.application.mgt.addons.jaxrs;
|
||||
|
||||
import com.google.gson.ExclusionStrategy;
|
||||
import com.google.gson.FieldAttributes;
|
||||
|
||||
/**
|
||||
* This class is used to exclude certain fields when serializing and de-serializing based on the annotation.
|
||||
*/
|
||||
public class AnnotationExclusionStrategy implements ExclusionStrategy {
|
||||
|
||||
@Override
|
||||
public boolean shouldSkipField(FieldAttributes f) {
|
||||
return f.getAnnotation(Exclude.class) != null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean shouldSkipClass(Class<?> clazz) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,30 @@
|
||||
/* Copyright (c) 2019, Entgra (Pvt) Ltd. (http://www.entgra.io) All Rights Reserved.
|
||||
*
|
||||
* Entgra (Pvt) Ltd. licenses this file to you under the Apache License,
|
||||
* Version 2.0 (the "License"); you may not use this file except
|
||||
* in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing,
|
||||
* software distributed under the License is distributed on an
|
||||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
* KIND, either express or implied. See the License for the
|
||||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
*/
|
||||
package org.wso2.carbon.device.application.mgt.addons.jaxrs;
|
||||
|
||||
import java.lang.annotation.ElementType;
|
||||
import java.lang.annotation.Retention;
|
||||
import java.lang.annotation.RetentionPolicy;
|
||||
import java.lang.annotation.Target;
|
||||
|
||||
/**
|
||||
* This class is the representation of custom developed Exclude annotation.
|
||||
*/
|
||||
@Retention(RetentionPolicy.RUNTIME)
|
||||
@Target(ElementType.FIELD)
|
||||
public @interface Exclude {
|
||||
}
|
||||
@ -1,82 +1,48 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
~ /*
|
||||
~ * Copyright (c) 2017, WSO2 Inc. (http://www.wso2.org) All Rights Reserved.
|
||||
~ *
|
||||
~ * WSO2 Inc. licenses this file to you under the Apache License,
|
||||
~ * Version 2.0 (the "License"); you may not use this file except
|
||||
~ * in compliance with the License.
|
||||
~ * You may obtain a copy of the License at
|
||||
~ *
|
||||
~ * http://www.apache.org/licenses/LICENSE-2.0
|
||||
~ *
|
||||
~ * Unless required by applicable law or agreed to in writing,
|
||||
~ * software distributed under the License is distributed on an
|
||||
~ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
~ * KIND, either express or implied. See the License for the
|
||||
~ * specific language governing permissions and limitations
|
||||
~ * under the License.
|
||||
~ */
|
||||
-->
|
||||
* Copyright (c) 2019, Entgra (Pvt) Ltd. (http://www.entgra.io) All Rights Reserved.
|
||||
*
|
||||
* Entgra (Pvt) Ltd. licenses this file to you under the Apache License,
|
||||
* Version 2.0 (the "License"); you may not use this file except
|
||||
* in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing,
|
||||
* software distributed under the License is distributed on an
|
||||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
* KIND, either express or implied. See the License for the
|
||||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
-->
|
||||
|
||||
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
|
||||
|
||||
<parent>
|
||||
<artifactId>certificate-mgt</artifactId>
|
||||
<artifactId>application-mgt</artifactId>
|
||||
<groupId>org.wso2.carbon.devicemgt</groupId>
|
||||
<version>4.0.0-SNAPSHOT</version>
|
||||
<relativePath>../pom.xml</relativePath>
|
||||
</parent>
|
||||
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<artifactId>org.wso2.carbon.certificate.mgt.cert.admin.v09.api</artifactId>
|
||||
<artifactId>org.wso2.carbon.device.application.mgt.api</artifactId>
|
||||
<version>4.0.0-SNAPSHOT</version>
|
||||
<packaging>war</packaging>
|
||||
<name>WSO2 Carbon - Admin Certificate Management v09 API</name>
|
||||
<description>WSO2 Carbon - Admin Certificate Management v09 API</description>
|
||||
<url>http://wso2.org</url>
|
||||
<name>WSO2 Carbon - Application Management API</name>
|
||||
<description>WSO2 Carbon - Application Management API</description>
|
||||
<url>https://entgra.io</url>
|
||||
|
||||
<build>
|
||||
<plugins>
|
||||
<plugin>
|
||||
<artifactId>maven-compiler-plugin</artifactId>
|
||||
<configuration>
|
||||
<source>1.8</source>
|
||||
<target>1.8</target>
|
||||
</configuration>
|
||||
</plugin>
|
||||
<plugin>
|
||||
<artifactId>maven-war-plugin</artifactId>
|
||||
<configuration>
|
||||
<packagingExcludes>WEB-INF/lib/*cxf*.jar</packagingExcludes>
|
||||
<warName>api#certificate-mgt#v0.9</warName>
|
||||
<warName>api#application-mgt#v1.0</warName>
|
||||
</configuration>
|
||||
</plugin>
|
||||
<plugin>
|
||||
<groupId>org.jacoco</groupId>
|
||||
<artifactId>jacoco-maven-plugin</artifactId>
|
||||
<configuration>
|
||||
<destFile>${basedir}/target/coverage-reports/jacoco-unit.exec</destFile>
|
||||
</configuration>
|
||||
<executions>
|
||||
<execution>
|
||||
<id>jacoco-initialize</id>
|
||||
<goals>
|
||||
<goal>prepare-agent</goal>
|
||||
</goals>
|
||||
</execution>
|
||||
<execution>
|
||||
<id>jacoco-site</id>
|
||||
<phase>test</phase>
|
||||
<goals>
|
||||
<goal>report</goal>
|
||||
</goals>
|
||||
<configuration>
|
||||
<dataFile>${basedir}/target/coverage-reports/jacoco-unit.exec</dataFile>
|
||||
<outputDirectory>${basedir}/target/coverage-reports/site</outputDirectory>
|
||||
</configuration>
|
||||
</execution>
|
||||
</executions>
|
||||
</plugin>
|
||||
</plugins>
|
||||
</build>
|
||||
|
||||
@ -89,7 +55,7 @@
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-antrun-plugin</artifactId>
|
||||
<version>1.7</version>
|
||||
<version>1.8</version>
|
||||
<executions>
|
||||
<execution>
|
||||
<phase>compile</phase>
|
||||
@ -100,7 +66,7 @@
|
||||
<tasks>
|
||||
<copy todir="${basedir}/../../../repository/deployment/server/webapps" overwrite="true">
|
||||
<fileset dir="${basedir}/target">
|
||||
<include name="api#certificate-mgt#v0.9.war" />
|
||||
<include name="api#application-mgt#v1.0.war" />
|
||||
</fileset>
|
||||
</copy>
|
||||
</tasks>
|
||||
@ -119,7 +85,7 @@
|
||||
<plugin>
|
||||
<groupId>org.codehaus.mojo</groupId>
|
||||
<artifactId>exec-maven-plugin</artifactId>
|
||||
<version>1.2.1</version>
|
||||
<version>1.5.0</version>
|
||||
<executions>
|
||||
<execution>
|
||||
<phase>test</phase>
|
||||
@ -138,48 +104,63 @@
|
||||
<dependency>
|
||||
<groupId>org.apache.cxf</groupId>
|
||||
<artifactId>cxf-rt-frontend-jaxws</artifactId>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>commons-codec.wso2</groupId>
|
||||
<artifactId>commons-codec</artifactId>
|
||||
<exclusions>
|
||||
<exclusion>
|
||||
<groupId>commons-codec</groupId>
|
||||
<artifactId>commons-codec</artifactId>
|
||||
</exclusion>
|
||||
</exclusions>
|
||||
<scope>provided</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.apache.cxf</groupId>
|
||||
<artifactId>cxf-rt-frontend-jaxrs</artifactId>
|
||||
<scope>provided</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.apache.cxf</groupId>
|
||||
<artifactId>cxf-rt-transports-http</artifactId>
|
||||
<scope>provided</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>junit</groupId>
|
||||
<artifactId>junit</artifactId>
|
||||
<scope>test</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.codehaus.jackson</groupId>
|
||||
<artifactId>jackson-jaxrs</artifactId>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.codehaus.jackson</groupId>
|
||||
<artifactId>jackson-core-asl</artifactId>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>javax.ws.rs</groupId>
|
||||
<artifactId>jsr311-api</artifactId>
|
||||
<scope>provided</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.wso2.carbon</groupId>
|
||||
<artifactId>org.wso2.carbon.utils</artifactId>
|
||||
<scope>provided</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.wso2.carbon</groupId>
|
||||
<artifactId>org.wso2.carbon.logging</artifactId>
|
||||
<scope>provided</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.wso2.carbon.devicemgt</groupId>
|
||||
<artifactId>org.wso2.carbon.certificate.mgt.core</artifactId>
|
||||
<groupId>org.json.wso2</groupId>
|
||||
<artifactId>json</artifactId>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>commons-codec.wso2</groupId>
|
||||
<artifactId>commons-codec</artifactId>
|
||||
<scope>provided</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.wso2.carbon.devicemgt</groupId>
|
||||
<artifactId>org.wso2.carbon.identity.jwt.client.extension</artifactId>
|
||||
<artifactId>org.wso2.carbon.device.application.mgt.core</artifactId>
|
||||
<scope>provided</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.wso2.carbon.devicemgt</groupId>
|
||||
<artifactId>org.wso2.carbon.device.application.mgt.common</artifactId>
|
||||
<scope>provided</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
@ -190,25 +171,41 @@
|
||||
<groupId>io.swagger</groupId>
|
||||
<artifactId>swagger-core</artifactId>
|
||||
<exclusions>
|
||||
<exclusion>
|
||||
<groupId>com.fasterxml.jackson.module</groupId>
|
||||
<artifactId>jackson-module-jaxb-annotations</artifactId>
|
||||
</exclusion>
|
||||
<exclusion>
|
||||
<groupId>org.slf4j</groupId>
|
||||
<artifactId>slf4j-api</artifactId>
|
||||
</exclusion>
|
||||
<exclusion>
|
||||
<groupId>org.wso2.orbit.com.fasterxml.jackson.core</groupId>
|
||||
<artifactId>jackson-core</artifactId>
|
||||
</exclusion>
|
||||
</exclusions>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>io.swagger</groupId>
|
||||
<artifactId>swagger-jaxrs</artifactId>
|
||||
<exclusions>
|
||||
<exclusion>
|
||||
<groupId>com.fasterxml.jackson.module</groupId>
|
||||
<artifactId>jackson-module-jaxb-annotations</artifactId>
|
||||
</exclusion>
|
||||
<exclusion>
|
||||
<groupId>org.slf4j</groupId>
|
||||
<artifactId>slf4j-api</artifactId>
|
||||
</exclusion>
|
||||
<exclusion>
|
||||
<groupId>org.wso2.orbit.com.fasterxml.jackson.core</groupId>
|
||||
<artifactId>jackson-core</artifactId>
|
||||
</exclusion>
|
||||
</exclusions>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>javax.servlet</groupId>
|
||||
<artifactId>servlet-api</artifactId>
|
||||
<artifactId>javax.servlet-api</artifactId>
|
||||
<scope>provided</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
@ -216,6 +213,13 @@
|
||||
<artifactId>org.wso2.carbon.apimgt.annotations</artifactId>
|
||||
<scope>provided</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.wso2.orbit.com.fasterxml.jackson.core</groupId>
|
||||
<artifactId>jackson-annotations</artifactId>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.wso2.carbon.devicemgt</groupId>
|
||||
<artifactId>org.wso2.carbon.device.application.mgt.addons</artifactId>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
|
||||
</project>
|
||||
</project>
|
||||
@ -0,0 +1,134 @@
|
||||
/* Copyright (c) 2019, Entgra (Pvt) Ltd. (http://www.entgra.io) All Rights Reserved.
|
||||
*
|
||||
* Entgra (Pvt) Ltd. licenses this file to you under the Apache License,
|
||||
* Version 2.0 (the "License"); you may not use this file except
|
||||
* in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing,
|
||||
* software distributed under the License is distributed on an
|
||||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
* KIND, either express or implied. See the License for the
|
||||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
*/
|
||||
|
||||
package org.wso2.carbon.device.application.mgt.api.services;
|
||||
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import io.swagger.annotations.ApiParam;
|
||||
import io.swagger.annotations.ApiResponse;
|
||||
import io.swagger.annotations.ApiResponses;
|
||||
import io.swagger.annotations.Extension;
|
||||
import io.swagger.annotations.ExtensionProperty;
|
||||
import io.swagger.annotations.Info;
|
||||
import io.swagger.annotations.SwaggerDefinition;
|
||||
import org.wso2.carbon.device.application.mgt.common.ApplicationList;
|
||||
import org.wso2.carbon.device.application.mgt.common.ErrorResponse;
|
||||
|
||||
import javax.ws.rs.GET;
|
||||
import javax.ws.rs.Path;
|
||||
import javax.ws.rs.PathParam;
|
||||
import javax.ws.rs.Produces;
|
||||
import javax.ws.rs.core.MediaType;
|
||||
import javax.ws.rs.core.Response;
|
||||
|
||||
/**
|
||||
* APIs to handle application management related tasks.
|
||||
*/
|
||||
@SwaggerDefinition(
|
||||
info = @Info(
|
||||
version = "1.0.0",
|
||||
title = "Application Management Artifact Download Service",
|
||||
extensions = {
|
||||
@Extension(properties = {
|
||||
@ExtensionProperty(name = "name", value = "ApplicationManagementArtifactDownloadService"),
|
||||
@ExtensionProperty(name = "context", value = "/api/application-mgt/v1.0/artifact"),
|
||||
})
|
||||
}
|
||||
)
|
||||
)
|
||||
@Path("/artifact")
|
||||
@Api(value = "ApplicationDTO Management Artifact Downloading Service")
|
||||
@Produces(MediaType.APPLICATION_JSON)
|
||||
public interface ArtifactDownloadAPI {
|
||||
|
||||
@GET
|
||||
@Path("/{tenantId}/{uuid}/{folderName}/{fileName}")
|
||||
@Produces(MediaType.APPLICATION_OCTET_STREAM)
|
||||
@ApiOperation(
|
||||
produces = MediaType.APPLICATION_OCTET_STREAM,
|
||||
httpMethod = "GET",
|
||||
value = "get application management UI configuration",
|
||||
notes = "This will get all UI configuration of application management"
|
||||
)
|
||||
@ApiResponses(
|
||||
value = {
|
||||
@ApiResponse(
|
||||
code = 200,
|
||||
message = "OK. \n Successfully got UI config.",
|
||||
response = ApplicationList.class),
|
||||
@ApiResponse(
|
||||
code = 404,
|
||||
message = "Not Found. There doesn't have an defined UI config." +
|
||||
"query."),
|
||||
@ApiResponse(
|
||||
code = 500,
|
||||
message = "Internal Server Error. \n Error occurred while getting the UI config.",
|
||||
response = ErrorResponse.class)
|
||||
})
|
||||
Response getArtifact(
|
||||
@ApiParam(
|
||||
name = "tenantId",
|
||||
value = "Tenant Id of the application artifact belongs.",
|
||||
required = true)
|
||||
@PathParam("tenantId") int tenantId,
|
||||
@ApiParam(
|
||||
name = "uuid",
|
||||
value = "UUID of the application release.",
|
||||
required = true)
|
||||
@PathParam("uuid") String uuid,
|
||||
@ApiParam(
|
||||
name = "folderName",
|
||||
value = "Name of the folder where the artifact store.",
|
||||
required = true)
|
||||
@PathParam("folderName") String folderName,
|
||||
@ApiParam(
|
||||
name = "fileName",
|
||||
value = "Name of the artifact",
|
||||
required = true)
|
||||
@PathParam("fileName") String fileName);
|
||||
|
||||
@GET
|
||||
@Path("/plist/{uuid}")
|
||||
@Produces(MediaType.TEXT_XML)
|
||||
@ApiOperation(
|
||||
produces = MediaType.TEXT_XML,
|
||||
httpMethod = "GET",
|
||||
value = "Get plist artifact content of an application",
|
||||
notes = "Get plist artifact content of an application"
|
||||
)
|
||||
@ApiResponses(
|
||||
value = {
|
||||
@ApiResponse(
|
||||
code = 200,
|
||||
message = "OK. \n Successfully retrieved plist artifact content.",
|
||||
response = ApplicationList.class),
|
||||
@ApiResponse(
|
||||
code = 404,
|
||||
message = "Not Found. Plist artifact content not found for the application."),
|
||||
@ApiResponse(
|
||||
code = 500,
|
||||
message = "Internal Server Error. \n Error occurred while retrieving plist artifact content.",
|
||||
response = ErrorResponse.class)
|
||||
})
|
||||
Response getPlistArtifact(
|
||||
@ApiParam(
|
||||
name = "uuid",
|
||||
value = "UUID of the application release.",
|
||||
required = true)
|
||||
@PathParam("uuid") String uuid);
|
||||
}
|
||||
@ -0,0 +1,83 @@
|
||||
/* Copyright (c) 2019, Entgra (Pvt) Ltd. (http://www.entgra.io) All Rights Reserved.
|
||||
*
|
||||
* Entgra (Pvt) Ltd. licenses this file to you under the Apache License,
|
||||
* Version 2.0 (the "License"); you may not use this file except
|
||||
* in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing,
|
||||
* software distributed under the License is distributed on an
|
||||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
* KIND, either express or implied. See the License for the
|
||||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
*/
|
||||
|
||||
package org.wso2.carbon.device.application.mgt.api.services;
|
||||
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import io.swagger.annotations.ApiResponse;
|
||||
import io.swagger.annotations.ApiResponses;
|
||||
import io.swagger.annotations.Extension;
|
||||
import io.swagger.annotations.ExtensionProperty;
|
||||
import io.swagger.annotations.Info;
|
||||
import io.swagger.annotations.SwaggerDefinition;
|
||||
import org.wso2.carbon.device.application.mgt.common.*;
|
||||
import org.wso2.carbon.device.application.mgt.common.ErrorResponse;
|
||||
|
||||
import javax.ws.rs.GET;
|
||||
import javax.ws.rs.Path;
|
||||
import javax.ws.rs.Produces;
|
||||
import javax.ws.rs.core.MediaType;
|
||||
import javax.ws.rs.core.Response;
|
||||
|
||||
/**
|
||||
* APIs to handle application management related tasks.
|
||||
*/
|
||||
@SwaggerDefinition(
|
||||
info = @Info(
|
||||
version = "1.0.0",
|
||||
title = "Application Management Config Retrieve Service",
|
||||
extensions = {
|
||||
@Extension(properties = {
|
||||
@ExtensionProperty(name = "name", value = "ApplicationManagementConfigRetrieveService"),
|
||||
@ExtensionProperty(name = "context", value = "/api/application-mgt/v1.0/config"),
|
||||
})
|
||||
}
|
||||
)
|
||||
)
|
||||
@Path("/config")
|
||||
@Api(value = "ApplicationDTO Management Common Service")
|
||||
@Produces(MediaType.APPLICATION_JSON)
|
||||
public interface ConfigRetrieveAPI {
|
||||
|
||||
@GET
|
||||
@Path("/ui-config")
|
||||
@Produces(MediaType.APPLICATION_JSON)
|
||||
@ApiOperation(
|
||||
consumes = MediaType.APPLICATION_JSON,
|
||||
produces = MediaType.APPLICATION_JSON,
|
||||
httpMethod = "GET",
|
||||
value = "get application management UI configuration",
|
||||
notes = "This will get all UI configuration of application management"
|
||||
)
|
||||
@ApiResponses(
|
||||
value = {
|
||||
@ApiResponse(
|
||||
code = 200,
|
||||
message = "OK. \n Successfully got UI config.",
|
||||
response = ApplicationList.class),
|
||||
@ApiResponse(
|
||||
code = 404,
|
||||
message = "Not Found. There doesn't have an defined UI config." +
|
||||
"query."),
|
||||
@ApiResponse(
|
||||
code = 500,
|
||||
message = "Internal Server Error. \n Error occurred while getting the UI config.",
|
||||
response = ErrorResponse.class)
|
||||
})
|
||||
Response getUiConfig();
|
||||
}
|
||||
@ -0,0 +1,99 @@
|
||||
/* Copyright (c) 2019, Entgra (Pvt) Ltd. (http://www.entgra.io) All Rights Reserved.
|
||||
*
|
||||
* Entgra (Pvt) Ltd. licenses this file to you under the Apache License,
|
||||
* Version 2.0 (the "License"); you may not use this file except
|
||||
* in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing,
|
||||
* software distributed under the License is distributed on an
|
||||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
* KIND, either express or implied. See the License for the
|
||||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
*/
|
||||
|
||||
package org.wso2.carbon.device.application.mgt.api.services.impl;
|
||||
|
||||
import org.apache.commons.logging.Log;
|
||||
import org.apache.commons.logging.LogFactory;
|
||||
import org.wso2.carbon.device.application.mgt.api.services.ArtifactDownloadAPI;
|
||||
import org.wso2.carbon.device.application.mgt.common.exception.ApplicationManagementException;
|
||||
import org.wso2.carbon.device.application.mgt.common.services.ApplicationManager;
|
||||
import org.wso2.carbon.device.application.mgt.common.services.AppmDataHandler;
|
||||
import org.wso2.carbon.device.application.mgt.core.exception.BadRequestException;
|
||||
import org.wso2.carbon.device.application.mgt.core.exception.NotFoundException;
|
||||
import org.wso2.carbon.device.application.mgt.core.util.APIUtil;
|
||||
|
||||
import javax.ws.rs.GET;
|
||||
import javax.ws.rs.Path;
|
||||
import javax.ws.rs.PathParam;
|
||||
import javax.ws.rs.Produces;
|
||||
import javax.ws.rs.core.MediaType;
|
||||
import javax.ws.rs.core.Response;
|
||||
import java.io.InputStream;
|
||||
|
||||
/**
|
||||
* Implementation of ApplicationDTO Management related APIs.
|
||||
*/
|
||||
@Produces({"application/json"})
|
||||
@Path("/artifact")
|
||||
public class ArtifactDownloadAPIImpl implements ArtifactDownloadAPI {
|
||||
|
||||
private static Log log = LogFactory.getLog(ArtifactDownloadAPIImpl.class);
|
||||
|
||||
@GET
|
||||
@Override
|
||||
@Produces(MediaType.APPLICATION_OCTET_STREAM)
|
||||
@Path("/{tenantId}/{uuid}/{folderName}/{fileName}")
|
||||
public Response getArtifact(
|
||||
@PathParam("tenantId") int tenantId,
|
||||
@PathParam("uuid") String uuid,
|
||||
@PathParam("folderName") String folderName,
|
||||
@PathParam("fileName") String fileName) {
|
||||
AppmDataHandler dataHandler = APIUtil.getDataHandler();
|
||||
try {
|
||||
InputStream fileInputStream = dataHandler.getArtifactStream(tenantId, uuid, folderName, fileName);
|
||||
Response.ResponseBuilder response = Response
|
||||
.ok(fileInputStream, MediaType.APPLICATION_OCTET_STREAM);
|
||||
response.status(Response.Status.OK);
|
||||
response.header("Content-Disposition", "attachment; filename=\"" + fileName + "\"");
|
||||
return response.build();
|
||||
} catch (NotFoundException e) {
|
||||
String msg = "Couldn't find an application release for UUID: " + uuid + " and file name: " + fileName;
|
||||
log.error(msg, e);
|
||||
return Response.status(Response.Status.NOT_FOUND).entity(msg).build();
|
||||
} catch (BadRequestException e) {
|
||||
String msg = "Invalid data is used with the request to get input stream of the application release. UUID: "
|
||||
+ uuid + " and file name: " + fileName;
|
||||
log.error(msg, e);
|
||||
return Response.status(Response.Status.BAD_REQUEST).entity(msg).build();
|
||||
} catch (ApplicationManagementException e) {
|
||||
String msg = "Error occurred while getting the application release artifact file. ";
|
||||
log.error(msg, e);
|
||||
return Response.status(Response.Status.INTERNAL_SERVER_ERROR).entity(msg).build();
|
||||
}
|
||||
}
|
||||
|
||||
@GET
|
||||
@Override
|
||||
@Produces(MediaType.TEXT_XML)
|
||||
@Path("/plist/{uuid}")
|
||||
public Response getPlistArtifact(@PathParam("uuid") String uuid) {
|
||||
ApplicationManager applicationManager = APIUtil.getApplicationManager();
|
||||
try {
|
||||
String plistContent = applicationManager.getPlistArtifact(uuid);
|
||||
return Response.status(Response.Status.OK).entity(plistContent).build();
|
||||
} catch (NotFoundException e) {
|
||||
String msg = "Couldn't find an application release for UUID: " + uuid;
|
||||
log.error(msg, e);
|
||||
return Response.status(Response.Status.NOT_FOUND).entity(msg).build();
|
||||
} catch (ApplicationManagementException e) {
|
||||
String msg = "Error occurred while getting the application plist artifact file.";
|
||||
log.error(msg, e);
|
||||
return Response.status(Response.Status.INTERNAL_SERVER_ERROR).entity(msg).build();
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,57 @@
|
||||
/* Copyright (c) 2019, Entgra (Pvt) Ltd. (http://www.entgra.io) All Rights Reserved.
|
||||
*
|
||||
* Entgra (Pvt) Ltd. licenses this file to you under the Apache License,
|
||||
* Version 2.0 (the "License"); you may not use this file except
|
||||
* in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing,
|
||||
* software distributed under the License is distributed on an
|
||||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
* KIND, either express or implied. See the License for the
|
||||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
*/
|
||||
|
||||
package org.wso2.carbon.device.application.mgt.api.services.impl;
|
||||
|
||||
import org.apache.commons.logging.Log;
|
||||
import org.apache.commons.logging.LogFactory;
|
||||
import org.wso2.carbon.device.application.mgt.api.services.ConfigRetrieveAPI;
|
||||
import org.wso2.carbon.device.application.mgt.common.config.UIConfiguration;
|
||||
import org.wso2.carbon.device.application.mgt.common.exception.LifecycleManagementException;
|
||||
import org.wso2.carbon.device.application.mgt.common.services.AppmDataHandler;
|
||||
import org.wso2.carbon.device.application.mgt.core.util.APIUtil;
|
||||
|
||||
import javax.ws.rs.Consumes;
|
||||
import javax.ws.rs.GET;
|
||||
import javax.ws.rs.Path;
|
||||
import javax.ws.rs.Produces;
|
||||
import javax.ws.rs.core.Response;
|
||||
|
||||
/**
|
||||
* Implementation of ApplicationDTO Management related APIs.
|
||||
*/
|
||||
@Produces({"application/json"})
|
||||
@Path("/config")
|
||||
public class ConfigRetrieveAPIImpl implements ConfigRetrieveAPI {
|
||||
|
||||
private static Log log = LogFactory.getLog(ConfigRetrieveAPIImpl.class);
|
||||
|
||||
@GET
|
||||
@Override
|
||||
@Consumes("application/json")
|
||||
@Path("/ui-config")
|
||||
public Response getUiConfig() {
|
||||
AppmDataHandler dataHandler = APIUtil.getDataHandler();
|
||||
UIConfiguration uiConfiguration = dataHandler.getUIConfiguration();
|
||||
if (uiConfiguration == null){
|
||||
String msg = "UI configuration is not initiated.";
|
||||
log.error(msg);
|
||||
return Response.status(Response.Status.INTERNAL_SERVER_ERROR).entity(msg).build();
|
||||
}
|
||||
return Response.status(Response.Status.OK).entity(uiConfiguration).build();
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,33 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!--
|
||||
* Copyright (c) 2019, Entgra (Pvt) Ltd. (http://www.entgra.io) All Rights Reserved.
|
||||
*
|
||||
* Entgra (Pvt) Ltd. licenses this file to you under the Apache License,
|
||||
* Version 2.0 (the "License"); you may not use this file except
|
||||
* in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing,
|
||||
* software distributed under the License is distributed on an
|
||||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
* KIND, either express or implied. See the License for the
|
||||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
-->
|
||||
|
||||
<!-- This file contains the list of permissions that are associated with URL end points
|
||||
of the web app. Each permission should contain the name, permission path ,API path
|
||||
(URL) , HTTP method and OAUTH2 authorization scope (not-required).
|
||||
When defining dynamic paths for APIs, path variables are denoted by '*' notation.
|
||||
For ex:
|
||||
Actual API endpoint: devicemgt_admin/1.0.0/devices/{device-id}
|
||||
URL to be represented here: /devices/*
|
||||
NOTE: All the endpoints of the web app should be available in this file. Otherwise
|
||||
it will result 403 error at the runtime.
|
||||
-->
|
||||
<PermissionConfiguration>
|
||||
<APIVersion></APIVersion>
|
||||
|
||||
</PermissionConfiguration>
|
||||
@ -1,21 +1,21 @@
|
||||
<?xml version="1.0" encoding="ISO-8859-1"?>
|
||||
|
||||
<!--
|
||||
~ Copyright (c) 2017, WSO2 Inc. (http://www.wso2.org) All Rights Reserved.
|
||||
~
|
||||
~ WSO2 Inc. licenses this file to you under the Apache License,
|
||||
~ Version 2.0 (the "License"); you may not use this file except
|
||||
~ in compliance with the License.
|
||||
~ You may obtain a copy of the License at
|
||||
~
|
||||
~ http://www.apache.org/licenses/LICENSE-2.0
|
||||
~
|
||||
~ Unless required by applicable law or agreed to in writing,
|
||||
~ software distributed under the License is distributed on an
|
||||
~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
~ KIND, either express or implied. See the License for the
|
||||
~ specific language governing permissions and limitations
|
||||
~ under the License.
|
||||
* Copyright (c) 2019, Entgra (Pvt) Ltd. (http://www.entgra.io) All Rights Reserved.
|
||||
*
|
||||
* Entgra (Pvt) Ltd. licenses this file to you under the Apache License,
|
||||
* Version 2.0 (the "License"); you may not use this file except
|
||||
* in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing,
|
||||
* software distributed under the License is distributed on an
|
||||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
* KIND, either express or implied. See the License for the
|
||||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
-->
|
||||
|
||||
<!--
|
||||
@ -0,0 +1,69 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!--
|
||||
* Copyright (c) 2019, Entgra (Pvt) Ltd. (http://www.entgra.io) All Rights Reserved.
|
||||
*
|
||||
* Entgra (Pvt) Ltd. licenses this file to you under the Apache License,
|
||||
* Version 2.0 (the "License"); you may not use this file except
|
||||
* in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing,
|
||||
* software distributed under the License is distributed on an
|
||||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
* KIND, either express or implied. See the License for the
|
||||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
-->
|
||||
<beans xmlns="http://www.springframework.org/schema/beans"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xmlns:jaxrs="http://cxf.apache.org/jaxrs" xmlns:cxf="http://cxf.apache.org/core"
|
||||
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.0.xsd
|
||||
http://cxf.apache.org/jaxrs http://cxf.apache.org/schemas/jaxrs.xsd http://cxf.apache.org/core http://cxf.apache.org/schemas/core.xsd">
|
||||
|
||||
|
||||
<jaxrs:server id="applicationMgtCommonService" address="/">
|
||||
<jaxrs:serviceBeans>
|
||||
<ref bean="applicationMgtConfigService"/>
|
||||
<ref bean="applicationMgtArtifactService"/>
|
||||
<ref bean="swaggerResource"/>
|
||||
</jaxrs:serviceBeans>
|
||||
<jaxrs:providers>
|
||||
<ref bean="jsonProvider"/>
|
||||
<ref bean="multipartProvider"/>
|
||||
<ref bean="swaggerWriter"/>
|
||||
</jaxrs:providers>
|
||||
</jaxrs:server>
|
||||
|
||||
<bean id="swaggerConfig" class="io.swagger.jaxrs.config.BeanConfig">
|
||||
<property name="resourcePackage" value="org.wso2.carbon.device.application.mgt.publisher.api"/>
|
||||
<property name="version" value="1.0"/>
|
||||
<property name="host" value="localhost:9443"/>
|
||||
<property name="schemes" value="https" />
|
||||
<property name="basePath" value="/api/application-mgt-publisher/v1.0"/>
|
||||
<property name="title" value="Application Management Admin Service API Definitions"/>
|
||||
<property name="contact" value="dev@wso2.org"/>
|
||||
<property name="license" value="Apache 2.0"/>
|
||||
<property name="licenseUrl" value="http://www.apache.org/licenses/LICENSE-2.0.html"/>
|
||||
<property name="scan" value="true"/>
|
||||
</bean>
|
||||
|
||||
<bean id="org.wso2.carbon.device.application.mgt.addons.ValidationInterceptor" class="org.wso2.carbon.device.application.mgt.addons.ValidationInterceptor"/>
|
||||
<bean id="swaggerWriter" class="io.swagger.jaxrs.listing.SwaggerSerializers" />
|
||||
<bean id="swaggerResource" class="io.swagger.jaxrs.listing.ApiListingResource" />
|
||||
|
||||
<bean id="applicationMgtConfigService" class="org.wso2.carbon.device.application.mgt.api.services.impl.ConfigRetrieveAPIImpl"/>
|
||||
<bean id="applicationMgtArtifactService" class="org.wso2.carbon.device.application.mgt.api.services.impl.ArtifactDownloadAPIImpl"/>
|
||||
<bean id="jsonProvider" class="org.wso2.carbon.device.application.mgt.addons.JSONMessageHandler"/>
|
||||
<bean id="multipartProvider" class="org.wso2.carbon.device.application.mgt.addons.MultipartCustomProvider"/>
|
||||
|
||||
<cxf:bus>
|
||||
<cxf:inInterceptors>
|
||||
<ref bean="org.wso2.carbon.device.application.mgt.addons.ValidationInterceptor"/>
|
||||
</cxf:inInterceptors>
|
||||
</cxf:bus>
|
||||
|
||||
</beans>
|
||||
|
||||
|
||||
@ -0,0 +1,129 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!--
|
||||
* Copyright (c) 2019, Entgra (Pvt) Ltd. (http://www.entgra.io) All Rights Reserved.
|
||||
*
|
||||
* Entgra (Pvt) Ltd. licenses this file to you under the Apache License,
|
||||
* Version 2.0 (the "License"); you may not use this file except
|
||||
* in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing,
|
||||
* software distributed under the License is distributed on an
|
||||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
* KIND, either express or implied. See the License for the
|
||||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
-->
|
||||
<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://java.sun.com/xml/ns/javaee"
|
||||
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
|
||||
version="2.5">
|
||||
<display-name>Application Management Webapp</display-name>
|
||||
<servlet>
|
||||
<description>JAX-WS/JAX-RS Application Management Endpoint</description>
|
||||
<display-name>JAX-WS/JAX-RS Servlet</display-name>
|
||||
<servlet-name>CXFServlet</servlet-name>
|
||||
<servlet-class>
|
||||
org.apache.cxf.transport.servlet.CXFServlet
|
||||
</servlet-class>
|
||||
<!-- configure a security filter -->
|
||||
<init-param>
|
||||
<param-name>swagger.security.filter</param-name>
|
||||
<param-value>ApiAuthorizationFilterImpl</param-value>
|
||||
</init-param>
|
||||
<load-on-startup>1</load-on-startup>
|
||||
</servlet>
|
||||
<servlet-mapping>
|
||||
<servlet-name>CXFServlet</servlet-name>
|
||||
<url-pattern>/*</url-pattern>
|
||||
</servlet-mapping>
|
||||
<session-config>
|
||||
<session-timeout>60</session-timeout>
|
||||
</session-config>
|
||||
<context-param>
|
||||
<param-name>doAuthentication</param-name>
|
||||
<param-value>true</param-value>
|
||||
</context-param>
|
||||
|
||||
<!-- Below configuration is used to redirect http requests to https -->
|
||||
<!-- Below configuration is commented because artifact download API is accessed from the device -->
|
||||
<!-- <security-constraint>-->
|
||||
<!-- <web-resource-collection>-->
|
||||
<!-- <web-resource-name>ApplicationMgt-Admin</web-resource-name>-->
|
||||
<!-- <url-pattern>/*</url-pattern>-->
|
||||
<!-- </web-resource-collection>-->
|
||||
<!-- <user-data-constraint>-->
|
||||
<!-- <transport-guarantee>CONFIDENTIAL</transport-guarantee>-->
|
||||
<!-- </user-data-constraint>-->
|
||||
<!-- </security-constraint>-->
|
||||
|
||||
<!--publish to apim-->
|
||||
<context-param>
|
||||
<param-name>managed-api-enabled</param-name>
|
||||
<param-value>true</param-value>
|
||||
</context-param>
|
||||
<context-param>
|
||||
<param-name>managed-api-owner</param-name>
|
||||
<param-value>admin</param-value>
|
||||
</context-param>
|
||||
<context-param>
|
||||
<param-name>isSharedWithAllTenants</param-name>
|
||||
<param-value>true</param-value>
|
||||
</context-param>
|
||||
|
||||
<filter>
|
||||
<filter-name>ApiOriginFilter</filter-name>
|
||||
<filter-class>org.wso2.carbon.device.application.mgt.addons.ApiOriginFilter</filter-class>
|
||||
</filter>
|
||||
|
||||
<filter>
|
||||
<filter-name>HttpHeaderSecurityFilter</filter-name>
|
||||
<filter-class>org.apache.catalina.filters.HttpHeaderSecurityFilter</filter-class>
|
||||
<init-param>
|
||||
<param-name>hstsEnabled</param-name>
|
||||
<param-value>false</param-value>
|
||||
</init-param>
|
||||
</filter>
|
||||
|
||||
<filter>
|
||||
<filter-name>ContentTypeBasedCachePreventionFilter</filter-name>
|
||||
<filter-class>org.wso2.carbon.ui.filters.cache.ContentTypeBasedCachePreventionFilter</filter-class>
|
||||
<init-param>
|
||||
<param-name>patterns</param-name>
|
||||
<param-value>text/html" ,application/json" ,text/plain</param-value>
|
||||
</init-param>
|
||||
<init-param>
|
||||
<param-name>filterAction</param-name>
|
||||
<param-value>enforce</param-value>
|
||||
</init-param>
|
||||
<init-param>
|
||||
<param-name>httpHeaders</param-name>
|
||||
<param-value>Cache-Control: no-store, no-cache, must-revalidate, private</param-value>
|
||||
</init-param>
|
||||
</filter>
|
||||
|
||||
<filter-mapping>
|
||||
<filter-name>HttpHeaderSecurityFilter</filter-name>
|
||||
<url-pattern>/*</url-pattern>
|
||||
</filter-mapping>
|
||||
|
||||
<filter-mapping>
|
||||
<filter-name>ContentTypeBasedCachePreventionFilter</filter-name>
|
||||
<url-pattern>/*</url-pattern>
|
||||
</filter-mapping>
|
||||
|
||||
<filter-mapping>
|
||||
<filter-name>ApiOriginFilter</filter-name>
|
||||
<url-pattern>/*</url-pattern>
|
||||
</filter-mapping>
|
||||
|
||||
<context-param>
|
||||
<param-name>nonSecuredEndPoints</param-name>
|
||||
<param-value>
|
||||
/api/application-mgt/v1.0/artifact/.*,
|
||||
/api/application-mgt/v1.0/config/.*
|
||||
</param-value>
|
||||
</context-param>
|
||||
|
||||
</web-app>
|
||||
@ -0,0 +1,127 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!--
|
||||
~ Copyright (c) 2019, Entgra (pvt) Ltd. (http://entgra.io) All Rights Reserved.
|
||||
~
|
||||
~ Entgra (pvt) Ltd. licenses this file to you under the Apache License,
|
||||
~ Version 2.0 (the "License"); you may not use this file except
|
||||
~ in compliance with the License.
|
||||
~ You may obtain a copy of the License at
|
||||
~
|
||||
~ http://www.apache.org/licenses/LICENSE-2.0
|
||||
~
|
||||
~ Unless required by applicable law or agreed to in writing,
|
||||
~ software distributed under the License is distributed on an
|
||||
~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
~ KIND, either express or implied. See the License for the
|
||||
~ specific language governing permissions and limitations
|
||||
~ under the License.
|
||||
-->
|
||||
|
||||
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
||||
<parent>
|
||||
<groupId>org.wso2.carbon.devicemgt</groupId>
|
||||
<artifactId>application-mgt</artifactId>
|
||||
<version>4.0.0-SNAPSHOT</version>
|
||||
<relativePath>../pom.xml</relativePath>
|
||||
</parent>
|
||||
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<artifactId>org.wso2.carbon.device.application.mgt.common</artifactId>
|
||||
<version>4.0.0-SNAPSHOT</version>
|
||||
<packaging>bundle</packaging>
|
||||
<name>WSO2 Carbon - Application Management Common</name>
|
||||
<description>WSO2 Carbon - Application Management Common</description>
|
||||
<url>https://entgra.io</url>
|
||||
|
||||
<build>
|
||||
<plugins>
|
||||
<plugin>
|
||||
<groupId>org.apache.felix</groupId>
|
||||
<artifactId>maven-scr-plugin</artifactId>
|
||||
</plugin>
|
||||
<plugin>
|
||||
<groupId>org.apache.felix</groupId>
|
||||
<artifactId>maven-bundle-plugin</artifactId>
|
||||
<extensions>true</extensions>
|
||||
<configuration>
|
||||
<instructions>
|
||||
<Bundle-SymbolicName>${project.artifactId}</Bundle-SymbolicName>
|
||||
<Bundle-Name>${project.artifactId}</Bundle-Name>
|
||||
<Bundle-Version>${carbon.device.mgt.version}</Bundle-Version>
|
||||
<Bundle-Description>Application Management Common Bundle</Bundle-Description>
|
||||
<Import-Package>
|
||||
org.wso2.carbon.device.mgt.common.*;version="${carbon.device.mgt.version}",
|
||||
org.wso2.carbon.device.mgt.core.dto;version="${carbon.device.mgt.version}",
|
||||
com.google.gson,
|
||||
io.swagger.annotations.*;resolution:=optional,
|
||||
com.fasterxml.jackson.annotation,
|
||||
javax.validation.constraints,
|
||||
javax.xml.bind.annotation.*,
|
||||
</Import-Package>
|
||||
<Export-Package>
|
||||
org.wso2.carbon.device.application.mgt.common.*
|
||||
</Export-Package>
|
||||
</instructions>
|
||||
</configuration>
|
||||
</plugin>
|
||||
</plugins>
|
||||
</build>
|
||||
|
||||
<dependencies>
|
||||
<dependency>
|
||||
<groupId>org.eclipse.osgi</groupId>
|
||||
<artifactId>org.eclipse.osgi</artifactId>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.eclipse.equinox</groupId>
|
||||
<artifactId>org.eclipse.equinox.common</artifactId>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.wso2.carbon</groupId>
|
||||
<artifactId>org.wso2.carbon.logging</artifactId>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>commons-codec.wso2</groupId>
|
||||
<artifactId>commons-codec</artifactId>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>commons-io.wso2</groupId>
|
||||
<artifactId>commons-io</artifactId>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>io.swagger</groupId>
|
||||
<artifactId>swagger-annotations</artifactId>
|
||||
<scope>provided</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.json.wso2</groupId>
|
||||
<artifactId>json</artifactId>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>com.google.code.gson</groupId>
|
||||
<artifactId>gson</artifactId>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.wso2.carbon.devicemgt</groupId>
|
||||
<artifactId>org.wso2.carbon.device.mgt.core</artifactId>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.wso2.carbon.devicemgt</groupId>
|
||||
<artifactId>org.wso2.carbon.device.mgt.common</artifactId>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.hibernate</groupId>
|
||||
<artifactId>hibernate-validator</artifactId>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.apache.cxf</groupId>
|
||||
<artifactId>cxf-rt-frontend-jaxrs</artifactId>
|
||||
<scope>provided</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.codehaus.jackson</groupId>
|
||||
<artifactId>jackson-core-asl</artifactId>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
</project>
|
||||
|
||||
@ -0,0 +1,26 @@
|
||||
/* Copyright (c) 2019, Entgra (Pvt) Ltd. (http://www.entgra.io) All Rights Reserved.
|
||||
*
|
||||
* Entgra (Pvt) Ltd. licenses this file to you under the Apache License,
|
||||
* Version 2.0 (the "License"); you may not use this file except
|
||||
* in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing,
|
||||
* software distributed under the License is distributed on an
|
||||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
* KIND, either express or implied. See the License for the
|
||||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
*/
|
||||
package org.wso2.carbon.device.application.mgt.common;
|
||||
|
||||
|
||||
/**
|
||||
* States of the Application.
|
||||
*/
|
||||
public enum AppLifecycleState {
|
||||
CREATED, IN_REVIEW, PUBLISHED, APPROVED, BLOCKED, REJECTED, DEPRECATED, RETIRED
|
||||
}
|
||||
|
||||
@ -0,0 +1,106 @@
|
||||
/* Copyright (c) 2019, Entgra (Pvt) Ltd. (http://www.entgra.io) All Rights Reserved.
|
||||
*
|
||||
* Entgra (Pvt) Ltd. licenses this file to you under the Apache License,
|
||||
* Version 2.0 (the "License"); you may not use this file except
|
||||
* in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing,
|
||||
* software distributed under the License is distributed on an
|
||||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
* KIND, either express or implied. See the License for the
|
||||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
*/
|
||||
package org.wso2.carbon.device.application.mgt.common;
|
||||
|
||||
import org.wso2.carbon.device.application.mgt.common.dto.ApplicationDTO;
|
||||
|
||||
public class AppOperation {
|
||||
|
||||
private static final long serialVersionUID = 7603215716452548282L;
|
||||
|
||||
private ApplicationDTO application;
|
||||
private int tenantId;
|
||||
private String activityId;
|
||||
private String scheduledDateTime;
|
||||
private OperationType type;
|
||||
private String subscribedBy;
|
||||
private int appReleaseId;
|
||||
private InstallState installState;
|
||||
|
||||
public InstallState getInstallState() {
|
||||
return installState;
|
||||
}
|
||||
|
||||
public void setInstallState(InstallState installState) {
|
||||
this.installState = installState;
|
||||
}
|
||||
|
||||
public enum InstallState {
|
||||
PENDING, INPROGRESS, INSTALLED, UNINSTALLED, ERROR
|
||||
}
|
||||
|
||||
public int getAppReleaseId() {
|
||||
return appReleaseId;
|
||||
}
|
||||
|
||||
public void setAppReleaseId(int appReleaseId) {
|
||||
this.appReleaseId = appReleaseId;
|
||||
}
|
||||
|
||||
public String getSubscribedBy() {
|
||||
return subscribedBy;
|
||||
}
|
||||
|
||||
public void setSubscribedBy(String subscribedBy) {
|
||||
this.subscribedBy = subscribedBy;
|
||||
}
|
||||
|
||||
public enum OperationType {
|
||||
INSTALL, UNINSTALL, UPDATE
|
||||
}
|
||||
|
||||
public OperationType getType() {
|
||||
return type;
|
||||
}
|
||||
|
||||
public void setType(OperationType type) {
|
||||
this.type = type;
|
||||
}
|
||||
|
||||
public ApplicationDTO getApplication() {
|
||||
return application;
|
||||
}
|
||||
|
||||
public void setApplication(ApplicationDTO application) {
|
||||
this.application = application;
|
||||
}
|
||||
|
||||
public int getTenantId() {
|
||||
return tenantId;
|
||||
}
|
||||
|
||||
public void setTenantId(int tenantId) {
|
||||
this.tenantId = tenantId;
|
||||
}
|
||||
|
||||
public String getActivityId() {
|
||||
return activityId;
|
||||
}
|
||||
|
||||
public void setActivityId(String activityId) {
|
||||
this.activityId = activityId;
|
||||
}
|
||||
|
||||
public String getScheduledDateTime() {
|
||||
return scheduledDateTime;
|
||||
}
|
||||
|
||||
public void setScheduledDateTime(String scheduledDateTime) {
|
||||
this.scheduledDateTime = scheduledDateTime;
|
||||
}
|
||||
|
||||
}
|
||||
@ -0,0 +1,93 @@
|
||||
/* Copyright (c) 2019, Entgra (Pvt) Ltd. (http://www.entgra.io) All Rights Reserved.
|
||||
*
|
||||
* Entgra (Pvt) Ltd. licenses this file to you under the Apache License,
|
||||
* Version 2.0 (the "License"); you may not use this file except
|
||||
* in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing,
|
||||
* software distributed under the License is distributed on an
|
||||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
* KIND, either express or implied. See the License for the
|
||||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
*/
|
||||
package org.wso2.carbon.device.application.mgt.common;
|
||||
|
||||
import java.io.InputStream;
|
||||
import java.util.Map;
|
||||
|
||||
public class ApplicationArtifact {
|
||||
|
||||
private String installerName;
|
||||
|
||||
private InputStream installerStream;
|
||||
|
||||
private String bannerName;
|
||||
|
||||
private InputStream bannerStream;
|
||||
|
||||
private String iconName;
|
||||
|
||||
private InputStream iconStream;
|
||||
|
||||
private Map<String , InputStream> screenshots;
|
||||
|
||||
public String getInstallerName() {
|
||||
return installerName;
|
||||
}
|
||||
|
||||
public void setInstallerName(String installerName) {
|
||||
this.installerName = installerName;
|
||||
}
|
||||
|
||||
public InputStream getInstallerStream() {
|
||||
return installerStream;
|
||||
}
|
||||
|
||||
public void setInstallerStream(InputStream installerStream) {
|
||||
this.installerStream = installerStream;
|
||||
}
|
||||
|
||||
public String getBannerName() {
|
||||
return bannerName;
|
||||
}
|
||||
|
||||
public void setBannerName(String bannerName) {
|
||||
this.bannerName = bannerName;
|
||||
}
|
||||
|
||||
public InputStream getBannerStream() {
|
||||
return bannerStream;
|
||||
}
|
||||
|
||||
public void setBannerStream(InputStream bannerStream) {
|
||||
this.bannerStream = bannerStream;
|
||||
}
|
||||
|
||||
public String getIconName() {
|
||||
return iconName;
|
||||
}
|
||||
|
||||
public void setIconName(String iconName) {
|
||||
this.iconName = iconName;
|
||||
}
|
||||
|
||||
public InputStream getIconStream() {
|
||||
return iconStream;
|
||||
}
|
||||
|
||||
public void setIconStream(InputStream iconStream) {
|
||||
this.iconStream = iconStream;
|
||||
}
|
||||
|
||||
public Map<String, InputStream> getScreenshots() {
|
||||
return screenshots;
|
||||
}
|
||||
|
||||
public void setScreenshots(Map<String, InputStream> screenshots) {
|
||||
this.screenshots = screenshots;
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,67 @@
|
||||
/* Copyright (c) 2019, Entgra (Pvt) Ltd. (http://www.entgra.io) All Rights Reserved.
|
||||
*
|
||||
* Entgra (Pvt) Ltd. licenses this file to you under the Apache License,
|
||||
* Version 2.0 (the "License"); you may not use this file except
|
||||
* in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing,
|
||||
* software distributed under the License is distributed on an
|
||||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
* KIND, either express or implied. See the License for the
|
||||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
*/
|
||||
|
||||
package org.wso2.carbon.device.application.mgt.common;
|
||||
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import org.wso2.carbon.device.mgt.common.DeviceIdentifier;
|
||||
import org.wso2.carbon.device.mgt.common.operation.mgt.Activity;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
public class ApplicationInstallResponse {
|
||||
@ApiModelProperty(
|
||||
name = "ignoredDeviceIdentifiers",
|
||||
value = "List of devices that application release is already installed.",
|
||||
dataType = "List[org.wso2.carbon.device.mgt.common.DeviceIdentifier]"
|
||||
)
|
||||
private List<DeviceIdentifier> ignoredDeviceIdentifiers;
|
||||
|
||||
@ApiModelProperty(
|
||||
name = "errorDevices",
|
||||
value = "List of devices that either device identity is not exist or device type doesn't compatible with the supported device type of the .",
|
||||
dataType = "List[org.wso2.carbon.device.mgt.common.DeviceIdentifier]"
|
||||
)
|
||||
private List<DeviceIdentifier> errorDeviceIdentifiers;
|
||||
|
||||
|
||||
@ApiModelProperty(
|
||||
name = "activity",
|
||||
value = "Activity corresponding to the operation"
|
||||
)
|
||||
private List<Activity> activities;
|
||||
|
||||
public List<Activity> getActivities() {
|
||||
return activities;
|
||||
}
|
||||
|
||||
public void setActivities(List<Activity> activity) {
|
||||
this.activities = activity;
|
||||
}
|
||||
|
||||
public List<DeviceIdentifier> getIgnoredDeviceIdentifiers() {
|
||||
return ignoredDeviceIdentifiers;
|
||||
}
|
||||
|
||||
public void setIgnoredDeviceIdentifiers(List<DeviceIdentifier> ignoredDeviceIdentifiers) {
|
||||
this.ignoredDeviceIdentifiers = ignoredDeviceIdentifiers;
|
||||
}
|
||||
|
||||
public List<DeviceIdentifier> getErrorDeviceIdentifiers() { return errorDeviceIdentifiers; }
|
||||
|
||||
public void setErrorDeviceIdentifiers(List<DeviceIdentifier> errorDeviceIdentifiers) { this.errorDeviceIdentifiers = errorDeviceIdentifiers; }
|
||||
}
|
||||
@ -0,0 +1,70 @@
|
||||
/* Copyright (c) 2019, Entgra (Pvt) Ltd. (http://www.entgra.io) All Rights Reserved.
|
||||
*
|
||||
* Entgra (Pvt) Ltd. licenses this file to you under the Apache License,
|
||||
* Version 2.0 (the "License"); you may not use this file except
|
||||
* in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing,
|
||||
* software distributed under the License is distributed on an
|
||||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
* KIND, either express or implied. See the License for the
|
||||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
*/
|
||||
|
||||
package org.wso2.carbon.device.application.mgt.common;
|
||||
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import org.wso2.carbon.device.mgt.common.DeviceIdentifier;
|
||||
import org.wso2.carbon.device.mgt.common.operation.mgt.Activity;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
public class ApplicationInstallResponseTmp {
|
||||
@ApiModelProperty(
|
||||
name = "successfulDevices",
|
||||
value = "List of successful devices",
|
||||
dataType = "List[org.wso2.carbon.device.mgt.common.DeviceIdentifier]"
|
||||
)
|
||||
private List<DeviceIdentifier> successfulDevices;
|
||||
|
||||
@ApiModelProperty(
|
||||
name = "failedDevices",
|
||||
value = "List of failed devices",
|
||||
dataType = "List[org.wso2.carbon.device.mgt.common.DeviceIdentifier]"
|
||||
)
|
||||
private List<DeviceIdentifier> failedDevices;
|
||||
|
||||
@ApiModelProperty(
|
||||
name = "activity",
|
||||
value = "Activity corresponding to the operation"
|
||||
)
|
||||
private Activity activity;
|
||||
|
||||
public List<DeviceIdentifier> getSuccessfulDevices() {
|
||||
return successfulDevices;
|
||||
}
|
||||
|
||||
public void setSuccessfulDevices(List<DeviceIdentifier> successfulDevices) {
|
||||
this.successfulDevices = successfulDevices;
|
||||
}
|
||||
|
||||
public List<DeviceIdentifier> getFailedDevices() {
|
||||
return failedDevices;
|
||||
}
|
||||
|
||||
public void setFailedDevices(List<DeviceIdentifier> failedDevices) {
|
||||
this.failedDevices = failedDevices;
|
||||
}
|
||||
|
||||
public Activity getActivity() {
|
||||
return activity;
|
||||
}
|
||||
|
||||
public void setActivity(Activity activity) {
|
||||
this.activity = activity;
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,46 @@
|
||||
/* Copyright (c) 2019, Entgra (Pvt) Ltd. (http://www.entgra.io) All Rights Reserved.
|
||||
*
|
||||
* Entgra (Pvt) Ltd. licenses this file to you under the Apache License,
|
||||
* Version 2.0 (the "License"); you may not use this file except
|
||||
* in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing,
|
||||
* software distributed under the License is distributed on an
|
||||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
* KIND, either express or implied. See the License for the
|
||||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
*/
|
||||
package org.wso2.carbon.device.application.mgt.common;
|
||||
|
||||
public class ApplicationInstaller {
|
||||
|
||||
/***
|
||||
* Package name of the Installer
|
||||
*/
|
||||
private String packageName;
|
||||
|
||||
/***
|
||||
* Version of the Installer.
|
||||
*/
|
||||
private String version;
|
||||
|
||||
public String getPackageName() {
|
||||
return packageName;
|
||||
}
|
||||
|
||||
public void setPackageName(String packageName) {
|
||||
this.packageName = packageName;
|
||||
}
|
||||
|
||||
public String getVersion() {
|
||||
return version;
|
||||
}
|
||||
|
||||
public void setVersion(String version) {
|
||||
this.version = version;
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,48 @@
|
||||
/* Copyright (c) 2019, Entgra (Pvt) Ltd. (http://www.entgra.io) All Rights Reserved.
|
||||
*
|
||||
* Entgra (Pvt) Ltd. licenses this file to you under the Apache License,
|
||||
* Version 2.0 (the "License"); you may not use this file except
|
||||
* in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing,
|
||||
* software distributed under the License is distributed on an
|
||||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
* KIND, either express or implied. See the License for the
|
||||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
*/
|
||||
package org.wso2.carbon.device.application.mgt.common;
|
||||
|
||||
import org.wso2.carbon.device.application.mgt.common.dto.ApplicationDTO;
|
||||
import org.wso2.carbon.device.application.mgt.common.response.Application;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* Represents a list of {@link ApplicationDTO}.
|
||||
*/
|
||||
public class ApplicationList {
|
||||
|
||||
private List<Application> applications;
|
||||
|
||||
private Pagination pagination;
|
||||
|
||||
public List<Application> getApplications() {
|
||||
return applications;
|
||||
}
|
||||
|
||||
public void setApplications(List<Application> applications) {
|
||||
this.applications = applications;
|
||||
}
|
||||
|
||||
public Pagination getPagination() {
|
||||
return pagination;
|
||||
}
|
||||
|
||||
public void setPagination(Pagination pagination) {
|
||||
this.pagination = pagination;
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,25 @@
|
||||
/* Copyright (c) 2019, Entgra (Pvt) Ltd. (http://www.entgra.io) All Rights Reserved.
|
||||
*
|
||||
* Entgra (Pvt) Ltd. licenses this file to you under the Apache License,
|
||||
* Version 2.0 (the "License"); you may not use this file except
|
||||
* in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing,
|
||||
* software distributed under the License is distributed on an
|
||||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
* KIND, either express or implied. See the License for the
|
||||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
*/
|
||||
|
||||
package org.wso2.carbon.device.application.mgt.common;
|
||||
|
||||
/**
|
||||
* Possible Subscription Type of the application.
|
||||
*/
|
||||
public enum ApplicationSubscriptionType {
|
||||
FREE, PAID
|
||||
}
|
||||
@ -0,0 +1,26 @@
|
||||
/* Copyright (c) 2019, Entgra (Pvt) Ltd. (http://www.entgra.io) All Rights Reserved.
|
||||
*
|
||||
* Entgra (Pvt) Ltd. licenses this file to you under the Apache License,
|
||||
* Version 2.0 (the "License"); you may not use this file except
|
||||
* in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing,
|
||||
* software distributed under the License is distributed on an
|
||||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
* KIND, either express or implied. See the License for the
|
||||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
*/
|
||||
package org.wso2.carbon.device.application.mgt.common;
|
||||
|
||||
|
||||
/**
|
||||
* Application Types.
|
||||
*/
|
||||
public enum ApplicationType {
|
||||
ENTERPRISE, PUBLIC, WEB_APP, WEB_CLIP, CUSTOM
|
||||
}
|
||||
|
||||
@ -0,0 +1,38 @@
|
||||
/*
|
||||
* Copyright (c) 2019, Entgra (pvt) Ltd. (http://entgra.io) All Rights Reserved.
|
||||
*
|
||||
* Entgra (pvt) Ltd. licenses this file to you under the Apache License,
|
||||
* Version 2.0 (the "License"); you may not use this file except
|
||||
* in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing,
|
||||
* software distributed under the License is distributed on an
|
||||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
* KIND, either express or implied. See the License for the
|
||||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
*/
|
||||
package org.wso2.carbon.device.application.mgt.common;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
|
||||
public class BasePaginatedResult {
|
||||
|
||||
@ApiModelProperty(
|
||||
value = "Number of total resources.",
|
||||
example = "1")
|
||||
@JsonProperty("count")
|
||||
private long count;
|
||||
|
||||
public long getCount() {
|
||||
return count;
|
||||
}
|
||||
|
||||
public void setCount(long count) {
|
||||
this.count = count;
|
||||
}
|
||||
}
|
||||
@ -1,23 +1,21 @@
|
||||
/*
|
||||
* Copyright (c) 2017, WSO2 Inc. (http://www.wso2.org) All Rights Reserved.
|
||||
* Copyright (c) 2019, Entgra (pvt) Ltd. (http://entgra.io) All Rights Reserved.
|
||||
*
|
||||
* WSO2 Inc. licenses this file to you under the Apache License,
|
||||
* Version 2.0 (the "License"); you may not use this file except
|
||||
* in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
* Entgra (pvt) Ltd. licenses this file to you under the Apache License,
|
||||
* Version 2.0 (the "License"); you may not use this file except
|
||||
* in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing,
|
||||
* software distributed under the License is distributed on an
|
||||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
* KIND, either express or implied. See the License for the
|
||||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing,
|
||||
* software distributed under the License is distributed on an
|
||||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
* KIND, either express or implied. See the License for the
|
||||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
*/
|
||||
|
||||
package org.wso2.carbon.device.mgt.jaxrs.beans;
|
||||
package org.wso2.carbon.device.application.mgt.common;
|
||||
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
@ -33,6 +31,10 @@ public class BasicUserInfo {
|
||||
private String lastname;
|
||||
@ApiModelProperty(name = "emailAddress", value = "The email address of the user.", required = true )
|
||||
private String emailAddress;
|
||||
@ApiModelProperty(name = "createdDate", value = "User creation date." )
|
||||
private String createdDate;
|
||||
@ApiModelProperty(name = "modifiedDate", value = "User modifiedDate date." )
|
||||
private String modifiedDate;
|
||||
|
||||
public String getUsername() {
|
||||
return username;
|
||||
@ -66,4 +68,20 @@ public class BasicUserInfo {
|
||||
this.emailAddress = emailAddress;
|
||||
}
|
||||
|
||||
public String getCreatedDate() {
|
||||
return createdDate;
|
||||
}
|
||||
|
||||
public void setCreatedDate(String createdDate) {
|
||||
this.createdDate = createdDate;
|
||||
}
|
||||
|
||||
public String getModifiedDate() {
|
||||
return modifiedDate;
|
||||
}
|
||||
|
||||
public void setModifiedDate(String modifiedDate) {
|
||||
this.modifiedDate = modifiedDate;
|
||||
}
|
||||
|
||||
}
|
||||
@ -1,23 +1,21 @@
|
||||
/*
|
||||
* Copyright (c) 2017, WSO2 Inc. (http://www.wso2.org) All Rights Reserved.
|
||||
* Copyright (c) 2019, Entgra (pvt) Ltd. (http://entgra.io) All Rights Reserved.
|
||||
*
|
||||
* WSO2 Inc. licenses this file to you under the Apache License,
|
||||
* Version 2.0 (the "License"); you may not use this file except
|
||||
* in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
* Entgra (pvt) Ltd. licenses this file to you under the Apache License,
|
||||
* Version 2.0 (the "License"); you may not use this file except
|
||||
* in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing,
|
||||
* software distributed under the License is distributed on an
|
||||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
* KIND, either express or implied. See the License for the
|
||||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing,
|
||||
* software distributed under the License is distributed on an
|
||||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
* KIND, either express or implied. See the License for the
|
||||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
*/
|
||||
|
||||
package org.wso2.carbon.device.mgt.jaxrs.beans;
|
||||
package org.wso2.carbon.device.application.mgt.common;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
@ -27,7 +25,7 @@ import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
@ApiModel(value = "BasicUserInfoList", description = "This contains basic details of a set of users that matches " +
|
||||
"a given criteria as a collection")
|
||||
"a given criteria as a collection")
|
||||
public class BasicUserInfoList extends BasePaginatedResult {
|
||||
|
||||
private List<BasicUserInfo> users = new ArrayList<>();
|
||||
@ -1,23 +1,21 @@
|
||||
/*
|
||||
* Copyright (c) 2017, WSO2 Inc. (http://www.wso2.org) All Rights Reserved.
|
||||
* Copyright (c) 2019, Entgra (pvt) Ltd. (http://entgra.io) All Rights Reserved.
|
||||
*
|
||||
* WSO2 Inc. licenses this file to you under the Apache License,
|
||||
* Version 2.0 (the "License"); you may not use this file except
|
||||
* in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
* Entgra (pvt) Ltd. licenses this file to you under the Apache License,
|
||||
* Version 2.0 (the "License"); you may not use this file except
|
||||
* in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing,
|
||||
* software distributed under the License is distributed on an
|
||||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
* KIND, either express or implied. See the License for the
|
||||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing,
|
||||
* software distributed under the License is distributed on an
|
||||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
* KIND, either express or implied. See the License for the
|
||||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
*/
|
||||
|
||||
package org.wso2.carbon.device.mgt.jaxrs.beans;
|
||||
package org.wso2.carbon.device.application.mgt.common;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
@ -50,4 +48,3 @@ public class DeviceGroupList extends BasePaginatedResult {
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@ -1,23 +1,21 @@
|
||||
/*
|
||||
* Copyright (c) 2017, WSO2 Inc. (http://www.wso2.org) All Rights Reserved.
|
||||
* Copyright (c) 2019, Entgra (pvt) Ltd. (http://entgra.io) All Rights Reserved.
|
||||
*
|
||||
* WSO2 Inc. licenses this file to you under the Apache License,
|
||||
* Version 2.0 (the "License"); you may not use this file except
|
||||
* in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
* Entgra (pvt) Ltd. licenses this file to you under the Apache License,
|
||||
* Version 2.0 (the "License"); you may not use this file except
|
||||
* in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing,
|
||||
* software distributed under the License is distributed on an
|
||||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
* KIND, either express or implied. See the License for the
|
||||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing,
|
||||
* software distributed under the License is distributed on an
|
||||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
* KIND, either express or implied. See the License for the
|
||||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
*/
|
||||
|
||||
package org.wso2.carbon.device.mgt.jaxrs.beans;
|
||||
package org.wso2.carbon.device.application.mgt.common;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
@ -44,7 +42,6 @@ public class DeviceList extends BasePaginatedResult {
|
||||
public String toString() {
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.append("{\n");
|
||||
|
||||
sb.append(" count: ").append(getCount()).append(",\n");
|
||||
sb.append(" devices: [").append(devices).append("\n");
|
||||
sb.append("]}\n");
|
||||
@ -52,4 +49,3 @@ public class DeviceList extends BasePaginatedResult {
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@ -0,0 +1,80 @@
|
||||
/* Copyright (c) 2019, Entgra (Pvt) Ltd. (http://www.entgra.io) All Rights Reserved.
|
||||
*
|
||||
* Entgra (Pvt) Ltd. licenses this file to you under the Apache License,
|
||||
* Version 2.0 (the "License"); you may not use this file except
|
||||
* in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing,
|
||||
* software distributed under the License is distributed on an
|
||||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
* KIND, either express or implied. See the License for the
|
||||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
*/
|
||||
|
||||
package org.wso2.carbon.device.application.mgt.common;
|
||||
|
||||
import org.wso2.carbon.device.mgt.common.Device;
|
||||
|
||||
import java.sql.Timestamp;
|
||||
|
||||
public class DeviceSubscriptionData {
|
||||
|
||||
private String action;
|
||||
private Timestamp actionTriggeredTimestamp;
|
||||
private String actionTriggeredBy;
|
||||
private String actionType;
|
||||
private String status;
|
||||
private Device device;
|
||||
|
||||
public String getAction() {
|
||||
return action;
|
||||
}
|
||||
|
||||
public void setAction(String action) {
|
||||
this.action = action;
|
||||
}
|
||||
|
||||
public Timestamp getActionTriggeredTimestamp() {
|
||||
return actionTriggeredTimestamp;
|
||||
}
|
||||
|
||||
public void setActionTriggeredTimestamp(Timestamp actionTriggeredTimestamp) {
|
||||
this.actionTriggeredTimestamp = actionTriggeredTimestamp;
|
||||
}
|
||||
|
||||
public String getActionTriggeredBy() {
|
||||
return actionTriggeredBy;
|
||||
}
|
||||
|
||||
public void setActionTriggeredBy(String actionTriggeredBy) {
|
||||
this.actionTriggeredBy = actionTriggeredBy;
|
||||
}
|
||||
|
||||
public String getActionType() {
|
||||
return actionType;
|
||||
}
|
||||
|
||||
public void setActionType(String actionType) {
|
||||
this.actionType = actionType;
|
||||
}
|
||||
|
||||
public String getStatus() {
|
||||
return status;
|
||||
}
|
||||
|
||||
public void setStatus(String status) {
|
||||
this.status = status;
|
||||
}
|
||||
|
||||
public Device getDevice() {
|
||||
return device;
|
||||
}
|
||||
|
||||
public void setDevice(Device device) {
|
||||
this.device = device;
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,21 @@
|
||||
/* Copyright (c) 2019, Entgra (Pvt) Ltd. (http://www.entgra.io) All Rights Reserved.
|
||||
*
|
||||
* Entgra (Pvt) Ltd. licenses this file to you under the Apache License,
|
||||
* Version 2.0 (the "License"); you may not use this file except
|
||||
* in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing,
|
||||
* software distributed under the License is distributed on an
|
||||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
* KIND, either express or implied. See the License for the
|
||||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
*/
|
||||
package org.wso2.carbon.device.application.mgt.common;
|
||||
|
||||
public enum DeviceTypes {
|
||||
ANDROID, IOS
|
||||
}
|
||||
@ -0,0 +1,84 @@
|
||||
/* Copyright (c) 2019, Entgra (Pvt) Ltd. (http://www.entgra.io) All Rights Reserved.
|
||||
*
|
||||
* Entgra (Pvt) Ltd. licenses this file to you under the Apache License,
|
||||
* Version 2.0 (the "License"); you may not use this file except
|
||||
* in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing,
|
||||
* software distributed under the License is distributed on an
|
||||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
* KIND, either express or implied. See the License for the
|
||||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
*/
|
||||
|
||||
package org.wso2.carbon.device.application.mgt.common;
|
||||
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
public class EnterpriseInstallationDetails {
|
||||
|
||||
/**
|
||||
* This enum represents the type of entities which an application can be installed on.
|
||||
*
|
||||
* e.g: An application can be installed on all the devices belong to a user or a specific device group.
|
||||
*/
|
||||
@ApiModel
|
||||
public enum EnterpriseEntity {
|
||||
USER, ROLE, DEVICE_GROUP
|
||||
}
|
||||
|
||||
@ApiModelProperty(
|
||||
name = "applicationUUID",
|
||||
value = "ApplicationDTO ID",
|
||||
required = true,
|
||||
example = "4354c752-109f-11e8-b642-0ed5f89f718b"
|
||||
)
|
||||
private String applicationUUID;
|
||||
|
||||
@ApiModelProperty(
|
||||
name = "entityType",
|
||||
value = "Enterprise entity type",
|
||||
required = true,
|
||||
example = "USER"
|
||||
)
|
||||
private EnterpriseEntity entityType;
|
||||
|
||||
@ApiModelProperty(
|
||||
name = "entityValueList",
|
||||
value = "List of users/roles or device groups.",
|
||||
required = true,
|
||||
example = "user1,user2, user3"
|
||||
)
|
||||
private List<String> entityValueList;
|
||||
|
||||
public String getApplicationUUID() {
|
||||
return applicationUUID;
|
||||
}
|
||||
|
||||
public void setApplicationUUID(String applicationUUID) {
|
||||
this.applicationUUID = applicationUUID;
|
||||
}
|
||||
|
||||
public EnterpriseEntity getEntityType() {
|
||||
return entityType;
|
||||
}
|
||||
|
||||
public void setEntityType(EnterpriseEntity entityType) {
|
||||
this.entityType = entityType;
|
||||
}
|
||||
|
||||
public List<String> getEntityValueList() {
|
||||
return entityValueList;
|
||||
}
|
||||
|
||||
public void setEntityValueList(List<String> entityValueList) {
|
||||
this.entityValueList = entityValueList;
|
||||
}
|
||||
}
|
||||
@ -1,23 +1,21 @@
|
||||
/*
|
||||
* Copyright (c) 2017, WSO2 Inc. (http://www.wso2.org) All Rights Reserved.
|
||||
* Copyright (c) 2019, Entgra (pvt) Ltd. (http://entgra.io) All Rights Reserved.
|
||||
*
|
||||
* WSO2 Inc. licenses this file to you under the Apache License,
|
||||
* Version 2.0 (the "License"); you may not use this file except
|
||||
* in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
* Entgra (pvt) Ltd. licenses this file to you under the Apache License,
|
||||
* Version 2.0 (the "License"); you may not use this file except
|
||||
* in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing,
|
||||
* software distributed under the License is distributed on an
|
||||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
* KIND, either express or implied. See the License for the
|
||||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing,
|
||||
* software distributed under the License is distributed on an
|
||||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
* KIND, either express or implied. See the License for the
|
||||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
*/
|
||||
|
||||
package org.wso2.carbon.certificate.mgt.jaxrs.beans;
|
||||
package org.wso2.carbon.device.application.mgt.common;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
@ -25,6 +23,9 @@ import io.swagger.annotations.ApiModelProperty;
|
||||
|
||||
import javax.validation.constraints.NotNull;
|
||||
|
||||
/**
|
||||
* Represents a single error item in the error response.
|
||||
*/
|
||||
@ApiModel(description = "Error List Item")
|
||||
public class ErrorListItem {
|
||||
|
||||
@ -51,7 +52,6 @@ public class ErrorListItem {
|
||||
this.message = msg;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Description about individual errors occurred
|
||||
*/
|
||||
@ -70,9 +70,11 @@ public class ErrorListItem {
|
||||
public String toString() {
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.append("errorItem {\n");
|
||||
|
||||
sb.append(" code: ").append(code).append("\n");
|
||||
sb.append(" message: ").append(message).append("\n");
|
||||
sb.append("}\n");
|
||||
return sb.toString();
|
||||
}
|
||||
|
||||
}
|
||||
@ -0,0 +1,105 @@
|
||||
/*
|
||||
* Copyright (c) 2019, Entgra (pvt) Ltd. (http://entgra.io) All Rights Reserved.
|
||||
*
|
||||
* Entgra (pvt) Ltd. licenses this file to you under the Apache License,
|
||||
* Version 2.0 (the "License"); you may not use this file except
|
||||
* in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing,
|
||||
* software distributed under the License is distributed on an
|
||||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
* KIND, either express or implied. See the License for the
|
||||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
*/
|
||||
package org.wso2.carbon.device.application.mgt.common;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* This represents a response that need to be send back to the client, when the request cannot be completed
|
||||
* successfully.
|
||||
*/
|
||||
@ApiModel(description = "Error Response")
|
||||
public class ErrorResponse {
|
||||
|
||||
private Integer code = null;
|
||||
private String message = null;
|
||||
private String description = null;
|
||||
private String moreInfo = null;
|
||||
private List<ErrorListItem> errorItems = new ArrayList<>();
|
||||
|
||||
public ErrorResponse() {
|
||||
|
||||
}
|
||||
|
||||
public ErrorResponse(String message) {
|
||||
this.message = message;
|
||||
}
|
||||
|
||||
@JsonProperty(value = "code")
|
||||
@ApiModelProperty(required = true, value = "")
|
||||
public Integer getCode() {
|
||||
return code;
|
||||
}
|
||||
|
||||
public void setCode(Integer code) {
|
||||
this.code = code;
|
||||
}
|
||||
|
||||
@JsonProperty(value = "message")
|
||||
@ApiModelProperty(required = true, value = "ErrorResponse message.")
|
||||
public String getMessage() {
|
||||
return message;
|
||||
}
|
||||
|
||||
public void setMessage(String message) {
|
||||
this.message = message;
|
||||
}
|
||||
|
||||
@JsonProperty(value = "description")
|
||||
@ApiModelProperty(value = "A detail description about the error message.")
|
||||
public String getDescription() {
|
||||
return description;
|
||||
}
|
||||
|
||||
public void setDescription(String description) {
|
||||
this.description = description;
|
||||
}
|
||||
|
||||
@JsonProperty(value = "moreInfo")
|
||||
@ApiModelProperty(value = "Preferably an url with more details about the error.")
|
||||
public String getMoreInfo() {
|
||||
return moreInfo;
|
||||
}
|
||||
|
||||
public void setMoreInfo(String moreInfo) {
|
||||
this.moreInfo = moreInfo;
|
||||
}
|
||||
|
||||
public void addErrorListItem(ErrorListItem item) {
|
||||
this.errorItems.add(item);
|
||||
}
|
||||
|
||||
/**
|
||||
* If there are more than one error list them out. \nFor example, list out validation errors by each field.
|
||||
*/
|
||||
@JsonProperty(value = "errorItems")
|
||||
@ApiModelProperty(value = "If there are more than one error list them out. \n" +
|
||||
"For example, list out validation errors by each field.")
|
||||
public List<ErrorListItem> getErrorItems() {
|
||||
return errorItems;
|
||||
}
|
||||
|
||||
public void setErrorItems(List<ErrorListItem> error) {
|
||||
this.errorItems = error;
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,23 @@
|
||||
/*
|
||||
* Copyright (c) 2019, Entgra (Pvt) Ltd. (http://www.entgra.io) All Rights Reserved.
|
||||
*
|
||||
* Entgra (Pvt) Ltd. licenses this file to you under the Apache License,
|
||||
* Version 2.0 (the "License"); you may not use this file except
|
||||
* in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing,
|
||||
* software distributed under the License is distributed on an
|
||||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
* KIND, either express or implied. See the License for the
|
||||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
*/
|
||||
|
||||
package org.wso2.carbon.device.application.mgt.common;
|
||||
|
||||
public enum ExecutionStatus {
|
||||
PENDING, EXECUTED, FAILED
|
||||
}
|
||||
@ -0,0 +1,196 @@
|
||||
/*
|
||||
* Copyright (c) 2019, Entgra (pvt) Ltd. (http://entgra.io) All Rights Reserved.
|
||||
*
|
||||
* Entgra (pvt) Ltd. licenses this file to you under the Apache License,
|
||||
* Version 2.0 (the "License"); you may not use this file except
|
||||
* in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing,
|
||||
* software distributed under the License is distributed on an
|
||||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
* KIND, either express or implied. See the License for the
|
||||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
*/
|
||||
package org.wso2.carbon.device.application.mgt.common;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* Filter represents a criteria that can be used for searching applications.
|
||||
*/
|
||||
public class Filter {
|
||||
|
||||
/***
|
||||
* Supported device type for the application.
|
||||
* e.g :- Android, iOS, Windows
|
||||
*/
|
||||
private String deviceType;
|
||||
|
||||
/***
|
||||
* Name of the application.
|
||||
*/
|
||||
private String appName;
|
||||
|
||||
/***
|
||||
* Type of the application.
|
||||
* e.g :- ENTERPRISE, PUBLIC
|
||||
*/
|
||||
private String appType;
|
||||
|
||||
/***
|
||||
* Subscription type of the application.
|
||||
* e.g :- FREE, PAID etc
|
||||
*/
|
||||
private String subscriptionType;
|
||||
|
||||
/***
|
||||
* Minimum rating of the application.
|
||||
* e.g :- 4,5
|
||||
*/
|
||||
private int minimumRating;
|
||||
|
||||
/***
|
||||
* Application release version.
|
||||
*/
|
||||
private String version;
|
||||
|
||||
/***
|
||||
* Release type of the application release.
|
||||
* e.g :- Alpha, Beta
|
||||
*/
|
||||
private String appReleaseType;
|
||||
|
||||
/**
|
||||
* Category list of the application
|
||||
*/
|
||||
private List<String> categories;
|
||||
|
||||
/**
|
||||
* Tag list of the application
|
||||
*/
|
||||
private List<String> tags;
|
||||
|
||||
/***
|
||||
* Unrestricted role list. Visibility of the application can restricted through user roles and users can view the
|
||||
* application who has at least one role in unrestricted role list
|
||||
*/
|
||||
private List<String> unrestrictedRoles;
|
||||
|
||||
/**
|
||||
* Checking the application name matches fully with given name
|
||||
*/
|
||||
private boolean isFullMatch;
|
||||
|
||||
/**
|
||||
* Limit of the applications
|
||||
*/
|
||||
private int limit;
|
||||
|
||||
/**
|
||||
* Started from
|
||||
*/
|
||||
private int offset;
|
||||
|
||||
/**
|
||||
* Ascending or descending order
|
||||
*/
|
||||
private String sortBy;
|
||||
|
||||
/**
|
||||
* Current application release state.
|
||||
* e.g :- CREATED. IN_REVIEW, PUBLISHED etc
|
||||
*/
|
||||
private String appReleaseState;
|
||||
|
||||
public int getLimit() {
|
||||
return limit;
|
||||
}
|
||||
|
||||
public void setLimit(int limit) {
|
||||
this.limit = limit;
|
||||
}
|
||||
|
||||
public int getOffset() {
|
||||
return offset;
|
||||
}
|
||||
|
||||
public void setOffset(int offset) {
|
||||
this.offset = offset;
|
||||
}
|
||||
|
||||
public String getAppName() {
|
||||
return appName;
|
||||
}
|
||||
|
||||
public void setAppName(String appName) {
|
||||
this.appName = appName;
|
||||
}
|
||||
|
||||
public String getSortBy() {
|
||||
return sortBy;
|
||||
}
|
||||
|
||||
public void setSortBy(String sortBy) {
|
||||
this.sortBy = sortBy;
|
||||
}
|
||||
|
||||
public boolean isFullMatch() {
|
||||
return isFullMatch;
|
||||
}
|
||||
|
||||
public void setFullMatch(boolean fullMatch) {
|
||||
isFullMatch = fullMatch;
|
||||
}
|
||||
|
||||
public String getAppType() {
|
||||
return appType;
|
||||
}
|
||||
|
||||
public void setAppType(String appType) {
|
||||
this.appType = appType;
|
||||
}
|
||||
|
||||
public List<String> getCategories() {
|
||||
return categories;
|
||||
}
|
||||
|
||||
public void setCategories(List<String> categories) {
|
||||
this.categories = categories;
|
||||
}
|
||||
|
||||
public List<String> getTags() { return tags; }
|
||||
|
||||
public void setTags(List<String> tags) { this.tags = tags; }
|
||||
|
||||
public List<String> getUnrestrictedRoles() { return unrestrictedRoles; }
|
||||
|
||||
public void setUnrestrictedRoles(List<String> unrestrictedRoles) { this.unrestrictedRoles = unrestrictedRoles; }
|
||||
|
||||
public String getAppReleaseState() { return appReleaseState; }
|
||||
|
||||
public void setAppReleaseState(String appReleaseState) { this.appReleaseState = appReleaseState; }
|
||||
|
||||
public String getDeviceType() { return deviceType; }
|
||||
|
||||
public void setDeviceType(String deviceType) { this.deviceType = deviceType; }
|
||||
|
||||
public String getSubscriptionType() { return subscriptionType; }
|
||||
|
||||
public void setSubscriptionType(String subscriptionType) { this.subscriptionType = subscriptionType; }
|
||||
|
||||
public int getMinimumRating() { return minimumRating; }
|
||||
|
||||
public void setMinimumRating(int minimumRating) { this.minimumRating = minimumRating; }
|
||||
|
||||
public String getVersion() { return version; }
|
||||
|
||||
public void setVersion(String version) { this.version = version; }
|
||||
|
||||
public String getAppReleaseType() { return appReleaseType; }
|
||||
|
||||
public void setAppReleaseType(String appReleaseType) { this.appReleaseType = appReleaseType; }
|
||||
}
|
||||
@ -0,0 +1,53 @@
|
||||
/*
|
||||
* Copyright (c) 2019, Entgra (pvt) Ltd. (http://entgra.io) All Rights Reserved.
|
||||
*
|
||||
* Entgra (pvt) Ltd. licenses this file to you under the Apache License,
|
||||
* Version 2.0 (the "License"); you may not use this file except
|
||||
* in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing,
|
||||
* software distributed under the License is distributed on an
|
||||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
* KIND, either express or implied. See the License for the
|
||||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
*/
|
||||
|
||||
package org.wso2.carbon.device.application.mgt.common;
|
||||
|
||||
/**
|
||||
* This represents a image artifact of a application. Icon, Screen-shot or Banner.
|
||||
* It consists of a name, type and base64 encoded string format of the image.
|
||||
*/
|
||||
public class ImageArtifact {
|
||||
private String name;
|
||||
private String type;
|
||||
private String encodedImage;
|
||||
|
||||
public String getType() {
|
||||
return type;
|
||||
}
|
||||
|
||||
public String getEncodedImage() {
|
||||
return encodedImage;
|
||||
}
|
||||
|
||||
public String getName() {
|
||||
return name;
|
||||
}
|
||||
|
||||
public void setName(String name) {
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
public void setType(String type) {
|
||||
this.type = type;
|
||||
}
|
||||
|
||||
public void setEncodedImage(String encodedImage) {
|
||||
this.encodedImage = encodedImage;
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,56 @@
|
||||
/*
|
||||
* Copyright (c) 2019, Entgra (pvt) Ltd. (http://entgra.io) All Rights Reserved.
|
||||
*
|
||||
* Entgra (pvt) Ltd. licenses this file to you under the Apache License,
|
||||
* Version 2.0 (the "License"); you may not use this file except
|
||||
* in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing,
|
||||
* software distributed under the License is distributed on an
|
||||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
* KIND, either express or implied. See the License for the
|
||||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
*/
|
||||
package org.wso2.carbon.device.application.mgt.common;
|
||||
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import org.wso2.carbon.device.mgt.common.DeviceIdentifier;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
public class InstallationDetails {
|
||||
@ApiModelProperty(
|
||||
name = "applicationUUID",
|
||||
value = "Application ID",
|
||||
required = true
|
||||
)
|
||||
private String applicationUUID;
|
||||
|
||||
@ApiModelProperty(
|
||||
name = "deviceIdentifiers",
|
||||
value = "List of device identifiers.",
|
||||
required = true,
|
||||
dataType = "List[org.wso2.carbon.device.mgt.common.DeviceIdentifier]"
|
||||
)
|
||||
private List<DeviceIdentifier> deviceIdentifiers;
|
||||
|
||||
public String getApplicationUUID() {
|
||||
return applicationUUID;
|
||||
}
|
||||
|
||||
public void setApplicationUUID(String applicationUUID) {
|
||||
this.applicationUUID = applicationUUID;
|
||||
}
|
||||
|
||||
public List<DeviceIdentifier> getDeviceIdentifiers() {
|
||||
return deviceIdentifiers;
|
||||
}
|
||||
|
||||
public void setDeviceIdentifiers(List<DeviceIdentifier> deviceIdentifiers) {
|
||||
this.deviceIdentifiers = deviceIdentifiers;
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,32 @@
|
||||
/* Copyright (c) 2019, Entgra (Pvt) Ltd. (http://www.entgra.io) All Rights Reserved.
|
||||
*
|
||||
* Entgra (Pvt) Ltd. licenses this file to you under the Apache License,
|
||||
* Version 2.0 (the "License"); you may not use this file except
|
||||
* in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing,
|
||||
* software distributed under the License is distributed on an
|
||||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
* KIND, either express or implied. See the License for the
|
||||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
*/
|
||||
|
||||
package org.wso2.carbon.device.application.mgt.common;
|
||||
|
||||
public class LifecycleChanger {
|
||||
|
||||
private String action;
|
||||
private String reason;
|
||||
|
||||
public String getAction() { return action; }
|
||||
|
||||
public void setAction(String action) { this.action = action; }
|
||||
|
||||
public String getReason() { return reason; }
|
||||
|
||||
public void setReason(String reason) { this.reason = reason; }
|
||||
}
|
||||
@ -0,0 +1,98 @@
|
||||
/*
|
||||
* Copyright (c) 2019, Entgra (pvt) Ltd. (http://entgra.io) All Rights Reserved.
|
||||
*
|
||||
* Entgra (pvt) Ltd. licenses this file to you under the Apache License,
|
||||
* Version 2.0 (the "License"); you may not use this file except
|
||||
* in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing,
|
||||
* software distributed under the License is distributed on an
|
||||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
* KIND, either express or implied. See the License for the
|
||||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
*/
|
||||
package org.wso2.carbon.device.application.mgt.common;
|
||||
|
||||
import java.sql.Timestamp;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
@ApiModel(value = "LifecycleState", description = "LifecycleState represents the Lifecycle state for an application release")
|
||||
public class LifecycleState {
|
||||
|
||||
@ApiModelProperty(name = "currentState",
|
||||
value = "Current state of the application release",
|
||||
required = true)
|
||||
private String currentState;
|
||||
|
||||
@ApiModelProperty(name = "previousState",
|
||||
value = "Previous state of the application release",
|
||||
required = true)
|
||||
private String previousState;
|
||||
|
||||
@ApiModelProperty(name = "nextStates",
|
||||
value = "Next possible transferring states from the current state")
|
||||
private List<String> nextStates;
|
||||
|
||||
@ApiModelProperty(name = "updatedBy",
|
||||
value = "Username who is update the application release state")
|
||||
private String updatedBy;
|
||||
|
||||
@ApiModelProperty(name = "updatedAt",
|
||||
value = "Timestamp of the lifecycle has been updated")
|
||||
private Timestamp updatedAt;
|
||||
|
||||
@ApiModelProperty(name = "reasonForChange",
|
||||
value = "Reason for the application release lifecycle change from previous state to current state.")
|
||||
private String reasonForChange;
|
||||
|
||||
public String getCurrentState() {
|
||||
return currentState;
|
||||
}
|
||||
|
||||
public void setCurrentState(String currentState) {
|
||||
this.currentState = currentState;
|
||||
}
|
||||
|
||||
public String getPreviousState() {
|
||||
return previousState;
|
||||
}
|
||||
|
||||
public void setPreviousState(String previousState) {
|
||||
this.previousState = previousState;
|
||||
}
|
||||
|
||||
public String getUpdatedBy() {
|
||||
return updatedBy;
|
||||
}
|
||||
|
||||
public void setUpdatedBy(String updatedBy) {
|
||||
this.updatedBy = updatedBy;
|
||||
}
|
||||
|
||||
public Timestamp getUpdatedAt() {
|
||||
return updatedAt;
|
||||
}
|
||||
|
||||
public void setUpdatedAt(Timestamp updatedAt) {
|
||||
this.updatedAt = updatedAt;
|
||||
}
|
||||
|
||||
public List<String> getNextStates() {
|
||||
return nextStates;
|
||||
}
|
||||
|
||||
public void setNextStates(List<String> nextStates) {
|
||||
this.nextStates = nextStates;
|
||||
}
|
||||
|
||||
public String getReasonForChange() { return reasonForChange; }
|
||||
|
||||
public void setReasonForChange(String reasonForChange) { this.reasonForChange = reasonForChange; }
|
||||
}
|
||||
@ -0,0 +1,64 @@
|
||||
/*
|
||||
* Copyright (c) 2019, Entgra (pvt) Ltd. (http://entgra.io) All Rights Reserved.
|
||||
*
|
||||
* Entgra (pvt) Ltd. licenses this file to you under the Apache License,
|
||||
* Version 2.0 (the "License"); you may not use this file except
|
||||
* in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing,
|
||||
* software distributed under the License is distributed on an
|
||||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
* KIND, either express or implied. See the License for the
|
||||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
*/
|
||||
package org.wso2.carbon.device.application.mgt.common;
|
||||
|
||||
/**
|
||||
* This class represents the pagination details that will be used when fetching application details from database.
|
||||
*/
|
||||
public class Pagination {
|
||||
|
||||
private int offset;
|
||||
|
||||
private int limit;
|
||||
|
||||
private int size;
|
||||
|
||||
private int count;
|
||||
|
||||
public int getOffset() {
|
||||
return offset;
|
||||
}
|
||||
|
||||
public void setOffset(int offset) {
|
||||
this.offset = offset;
|
||||
}
|
||||
|
||||
public int getLimit() {
|
||||
return limit;
|
||||
}
|
||||
|
||||
public void setLimit(int limit) {
|
||||
this.limit = limit;
|
||||
}
|
||||
|
||||
public int getSize() {
|
||||
return size;
|
||||
}
|
||||
|
||||
public void setSize(int size) {
|
||||
this.size = size;
|
||||
}
|
||||
|
||||
public int getCount() {
|
||||
return count;
|
||||
}
|
||||
|
||||
public void setCount(int count) {
|
||||
this.count = count;
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,63 @@
|
||||
/*
|
||||
* Copyright (c) 2019, Entgra (pvt) Ltd. (http://entgra.io) All Rights Reserved.
|
||||
*
|
||||
* Entgra (pvt) Ltd. licenses this file to you under the Apache License,
|
||||
* Version 2.0 (the "License"); you may not use this file except
|
||||
* in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing,
|
||||
* software distributed under the License is distributed on an
|
||||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
* KIND, either express or implied. See the License for the
|
||||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
*/
|
||||
|
||||
package org.wso2.carbon.device.application.mgt.common;
|
||||
|
||||
/**
|
||||
* This class holds required parameters for a querying a paginated device response.
|
||||
*/
|
||||
public class PaginationRequest {
|
||||
|
||||
private int offSet;
|
||||
private int limit;
|
||||
|
||||
public PaginationRequest(int start, int limit) {
|
||||
this.offSet = start;
|
||||
this.limit = limit;
|
||||
}
|
||||
|
||||
public int getOffSet() {
|
||||
return offSet;
|
||||
}
|
||||
|
||||
public void setOffSet(int offSet) {
|
||||
this.offSet = offSet;
|
||||
}
|
||||
|
||||
public int getLimit() {
|
||||
return limit;
|
||||
}
|
||||
|
||||
public void setLimit(int limit) {
|
||||
this.limit = limit;
|
||||
}
|
||||
|
||||
public boolean validatePaginationRequest(int offSet, int limit) {
|
||||
if (offSet < 0) {
|
||||
throw new IllegalArgumentException("off set value can't be negative");
|
||||
} else if (limit < 0) {
|
||||
throw new IllegalArgumentException("limit value can't be negative");
|
||||
} else {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
@Override public String toString() {
|
||||
return "Off Set'" + this.offSet + "' row count '" + this.limit;
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,79 @@
|
||||
/*
|
||||
* Copyright (c) 2019, Entgra (pvt) Ltd. (http://entgra.io) All Rights Reserved.
|
||||
*
|
||||
* Entgra (pvt) Ltd. licenses this file to you under the Apache License,
|
||||
* Version 2.0 (the "License"); you may not use this file except
|
||||
* in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing,
|
||||
* software distributed under the License is distributed on an
|
||||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
* KIND, either express or implied. See the License for the
|
||||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
*/
|
||||
|
||||
package org.wso2.carbon.device.application.mgt.common;
|
||||
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* This class holds necessary data to represent a paginated result.
|
||||
*/
|
||||
@ApiModel(value = "PaginationResult", description = "This class carries all information related Pagination Result")
|
||||
public class PaginationResult implements Serializable {
|
||||
|
||||
private static final long serialVersionUID = 1998101711L;
|
||||
|
||||
@ApiModelProperty(name = "recordsTotal", value = "The total number of records that are given before filtering", required = true)
|
||||
private int recordsTotal;
|
||||
|
||||
@ApiModelProperty(name = "recordsFiltered", value = "The total number of records that are given after filtering", required = true)
|
||||
private int recordsFiltered;
|
||||
|
||||
@ApiModelProperty(name = "draw", value = "The draw counter that this object is a response to, from the draw parameter sent as part of the data request", required = true)
|
||||
private int draw;
|
||||
|
||||
@ApiModelProperty(name = "data", value = "This holds the database records that matches given criteria", required = true)
|
||||
private List<?> data;
|
||||
|
||||
public int getRecordsTotal() {
|
||||
return recordsTotal;
|
||||
}
|
||||
|
||||
public int getRecordsFiltered() {
|
||||
return recordsFiltered;
|
||||
}
|
||||
|
||||
public void setRecordsFiltered(int recordsFiltered) {
|
||||
this.recordsFiltered = recordsFiltered;
|
||||
}
|
||||
|
||||
public void setRecordsTotal(int recordsTotal) {
|
||||
this.recordsTotal = recordsTotal;
|
||||
|
||||
}
|
||||
|
||||
public List<?> getData() {
|
||||
return data;
|
||||
}
|
||||
|
||||
public void setData(List<?> data) {
|
||||
this.data = data;
|
||||
}
|
||||
|
||||
public int getDraw() {
|
||||
return draw;
|
||||
}
|
||||
|
||||
public void setDraw(int draw) {
|
||||
this.draw = draw;
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,42 @@
|
||||
/*
|
||||
* Copyright (c) 2019, Entgra (pvt) Ltd. (http://entgra.io) All Rights Reserved.
|
||||
*
|
||||
* Entgra (pvt) Ltd. licenses this file to you under the Apache License,
|
||||
* Version 2.0 (the "License"); you may not use this file except
|
||||
* in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing,
|
||||
* software distributed under the License is distributed on an
|
||||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
* KIND, either express or implied. See the License for the
|
||||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
*/
|
||||
package org.wso2.carbon.device.application.mgt.common;
|
||||
|
||||
public class ProxyResponse {
|
||||
|
||||
private int code;
|
||||
private String url;
|
||||
private String data;
|
||||
private String executorResponse;
|
||||
|
||||
public int getCode() { return code; }
|
||||
|
||||
public void setCode(int code) { this.code = code; }
|
||||
|
||||
public String getUrl() { return url; }
|
||||
|
||||
public void setUrl(String url) { this.url = url; }
|
||||
|
||||
public String getData() { return data; }
|
||||
|
||||
public void setData(String data) { this.data = data; }
|
||||
|
||||
public String getExecutorResponse() { return executorResponse; }
|
||||
|
||||
public void setExecutorResponse(String executorResponse) { this.executorResponse = executorResponse; }
|
||||
}
|
||||
@ -0,0 +1,65 @@
|
||||
/*
|
||||
* Copyright (c) 2019, Entgra (pvt) Ltd. (http://entgra.io) All Rights Reserved.
|
||||
*
|
||||
* Entgra (pvt) Ltd. licenses this file to you under the Apache License,
|
||||
* Version 2.0 (the "License"); you may not use this file except
|
||||
* in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing,
|
||||
* software distributed under the License is distributed on an
|
||||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
* KIND, either express or implied. See the License for the
|
||||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
*/
|
||||
package org.wso2.carbon.device.application.mgt.common;
|
||||
|
||||
import java.util.TreeMap;
|
||||
|
||||
/**
|
||||
* Rating represents the an overall rating value and number of users who has rated for an application release.
|
||||
*/
|
||||
public class Rating {
|
||||
|
||||
/**
|
||||
* Rating value of the application release.
|
||||
*/
|
||||
private double ratingValue;
|
||||
|
||||
/**
|
||||
* Number of users who has rated for the application release.
|
||||
*/
|
||||
private int noOfUsers;
|
||||
|
||||
/**
|
||||
* Represent the rating variety for the application release
|
||||
*/
|
||||
private TreeMap<Integer, Integer> ratingVariety;
|
||||
|
||||
public double getRatingValue() {
|
||||
return ratingValue;
|
||||
}
|
||||
|
||||
public void setRatingValue(double ratingValue) {
|
||||
this.ratingValue = ratingValue;
|
||||
}
|
||||
|
||||
public int getNoOfUsers() {
|
||||
return noOfUsers;
|
||||
}
|
||||
|
||||
public void setNoOfUsers(int noOfUsers) {
|
||||
this.noOfUsers = noOfUsers;
|
||||
}
|
||||
|
||||
public TreeMap<Integer, Integer> getRatingVariety() {
|
||||
return ratingVariety;
|
||||
}
|
||||
|
||||
public void setRatingVariety(TreeMap<Integer, Integer> ratingVariety) {
|
||||
this.ratingVariety = ratingVariety;
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,66 @@
|
||||
/* Copyright (c) 2019, Entgra (Pvt) Ltd. (http://www.entgra.io) All Rights Reserved.
|
||||
*
|
||||
* Entgra (Pvt) Ltd. licenses this file to you under the Apache License,
|
||||
* Version 2.0 (the "License"); you may not use this file except
|
||||
* in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing,
|
||||
* software distributed under the License is distributed on an
|
||||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
* KIND, either express or implied. See the License for the
|
||||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
*/
|
||||
|
||||
package org.wso2.carbon.device.application.mgt.common;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
public class ReviewNode<T> {
|
||||
|
||||
private T data = null;
|
||||
|
||||
private List<ReviewNode<T>> children = new ArrayList<>();
|
||||
|
||||
private ReviewNode<T> parent = null;
|
||||
|
||||
public ReviewNode(T data) {
|
||||
this.data = data;
|
||||
}
|
||||
|
||||
public ReviewNode<T> addChild(ReviewNode<T> child) {
|
||||
child.setParent(this);
|
||||
this.children.add(child);
|
||||
return child;
|
||||
}
|
||||
|
||||
public void addChildren(List<ReviewNode<T>> children) {
|
||||
children.forEach(each -> each.setParent(this));
|
||||
this.children.addAll(children);
|
||||
}
|
||||
|
||||
public List<ReviewNode<T>> getChildren() {
|
||||
return children;
|
||||
}
|
||||
|
||||
public T getData() {
|
||||
return data;
|
||||
}
|
||||
|
||||
public void setData(T data) {
|
||||
this.data = data;
|
||||
}
|
||||
|
||||
private void setParent(ReviewNode<T> parent) {
|
||||
this.parent = parent;
|
||||
}
|
||||
|
||||
public ReviewNode<T> getParent() {
|
||||
return parent;
|
||||
}
|
||||
|
||||
}
|
||||
@ -0,0 +1,54 @@
|
||||
/*
|
||||
* Copyright (c) 2019, Entgra (pvt) Ltd. (http://entgra.io) All Rights Reserved.
|
||||
*
|
||||
* Entgra (pvt) Ltd. licenses this file to you under the Apache License,
|
||||
* Version 2.0 (the "License"); you may not use this file except
|
||||
* in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing,
|
||||
* software distributed under the License is distributed on an
|
||||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
* KIND, either express or implied. See the License for the
|
||||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
*/
|
||||
package org.wso2.carbon.device.application.mgt.common;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
@ApiModel(value = "Role List")
|
||||
public class RoleList extends BasePaginatedResult {
|
||||
|
||||
private List<?> roles;
|
||||
|
||||
@ApiModelProperty(value = "Returns the list of roles that match the offset and limit parameter values "
|
||||
+ "that were specified.")
|
||||
@JsonProperty("roles")
|
||||
|
||||
public List<?> getList() {
|
||||
return roles;
|
||||
}
|
||||
|
||||
public void setList(List<?> roles) {
|
||||
this.roles = roles;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.append("{\n");
|
||||
sb.append(" count: ").append(getCount()).append(",\n");
|
||||
sb.append(" roles: [").append(roles).append("\n");
|
||||
sb.append("]}\n");
|
||||
return sb.toString();
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
@ -0,0 +1,27 @@
|
||||
/*
|
||||
* Copyright (c) 2019, Entgra (pvt) Ltd. (http://entgra.io) All Rights Reserved.
|
||||
*
|
||||
* Entgra (pvt) Ltd. licenses this file to you under the Apache License,
|
||||
* Version 2.0 (the "License"); you may not use this file except
|
||||
* in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing,
|
||||
* software distributed under the License is distributed on an
|
||||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
* KIND, either express or implied. See the License for the
|
||||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
*/
|
||||
package org.wso2.carbon.device.application.mgt.common;
|
||||
|
||||
|
||||
/**
|
||||
* Order which the search results should be shown. Ascending or Descending.
|
||||
*/
|
||||
public enum SortingOrder {
|
||||
ASC, DESC
|
||||
}
|
||||
|
||||
@ -0,0 +1,22 @@
|
||||
/* Copyright (c) 2019, Entgra (Pvt) Ltd. (http://www.entgra.io) All Rights Reserved.
|
||||
*
|
||||
* Entgra (Pvt) Ltd. licenses this file to you under the Apache License,
|
||||
* Version 2.0 (the "License"); you may not use this file except
|
||||
* in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing,
|
||||
* software distributed under the License is distributed on an
|
||||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
* KIND, either express or implied. See the License for the
|
||||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
*/
|
||||
|
||||
package org.wso2.carbon.device.application.mgt.common;
|
||||
|
||||
public enum SubAction {
|
||||
INSTALL, UNINSTALL
|
||||
}
|
||||
@ -0,0 +1,69 @@
|
||||
/* Copyright (c) 2019, Entgra (Pvt) Ltd. (http://www.entgra.io) All Rights Reserved.
|
||||
*
|
||||
* Entgra (Pvt) Ltd. licenses this file to you under the Apache License,
|
||||
* Version 2.0 (the "License"); you may not use this file except
|
||||
* in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing,
|
||||
* software distributed under the License is distributed on an
|
||||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
* KIND, either express or implied. See the License for the
|
||||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
*/
|
||||
|
||||
package org.wso2.carbon.device.application.mgt.common;
|
||||
|
||||
import org.wso2.carbon.device.mgt.common.DeviceIdentifier;
|
||||
|
||||
import java.util.HashMap;
|
||||
import java.util.Map;
|
||||
|
||||
public class SubscribingDeviceIdHolder {
|
||||
private Map<DeviceIdentifier, Integer> appInstalledDevices = new HashMap<>();
|
||||
private Map<DeviceIdentifier, Integer> appInstallableDevices = new HashMap<>();
|
||||
private Map<DeviceIdentifier, Integer> appReInstallableDevices = new HashMap<>();
|
||||
private Map<DeviceIdentifier, Integer> appReUnInstallableDevices = new HashMap<>();
|
||||
private Map<DeviceIdentifier, Integer> skippedDevices = new HashMap<>();
|
||||
|
||||
public Map<DeviceIdentifier, Integer> getAppInstalledDevices() {
|
||||
return appInstalledDevices;
|
||||
}
|
||||
|
||||
public void setAppInstalledDevices(Map<DeviceIdentifier, Integer> appInstalledDevices) {
|
||||
this.appInstalledDevices = appInstalledDevices;
|
||||
}
|
||||
|
||||
public Map<DeviceIdentifier, Integer> getAppInstallableDevices() {
|
||||
return appInstallableDevices;
|
||||
}
|
||||
|
||||
public void setAppInstallableDevices(Map<DeviceIdentifier, Integer> appInstallableDevices) {
|
||||
this.appInstallableDevices = appInstallableDevices;
|
||||
}
|
||||
|
||||
public Map<DeviceIdentifier, Integer> getAppReInstallableDevices() {
|
||||
return appReInstallableDevices;
|
||||
}
|
||||
|
||||
public void setAppReInstallableDevices(Map<DeviceIdentifier, Integer> appReInstallableDevices) {
|
||||
this.appReInstallableDevices = appReInstallableDevices;
|
||||
}
|
||||
|
||||
public Map<DeviceIdentifier, Integer> getSkippedDevices() { return skippedDevices; }
|
||||
|
||||
public void setSkippedDevices(Map<DeviceIdentifier, Integer> skippedDevices) {
|
||||
this.skippedDevices = skippedDevices;
|
||||
}
|
||||
|
||||
public Map<DeviceIdentifier, Integer> getAppReUnInstallableDevices() {
|
||||
return appReUnInstallableDevices;
|
||||
}
|
||||
|
||||
public void setAppReUnInstallableDevices(Map<DeviceIdentifier, Integer> appReUnInstallableDevices) {
|
||||
this.appReUnInstallableDevices = appReUnInstallableDevices;
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,22 @@
|
||||
/* Copyright (c) 2019, Entgra (Pvt) Ltd. (http://www.entgra.io) All Rights Reserved.
|
||||
*
|
||||
* Entgra (Pvt) Ltd. licenses this file to you under the Apache License,
|
||||
* Version 2.0 (the "License"); you may not use this file except
|
||||
* in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing,
|
||||
* software distributed under the License is distributed on an
|
||||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
* KIND, either express or implied. See the License for the
|
||||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
*/
|
||||
|
||||
package org.wso2.carbon.device.application.mgt.common;
|
||||
|
||||
public enum SubscriptionType {
|
||||
USER, ROLE, GROUP, DEVICE
|
||||
}
|
||||
@ -1,7 +1,7 @@
|
||||
/*
|
||||
* Copyright (c) 2017, WSO2 Inc. (http://www.wso2.org) All Rights Reserved.
|
||||
* Copyright (c) 2019, Entgra (pvt) Ltd. (http://entgra.io) All Rights Reserved.
|
||||
*
|
||||
* WSO2 Inc. licenses this file to you under the Apache License,
|
||||
* Entgra (pvt) Ltd. licenses this file to you under the Apache License,
|
||||
* Version 2.0 (the "License"); you may not use this file except
|
||||
* in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
@ -15,13 +15,29 @@
|
||||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
*/
|
||||
package org.wso2.carbon.device.application.mgt.common;
|
||||
|
||||
package org.wso2.carbon.certificate.mgt.cert.jaxrs.api.beans;
|
||||
/**
|
||||
* Represents an user.
|
||||
*/
|
||||
public class User {
|
||||
|
||||
public class EnrollmentCertificate {
|
||||
String serial;
|
||||
String pem;
|
||||
int tenantId;
|
||||
private String userName;
|
||||
|
||||
private int tenantId;
|
||||
|
||||
public User(String userName, int tenantId) {
|
||||
this.userName = userName;
|
||||
this.tenantId = tenantId;
|
||||
}
|
||||
|
||||
public String getUserName() {
|
||||
return userName;
|
||||
}
|
||||
|
||||
public void setUserName(String userName) {
|
||||
this.userName = userName;
|
||||
}
|
||||
|
||||
public int getTenantId() {
|
||||
return tenantId;
|
||||
@ -31,19 +47,8 @@ public class EnrollmentCertificate {
|
||||
this.tenantId = tenantId;
|
||||
}
|
||||
|
||||
public String getSerial() {
|
||||
return serial;
|
||||
}
|
||||
|
||||
public void setSerial(String serial) {
|
||||
this.serial = serial;
|
||||
}
|
||||
|
||||
public String getPem() {
|
||||
return pem;
|
||||
}
|
||||
|
||||
public void setPem(String pem) {
|
||||
this.pem = pem;
|
||||
@Override
|
||||
public String toString() {
|
||||
return "User-name : " + userName + "\t Tenant-ID : " + tenantId;
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,47 @@
|
||||
/* Copyright (c) 2019, Entgra (Pvt) Ltd. (http://www.entgra.io) All Rights Reserved.
|
||||
*
|
||||
* Entgra (Pvt) Ltd. licenses this file to you under the Apache License,
|
||||
* Version 2.0 (the "License"); you may not use this file except
|
||||
* in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing,
|
||||
* software distributed under the License is distributed on an
|
||||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
* KIND, either express or implied. See the License for the
|
||||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
*/
|
||||
package org.wso2.carbon.device.application.mgt.common.config;
|
||||
|
||||
import javax.xml.bind.annotation.XmlElement;
|
||||
import javax.xml.bind.annotation.XmlElementWrapper;
|
||||
import java.util.List;
|
||||
|
||||
public class AppRegistration {
|
||||
|
||||
private List<String> tags;
|
||||
private boolean isAllowToAllDomains;
|
||||
|
||||
@XmlElementWrapper(name = "Tags")
|
||||
@XmlElement(name = "Tag")
|
||||
public List<String> getTags() {
|
||||
return tags;
|
||||
}
|
||||
|
||||
public void setTags(List<String> tags) {
|
||||
this.tags = tags;
|
||||
}
|
||||
|
||||
@XmlElement(name = "AllowToAllDomains")
|
||||
public boolean isAllowToAllDomains() {
|
||||
return isAllowToAllDomains;
|
||||
}
|
||||
|
||||
public void setAllowToAllDomains(boolean allowToAllDomains) {
|
||||
isAllowToAllDomains = allowToAllDomains;
|
||||
}
|
||||
|
||||
}
|
||||
@ -0,0 +1,112 @@
|
||||
/* Copyright (c) 2019, Entgra (Pvt) Ltd. (http://www.entgra.io) All Rights Reserved.
|
||||
*
|
||||
* Entgra (Pvt) Ltd. licenses this file to you under the Apache License,
|
||||
* Version 2.0 (the "License"); you may not use this file except
|
||||
* in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing,
|
||||
* software distributed under the License is distributed on an
|
||||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
* KIND, either express or implied. See the License for the
|
||||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
*/
|
||||
package org.wso2.carbon.device.application.mgt.common.config;
|
||||
|
||||
import javax.xml.bind.annotation.XmlElement;
|
||||
|
||||
public class ErrorCallback {
|
||||
|
||||
private String badRequest;
|
||||
private String unauthorized;
|
||||
private String forbidden;
|
||||
private String notFound;
|
||||
private String methodNotAllowed;
|
||||
private String notAcceptable;
|
||||
private String unsupportedMediaType;
|
||||
private String internalServerError;
|
||||
private String defaultPage;
|
||||
|
||||
@XmlElement(name = "BadRequest", required=true)
|
||||
public String getBadRequest() {
|
||||
return badRequest;
|
||||
}
|
||||
|
||||
public void setBadRequest(String badRequest) {
|
||||
this.badRequest = badRequest;
|
||||
}
|
||||
|
||||
@XmlElement(name = "Unauthorized", required=true)
|
||||
public String getUnauthorized() {
|
||||
return unauthorized;
|
||||
}
|
||||
|
||||
public void setUnauthorized(String unauthorized) {
|
||||
this.unauthorized = unauthorized;
|
||||
}
|
||||
|
||||
@XmlElement(name = "Forbidden", required=true)
|
||||
public String getForbidden() {
|
||||
return forbidden;
|
||||
}
|
||||
|
||||
public void setForbidden(String forbidden) {
|
||||
this.forbidden = forbidden;
|
||||
}
|
||||
@XmlElement(name = "NotFound", required=true)
|
||||
public String getNotFound() {
|
||||
return notFound;
|
||||
}
|
||||
|
||||
public void setNotFound(String notFound) {
|
||||
this.notFound = notFound;
|
||||
}
|
||||
|
||||
@XmlElement(name = "MethodNotAllowed", required=true)
|
||||
public String getMethodNotAllowed() {
|
||||
return methodNotAllowed;
|
||||
}
|
||||
|
||||
public void setMethodNotAllowed(String methodNotAllowed) {
|
||||
this.methodNotAllowed = methodNotAllowed;
|
||||
}
|
||||
|
||||
@XmlElement(name = "NotAcceptable", required=true)
|
||||
public String getNotAcceptable() {
|
||||
return notAcceptable;
|
||||
}
|
||||
|
||||
public void setNotAcceptable(String notAcceptable) {
|
||||
this.notAcceptable = notAcceptable;
|
||||
}
|
||||
|
||||
@XmlElement(name = "UnsupportedMediaType", required=true)
|
||||
public String getUnsupportedMediaType() {
|
||||
return unsupportedMediaType;
|
||||
}
|
||||
|
||||
public void setUnsupportedMediaType(String unsupportedMediaType) {
|
||||
this.unsupportedMediaType = unsupportedMediaType;
|
||||
}
|
||||
|
||||
@XmlElement(name = "InternalServerError", required=true)
|
||||
public String getInternalServerError() {
|
||||
return internalServerError;
|
||||
}
|
||||
|
||||
public void setInternalServerError(String internalServerError) {
|
||||
this.internalServerError = internalServerError;
|
||||
}
|
||||
|
||||
@XmlElement(name = "DefaultPage", required=true)
|
||||
public String getDefaultPage() {
|
||||
return defaultPage;
|
||||
}
|
||||
|
||||
public void setDefaultPage(String defaultPage) {
|
||||
this.defaultPage = defaultPage;
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,108 @@
|
||||
/* Copyright (c) 2019, Entgra (Pvt) Ltd. (http://www.entgra.io) All Rights Reserved.
|
||||
*
|
||||
* Entgra (Pvt) Ltd. licenses this file to you under the Apache License,
|
||||
* Version 2.0 (the "License"); you may not use this file except
|
||||
* in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing,
|
||||
* software distributed under the License is distributed on an
|
||||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
* KIND, either express or implied. See the License for the
|
||||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
*/
|
||||
package org.wso2.carbon.device.application.mgt.common.config;
|
||||
|
||||
import javax.xml.bind.annotation.XmlAttribute;
|
||||
import javax.xml.bind.annotation.XmlElement;
|
||||
import javax.xml.bind.annotation.XmlElementWrapper;
|
||||
import javax.xml.bind.annotation.XmlRootElement;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* This class represents the lifecycle state config
|
||||
*/
|
||||
@XmlRootElement(name = "LifecycleState")
|
||||
public class LifecycleState {
|
||||
|
||||
private String name;
|
||||
private String permission;
|
||||
private List<String> proceedingStates;
|
||||
private boolean isAppInstallable;
|
||||
private boolean isAppUpdatable;
|
||||
private boolean isInitialState;
|
||||
private boolean isEndState;
|
||||
private boolean isDeletableState;
|
||||
|
||||
@XmlAttribute(name = "name")
|
||||
public String getName() {
|
||||
return name;
|
||||
}
|
||||
|
||||
public void setName(String name) {
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
@XmlElementWrapper(name = "ProceedingStates")
|
||||
@XmlElement(name = "State")
|
||||
public List<String> getProceedingStates() {
|
||||
return proceedingStates;
|
||||
}
|
||||
|
||||
public void setProceedingStates(List<String> proceedingStates) {
|
||||
this.proceedingStates = proceedingStates;
|
||||
}
|
||||
|
||||
@XmlElement(name = "Permission")
|
||||
public String getPermission() {
|
||||
return permission;
|
||||
}
|
||||
|
||||
public void setPermission(String permission) {
|
||||
this.permission = permission;
|
||||
}
|
||||
|
||||
@XmlElement(name = "IsAppInstallable")
|
||||
public boolean isAppInstallable() {
|
||||
return isAppInstallable;
|
||||
}
|
||||
|
||||
public void setAppInstallable(boolean isAppInstallable) {
|
||||
this.isAppInstallable = isAppInstallable;
|
||||
}
|
||||
|
||||
@XmlElement(name = "IsAppUpdatable")
|
||||
public boolean isAppUpdatable() {
|
||||
return isAppUpdatable;
|
||||
}
|
||||
|
||||
public void setAppUpdatable(boolean isAppUpdatable) {
|
||||
this.isAppUpdatable = isAppUpdatable;
|
||||
}
|
||||
|
||||
@XmlElement(name = "IsInitialState")
|
||||
public boolean isInitialState() {
|
||||
return isInitialState;
|
||||
}
|
||||
|
||||
public void setInitialState(boolean isInitialState) {
|
||||
this.isInitialState = isInitialState;
|
||||
}
|
||||
|
||||
@XmlElement(name = "IsEndState")
|
||||
public boolean isEndState() {
|
||||
return isEndState;
|
||||
}
|
||||
|
||||
public void setEndState(boolean isEndState) {
|
||||
this.isEndState = isEndState;
|
||||
}
|
||||
|
||||
@XmlElement(name = "IsDeletableState")
|
||||
public boolean isDeletableState() { return isDeletableState; }
|
||||
|
||||
public void setDeletableState(boolean deletableState) { isDeletableState = deletableState; }
|
||||
}
|
||||
@ -0,0 +1,40 @@
|
||||
/* Copyright (c) 2019, Entgra (Pvt) Ltd. (http://www.entgra.io) All Rights Reserved.
|
||||
*
|
||||
* Entgra (Pvt) Ltd. licenses this file to you under the Apache License,
|
||||
* Version 2.0 (the "License"); you may not use this file except
|
||||
* in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing,
|
||||
* software distributed under the License is distributed on an
|
||||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
* KIND, either express or implied. See the License for the
|
||||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
*/
|
||||
|
||||
package org.wso2.carbon.device.application.mgt.common.config;
|
||||
|
||||
import javax.xml.bind.annotation.XmlElement;
|
||||
|
||||
public class MDMConfig {
|
||||
|
||||
private String artifactDownloadProtocol;
|
||||
private String artifactDownloadEndpoint;
|
||||
|
||||
@XmlElement(name = "ArtifactDownloadProtocol", required=true)
|
||||
public String getArtifactDownloadProtocol() { return artifactDownloadProtocol; }
|
||||
|
||||
public void setArtifactDownloadProtocol(String artifactDownloadProtocol) {
|
||||
this.artifactDownloadProtocol = artifactDownloadProtocol;
|
||||
}
|
||||
|
||||
@XmlElement(name = "ArtifactDownloadEndpoint", required=true)
|
||||
public String getArtifactDownloadEndpoint() { return artifactDownloadEndpoint; }
|
||||
|
||||
public void setArtifactDownloadEndpoint(String artifactDownloadEndpoint) {
|
||||
this.artifactDownloadEndpoint = artifactDownloadEndpoint;
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,44 @@
|
||||
/* Copyright (c) 2019, Entgra (Pvt) Ltd. (http://www.entgra.io) All Rights Reserved.
|
||||
*
|
||||
* Entgra (Pvt) Ltd. licenses this file to you under the Apache License,
|
||||
* Version 2.0 (the "License"); you may not use this file except
|
||||
* in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing,
|
||||
* software distributed under the License is distributed on an
|
||||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
* KIND, either express or implied. See the License for the
|
||||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
*/
|
||||
|
||||
package org.wso2.carbon.device.application.mgt.common.config;
|
||||
|
||||
import javax.xml.bind.annotation.XmlElement;
|
||||
|
||||
public class RatingConfiguration {
|
||||
|
||||
private int minRatingValue;
|
||||
private int maxRatingValue;
|
||||
|
||||
@XmlElement(name = "MinRatingValue")
|
||||
public int getMinRatingValue() {
|
||||
return minRatingValue;
|
||||
}
|
||||
|
||||
public void setMinRatingValue(int minRatingValue) {
|
||||
this.minRatingValue = minRatingValue;
|
||||
}
|
||||
|
||||
@XmlElement(name = "MaxRatingValue")
|
||||
public int getMaxRatingValue() {
|
||||
return maxRatingValue;
|
||||
}
|
||||
|
||||
public void setMaxRatingValue(int maxRatingValue) {
|
||||
this.maxRatingValue = maxRatingValue;
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,62 @@
|
||||
/* Copyright (c) 2019, Entgra (Pvt) Ltd. (http://www.entgra.io) All Rights Reserved.
|
||||
*
|
||||
* Entgra (Pvt) Ltd. licenses this file to you under the Apache License,
|
||||
* Version 2.0 (the "License"); you may not use this file except
|
||||
* in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing,
|
||||
* software distributed under the License is distributed on an
|
||||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
* KIND, either express or implied. See the License for the
|
||||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
*/
|
||||
package org.wso2.carbon.device.application.mgt.common.config;
|
||||
|
||||
import javax.xml.bind.annotation.XmlElement;
|
||||
import javax.xml.bind.annotation.XmlElementWrapper;
|
||||
import java.util.List;
|
||||
|
||||
public class UIConfiguration {
|
||||
|
||||
private AppRegistration appRegistration;
|
||||
private List<String> scopes;
|
||||
private boolean isSsoEnable;
|
||||
private ErrorCallback errorCallback;
|
||||
|
||||
@XmlElement(name = "AppRegistration", required=true)
|
||||
public AppRegistration getAppRegistration() {
|
||||
return appRegistration;
|
||||
}
|
||||
|
||||
public void setAppRegistration(AppRegistration appRegistration) {
|
||||
this.appRegistration = appRegistration;
|
||||
}
|
||||
|
||||
@XmlElementWrapper(name = "Scopes")
|
||||
@XmlElement(name = "Scope")
|
||||
public List<String> getScopes() {
|
||||
return scopes;
|
||||
}
|
||||
|
||||
public void setScopes(List<String> scopes) {
|
||||
this.scopes = scopes;
|
||||
}
|
||||
|
||||
@XmlElement(name = "EnableSSO")
|
||||
public boolean isSsoEnable() {
|
||||
return isSsoEnable;
|
||||
}
|
||||
|
||||
public void setSsoEnable(boolean ssoEnable) {
|
||||
isSsoEnable = ssoEnable;
|
||||
}
|
||||
|
||||
@XmlElement(name = "ErrorCallback", required=true)
|
||||
public ErrorCallback getErrorCallback() { return errorCallback; }
|
||||
|
||||
public void setErrorCallback(ErrorCallback errorCallback) { this.errorCallback = errorCallback; }
|
||||
}
|
||||
@ -0,0 +1,59 @@
|
||||
/*
|
||||
* Copyright (c) 2019, Entgra (Pvt) Ltd. (http://www.entgra.io) All Rights Reserved.
|
||||
*
|
||||
* Entgra (Pvt) Ltd. licenses this file to you under the Apache License,
|
||||
* Version 2.0 (the "License"); you may not use this file except
|
||||
* in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing,
|
||||
* software distributed under the License is distributed on an
|
||||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
* KIND, either express or implied. See the License for the
|
||||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
*/
|
||||
|
||||
package org.wso2.carbon.device.application.mgt.common.dto;
|
||||
|
||||
public class ApiRegistrationProfile {
|
||||
|
||||
private String applicationName;
|
||||
private String tags[];
|
||||
private boolean isAllowedToAllDomains;
|
||||
private boolean isMappingAnExistingOAuthApp;
|
||||
|
||||
public String getApplicationName() {
|
||||
return applicationName;
|
||||
}
|
||||
|
||||
public void setApplicationName(String applicationName) {
|
||||
this.applicationName = applicationName;
|
||||
}
|
||||
|
||||
public String[] getTags() {
|
||||
return tags;
|
||||
}
|
||||
|
||||
public void setTags(String[] tags) {
|
||||
this.tags = tags;
|
||||
}
|
||||
|
||||
public boolean isAllowedToAllDomains() {
|
||||
return isAllowedToAllDomains;
|
||||
}
|
||||
|
||||
public void setAllowedToAllDomains(boolean allowedToAllDomains) {
|
||||
isAllowedToAllDomains = allowedToAllDomains;
|
||||
}
|
||||
|
||||
public boolean isMappingAnExistingOAuthApp() {
|
||||
return isMappingAnExistingOAuthApp;
|
||||
}
|
||||
|
||||
public void setMappingAnExistingOAuthApp(boolean mappingAnExistingOAuthApp) {
|
||||
isMappingAnExistingOAuthApp = mappingAnExistingOAuthApp;
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,192 @@
|
||||
/* Copyright (c) 2019, Entgra (Pvt) Ltd. (http://www.entgra.io) All Rights Reserved.
|
||||
*
|
||||
* Entgra (Pvt) Ltd. licenses this file to you under the Apache License,
|
||||
* Version 2.0 (the "License"); you may not use this file except
|
||||
* in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing,
|
||||
* software distributed under the License is distributed on an
|
||||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
* KIND, either express or implied. See the License for the
|
||||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
*/
|
||||
package org.wso2.carbon.device.application.mgt.common.dto;
|
||||
|
||||
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
@ApiModel(value = "ApplicationDTO", description = "ApplicationDTO represents an Application details.")
|
||||
public class ApplicationDTO {
|
||||
|
||||
@ApiModelProperty(name = "id",
|
||||
value = "The ID given to the application when it is stored in the APPM database")
|
||||
private int id;
|
||||
|
||||
@ApiModelProperty(name = "name",
|
||||
value = "Name of the application",
|
||||
required = true)
|
||||
private String name;
|
||||
|
||||
@ApiModelProperty(name = "description",
|
||||
value = "Description of the application",
|
||||
required = true)
|
||||
private String description;
|
||||
|
||||
@ApiModelProperty(name = "appCategories",
|
||||
value = "Category of the application",
|
||||
required = true,
|
||||
example = "Educational, Gaming, Travel, Entertainment etc")
|
||||
private List<String> appCategories;
|
||||
|
||||
@ApiModelProperty(name = "type",
|
||||
value = "Type of the application",
|
||||
required = true,
|
||||
example = "ENTERPRISE, PUBLIC, WEB, WEB_CLIP etc")
|
||||
private String type;
|
||||
|
||||
@ApiModelProperty(name = "subType",
|
||||
value = "Subscription type of the application",
|
||||
required = true,
|
||||
example = "PAID, FREE")
|
||||
private String subType;
|
||||
|
||||
@ApiModelProperty(name = "paymentCurrency",
|
||||
value = "Payment currency of the application",
|
||||
required = true,
|
||||
example = "$")
|
||||
private String paymentCurrency;
|
||||
|
||||
@ApiModelProperty(name = "tags",
|
||||
value = "List of application tags")
|
||||
private List<String> tags;
|
||||
|
||||
@ApiModelProperty(name = "unrestrictedRoles",
|
||||
value = "List of roles that users should have to access the application")
|
||||
private List<String> unrestrictedRoles;
|
||||
|
||||
|
||||
@ApiModelProperty(name = "deviceTypeId",
|
||||
value = "Id of the Related device type of the application",
|
||||
example = "1, 2, 3")
|
||||
private int deviceTypeId;
|
||||
|
||||
@ApiModelProperty(name = "appRating",
|
||||
value = "Rating of the aplication")
|
||||
private double appRating;
|
||||
|
||||
@ApiModelProperty(name = "status",
|
||||
value = "Application status",
|
||||
required = true,
|
||||
example = "RETIRED, ACTIVE")
|
||||
private String status;
|
||||
|
||||
@ApiModelProperty(name = "applicationReleaseDTOs",
|
||||
value = "List of application releases",
|
||||
required = true)
|
||||
private List<ApplicationReleaseDTO> applicationReleaseDTOs;
|
||||
|
||||
@ApiModelProperty(name = "packageName",
|
||||
value = "package name of the application")
|
||||
private String packageName;
|
||||
|
||||
public String getPackageName() {
|
||||
return packageName;
|
||||
}
|
||||
|
||||
public void setPackageName(String packageName) {
|
||||
this.packageName = packageName;
|
||||
}
|
||||
|
||||
public int getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setId(int id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public String getName() {
|
||||
return name;
|
||||
}
|
||||
|
||||
public void setName(String name) { this.name = name; }
|
||||
|
||||
public List<String> getAppCategories() {
|
||||
return appCategories;
|
||||
}
|
||||
|
||||
public void setAppCategories(List<String> appCategories) { this.appCategories = appCategories; }
|
||||
|
||||
public List<String> getTags() { return tags; }
|
||||
|
||||
public void setTags(List<String> tags) {
|
||||
this.tags = tags;
|
||||
}
|
||||
|
||||
public String getType() {
|
||||
return type;
|
||||
}
|
||||
|
||||
public void setType(String type) {
|
||||
this.type = type;
|
||||
}
|
||||
|
||||
public String getSubType() {
|
||||
return subType;
|
||||
}
|
||||
|
||||
public void setSubType(String subType) {
|
||||
this.subType = subType;
|
||||
}
|
||||
|
||||
public String getPaymentCurrency() {
|
||||
return paymentCurrency;
|
||||
}
|
||||
|
||||
public void setPaymentCurrency(String paymentCurrency) {
|
||||
this.paymentCurrency = paymentCurrency;
|
||||
}
|
||||
|
||||
public List<ApplicationReleaseDTO> getApplicationReleaseDTOs() {
|
||||
return applicationReleaseDTOs;
|
||||
}
|
||||
|
||||
public void setApplicationReleaseDTOs(List<ApplicationReleaseDTO> applicationReleaseDTOs) {
|
||||
this.applicationReleaseDTOs = applicationReleaseDTOs;
|
||||
}
|
||||
|
||||
public List<String> getUnrestrictedRoles() {
|
||||
return unrestrictedRoles;
|
||||
}
|
||||
|
||||
public void setUnrestrictedRoles(List<String> unrestrictedRoles) {
|
||||
this.unrestrictedRoles = unrestrictedRoles;
|
||||
}
|
||||
|
||||
public int getDeviceTypeId() {
|
||||
return deviceTypeId;
|
||||
}
|
||||
|
||||
public void setDeviceTypeId(int deviceTypeId) {
|
||||
this.deviceTypeId = deviceTypeId;
|
||||
}
|
||||
|
||||
public String getStatus() { return status; }
|
||||
|
||||
public void setStatus(String status) { this.status = status; }
|
||||
|
||||
public String getDescription() { return description; }
|
||||
|
||||
public void setDescription(String description) { this.description = description; }
|
||||
|
||||
public double getAppRating() { return appRating; }
|
||||
|
||||
public void setAppRating(double appRating) { this.appRating = appRating; }
|
||||
}
|
||||
@ -0,0 +1,60 @@
|
||||
/* Copyright (c) 2019, Entgra (Pvt) Ltd. (http://www.entgra.io) All Rights Reserved.
|
||||
*
|
||||
* Entgra (Pvt) Ltd. licenses this file to you under the Apache License,
|
||||
* Version 2.0 (the "License"); you may not use this file except
|
||||
* in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing,
|
||||
* software distributed under the License is distributed on an
|
||||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
* KIND, either express or implied. See the License for the
|
||||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
*/
|
||||
package org.wso2.carbon.device.application.mgt.common.dto;
|
||||
|
||||
import org.wso2.carbon.device.mgt.common.DeviceIdentifier;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
public class ApplicationPolicyDTO {
|
||||
ApplicationDTO applicationDTO;
|
||||
String policy;
|
||||
List<DeviceIdentifier> deviceIdentifierList;
|
||||
String action;
|
||||
|
||||
public List<DeviceIdentifier> getDeviceIdentifierList() {
|
||||
return deviceIdentifierList;
|
||||
}
|
||||
|
||||
public void setDeviceIdentifierList(List<DeviceIdentifier> deviceIdentifierList) {
|
||||
this.deviceIdentifierList = deviceIdentifierList;
|
||||
}
|
||||
|
||||
public String getAction() {
|
||||
return action;
|
||||
}
|
||||
|
||||
public void setAction(String action) {
|
||||
this.action = action;
|
||||
}
|
||||
|
||||
public ApplicationDTO getApplicationDTO() {
|
||||
return applicationDTO;
|
||||
}
|
||||
|
||||
public void setApplicationDTO(ApplicationDTO applicationDTO) {
|
||||
this.applicationDTO = applicationDTO;
|
||||
}
|
||||
|
||||
public String getPolicy() {
|
||||
return policy;
|
||||
}
|
||||
|
||||
public void setPolicy(String policy) {
|
||||
this.policy = policy;
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,272 @@
|
||||
/* Copyright (c) 2019, Entgra (Pvt) Ltd. (http://www.entgra.io) All Rights Reserved.
|
||||
*
|
||||
* Entgra (Pvt) Ltd. licenses this file to you under the Apache License,
|
||||
* Version 2.0 (the "License"); you may not use this file except
|
||||
* in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing,
|
||||
* software distributed under the License is distributed on an
|
||||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
* KIND, either express or implied. See the License for the
|
||||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
*/
|
||||
package org.wso2.carbon.device.application.mgt.common.dto;
|
||||
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import org.codehaus.jackson.annotate.JsonIgnoreProperties;
|
||||
|
||||
@ApiModel(value = "ApplicationReleaseDTO", description = "This class holds the details when releasing an ApplicationDTO to application store")
|
||||
@JsonIgnoreProperties({"appHashValue"})
|
||||
public class ApplicationReleaseDTO {
|
||||
|
||||
@ApiModelProperty(name = "id",
|
||||
value = "ID of the application release")
|
||||
private int id;
|
||||
|
||||
@ApiModelProperty(name = "description",
|
||||
value = "Description of the application release")
|
||||
private String description;
|
||||
|
||||
@ApiModelProperty(name = "version",
|
||||
value = "Version of the application release")
|
||||
private String version;
|
||||
|
||||
@ApiModelProperty(name = "uuid",
|
||||
value = "UUID of the application release")
|
||||
private String uuid;
|
||||
|
||||
@ApiModelProperty(name = "installerName",
|
||||
value = "ApplicationDTO storing location")
|
||||
private String installerName;
|
||||
|
||||
@ApiModelProperty(name = "bannerName",
|
||||
value = "Banner file storing location")
|
||||
private String bannerName;
|
||||
|
||||
@ApiModelProperty(name = "iconName",
|
||||
value = "icon file storing location")
|
||||
private String iconName;
|
||||
|
||||
@ApiModelProperty(name = "screenshotName1",
|
||||
value = "Screenshot storing location")
|
||||
private String screenshotName1;
|
||||
|
||||
@ApiModelProperty(name = "screenshotName2",
|
||||
value = "Screenshot storing location")
|
||||
private String screenshotName2;
|
||||
|
||||
@ApiModelProperty(name = "screenshotName3",
|
||||
value = "Screenshot storing location")
|
||||
private String screenshotName3;
|
||||
|
||||
@ApiModelProperty(name = "releaseType",
|
||||
value = "Release type of the application release",
|
||||
required = true,
|
||||
example = "alpha, beta etc")
|
||||
private String releaseType;
|
||||
|
||||
@ApiModelProperty(name = "price",
|
||||
value = "Price of the application release",
|
||||
required = true)
|
||||
private double price;
|
||||
|
||||
@ApiModelProperty(name = "appHashValue",
|
||||
value = "Hash value of the application release")
|
||||
private String appHashValue;
|
||||
|
||||
@ApiModelProperty(name = "isSharedWithAllTenants",
|
||||
value = "If application release is shared with all tenants it is eqal to 1 otherwise 0",
|
||||
required = true)
|
||||
private boolean isSharedWithAllTenants;
|
||||
|
||||
@ApiModelProperty(name = "metaData",
|
||||
value = "Meta data of the application release",
|
||||
required = true)
|
||||
private String metaData;
|
||||
|
||||
@ApiModelProperty(name = "ratedUsers",
|
||||
value = "Number of users who has rated the application release")
|
||||
private int ratedUsers;
|
||||
|
||||
@ApiModelProperty(name = "rating",
|
||||
value = "Rating value of the application release")
|
||||
private double rating;
|
||||
|
||||
@ApiModelProperty(name = "url",
|
||||
value = "URL which is used for WEB-CLIP")
|
||||
private String url;
|
||||
|
||||
@ApiModelProperty(name = "supportedOsVersions",
|
||||
value = "ApplicationDTO release supported OS versions")
|
||||
private String supportedOsVersions;
|
||||
|
||||
@ApiModelProperty(name = "currentState",
|
||||
value = "Current state of the application release")
|
||||
private String currentState;
|
||||
|
||||
@ApiModelProperty(name = "packageName",
|
||||
value = "ApplicationDTO bundle identifier")
|
||||
private String packageName;
|
||||
|
||||
public ApplicationReleaseDTO() {
|
||||
}
|
||||
|
||||
public int getRatedUsers() {
|
||||
return ratedUsers;
|
||||
}
|
||||
|
||||
public void setRatedUsers(int ratedUsers) {
|
||||
this.ratedUsers = ratedUsers;
|
||||
}
|
||||
|
||||
public double getRating() {
|
||||
return rating;
|
||||
}
|
||||
|
||||
public void setRating(double rating) {
|
||||
this.rating = rating;
|
||||
}
|
||||
|
||||
public void setId(int id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public void setVersion(String version) {
|
||||
this.version = version;
|
||||
}
|
||||
|
||||
public String getUuid() {
|
||||
return uuid;
|
||||
}
|
||||
|
||||
public void setUuid(String uuid) {
|
||||
this.uuid = uuid;
|
||||
}
|
||||
|
||||
public String getReleaseType() {
|
||||
return releaseType;
|
||||
}
|
||||
|
||||
public void setReleaseType(String releaseType) {
|
||||
this.releaseType = releaseType;
|
||||
}
|
||||
|
||||
public void setAppHashValue(String appHashValue) {
|
||||
this.appHashValue = appHashValue;
|
||||
}
|
||||
|
||||
public void setIsSharedWithAllTenants(boolean isSharedWithAllTenants) {
|
||||
this.isSharedWithAllTenants = isSharedWithAllTenants;
|
||||
}
|
||||
|
||||
public void setMetaData(String metaData) {
|
||||
this.metaData = metaData;
|
||||
}
|
||||
|
||||
public int getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
public String getVersion() {
|
||||
return version;
|
||||
}
|
||||
|
||||
public double getPrice() {
|
||||
return price;
|
||||
}
|
||||
|
||||
public void setPrice(double price) {
|
||||
this.price = price;
|
||||
}
|
||||
|
||||
public String getAppHashValue() {
|
||||
return appHashValue;
|
||||
}
|
||||
|
||||
public boolean getIsSharedWithAllTenants() { return isSharedWithAllTenants; }
|
||||
|
||||
public String getMetaData() {
|
||||
return metaData;
|
||||
}
|
||||
|
||||
public String getInstallerName() {
|
||||
return installerName;
|
||||
}
|
||||
|
||||
public void setInstallerName(String installerName) {
|
||||
this.installerName = installerName;
|
||||
}
|
||||
|
||||
public String getBannerName() {
|
||||
return bannerName;
|
||||
}
|
||||
|
||||
public void setBannerName(String bannerName) {
|
||||
this.bannerName = bannerName;
|
||||
}
|
||||
|
||||
public String getScreenshotName1() {
|
||||
return screenshotName1;
|
||||
}
|
||||
|
||||
public void setScreenshotName1(String screenshotName1) {
|
||||
this.screenshotName1 = screenshotName1;
|
||||
}
|
||||
|
||||
public String getScreenshotName2() {
|
||||
return screenshotName2;
|
||||
}
|
||||
|
||||
public void setScreenshotName2(String screenshotName2) {
|
||||
this.screenshotName2 = screenshotName2;
|
||||
}
|
||||
|
||||
public String getScreenshotName3() {
|
||||
return screenshotName3;
|
||||
}
|
||||
|
||||
public void setScreenshotName3(String screenshotName3) {
|
||||
this.screenshotName3 = screenshotName3;
|
||||
}
|
||||
|
||||
public String getIconName() {
|
||||
return iconName;
|
||||
}
|
||||
|
||||
public void setIconName(String iconName) {
|
||||
this.iconName = iconName;
|
||||
}
|
||||
|
||||
public String getUrl() {
|
||||
return url;
|
||||
}
|
||||
|
||||
public void setUrl(String url) {
|
||||
this.url = url;
|
||||
}
|
||||
|
||||
public void setPackageName(String packageName) {
|
||||
this.packageName = packageName;
|
||||
}
|
||||
|
||||
public String getPackageName() {
|
||||
return packageName;
|
||||
}
|
||||
|
||||
public String getDescription() { return description; }
|
||||
|
||||
public void setDescription(String description) { this.description = description; }
|
||||
|
||||
public String getSupportedOsVersions() { return supportedOsVersions; }
|
||||
|
||||
public void setSupportedOsVersions(String supportedOsVersions) { this.supportedOsVersions = supportedOsVersions; }
|
||||
|
||||
public String getCurrentState() { return currentState; }
|
||||
|
||||
public void setCurrentState(String currentState) { this.currentState = currentState; }
|
||||
}
|
||||
@ -0,0 +1,39 @@
|
||||
/* Copyright (c) 2019, Entgra (Pvt) Ltd. (http://www.entgra.io) All Rights Reserved.
|
||||
*
|
||||
* Entgra (Pvt) Ltd. licenses this file to you under the Apache License,
|
||||
* Version 2.0 (the "License"); you may not use this file except
|
||||
* in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing,
|
||||
* software distributed under the License is distributed on an
|
||||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
* KIND, either express or implied. See the License for the
|
||||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
*/
|
||||
package org.wso2.carbon.device.application.mgt.common.dto;
|
||||
|
||||
public class CategoryDTO {
|
||||
int id;
|
||||
|
||||
String categoryName;
|
||||
|
||||
public int getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setId(int id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public String getCategoryName() {
|
||||
return categoryName;
|
||||
}
|
||||
|
||||
public void setCategoryName(String categoryName) {
|
||||
this.categoryName = categoryName;
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,73 @@
|
||||
/* Copyright (c) 2019, Entgra (Pvt) Ltd. (http://www.entgra.io) All Rights Reserved.
|
||||
*
|
||||
* Entgra (Pvt) Ltd. licenses this file to you under the Apache License,
|
||||
* Version 2.0 (the "License"); you may not use this file except
|
||||
* in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing,
|
||||
* software distributed under the License is distributed on an
|
||||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
* KIND, either express or implied. See the License for the
|
||||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
*/
|
||||
|
||||
package org.wso2.carbon.device.application.mgt.common.dto;
|
||||
|
||||
import java.sql.Timestamp;
|
||||
|
||||
public class DeviceSubscriptionDTO {
|
||||
|
||||
private int id;
|
||||
private String subscribedBy;
|
||||
private Timestamp subscribedTimestamp;
|
||||
private boolean isUnsubscribed;
|
||||
private String unsubscribedBy;
|
||||
private Timestamp unsubscribedTimestamp;
|
||||
private String actionTriggeredFrom;
|
||||
private String status;
|
||||
private int deviceId;
|
||||
|
||||
public int getId() { return id; }
|
||||
|
||||
public void setId(int id) { this.id = id; }
|
||||
|
||||
public String getSubscribedBy() { return subscribedBy; }
|
||||
|
||||
public void setSubscribedBy(String subscribedBy) { this.subscribedBy = subscribedBy; }
|
||||
|
||||
public Timestamp getSubscribedTimestamp() { return subscribedTimestamp; }
|
||||
|
||||
public void setSubscribedTimestamp(Timestamp subscribedTimestamp) {
|
||||
this.subscribedTimestamp = subscribedTimestamp;
|
||||
}
|
||||
|
||||
public boolean isUnsubscribed() { return isUnsubscribed; }
|
||||
|
||||
public void setUnsubscribed(boolean unsubscribed) { isUnsubscribed = unsubscribed; }
|
||||
|
||||
public String getUnsubscribedBy() { return unsubscribedBy; }
|
||||
|
||||
public void setUnsubscribedBy(String unsubscribedBy) { this.unsubscribedBy = unsubscribedBy; }
|
||||
|
||||
public Timestamp getUnsubscribedTimestamp() { return unsubscribedTimestamp; }
|
||||
|
||||
public void setUnsubscribedTimestamp(Timestamp unsubscribedTimestamp) {
|
||||
this.unsubscribedTimestamp = unsubscribedTimestamp;
|
||||
}
|
||||
|
||||
public String getActionTriggeredFrom() { return actionTriggeredFrom; }
|
||||
|
||||
public void setActionTriggeredFrom(String actionTriggeredFrom) { this.actionTriggeredFrom = actionTriggeredFrom; }
|
||||
|
||||
public String getStatus() { return status; }
|
||||
|
||||
public void setStatus(String status) { this.status = status; }
|
||||
|
||||
public int getDeviceId() { return deviceId; }
|
||||
|
||||
public void setDeviceId(int deviceId) { this.deviceId = deviceId; }
|
||||
}
|
||||
@ -0,0 +1,63 @@
|
||||
/* Copyright (c) 2019, Entgra (Pvt) Ltd. (http://www.entgra.io) All Rights Reserved.
|
||||
*
|
||||
* Entgra (Pvt) Ltd. licenses this file to you under the Apache License,
|
||||
* Version 2.0 (the "License"); you may not use this file except
|
||||
* in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing,
|
||||
* software distributed under the License is distributed on an
|
||||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
* KIND, either express or implied. See the License for the
|
||||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
*/
|
||||
|
||||
package org.wso2.carbon.device.application.mgt.common.dto;
|
||||
|
||||
import java.sql.Timestamp;
|
||||
|
||||
public class GroupSubscriptionDTO {
|
||||
private int id;
|
||||
private String subscribedBy;
|
||||
private Timestamp subscribedTimestamp;
|
||||
private boolean isUnsubscribed;
|
||||
private String unsubscribedBy;
|
||||
private Timestamp unsubscribedTimestamp;
|
||||
private String subscribedFrom;
|
||||
private int groupdId;
|
||||
|
||||
public int getId() { return id; }
|
||||
|
||||
public void setId(int id) { this.id = id; }
|
||||
|
||||
public String getSubscribedBy() { return subscribedBy; }
|
||||
|
||||
public void setSubscribedBy(String subscribedBy) { this.subscribedBy = subscribedBy; }
|
||||
|
||||
public Timestamp getSubscribedTimestamp() { return subscribedTimestamp; }
|
||||
|
||||
public void setSubscribedTimestamp(Timestamp subscribedTimestamp) { this.subscribedTimestamp = subscribedTimestamp; }
|
||||
|
||||
public boolean isUnsubscribed() { return isUnsubscribed; }
|
||||
|
||||
public void setUnsubscribed(boolean unsubscribed) { isUnsubscribed = unsubscribed; }
|
||||
|
||||
public String getUnsubscribedBy() { return unsubscribedBy; }
|
||||
|
||||
public void setUnsubscribedBy(String unsubscribedBy) { this.unsubscribedBy = unsubscribedBy; }
|
||||
|
||||
public Timestamp getUnsubscribedTimestamp() { return unsubscribedTimestamp; }
|
||||
|
||||
public void setUnsubscribedTimestamp(Timestamp unsubscribedTimestamp) { this.unsubscribedTimestamp = unsubscribedTimestamp; }
|
||||
|
||||
public String getSubscribedFrom() { return subscribedFrom; }
|
||||
|
||||
public void setSubscribedFrom(String subscribedFrom) { this.subscribedFrom = subscribedFrom; }
|
||||
|
||||
public int getGroupdId() { return groupdId; }
|
||||
|
||||
public void setGroupdId(int groupdId) { this.groupdId = groupdId; }
|
||||
}
|
||||
@ -0,0 +1,97 @@
|
||||
/* Copyright (c) 2019, Entgra (Pvt) Ltd. (http://www.entgra.io) All Rights Reserved.
|
||||
*
|
||||
* Entgra (Pvt) Ltd. licenses this file to you under the Apache License,
|
||||
* Version 2.0 (the "License"); you may not use this file except
|
||||
* in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing,
|
||||
* software distributed under the License is distributed on an
|
||||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
* KIND, either express or implied. See the License for the
|
||||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
*/
|
||||
|
||||
package org.wso2.carbon.device.application.mgt.common.dto;
|
||||
|
||||
import java.sql.Timestamp;
|
||||
|
||||
public class ReviewDTO {
|
||||
private int id;
|
||||
private String content;
|
||||
private String username;
|
||||
private Timestamp createdAt;
|
||||
private Timestamp modifiedAt;
|
||||
private int rating;
|
||||
private int rootParentId;
|
||||
private int immediateParentId;
|
||||
private String releaseUuid;
|
||||
private String releaseVersion;
|
||||
|
||||
public int getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setId(int id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public String getContent() {
|
||||
return content;
|
||||
}
|
||||
|
||||
public void setContent(String content) {
|
||||
this.content = content;
|
||||
}
|
||||
|
||||
public String getUsername() {
|
||||
return username;
|
||||
}
|
||||
|
||||
public void setUsername(String username) {
|
||||
this.username = username;
|
||||
}
|
||||
|
||||
public Timestamp getCreatedAt() {
|
||||
return createdAt;
|
||||
}
|
||||
|
||||
public void setCreatedAt(Timestamp createdAt) {
|
||||
this.createdAt = createdAt;
|
||||
}
|
||||
|
||||
public Timestamp getModifiedAt() {
|
||||
return modifiedAt;
|
||||
}
|
||||
|
||||
public void setModifiedAt(Timestamp modifiedAt) {
|
||||
this.modifiedAt = modifiedAt;
|
||||
}
|
||||
|
||||
public int getRating() {
|
||||
return rating;
|
||||
}
|
||||
|
||||
public void setRating(int rating) {
|
||||
this.rating = rating;
|
||||
}
|
||||
|
||||
public int getRootParentId() { return rootParentId; }
|
||||
|
||||
public void setRootParentId(int rootParentId) { this.rootParentId = rootParentId; }
|
||||
|
||||
public int getImmediateParentId() { return immediateParentId; }
|
||||
|
||||
public void setImmediateParentId(int immediateParentId) { this.immediateParentId = immediateParentId; }
|
||||
|
||||
public String getReleaseUuid() { return releaseUuid; }
|
||||
|
||||
public void setReleaseUuid(String releaseUuid) { this.releaseUuid = releaseUuid; }
|
||||
|
||||
public String getReleaseVersion() { return releaseVersion; }
|
||||
|
||||
public void setReleaseVersion(String releaseVersion) { this.releaseVersion = releaseVersion; }
|
||||
}
|
||||
@ -0,0 +1,67 @@
|
||||
/* Copyright (c) 2019, Entgra (Pvt) Ltd. (http://www.entgra.io) All Rights Reserved.
|
||||
*
|
||||
* Entgra (Pvt) Ltd. licenses this file to you under the Apache License,
|
||||
* Version 2.0 (the "License"); you may not use this file except
|
||||
* in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing,
|
||||
* software distributed under the License is distributed on an
|
||||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
* KIND, either express or implied. See the License for the
|
||||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
*/
|
||||
|
||||
package org.wso2.carbon.device.application.mgt.common.dto;
|
||||
|
||||
import java.sql.Timestamp;
|
||||
|
||||
public class RoleSubscriptionDTO {
|
||||
private int id;
|
||||
private String subscribedBy;
|
||||
private Timestamp subscribedTimestamp;
|
||||
private boolean isUnsubscribed;
|
||||
private String unsubscribedBy;
|
||||
private Timestamp unsubscribedTimestamp;
|
||||
private String subscribedFrom;
|
||||
private String roleName;
|
||||
|
||||
public int getId() { return id; }
|
||||
|
||||
public void setId(int id) { this.id = id; }
|
||||
|
||||
public String getSubscribedBy() { return subscribedBy; }
|
||||
|
||||
public void setSubscribedBy(String subscribedBy) { this.subscribedBy = subscribedBy; }
|
||||
|
||||
public Timestamp getSubscribedTimestamp() { return subscribedTimestamp; }
|
||||
|
||||
public void setSubscribedTimestamp(Timestamp subscribedTimestamp) {
|
||||
this.subscribedTimestamp = subscribedTimestamp;
|
||||
}
|
||||
|
||||
public boolean isUnsubscribed() { return isUnsubscribed; }
|
||||
|
||||
public void setUnsubscribed(boolean unsubscribed) { isUnsubscribed = unsubscribed; }
|
||||
|
||||
public String getUnsubscribedBy() { return unsubscribedBy; }
|
||||
|
||||
public void setUnsubscribedBy(String unsubscribedBy) { this.unsubscribedBy = unsubscribedBy; }
|
||||
|
||||
public Timestamp getUnsubscribedTimestamp() { return unsubscribedTimestamp; }
|
||||
|
||||
public void setUnsubscribedTimestamp(Timestamp unsubscribedTimestamp) {
|
||||
this.unsubscribedTimestamp = unsubscribedTimestamp;
|
||||
}
|
||||
|
||||
public String getSubscribedFrom() { return subscribedFrom; }
|
||||
|
||||
public void setSubscribedFrom(String subscribedFrom) { this.subscribedFrom = subscribedFrom; }
|
||||
|
||||
public String getRoleName() { return roleName; }
|
||||
|
||||
public void setRoleName(String roleName) { this.roleName = roleName; }
|
||||
}
|
||||
@ -0,0 +1,172 @@
|
||||
/*
|
||||
* Copyright (c) 2019, Entgra (Pvt) Ltd. (http://www.entgra.io) All Rights Reserved.
|
||||
*
|
||||
* Entgra (Pvt) Ltd. licenses this file to you under the Apache License,
|
||||
* Version 2.0 (the "License"); you may not use this file except
|
||||
* in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing,
|
||||
* software distributed under the License is distributed on an
|
||||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
* KIND, either express or implied. See the License for the
|
||||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
*/
|
||||
|
||||
package org.wso2.carbon.device.application.mgt.common.dto;
|
||||
|
||||
import com.google.gson.Gson;
|
||||
import org.wso2.carbon.device.application.mgt.common.ExecutionStatus;
|
||||
import org.wso2.carbon.device.application.mgt.common.SubscriptionType;
|
||||
|
||||
import java.time.LocalDateTime;
|
||||
import java.util.List;
|
||||
import java.util.stream.Collectors;
|
||||
|
||||
/**
|
||||
* This class represents a DTO for AP_SCHEDULED_SUBSCRIPTION table
|
||||
*/
|
||||
public class ScheduledSubscriptionDTO {
|
||||
/**
|
||||
* Generated ID of the subscription.
|
||||
*/
|
||||
private int id;
|
||||
|
||||
/**
|
||||
* Name of the task which is related to the subscription.
|
||||
*
|
||||
* Task name is a generated field and in the following pattern:
|
||||
* {@code <SUBSCRIPTION-TYPE>_<ACTION>_<HASH-VALUE>}
|
||||
* {@code SUBSCRIPTION-TYPE} - {@see {@linkplain SubscriptionType}}
|
||||
* {@code ACTION} - {@see {@linkplain org.wso2.carbon.device.application.mgt.common.SubAction}
|
||||
* {@code HASH-VALUE} - this is a hash value of the combination of application uuid and the subscriber list.
|
||||
*
|
||||
* Example: {@code DEVICE_INSTALL_e593e00e8ef55efc764295b6aa9ad56b}
|
||||
*/
|
||||
private String taskName;
|
||||
|
||||
/**
|
||||
* UUID of the application release which is subscribed to.
|
||||
* {@see {@link org.wso2.carbon.device.application.mgt.common.response.ApplicationRelease}}
|
||||
*/
|
||||
private String applicationUUID;
|
||||
|
||||
/**
|
||||
* List of subscribers for the application release. The type of the list depends on the subscription type.
|
||||
* {@see {@link SubscriptionType}}. If the subscription type is {@code SubscriptionType.DEVICE} the type will be
|
||||
* {@link org.wso2.carbon.device.mgt.common.DeviceIdentifier} and if not the type will be {@link String}.
|
||||
*/
|
||||
private List<?> subscriberList;
|
||||
|
||||
/**
|
||||
* Status of the subscription. {@see {@link ExecutionStatus}}
|
||||
*/
|
||||
private ExecutionStatus status;
|
||||
|
||||
/**
|
||||
* Scheduled time of subscription.
|
||||
*/
|
||||
private LocalDateTime scheduledAt;
|
||||
|
||||
/**
|
||||
* Username of the scheduler.
|
||||
*/
|
||||
private String scheduledBy;
|
||||
|
||||
/**
|
||||
* If the subscription is marked as deleted or not.
|
||||
* {@code true} means that the related task is removed from the {@link org.wso2.carbon.ntask.core.TaskManager}.
|
||||
*/
|
||||
private boolean deleted;
|
||||
|
||||
public ScheduledSubscriptionDTO() {
|
||||
|
||||
}
|
||||
|
||||
public ScheduledSubscriptionDTO(String taskName, String applicationUUID, LocalDateTime scheduledAt,
|
||||
List<?> subscriberList, String scheduledBy) {
|
||||
this.taskName = taskName;
|
||||
this.applicationUUID = applicationUUID;
|
||||
this.scheduledAt = scheduledAt;
|
||||
this.subscriberList = subscriberList;
|
||||
this.scheduledBy = scheduledBy;
|
||||
}
|
||||
|
||||
public int getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setId(int id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public String getTaskName() {
|
||||
return taskName;
|
||||
}
|
||||
|
||||
public void setTaskName(String taskName) {
|
||||
this.taskName = taskName;
|
||||
}
|
||||
|
||||
public String getApplicationUUID() {
|
||||
return applicationUUID;
|
||||
}
|
||||
|
||||
public void setApplicationUUID(String applicationUUID) {
|
||||
this.applicationUUID = applicationUUID;
|
||||
}
|
||||
|
||||
public List<?> getSubscriberList() {
|
||||
return subscriberList;
|
||||
}
|
||||
|
||||
public void setSubscriberList(List<?> subscriberList) {
|
||||
this.subscriberList = subscriberList;
|
||||
}
|
||||
|
||||
public ExecutionStatus getStatus() {
|
||||
return status;
|
||||
}
|
||||
|
||||
public void setStatus(ExecutionStatus status) {
|
||||
this.status = status;
|
||||
}
|
||||
|
||||
public LocalDateTime getScheduledAt() {
|
||||
return scheduledAt;
|
||||
}
|
||||
|
||||
public void setScheduledAt(LocalDateTime scheduledAt) {
|
||||
this.scheduledAt = scheduledAt;
|
||||
}
|
||||
|
||||
public String getScheduledBy() {
|
||||
return scheduledBy;
|
||||
}
|
||||
|
||||
public void setScheduledBy(String scheduledBy) {
|
||||
this.scheduledBy = scheduledBy;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return the string representation of the subscriber list.
|
||||
*/
|
||||
public String getSubscribersString() {
|
||||
if (this.taskName.startsWith(SubscriptionType.DEVICE.toString())) {
|
||||
return new Gson().toJson(this.subscriberList);
|
||||
} else {
|
||||
return this.subscriberList.stream().map(String.class::cast).collect(Collectors.joining(","));
|
||||
}
|
||||
}
|
||||
|
||||
public boolean isDeleted() {
|
||||
return deleted;
|
||||
}
|
||||
|
||||
public void setDeleted(boolean deleted) {
|
||||
this.deleted = deleted;
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,41 @@
|
||||
/* Copyright (c) 2019, Entgra (Pvt) Ltd. (http://www.entgra.io) All Rights Reserved.
|
||||
*
|
||||
* Entgra (Pvt) Ltd. licenses this file to you under the Apache License,
|
||||
* Version 2.0 (the "License"); you may not use this file except
|
||||
* in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing,
|
||||
* software distributed under the License is distributed on an
|
||||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
* KIND, either express or implied. See the License for the
|
||||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
*/
|
||||
|
||||
package org.wso2.carbon.device.application.mgt.common.dto;
|
||||
|
||||
public class TagDTO {
|
||||
|
||||
int id;
|
||||
|
||||
String tagName;
|
||||
|
||||
public int getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setId(int id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public String getTagName() {
|
||||
return tagName;
|
||||
}
|
||||
|
||||
public void setTagName(String tagName) {
|
||||
this.tagName = tagName;
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,31 @@
|
||||
/* Copyright (c) 2019, Entgra (Pvt) Ltd. (http://www.entgra.io) All Rights Reserved.
|
||||
*
|
||||
* Entgra (Pvt) Ltd. licenses this file to you under the Apache License,
|
||||
* Version 2.0 (the "License"); you may not use this file except
|
||||
* in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing,
|
||||
* software distributed under the License is distributed on an
|
||||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
* KIND, either express or implied. See the License for the
|
||||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
*/
|
||||
|
||||
package org.wso2.carbon.device.application.mgt.common.dto;
|
||||
|
||||
import java.sql.Timestamp;
|
||||
|
||||
public class UserSubscriptionDTO {
|
||||
private int id;
|
||||
private String subscribedBy;
|
||||
private Timestamp subscribedTimestamp;
|
||||
private boolean isUnsubscribed;
|
||||
private String unsubscribedBy;
|
||||
private Timestamp unsubscribedTimestamp;
|
||||
private String subscribedFrom;
|
||||
private String userName;
|
||||
}
|
||||
@ -0,0 +1,28 @@
|
||||
/* Copyright (c) 2019, Entgra (Pvt) Ltd. (http://www.entgra.io) All Rights Reserved.
|
||||
*
|
||||
* Entgra (Pvt) Ltd. licenses this file to you under the Apache License,
|
||||
* Version 2.0 (the "License"); you may not use this file except
|
||||
* in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing,
|
||||
* software distributed under the License is distributed on an
|
||||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
* KIND, either express or implied. See the License for the
|
||||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
*/
|
||||
|
||||
package org.wso2.carbon.device.application.mgt.common.exception;
|
||||
|
||||
/**
|
||||
* Exception that will be thrown during Application Category Management.
|
||||
*/
|
||||
public class ApplicationCategoryManagementException extends ApplicationManagementException {
|
||||
public ApplicationCategoryManagementException(String message) {
|
||||
super(message);
|
||||
setMessage(message);
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,46 @@
|
||||
/* Copyright (c) 2019, Entgra (Pvt) Ltd. (http://www.entgra.io) All Rights Reserved.
|
||||
*
|
||||
* Entgra (Pvt) Ltd. licenses this file to you under the Apache License,
|
||||
* Version 2.0 (the "License"); you may not use this file except
|
||||
* in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing,
|
||||
* software distributed under the License is distributed on an
|
||||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
* KIND, either express or implied. See the License for the
|
||||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
*/
|
||||
package org.wso2.carbon.device.application.mgt.common.exception;
|
||||
|
||||
/**
|
||||
* Represents the exception thrown during application management.
|
||||
*/
|
||||
public class ApplicationManagementException extends Exception {
|
||||
private String message;
|
||||
|
||||
public ApplicationManagementException(String message, Throwable throwable) {
|
||||
super(message, throwable);
|
||||
setMessage(message);
|
||||
}
|
||||
|
||||
public ApplicationManagementException(String message) {
|
||||
super(message);
|
||||
setMessage(message);
|
||||
}
|
||||
|
||||
public ApplicationManagementException() {
|
||||
|
||||
}
|
||||
@Override
|
||||
public String getMessage() {
|
||||
return message;
|
||||
}
|
||||
|
||||
public void setMessage(String message) {
|
||||
this.message = message;
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,31 @@
|
||||
/* Copyright (c) 2019, Entgra (Pvt) Ltd. (http://www.entgra.io) All Rights Reserved.
|
||||
*
|
||||
* Entgra (Pvt) Ltd. licenses this file to you under the Apache License,
|
||||
* Version 2.0 (the "License"); you may not use this file except
|
||||
* in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing,
|
||||
* software distributed under the License is distributed on an
|
||||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
* KIND, either express or implied. See the License for the
|
||||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
*/
|
||||
|
||||
package org.wso2.carbon.device.application.mgt.common.exception;
|
||||
|
||||
/**
|
||||
* Represents the exception thrown during storing and retrieving the artifacts.
|
||||
*/
|
||||
public class ApplicationStorageManagementException extends ResourceManagementException {
|
||||
public ApplicationStorageManagementException(String message, Throwable ex) {
|
||||
super(message, ex);
|
||||
}
|
||||
|
||||
public ApplicationStorageManagementException(String message) {
|
||||
super(message);
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,33 @@
|
||||
/* Copyright (c) 2019, Entgra (Pvt) Ltd. (http://www.entgra.io) All Rights Reserved.
|
||||
*
|
||||
* Entgra (Pvt) Ltd. licenses this file to you under the Apache License,
|
||||
* Version 2.0 (the "License"); you may not use this file except
|
||||
* in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing,
|
||||
* software distributed under the License is distributed on an
|
||||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
* KIND, either express or implied. See the License for the
|
||||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
*/
|
||||
package org.wso2.carbon.device.application.mgt.common.exception;
|
||||
|
||||
/**
|
||||
* Exception thrown due to Database Connection issues.
|
||||
*/
|
||||
public class DBConnectionException extends ApplicationManagementException {
|
||||
|
||||
private static final long serialVersionUID = -3151279331929070297L;
|
||||
|
||||
public DBConnectionException(String message, Throwable cause) {
|
||||
super(message, cause);
|
||||
}
|
||||
|
||||
public DBConnectionException(String msg) {
|
||||
super(msg);
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,46 @@
|
||||
/* Copyright (c) 2019, Entgra (Pvt) Ltd. (http://www.entgra.io) All Rights Reserved.
|
||||
*
|
||||
* Entgra (Pvt) Ltd. licenses this file to you under the Apache License,
|
||||
* Version 2.0 (the "License"); you may not use this file except
|
||||
* in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing,
|
||||
* software distributed under the License is distributed on an
|
||||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
* KIND, either express or implied. See the License for the
|
||||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
*/
|
||||
package org.wso2.carbon.device.application.mgt.common.exception;
|
||||
|
||||
/**
|
||||
* Represents the exception thrown during device connections.
|
||||
*/
|
||||
public class DeviceConnectorException extends Exception {
|
||||
private String message;
|
||||
|
||||
public DeviceConnectorException(String message, Throwable throwable) {
|
||||
super(message, throwable);
|
||||
setMessage(message);
|
||||
}
|
||||
|
||||
public DeviceConnectorException(String message) {
|
||||
super(message);
|
||||
setMessage(message);
|
||||
}
|
||||
|
||||
public DeviceConnectorException() {
|
||||
|
||||
}
|
||||
@Override
|
||||
public String getMessage() {
|
||||
return message;
|
||||
}
|
||||
|
||||
public void setMessage(String message) {
|
||||
this.message = message;
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,38 @@
|
||||
/* Copyright (c) 2019, Entgra (Pvt) Ltd. (http://www.entgra.io) All Rights Reserved.
|
||||
*
|
||||
* Entgra (Pvt) Ltd. licenses this file to you under the Apache License,
|
||||
* Version 2.0 (the "License"); you may not use this file except
|
||||
* in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing,
|
||||
* software distributed under the License is distributed on an
|
||||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
* KIND, either express or implied. See the License for the
|
||||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
*/
|
||||
package org.wso2.carbon.device.application.mgt.common.exception;
|
||||
|
||||
/**
|
||||
* Exception thrown due to an issue in database transactions.
|
||||
*/
|
||||
public class IllegalTransactionStateException extends RuntimeException {
|
||||
|
||||
private static final long serialVersionUID = -3151279331929070297L;
|
||||
|
||||
public IllegalTransactionStateException(String msg, Exception nestedEx) {
|
||||
super(msg, nestedEx);
|
||||
}
|
||||
|
||||
public IllegalTransactionStateException(String message, Throwable cause) {
|
||||
super(message, cause);
|
||||
}
|
||||
|
||||
public IllegalTransactionStateException(String msg) {
|
||||
super(msg);
|
||||
}
|
||||
|
||||
}
|
||||
@ -0,0 +1,32 @@
|
||||
/* Copyright (c) 2019, Entgra (Pvt) Ltd. (http://www.entgra.io) All Rights Reserved.
|
||||
*
|
||||
* Entgra (Pvt) Ltd. licenses this file to you under the Apache License,
|
||||
* Version 2.0 (the "License"); you may not use this file except
|
||||
* in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing,
|
||||
* software distributed under the License is distributed on an
|
||||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
* KIND, either express or implied. See the License for the
|
||||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
*/
|
||||
package org.wso2.carbon.device.application.mgt.common.exception;
|
||||
|
||||
/**
|
||||
* Exception thrown due to invalid configurations provided for Application Management.
|
||||
*/
|
||||
public class InvalidConfigurationException extends ApplicationManagementException {
|
||||
|
||||
public InvalidConfigurationException(String message, Throwable throwable) {
|
||||
super(message, throwable);
|
||||
}
|
||||
|
||||
public InvalidConfigurationException(String message) {
|
||||
super(message);
|
||||
}
|
||||
|
||||
}
|
||||
@ -0,0 +1,31 @@
|
||||
/* Copyright (c) 2019, Entgra (Pvt) Ltd. (http://www.entgra.io) All Rights Reserved.
|
||||
*
|
||||
* Entgra (Pvt) Ltd. licenses this file to you under the Apache License,
|
||||
* Version 2.0 (the "License"); you may not use this file except
|
||||
* in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing,
|
||||
* software distributed under the License is distributed on an
|
||||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
* KIND, either express or implied. See the License for the
|
||||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
*/
|
||||
package org.wso2.carbon.device.application.mgt.common.exception;
|
||||
|
||||
/**
|
||||
* Exception caused during the lifecycle management.
|
||||
*/
|
||||
public class LifecycleManagementException extends ApplicationManagementException {
|
||||
|
||||
public LifecycleManagementException(String message, Throwable ex) {
|
||||
super(message, ex);
|
||||
}
|
||||
|
||||
public LifecycleManagementException(String message) {
|
||||
super(message);
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,32 @@
|
||||
/* Copyright (c) 2019, Entgra (Pvt) Ltd. (http://www.entgra.io) All Rights Reserved.
|
||||
*
|
||||
* Entgra (Pvt) Ltd. licenses this file to you under the Apache License,
|
||||
* Version 2.0 (the "License"); you may not use this file except
|
||||
* in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing,
|
||||
* software distributed under the License is distributed on an
|
||||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
* KIND, either express or implied. See the License for the
|
||||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
*/
|
||||
|
||||
package org.wso2.carbon.device.application.mgt.common.exception;
|
||||
|
||||
/**
|
||||
* Represents the exception thrown during validating the request.
|
||||
*/
|
||||
public class RequestValidatingException extends Exception{
|
||||
|
||||
public RequestValidatingException(String message, Throwable ex) {
|
||||
super(message, ex);
|
||||
}
|
||||
|
||||
public RequestValidatingException(String message) {
|
||||
super(message);
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,31 @@
|
||||
/* Copyright (c) 2019, Entgra (Pvt) Ltd. (http://www.entgra.io) All Rights Reserved.
|
||||
*
|
||||
* Entgra (Pvt) Ltd. licenses this file to you under the Apache License,
|
||||
* Version 2.0 (the "License"); you may not use this file except
|
||||
* in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing,
|
||||
* software distributed under the License is distributed on an
|
||||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
* KIND, either express or implied. See the License for the
|
||||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
*/
|
||||
|
||||
package org.wso2.carbon.device.application.mgt.common.exception;
|
||||
|
||||
/**
|
||||
* Represents the exception that will be thrown when there is an issue while managing the resources.
|
||||
*/
|
||||
public class ResourceManagementException extends Exception {
|
||||
public ResourceManagementException(String message, Throwable ex) {
|
||||
super(message, ex);
|
||||
}
|
||||
|
||||
public ResourceManagementException(String message) {
|
||||
super(message);
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,43 @@
|
||||
/* Copyright (c) 2019, Entgra (Pvt) Ltd. (http://www.entgra.io) All Rights Reserved.
|
||||
*
|
||||
* Entgra (Pvt) Ltd. licenses this file to you under the Apache License,
|
||||
* Version 2.0 (the "License"); you may not use this file except
|
||||
* in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing,
|
||||
* software distributed under the License is distributed on an
|
||||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
* KIND, either express or implied. See the License for the
|
||||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
*/
|
||||
package org.wso2.carbon.device.application.mgt.common.exception;
|
||||
|
||||
public class ReviewDoesNotExistException extends Exception {
|
||||
private String message;
|
||||
|
||||
public ReviewDoesNotExistException(String message, Throwable throwable) {
|
||||
super(message, throwable);
|
||||
setMessage(message);
|
||||
}
|
||||
|
||||
public ReviewDoesNotExistException(String message) {
|
||||
super(message);
|
||||
setMessage(message);
|
||||
}
|
||||
|
||||
public ReviewDoesNotExistException() {
|
||||
|
||||
}
|
||||
|
||||
@Override public String getMessage() {
|
||||
return message;
|
||||
}
|
||||
|
||||
public void setMessage(String message) {
|
||||
this.message = message;
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,43 @@
|
||||
/* Copyright (c) 2019, Entgra (Pvt) Ltd. (http://www.entgra.io) All Rights Reserved.
|
||||
*
|
||||
* Entgra (Pvt) Ltd. licenses this file to you under the Apache License,
|
||||
* Version 2.0 (the "License"); you may not use this file except
|
||||
* in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing,
|
||||
* software distributed under the License is distributed on an
|
||||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
* KIND, either express or implied. See the License for the
|
||||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
*/
|
||||
package org.wso2.carbon.device.application.mgt.common.exception;
|
||||
|
||||
public class ReviewManagementException extends Exception {
|
||||
private String message;
|
||||
|
||||
public ReviewManagementException(String message, Throwable throwable) {
|
||||
super(message, throwable);
|
||||
setMessage(message);
|
||||
}
|
||||
|
||||
public ReviewManagementException(String message) {
|
||||
super(message);
|
||||
setMessage(message);
|
||||
}
|
||||
|
||||
public ReviewManagementException() {
|
||||
|
||||
}
|
||||
|
||||
@Override public String getMessage() {
|
||||
return message;
|
||||
}
|
||||
|
||||
public void setMessage(String message) {
|
||||
this.message = message;
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,45 @@
|
||||
/*
|
||||
* Copyright (c) 2019, Entgra (Pvt) Ltd. (http://www.entgra.io) All Rights Reserved.
|
||||
*
|
||||
* Entgra (Pvt) Ltd. licenses this file to you under the Apache License,
|
||||
* Version 2.0 (the "License"); you may not use this file except
|
||||
* in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing,
|
||||
* software distributed under the License is distributed on an
|
||||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
* KIND, either express or implied. See the License for the
|
||||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
*/
|
||||
|
||||
package org.wso2.carbon.device.application.mgt.common.exception;
|
||||
|
||||
public class SubscriptionManagementException extends Exception {
|
||||
private String message;
|
||||
|
||||
public SubscriptionManagementException(String message, Throwable throwable) {
|
||||
super(message, throwable);
|
||||
setMessage(message);
|
||||
}
|
||||
|
||||
public SubscriptionManagementException(String message) {
|
||||
super(message);
|
||||
setMessage(message);
|
||||
}
|
||||
|
||||
public SubscriptionManagementException() {
|
||||
|
||||
}
|
||||
|
||||
@Override public String getMessage() {
|
||||
return message;
|
||||
}
|
||||
|
||||
public void setMessage(String message) {
|
||||
this.message = message;
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,38 @@
|
||||
/* Copyright (c) 2019, Entgra (Pvt) Ltd. (http://www.entgra.io) All Rights Reserved.
|
||||
*
|
||||
* Entgra (Pvt) Ltd. licenses this file to you under the Apache License,
|
||||
* Version 2.0 (the "License"); you may not use this file except
|
||||
* in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing,
|
||||
* software distributed under the License is distributed on an
|
||||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
* KIND, either express or implied. See the License for the
|
||||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
*/
|
||||
package org.wso2.carbon.device.application.mgt.common.exception;
|
||||
|
||||
/**
|
||||
* Exception thrown due to an issue in TransactionManagement of Database.
|
||||
*/
|
||||
public class TransactionManagementException extends ApplicationManagementException {
|
||||
|
||||
private static final long serialVersionUID = -3151279321929070297L;
|
||||
|
||||
public TransactionManagementException(String msg, Exception nestedEx) {
|
||||
super(msg, nestedEx);
|
||||
}
|
||||
|
||||
public TransactionManagementException(String message, Throwable cause) {
|
||||
super(message, cause);
|
||||
}
|
||||
|
||||
public TransactionManagementException(String msg) {
|
||||
super(msg);
|
||||
}
|
||||
|
||||
}
|
||||
@ -0,0 +1,39 @@
|
||||
/* Copyright (c) 2019, Entgra (Pvt) Ltd. (http://www.entgra.io) All Rights Reserved.
|
||||
*
|
||||
* Entgra (Pvt) Ltd. licenses this file to you under the Apache License,
|
||||
* Version 2.0 (the "License"); you may not use this file except
|
||||
* in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing,
|
||||
* software distributed under the License is distributed on an
|
||||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
* KIND, either express or implied. See the License for the
|
||||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
*/
|
||||
|
||||
package org.wso2.carbon.device.application.mgt.common.exception;
|
||||
|
||||
/**
|
||||
* This runtime exception will be thrown if the server has configured with unsupported DB engine.
|
||||
*/
|
||||
public class UnsupportedDatabaseEngineException extends RuntimeException {
|
||||
|
||||
private static final long serialVersionUID = -3151279311929070297L;
|
||||
|
||||
public UnsupportedDatabaseEngineException(String msg, Exception nestedEx) {
|
||||
super(msg, nestedEx);
|
||||
}
|
||||
|
||||
public UnsupportedDatabaseEngineException(String message, Throwable cause) {
|
||||
super(message, cause);
|
||||
}
|
||||
|
||||
public UnsupportedDatabaseEngineException(String msg) {
|
||||
super(msg);
|
||||
}
|
||||
|
||||
}
|
||||
@ -0,0 +1,36 @@
|
||||
/* Copyright (c) 2019, Entgra (Pvt) Ltd. (http://www.entgra.io) All Rights Reserved.
|
||||
*
|
||||
* Entgra (Pvt) Ltd. licenses this file to you under the Apache License,
|
||||
* Version 2.0 (the "License"); you may not use this file except
|
||||
* in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing,
|
||||
* software distributed under the License is distributed on an
|
||||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
* KIND, either express or implied. See the License for the
|
||||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
*/
|
||||
package org.wso2.carbon.device.application.mgt.common.exception;
|
||||
|
||||
/**
|
||||
* This specialized exception is thrown by the Visibility Manager during unexpected behaviour
|
||||
* or unsupported parameters.
|
||||
*/
|
||||
public class VisibilityManagementException extends ApplicationManagementException {
|
||||
|
||||
public VisibilityManagementException(String msg, Exception nestedEx) {
|
||||
super(msg, nestedEx);
|
||||
}
|
||||
|
||||
public VisibilityManagementException(String message, Throwable cause) {
|
||||
super(message, cause);
|
||||
}
|
||||
|
||||
public VisibilityManagementException(String msg) {
|
||||
super(msg);
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,162 @@
|
||||
/* Copyright (c) 2019, Entgra (Pvt) Ltd. (http://www.entgra.io) All Rights Reserved.
|
||||
*
|
||||
* Entgra (Pvt) Ltd. licenses this file to you under the Apache License,
|
||||
* Version 2.0 (the "License"); you may not use this file except
|
||||
* in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing,
|
||||
* software distributed under the License is distributed on an
|
||||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
* KIND, either express or implied. See the License for the
|
||||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
*/
|
||||
package org.wso2.carbon.device.application.mgt.common.response;
|
||||
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
public class Application {
|
||||
@ApiModelProperty(name = "id",
|
||||
value = "ID of the application",
|
||||
required = true)
|
||||
private int id;
|
||||
|
||||
@ApiModelProperty(name = "name",
|
||||
value = "Name of the application",
|
||||
required = true)
|
||||
private String name;
|
||||
|
||||
@ApiModelProperty(name = "description",
|
||||
value = "Description of the application",
|
||||
required = true)
|
||||
private String description;
|
||||
|
||||
@ApiModelProperty(name = "categories",
|
||||
value = "CategoryDTO of the application",
|
||||
required = true,
|
||||
example = "Educational, Gaming, Travel, Entertainment etc")
|
||||
private List<String> categories;
|
||||
|
||||
@ApiModelProperty(name = "type",
|
||||
value = "Type of the application",
|
||||
required = true,
|
||||
example = "ENTERPRISE, PUBLIC, WEB, WEB_CLIP etc")
|
||||
private String type;
|
||||
|
||||
@ApiModelProperty(name = "isAndroidEnterpriseApp",
|
||||
value = "Android enterprise app or not",
|
||||
required = true,
|
||||
example = "true or false")
|
||||
private boolean isAndroidEnterpriseApp;
|
||||
|
||||
@ApiModelProperty(name = "subMethod",
|
||||
value = "Subscription type of the application",
|
||||
required = true,
|
||||
example = "PAID, FREE")
|
||||
private String subMethod;
|
||||
|
||||
@ApiModelProperty(name = "paymentCurrency",
|
||||
value = "Payment currency of the application",
|
||||
required = true,
|
||||
example = "$")
|
||||
private String paymentCurrency;
|
||||
|
||||
@ApiModelProperty(name = "tags",
|
||||
value = "List of application tags")
|
||||
private List<String> tags;
|
||||
|
||||
@ApiModelProperty(name = "unrestrictedRoles",
|
||||
value = "List of roles that users should have to access the application")
|
||||
private List<String> unrestrictedRoles;
|
||||
|
||||
@ApiModelProperty(name = "deviceType",
|
||||
value = "Related device type of the application",
|
||||
required = true,
|
||||
example = "IoS, Android, Arduino, RaspberryPi etc")
|
||||
private String deviceType;
|
||||
|
||||
@ApiModelProperty(name = "rating",
|
||||
value = "Application Rating")
|
||||
private double rating;
|
||||
|
||||
@ApiModelProperty(name = "applicationReleases",
|
||||
value = "List of application releases",
|
||||
required = true)
|
||||
private List<ApplicationRelease> applicationReleases;
|
||||
|
||||
@ApiModelProperty(name = "packageName",
|
||||
value = "package name of the application")
|
||||
private String packageName;
|
||||
|
||||
public String getPackageName() {
|
||||
return packageName;
|
||||
}
|
||||
|
||||
public void setPackageName(String packageName) {
|
||||
this.packageName = packageName;
|
||||
}
|
||||
|
||||
public int getId() { return id; }
|
||||
|
||||
public void setId(int id) { this.id = id; }
|
||||
|
||||
public String getName() {
|
||||
return name;
|
||||
}
|
||||
|
||||
public void setName(String name) { this.name = name; }
|
||||
|
||||
public List<String> getCategories() {
|
||||
return categories;
|
||||
}
|
||||
|
||||
public void setCategories(List<String> categories) {
|
||||
this.categories = categories;
|
||||
}
|
||||
|
||||
public List<String> getTags() { return tags; }
|
||||
|
||||
public void setTags(List<String> tags) { this.tags = tags; }
|
||||
|
||||
public String getType() { return type; }
|
||||
|
||||
public void setType(String type) { this.type = type; }
|
||||
|
||||
public String getSubMethod() { return subMethod; }
|
||||
|
||||
public void setSubMethod(String subMethod) { this.subMethod = subMethod; }
|
||||
|
||||
public String getPaymentCurrency() { return paymentCurrency; }
|
||||
|
||||
public void setPaymentCurrency(String paymentCurrency) { this.paymentCurrency = paymentCurrency; }
|
||||
|
||||
public List<ApplicationRelease> getApplicationReleases() { return applicationReleases; }
|
||||
|
||||
public void setApplicationReleases(List<ApplicationRelease> applicationReleases) {
|
||||
this.applicationReleases = applicationReleases; }
|
||||
|
||||
public List<String> getUnrestrictedRoles() { return unrestrictedRoles; }
|
||||
|
||||
public void setUnrestrictedRoles(List<String> unrestrictedRoles) { this.unrestrictedRoles = unrestrictedRoles; }
|
||||
|
||||
public String getDeviceType() { return deviceType; }
|
||||
|
||||
public void setDeviceType(String deviceType) { this.deviceType = deviceType; }
|
||||
|
||||
public String getDescription() { return description; }
|
||||
|
||||
public void setDescription(String description) { this.description = description; }
|
||||
|
||||
public double getRating() { return rating; }
|
||||
|
||||
public void setRating(double rating) { this.rating = rating; }
|
||||
|
||||
public boolean isAndroidEnterpriseApp() { return isAndroidEnterpriseApp; }
|
||||
|
||||
public void setAndroidEnterpriseApp(boolean androidEnterpriseApp) { isAndroidEnterpriseApp = androidEnterpriseApp; }
|
||||
}
|
||||
@ -0,0 +1,165 @@
|
||||
/* Copyright (c) 2019, Entgra (Pvt) Ltd. (http://www.entgra.io) All Rights Reserved.
|
||||
*
|
||||
* Entgra (Pvt) Ltd. licenses this file to you under the Apache License,
|
||||
* Version 2.0 (the "License"); you may not use this file except
|
||||
* in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing,
|
||||
* software distributed under the License is distributed on an
|
||||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
* KIND, either express or implied. See the License for the
|
||||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
*/
|
||||
package org.wso2.carbon.device.application.mgt.common.response;
|
||||
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
@ApiModel(value = "ApplicationReleaseDTO", description = "This class holds the details when releasing an ApplicationDTO to application store")
|
||||
public class ApplicationRelease {
|
||||
|
||||
@ApiModelProperty(name = "description",
|
||||
value = "Description of the application release")
|
||||
private String description;
|
||||
|
||||
@ApiModelProperty(name = "version",
|
||||
value = "Version of the application release")
|
||||
private String version;
|
||||
|
||||
@ApiModelProperty(name = "uuid",
|
||||
value = "UUID of the application release")
|
||||
private String uuid;
|
||||
|
||||
@ApiModelProperty(name = "installerPath",
|
||||
value = "ApplicationDTO storing location")
|
||||
private String installerPath;
|
||||
|
||||
@ApiModelProperty(name = "bannerPath",
|
||||
value = "Banner file storing location")
|
||||
private String bannerPath;
|
||||
|
||||
@ApiModelProperty(name = "iconPath",
|
||||
value = "icon file storing location")
|
||||
private String iconPath;
|
||||
|
||||
@ApiModelProperty(name = "screenshots",
|
||||
value = "Screenshot storing location")
|
||||
private List<String> screenshots;
|
||||
|
||||
@ApiModelProperty(name = "releaseType",
|
||||
value = "Release type of the application release",
|
||||
required = true,
|
||||
example = "alpha, beta etc")
|
||||
private String releaseType;
|
||||
|
||||
@ApiModelProperty(name = "currentStatus",
|
||||
value = "CurrentStatus of the Application Release.",
|
||||
required = true,
|
||||
example = "CREATED, IN-REVIEW, PUBLISHED etc")
|
||||
private String currentStatus;
|
||||
|
||||
@ApiModelProperty(name = "price",
|
||||
value = "Price of the application release",
|
||||
required = true)
|
||||
private double price;
|
||||
|
||||
@ApiModelProperty(name = "isSharedWithAllTenants",
|
||||
value = "If application release is shared with all tenants it is eqal to 1 otherwise 0",
|
||||
required = true)
|
||||
private boolean isSharedWithAllTenants;
|
||||
|
||||
@ApiModelProperty(name = "metaData",
|
||||
value = "Meta data of the application release",
|
||||
required = true)
|
||||
private String metaData;
|
||||
|
||||
@ApiModelProperty(name = "supportedOsVersions",
|
||||
value = "ApplicationDTO release supported OS versions")
|
||||
private String supportedOsVersions;
|
||||
|
||||
@ApiModelProperty(name = "rating",
|
||||
value = "Application Rating")
|
||||
private double rating;
|
||||
|
||||
public String getReleaseType() {
|
||||
return releaseType;
|
||||
}
|
||||
|
||||
public void setReleaseType(String releaseType) {
|
||||
this.releaseType = releaseType;
|
||||
}
|
||||
|
||||
public void setIsSharedWithAllTenants(boolean isSharedWithAllTenants) {
|
||||
this.isSharedWithAllTenants = isSharedWithAllTenants;
|
||||
}
|
||||
|
||||
public void setMetaData(String metaData) {
|
||||
this.metaData = metaData;
|
||||
}
|
||||
|
||||
public double getPrice() {
|
||||
return price;
|
||||
}
|
||||
|
||||
public void setPrice(double price) {
|
||||
this.price = price;
|
||||
}
|
||||
|
||||
public boolean getIsSharedWithAllTenants() {
|
||||
return isSharedWithAllTenants;
|
||||
}
|
||||
|
||||
public String getMetaData() {
|
||||
return metaData;
|
||||
}
|
||||
|
||||
public String getDescription() { return description; }
|
||||
|
||||
public void setDescription(String description) { this.description = description; }
|
||||
|
||||
public String getVersion() { return version; }
|
||||
|
||||
public void setVersion(String version) { this.version = version; }
|
||||
|
||||
public String getUuid() { return uuid; }
|
||||
|
||||
public void setUuid(String uuid) { this.uuid = uuid; }
|
||||
|
||||
public String getInstallerPath() { return installerPath; }
|
||||
|
||||
public void setInstallerPath(String installerPath) { this.installerPath = installerPath; }
|
||||
|
||||
public String getBannerPath() { return bannerPath; }
|
||||
|
||||
public void setBannerPath(String bannerPath) { this.bannerPath = bannerPath; }
|
||||
|
||||
public String getIconPath() { return iconPath; }
|
||||
|
||||
public void setIconPath(String iconPath) { this.iconPath = iconPath; }
|
||||
|
||||
public boolean isSharedWithAllTenants() { return isSharedWithAllTenants; }
|
||||
|
||||
public void setSharedWithAllTenants(boolean sharedWithAllTenants) { isSharedWithAllTenants = sharedWithAllTenants; }
|
||||
|
||||
public String getSupportedOsVersions() { return supportedOsVersions; }
|
||||
|
||||
public void setSupportedOsVersions(String supportedOsVersions) { this.supportedOsVersions = supportedOsVersions; }
|
||||
|
||||
public String getCurrentStatus() { return currentStatus; }
|
||||
|
||||
public void setCurrentStatus(String currentStatus) { this.currentStatus = currentStatus; }
|
||||
|
||||
public double getRating() { return rating; }
|
||||
|
||||
public void setRating(double rating) { this.rating = rating; }
|
||||
|
||||
public List<String> getScreenshots() { return screenshots; }
|
||||
|
||||
public void setScreenshots(List<String> screenshots) { this.screenshots = screenshots; }
|
||||
}
|
||||
@ -0,0 +1,41 @@
|
||||
/* Copyright (c) 2019, Entgra (Pvt) Ltd. (http://www.entgra.io) All Rights Reserved.
|
||||
*
|
||||
* Entgra (Pvt) Ltd. licenses this file to you under the Apache License,
|
||||
* Version 2.0 (the "License"); you may not use this file except
|
||||
* in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing,
|
||||
* software distributed under the License is distributed on an
|
||||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
* KIND, either express or implied. See the License for the
|
||||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
*/
|
||||
|
||||
package org.wso2.carbon.device.application.mgt.common.response;
|
||||
|
||||
public class Category {
|
||||
|
||||
private String categoryName;
|
||||
|
||||
private boolean isCategoryDeletable;
|
||||
|
||||
public String getCategoryName() {
|
||||
return categoryName;
|
||||
}
|
||||
|
||||
public void setCategoryName(String categoryName) {
|
||||
this.categoryName = categoryName;
|
||||
}
|
||||
|
||||
public boolean isCategoryDeletable() {
|
||||
return isCategoryDeletable;
|
||||
}
|
||||
|
||||
public void setCategoryDeletable(boolean categoryDeletable) {
|
||||
isCategoryDeletable = categoryDeletable;
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,115 @@
|
||||
/* Copyright (c) 2019, Entgra (Pvt) Ltd. (http://www.entgra.io) All Rights Reserved.
|
||||
*
|
||||
* Entgra (Pvt) Ltd. licenses this file to you under the Apache License,
|
||||
* Version 2.0 (the "License"); you may not use this file except
|
||||
* in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing,
|
||||
* software distributed under the License is distributed on an
|
||||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
* KIND, either express or implied. See the License for the
|
||||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
*/
|
||||
|
||||
package org.wso2.carbon.device.application.mgt.common.response;
|
||||
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
|
||||
import java.sql.Timestamp;
|
||||
import java.util.List;
|
||||
|
||||
@ApiModel(value = "Review", description = "Review represents the user's review for an application release")
|
||||
public class Review {
|
||||
|
||||
@ApiModelProperty(name = "id", value = "Review ID.")
|
||||
private int id;
|
||||
|
||||
@ApiModelProperty(name = "content", value = "Review message.")
|
||||
private String content;
|
||||
|
||||
@ApiModelProperty(name = "username", value = "Username odf the Review creator")
|
||||
private String username;
|
||||
|
||||
@ApiModelProperty(name = "createdAt", value = "Review created timestamp.")
|
||||
private Timestamp createdAt;
|
||||
|
||||
@ApiModelProperty(name = "createdAt", value = "Review modified timestamp.")
|
||||
private Timestamp modifiedAt;
|
||||
|
||||
@ApiModelProperty(name = "rating", value = "Rating value of the application release")
|
||||
private int rating;
|
||||
|
||||
@ApiModelProperty(name = "releaseUuid", value = "UUID of the review associated application")
|
||||
private String releaseUuid;
|
||||
|
||||
@ApiModelProperty(name = "releaseVersion", value = "Version of the review associated application")
|
||||
private String releaseVersion;
|
||||
|
||||
@ApiModelProperty(name = "replies", value = "Replying reviews")
|
||||
private List<Review> replies;
|
||||
|
||||
public int getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setId(int id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public String getContent() {
|
||||
return content;
|
||||
}
|
||||
|
||||
public void setContent(String content) {
|
||||
this.content = content;
|
||||
}
|
||||
|
||||
public String getUsername() {
|
||||
return username;
|
||||
}
|
||||
|
||||
public void setUsername(String username) {
|
||||
this.username = username;
|
||||
}
|
||||
|
||||
public Timestamp getCreatedAt() {
|
||||
return createdAt;
|
||||
}
|
||||
|
||||
public void setCreatedAt(Timestamp createdAt) {
|
||||
this.createdAt = createdAt;
|
||||
}
|
||||
|
||||
public Timestamp getModifiedAt() {
|
||||
return modifiedAt;
|
||||
}
|
||||
|
||||
public void setModifiedAt(Timestamp modifiedAt) {
|
||||
this.modifiedAt = modifiedAt;
|
||||
}
|
||||
|
||||
public int getRating() {
|
||||
return rating;
|
||||
}
|
||||
|
||||
public void setRating(int rating) {
|
||||
this.rating = rating;
|
||||
}
|
||||
|
||||
public List<Review> getReplies() { return replies; }
|
||||
|
||||
public void setReplies(List<Review> replies) { this.replies = replies; }
|
||||
|
||||
public String getReleaseUuid() { return releaseUuid; }
|
||||
|
||||
public void setReleaseUuid(String releaseUuid) { this.releaseUuid = releaseUuid; }
|
||||
|
||||
public String getReleaseVersion() { return releaseVersion; }
|
||||
|
||||
public void setReleaseVersion(String releaseVersion) { this.releaseVersion = releaseVersion; }
|
||||
}
|
||||
@ -0,0 +1,41 @@
|
||||
/* Copyright (c) 2019, Entgra (Pvt) Ltd. (http://www.entgra.io) All Rights Reserved.
|
||||
*
|
||||
* Entgra (Pvt) Ltd. licenses this file to you under the Apache License,
|
||||
* Version 2.0 (the "License"); you may not use this file except
|
||||
* in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing,
|
||||
* software distributed under the License is distributed on an
|
||||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
* KIND, either express or implied. See the License for the
|
||||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
*/
|
||||
|
||||
package org.wso2.carbon.device.application.mgt.common.response;
|
||||
|
||||
public class Tag {
|
||||
|
||||
private String tagName;
|
||||
|
||||
private boolean isTagDeletable;
|
||||
|
||||
public String getTagName() {
|
||||
return tagName;
|
||||
}
|
||||
|
||||
public void setTagName(String tagName) {
|
||||
this.tagName = tagName;
|
||||
}
|
||||
|
||||
public boolean isTagDeletable() {
|
||||
return isTagDeletable;
|
||||
}
|
||||
|
||||
public void setTagDeletable(boolean tagDeletable) {
|
||||
isTagDeletable = tagDeletable;
|
||||
}
|
||||
}
|
||||
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user