diff --git a/components/application-mgt/org.wso2.carbon.device.application.mgt.common/pom.xml b/components/application-mgt/org.wso2.carbon.device.application.mgt.common/pom.xml index c803e76bc3..da6c8bc20f 100644 --- a/components/application-mgt/org.wso2.carbon.device.application.mgt.common/pom.xml +++ b/components/application-mgt/org.wso2.carbon.device.application.mgt.common/pom.xml @@ -56,6 +56,8 @@ org.apache.commons.logging, javax.xml.*, org.apache.commons.codec.binary;version="${commons-codec.wso2.osgi.version.range}", + org.wso2.carbon.device.mgt.core.dto.*;version="${carbon.device.mgt.version}", + org.wso2.carbon.device.mgt.core.dao.*;version="${carbon.device.mgt.version}", org.w3c.dom, org.json, org.xml.sax, diff --git a/components/application-mgt/org.wso2.carbon.device.application.mgt.common/src/main/java/org/wso2/carbon/device/application/mgt/common/services/ApplicationManager.java b/components/application-mgt/org.wso2.carbon.device.application.mgt.common/src/main/java/org/wso2/carbon/device/application/mgt/common/services/ApplicationManager.java index cea3fec992..2e6f362e98 100644 --- a/components/application-mgt/org.wso2.carbon.device.application.mgt.common/src/main/java/org/wso2/carbon/device/application/mgt/common/services/ApplicationManager.java +++ b/components/application-mgt/org.wso2.carbon.device.application.mgt.common/src/main/java/org/wso2/carbon/device/application/mgt/common/services/ApplicationManager.java @@ -64,6 +64,12 @@ public interface ApplicationManager { */ ApplicationList getApplications(Filter filter) throws ApplicationManagementException; + /** + * To get the applications based on the search filter. + * @param appId id of the application + * @return Application release which is published and release of the Application(appId). + * @throws ApplicationManagementException Application Management Exception + */ String getUuidOfLatestRelease(int appId) throws ApplicationManagementException; @@ -97,6 +103,16 @@ public interface ApplicationManager { */ Application getApplication(String appType, String appName) throws ApplicationManagementException; + /** + * To get Application with the given UUID. + * + * @param applicationId Id of the Application + * @return the Application identified by the application id + * @throws ApplicationManagementException Application Management Exception. + */ + Application getApplicationById(int applicationId) throws ApplicationManagementException; + + /** * To get Application with the given UUID. * diff --git a/components/application-mgt/org.wso2.carbon.device.application.mgt.common/src/main/java/org/wso2/carbon/device/application/mgt/common/services/ApplicationReleaseManager.java b/components/application-mgt/org.wso2.carbon.device.application.mgt.common/src/main/java/org/wso2/carbon/device/application/mgt/common/services/ApplicationReleaseManager.java index 2f5231d671..c21d7bc957 100644 --- a/components/application-mgt/org.wso2.carbon.device.application.mgt.common/src/main/java/org/wso2/carbon/device/application/mgt/common/services/ApplicationReleaseManager.java +++ b/components/application-mgt/org.wso2.carbon.device.application.mgt.common/src/main/java/org/wso2/carbon/device/application/mgt/common/services/ApplicationReleaseManager.java @@ -33,11 +33,11 @@ public interface ApplicationReleaseManager { /** * To create an application release for an Application. * - * @param appicationUuid UUID of the Application + * @param applicationId ID of the Application * @param applicationRelease ApplicatonRelease that need to be be created. * @return the unique id of the application release, if the application release succeeded else -1 */ - ApplicationRelease createRelease(String appicationUuid, ApplicationRelease applicationRelease) + ApplicationRelease createRelease(int applicationId, ApplicationRelease applicationRelease) throws ApplicationManagementException; /** @@ -45,10 +45,11 @@ public interface ApplicationReleaseManager { * * @param applicationUuid UUID of the Application. * @param version Version of the ApplicationRelease that need to be retrieved. + * @param releaseType Release type of the app release. (e.g: alpha, beta, default, released) * @return ApplicationRelease related with particular Application UUID and version. * @throws ApplicationManagementException ApplicationManagementException */ - ApplicationRelease getRelease(String applicationUuid, String version) throws ApplicationManagementException; + ApplicationRelease getRelease(String applicationUuid, String version, String releaseType) throws ApplicationManagementException; /** * To get all the releases of a particular Application. @@ -87,9 +88,10 @@ public interface ApplicationReleaseManager { * * @param applicationUuid UUID of the Application, in which the ApplicationRelease need to be deleted. * @param version Version of the ApplicationRelease that need to be deleted. + * @param releaseType Release type of the application. * @throws ApplicationManagementException Application Management Exception. */ - void deleteApplicationRelease(String applicationUuid, String version) throws ApplicationManagementException; + void deleteApplicationRelease(String applicationUuid, String version, String releaseType) throws ApplicationManagementException; /** * To delete all the application releases related with the the particular application. diff --git a/components/application-mgt/org.wso2.carbon.device.application.mgt.common/src/main/java/org/wso2/carbon/device/application/mgt/common/services/CategoryManager.java b/components/application-mgt/org.wso2.carbon.device.application.mgt.common/src/main/java/org/wso2/carbon/device/application/mgt/common/services/CategoryManager.java deleted file mode 100644 index 76df6b3d98..0000000000 --- a/components/application-mgt/org.wso2.carbon.device.application.mgt.common/src/main/java/org/wso2/carbon/device/application/mgt/common/services/CategoryManager.java +++ /dev/null @@ -1,63 +0,0 @@ -/* - * 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. - * - */ -package org.wso2.carbon.device.application.mgt.common.services; - -import org.wso2.carbon.device.application.mgt.common.exception.ApplicationManagementException; - -import java.util.List; - -/** - * CategoryManager is responsible for handling add, delete, update opertaions related with {@link Category} - */ -public interface CategoryManager { - - /** - * To create an application category. - * - * @param category Category that need to be created. - * @return the created Category. - * @throws ApplicationManagementException Application Management Exception - */ - Category createCategory(Category category) throws ApplicationManagementException; - - /** - * To get all the current categories. - * - * @return list of Application categories. - * @throws ApplicationManagementException Application Management Exception. - */ - List getCategories() throws ApplicationManagementException; - - /** - * To get the category with the given name. - * - * @param name Name of the category to retrieve. - * @return the category with the given name. - * @throws ApplicationManagementException Application Management Exception. - */ - Category getCategory(String name) throws ApplicationManagementException; - - /** - * To delete the category with the given name. - * - * @param name Name of the category to be deleted. - * @throws ApplicationManagementException Application Management Exception. - */ - void deleteCategory(String name) throws ApplicationManagementException; -} diff --git a/components/application-mgt/org.wso2.carbon.device.application.mgt.core/src/main/java/org/wso2/carbon/device/application/mgt/core/dao/ApplicationDAO.java b/components/application-mgt/org.wso2.carbon.device.application.mgt.core/src/main/java/org/wso2/carbon/device/application/mgt/core/dao/ApplicationDAO.java index 93960f605f..b34d178dea 100644 --- a/components/application-mgt/org.wso2.carbon.device.application.mgt.core/src/main/java/org/wso2/carbon/device/application/mgt/core/dao/ApplicationDAO.java +++ b/components/application-mgt/org.wso2.carbon.device.application.mgt.core/src/main/java/org/wso2/carbon/device/application/mgt/core/dao/ApplicationDAO.java @@ -84,6 +84,16 @@ public interface ApplicationDAO { */ Application getApplication(String appName, String appType, int tenantId) throws ApplicationManagementDAOException; + /** + * To get the application with the given uuid + * + * @param applicationId Id of the application to be retrieved. + * @param tenantId ID of the tenant. + * @return the application + * @throws ApplicationManagementDAOException Application Management DAO Exception. + */ + Application getApplicationById(int applicationId, int tenantId) throws ApplicationManagementDAOException; + /** * To get the application with the given uuid * @@ -93,15 +103,15 @@ public interface ApplicationDAO { */ Boolean verifyApplicationExistenceById(int appId) throws ApplicationManagementDAOException; - /** - * To get the application id of the application specified by the UUID - * - * @param appName name of the application. - * @param appType type of the application. - * @param tenantId ID of the tenant. - * @return ID of the Application. - * @throws ApplicationManagementDAOException Application Management DAO Exception. - */ + /** + * To get the application id of the application specified by the UUID + * + * @param appName name of the application. + * @param appType type of the application. + * @param tenantId ID of the tenant. + * @return ID of the Application. + * @throws ApplicationManagementDAOException Application Management DAO Exception. + */ int getApplicationId(String appName, String appType, int tenantId) throws ApplicationManagementDAOException; /** diff --git a/components/application-mgt/org.wso2.carbon.device.application.mgt.core/src/main/java/org/wso2/carbon/device/application/mgt/core/dao/impl/application/GenericApplicationDAOImpl.java b/components/application-mgt/org.wso2.carbon.device.application.mgt.core/src/main/java/org/wso2/carbon/device/application/mgt/core/dao/impl/application/GenericApplicationDAOImpl.java index 9dc7d10e86..e3c6bf748a 100644 --- a/components/application-mgt/org.wso2.carbon.device.application.mgt.core/src/main/java/org/wso2/carbon/device/application/mgt/core/dao/impl/application/GenericApplicationDAOImpl.java +++ b/components/application-mgt/org.wso2.carbon.device.application.mgt.core/src/main/java/org/wso2/carbon/device/application/mgt/core/dao/impl/application/GenericApplicationDAOImpl.java @@ -343,6 +343,45 @@ public class GenericApplicationDAOImpl extends AbstractDAOImpl implements Applic } } + @Override + public Application getApplicationById(int applicationId, int tenantId) throws + ApplicationManagementDAOException { + if (log.isDebugEnabled()){ + log.debug("Getting application with the id (" + applicationId + ") from the database"); + } + Connection conn; + PreparedStatement stmt = null; + ResultSet rs = null; + try { + conn = this.getDBConnection(); + String sql = "SELECT AP_APP.ID AS APP_ID, AP_APP.NAME AS APP_NAME, AP_APP.TYPE AS APP_TYPE, AP_APP.APP_CATEGORY \n" + + "AS APP_CATEGORY, AP_APP.IS_FREE, AP_APP_TAG.TAG, AP_UNRESTRICTED_ROLES.ROLE AS RELESE_ID FROM \n" + + "AP_APP, AP_APP_TAG, AP_UNRESTRICTED_ROLES WHERE AP_APP.ID=? AND AP_APP.TENANT_ID=?;"; + + stmt = conn.prepareStatement(sql); + stmt.setInt(1, applicationId); + stmt.setInt(2, tenantId); + rs = stmt.executeQuery(); + + if (log.isDebugEnabled()) { + log.debug("Successfully retrieved basic details of the application with the id " + + applicationId); + } + + return Util.loadApplication(rs); + + } catch (SQLException e) { + throw new ApplicationManagementDAOException( + "Error occurred while getting application details with app id " + applicationId + " While executing query ", e); + } catch (JSONException e) { + throw new ApplicationManagementDAOException("Error occurred while parsing JSON", e); + } catch (DBConnectionException e) { + throw new ApplicationManagementDAOException("Error occurred while obtaining the DB connection.", e); + } finally { + Util.cleanupResources(stmt, rs); + } + } + @Override public Boolean verifyApplicationExistenceById(int appId) throws ApplicationManagementDAOException { if (log.isDebugEnabled()){ diff --git a/components/application-mgt/org.wso2.carbon.device.application.mgt.core/src/main/java/org/wso2/carbon/device/application/mgt/core/impl/ApplicationManagerImpl.java b/components/application-mgt/org.wso2.carbon.device.application.mgt.core/src/main/java/org/wso2/carbon/device/application/mgt/core/impl/ApplicationManagerImpl.java index e2318f9e44..237bdf2756 100644 --- a/components/application-mgt/org.wso2.carbon.device.application.mgt.core/src/main/java/org/wso2/carbon/device/application/mgt/core/impl/ApplicationManagerImpl.java +++ b/components/application-mgt/org.wso2.carbon.device.application.mgt.core/src/main/java/org/wso2/carbon/device/application/mgt/core/impl/ApplicationManagerImpl.java @@ -231,7 +231,7 @@ public class ApplicationManagerImpl implements ApplicationManager { if (application.getUnrestrictedRoles().isEmpty()){ roleRestrictedApplicationList.getApplications().add(application); }else{ - if (isRoleExists(application.getUnrestrictedRoles(), userName){ + if (isRoleExists(application.getUnrestrictedRoles(), userName)){ roleRestrictedApplicationList.getApplications().add(application); } } @@ -373,6 +373,7 @@ public class ApplicationManagerImpl implements ApplicationManager { // } finally { // ConnectionManagerUtil.closeDBConnection(); // } + return null; } @Override @@ -388,10 +389,12 @@ public class ApplicationManagerImpl implements ApplicationManager { return application; } - if (application.getUnrestrictedRoles().isEmpty()){ + if (!application.getUnrestrictedRoles().isEmpty()) { + if(isRoleExists(application.getUnrestrictedRoles(), userName)){ + isAppAllowed = true ; + } + } else { isAppAllowed = true; - }else if(isRoleExists(application.getUnrestrictedRoles(), userName)){ - isAppAllowed = true ; } if (!isAppAllowed){ @@ -406,6 +409,40 @@ public class ApplicationManagerImpl implements ApplicationManager { } } + @Override + public Application getApplicationById(int applicationId) throws ApplicationManagementException{ + int tenantId = PrivilegedCarbonContext.getThreadLocalCarbonContext().getTenantId(true); + String userName = PrivilegedCarbonContext.getThreadLocalCarbonContext().getUsername(); + Application application; + boolean isAppAllowed = false; + try { + ConnectionManagerUtil.openDBConnection(); + application = ApplicationManagementDAOFactory.getApplicationDAO().getApplicationById(applicationId, tenantId); + if (isAdminUser(userName, tenantId, CarbonConstants.UI_ADMIN_PERMISSION_COLLECTION)) { + return application; + } + + if (!application.getUnrestrictedRoles().isEmpty()) { + if(isRoleExists(application.getUnrestrictedRoles(), userName)){ + isAppAllowed = true ; + } + } else { + isAppAllowed = true; + } + + if (!isAppAllowed){ + return null; + } + return application; + } catch (UserStoreException e) { + throw new ApplicationManagementException("User-store exception while getting application with the " + + "application id " + applicationId); + } finally { + ConnectionManagerUtil.closeDBConnection(); + } + } + + public Boolean verifyApplicationExistenceById(int appId) throws ApplicationManagementException{ try { Boolean isAppExist; @@ -443,6 +480,7 @@ public class ApplicationManagerImpl implements ApplicationManager { // } finally { // ConnectionManagerUtil.closeDBConnection(); // } + return false; } /** diff --git a/components/application-mgt/org.wso2.carbon.device.application.mgt.core/src/main/java/org/wso2/carbon/device/application/mgt/core/impl/ApplicationReleaseManagerImpl.java b/components/application-mgt/org.wso2.carbon.device.application.mgt.core/src/main/java/org/wso2/carbon/device/application/mgt/core/impl/ApplicationReleaseManagerImpl.java index e4bf679279..6ff9715fae 100644 --- a/components/application-mgt/org.wso2.carbon.device.application.mgt.core/src/main/java/org/wso2/carbon/device/application/mgt/core/impl/ApplicationReleaseManagerImpl.java +++ b/components/application-mgt/org.wso2.carbon.device.application.mgt.core/src/main/java/org/wso2/carbon/device/application/mgt/core/impl/ApplicationReleaseManagerImpl.java @@ -31,6 +31,7 @@ import org.wso2.carbon.device.application.mgt.core.exception.NotFoundException; import org.wso2.carbon.device.application.mgt.core.internal.DataHolder; import org.wso2.carbon.device.application.mgt.core.util.ConnectionManagerUtil; +import java.sql.Timestamp; import java.util.Date; import java.util.List; @@ -41,18 +42,18 @@ public class ApplicationReleaseManagerImpl implements ApplicationReleaseManager private static Log log = LogFactory.getLog(ApplicationReleaseManagerImpl.class); @Override - public ApplicationRelease createRelease(String appicationUuid, ApplicationRelease applicationRelease) throws + public ApplicationRelease createRelease(int applicationId, ApplicationRelease applicationRelease) throws ApplicationManagementException { - Application application = validateApplication(appicationUuid); - validateReleaseCreateRequest(appicationUuid, applicationRelease); + Application application = validateApplication(applicationId); + validateReleaseCreateRequest(applicationRelease.getUuid(), applicationRelease); if (log.isDebugEnabled()) { log.debug("Application release request is received for the application " + application.toString()); } - applicationRelease.setCreatedAt(new Date()); + applicationRelease.setCreatedAt((Timestamp) new Date()); try { ConnectionManagerUtil.beginDBTransaction(); - applicationRelease.setApplication(application); - applicationRelease = ApplicationManagementDAOFactory.getApplicationReleaseDAO().createRelease(applicationRelease); + applicationRelease = ApplicationManagementDAOFactory.getApplicationReleaseDAO(). + createRelease(applicationRelease, application.getId()); ConnectionManagerUtil.commitDBTransaction(); return applicationRelease; } catch (ApplicationManagementDAOException e) { @@ -64,18 +65,18 @@ public class ApplicationReleaseManagerImpl implements ApplicationReleaseManager } @Override - public ApplicationRelease getRelease(String applicationUuid, String version) throws + public ApplicationRelease getRelease(String applicationUuid, String version, String releaseType) throws ApplicationManagementException { int tenantId = PrivilegedCarbonContext.getThreadLocalCarbonContext().getTenantId(true); - Application application = validateApplication(applicationUuid); + Application application = validateApplicationRelease(applicationUuid); if (log.isDebugEnabled()) { log.debug("Application release retrieval request is received for the application " + application.toString() + " and version " + version); } try { ConnectionManagerUtil.openDBConnection(); - return ApplicationManagementDAOFactory - .getApplicationReleaseDAO().getRelease(applicationUuid, version, tenantId); + return ApplicationManagementDAOFactory.getApplicationReleaseDAO() + .getRelease(application.getName(), application.getType(), version, releaseType, tenantId ); } finally { ConnectionManagerUtil.closeDBConnection(); } @@ -84,47 +85,49 @@ public class ApplicationReleaseManagerImpl implements ApplicationReleaseManager @Override public List getReleases(String applicationUuid) throws ApplicationManagementException { int tenantId = PrivilegedCarbonContext.getThreadLocalCarbonContext().getTenantId(true); - Application application = validateApplication(applicationUuid); + Application application = validateApplicationRelease(applicationUuid); if (log.isDebugEnabled()) { log.debug("Request is received to retrieve all the releases related with the application " + application.toString()); } try { ConnectionManagerUtil.openDBConnection(); - return ApplicationManagementDAOFactory - .getApplicationReleaseDAO().getApplicationReleases(applicationUuid, tenantId); + return ApplicationManagementDAOFactory.getApplicationReleaseDAO() + .getApplicationReleases(application.getName(), application.getType(), tenantId); } finally { ConnectionManagerUtil.closeDBConnection(); } } +// ToDo @Override public void changeDefaultRelease(String uuid, String version, boolean isDefault, String releaseChannel) throws ApplicationManagementException { - Application application = validateApplication(uuid); - int tenantId = PrivilegedCarbonContext.getThreadLocalCarbonContext().getTenantId(true); - if (log.isDebugEnabled()) { - log.debug("Request received to change the default release for the release channel " + releaseChannel - + "for the application " + application.toString()); - } - - try { - ConnectionManagerUtil.beginDBTransaction(); - ApplicationManagementDAOFactory.getApplicationReleaseDAO() - .changeReleaseDefault(uuid, version, isDefault, releaseChannel, tenantId); - ConnectionManagerUtil.commitDBTransaction(); - } catch (ApplicationManagementDAOException e) { - ConnectionManagerUtil.rollbackDBTransaction(); - throw e; - } finally { - ConnectionManagerUtil.closeDBConnection(); - } +// Application application = validateApplicationRelease(uuid); +// int tenantId = PrivilegedCarbonContext.getThreadLocalCarbonContext().getTenantId(true); +// if (log.isDebugEnabled()) { +// log.debug("Request received to change the default release for the release channel " + releaseChannel +// + "for the application " + application.toString()); +// } +// +// try { +// ConnectionManagerUtil.beginDBTransaction(); +// ApplicationManagementDAOFactory.getApplicationReleaseDAO() +// .changeReleaseDefault(uuid, version, isDefault, releaseChannel, tenantId); +// ConnectionManagerUtil.commitDBTransaction(); +// } catch (ApplicationManagementDAOException e) { +// ConnectionManagerUtil.rollbackDBTransaction(); +// throw e; +// } finally { +// ConnectionManagerUtil.closeDBConnection(); +// } } +// ToDo @Override public ApplicationRelease updateRelease(String applicationUuid, ApplicationRelease applicationRelease) throws ApplicationManagementException { -// Application application = validateApplication(applicationUuid); +// Application application = validateApplicationRelease(applicationUuid); // ApplicationRelease oldApplicationRelease = null; // if (applicationRelease == null || applicationRelease.getVersion() != null) { // throw new ApplicationManagementException( @@ -151,13 +154,14 @@ public class ApplicationReleaseManagerImpl implements ApplicationReleaseManager // } finally { // ConnectionManagerUtil.closeDBConnection(); // } + return null; } @Override - public void deleteApplicationRelease(String applicationUuid, String version) + public void deleteApplicationRelease(String applicationUuid, String version, String releaseType) throws ApplicationManagementException { - Application application = validateApplication(applicationUuid); - ApplicationRelease applicationRelease = getRelease(applicationUuid, version); + Application application = validateApplicationRelease(applicationUuid); + ApplicationRelease applicationRelease = getRelease(applicationUuid, version, releaseType); if (applicationRelease == null) { throw new ApplicationManagementException( "Cannot delete a non-existing application release for the " + "application with UUID " @@ -166,7 +170,7 @@ public class ApplicationReleaseManagerImpl implements ApplicationReleaseManager try { ConnectionManagerUtil.beginDBTransaction(); ApplicationManagementDAOFactory.getApplicationReleaseDAO().deleteRelease(application.getId(), version); - ApplicationManagementDAOFactory.getApplicationReleaseDAO().deleteReleaseProperties(applicationRelease.getId()); +// ToDO remove storage details as well ConnectionManagerUtil.commitDBTransaction(); } catch (ApplicationManagementDAOException e) { ConnectionManagerUtil.rollbackDBTransaction(); @@ -185,23 +189,42 @@ public class ApplicationReleaseManagerImpl implements ApplicationReleaseManager } } + /** + * To validate the pre-request of the ApplicationRelease. + * + * @param applicationID ID of the Application. + * @return Application related with the UUID + */ + private Application validateApplication(int applicationID) throws ApplicationManagementException { + if (applicationID <= 0) { + throw new ApplicationManagementException("Application UUID is null. Application UUID is a required " + + "parameter to get the relevant application."); + } + Application application = DataHolder.getInstance().getApplicationManager().getApplicationById(applicationID); + if (application == null) { + throw new NotFoundException( + "Application of the " + applicationID + " does not exist."); + } + return application; + } + /** * To validate the pre-request of the ApplicationRelease. * * @param applicationUuid UUID of the Application. * @return Application related with the UUID */ - private Application validateApplication(String applicationUuid) throws ApplicationManagementException { + private ApplicationRelease validateApplicationRelease(String applicationUuid) throws ApplicationManagementException { if (applicationUuid == null) { throw new ApplicationManagementException("Application UUID is null. Application UUID is a required " + "parameter to get the relevant application."); } - Application application = DataHolder.getInstance().getApplicationManager().getApplication(applicationUuid); - if (application == null) { + ApplicationRelease applicationRelease = DataHolder.getInstance().getApplicationReleaseManager().getRelease(); + if (applicationRelease == null) { throw new NotFoundException( "Application with UUID " + applicationUuid + " does not exist."); } - return application; + return applicationRelease; } /** diff --git a/components/application-mgt/org.wso2.carbon.device.application.mgt.core/src/main/java/org/wso2/carbon/device/application/mgt/core/impl/ApplicationStorageManagerImpl.java b/components/application-mgt/org.wso2.carbon.device.application.mgt.core/src/main/java/org/wso2/carbon/device/application/mgt/core/impl/ApplicationStorageManagerImpl.java index d892ce0501..e05ab02004 100644 --- a/components/application-mgt/org.wso2.carbon.device.application.mgt.core/src/main/java/org/wso2/carbon/device/application/mgt/core/impl/ApplicationStorageManagerImpl.java +++ b/components/application-mgt/org.wso2.carbon.device.application.mgt.core/src/main/java/org/wso2/carbon/device/application/mgt/core/impl/ApplicationStorageManagerImpl.java @@ -31,7 +31,6 @@ import org.wso2.carbon.device.application.mgt.common.exception.ApplicationManage import org.wso2.carbon.device.application.mgt.common.exception.ApplicationStorageManagementException; import org.wso2.carbon.device.application.mgt.common.exception.ResourceManagementException; import org.wso2.carbon.device.application.mgt.common.services.ApplicationStorageManager; -import org.wso2.carbon.device.application.mgt.core.exception.ApplicationManagementDAOException; import org.wso2.carbon.device.application.mgt.core.internal.DataHolder; import org.wso2.carbon.device.application.mgt.core.util.ConnectionManagerUtil; import org.wso2.carbon.device.application.mgt.core.util.Constants; @@ -208,7 +207,7 @@ public class ApplicationStorageManagerImpl implements ApplicationStorageManager ApplicationStorageManagementException { validateApplication(applicationUUID); try { - List applicationReleases = DataHolder.getInstance().getReleaseManager() + List applicationReleases = DataHolder.getInstance().getApplicationReleaseManager() .getReleases(applicationUUID); for (ApplicationRelease applicationRelease : applicationReleases) { deleteApplicationReleaseArtifacts(applicationUUID, applicationRelease.getVersion()); diff --git a/components/application-mgt/org.wso2.carbon.device.application.mgt.core/src/main/java/org/wso2/carbon/device/application/mgt/core/internal/DataHolder.java b/components/application-mgt/org.wso2.carbon.device.application.mgt.core/src/main/java/org/wso2/carbon/device/application/mgt/core/internal/DataHolder.java index 5fbbe63abc..c9ed93e864 100644 --- a/components/application-mgt/org.wso2.carbon.device.application.mgt.core/src/main/java/org/wso2/carbon/device/application/mgt/core/internal/DataHolder.java +++ b/components/application-mgt/org.wso2.carbon.device.application.mgt.core/src/main/java/org/wso2/carbon/device/application/mgt/core/internal/DataHolder.java @@ -21,7 +21,6 @@ package org.wso2.carbon.device.application.mgt.core.internal; import org.wso2.carbon.device.application.mgt.common.services.ApplicationManager; import org.wso2.carbon.device.application.mgt.common.services.ApplicationReleaseManager; import org.wso2.carbon.device.application.mgt.common.services.ApplicationStorageManager; -import org.wso2.carbon.device.application.mgt.common.services.CategoryManager; import org.wso2.carbon.device.application.mgt.common.services.CommentsManager; import org.wso2.carbon.device.application.mgt.common.services.LifecycleStateManager; import org.wso2.carbon.device.application.mgt.common.services.SubscriptionManager; @@ -42,8 +41,6 @@ public class DataHolder { private ApplicationReleaseManager releaseManager; - private CategoryManager categoryManager; - private CommentsManager commentsManager; private LifecycleStateManager lifecycleStateManager; @@ -80,22 +77,14 @@ public class DataHolder { this.applicationManager = applicationManager; } - public ApplicationReleaseManager getReleaseManager() { + public ApplicationReleaseManager getApplicationReleaseManager() { return releaseManager; } - public void setReleaseManager(ApplicationReleaseManager releaseManager) { + public void setApplicationReleaseManager(ApplicationReleaseManager releaseManager) { this.releaseManager = releaseManager; } - public CategoryManager getCategoryManager() { - return categoryManager; - } - - public void setCategoryManager(CategoryManager categoryManager) { - this.categoryManager = categoryManager; - } - public CommentsManager getCommentsManager() { return commentsManager; } diff --git a/components/application-mgt/org.wso2.carbon.device.application.mgt.core/src/main/java/org/wso2/carbon/device/application/mgt/core/internal/ServiceComponent.java b/components/application-mgt/org.wso2.carbon.device.application.mgt.core/src/main/java/org/wso2/carbon/device/application/mgt/core/internal/ServiceComponent.java index 2468175ea9..b27df7f626 100644 --- a/components/application-mgt/org.wso2.carbon.device.application.mgt.core/src/main/java/org/wso2/carbon/device/application/mgt/core/internal/ServiceComponent.java +++ b/components/application-mgt/org.wso2.carbon.device.application.mgt.core/src/main/java/org/wso2/carbon/device/application/mgt/core/internal/ServiceComponent.java @@ -26,7 +26,6 @@ import org.wso2.carbon.device.application.mgt.common.exception.InvalidConfigurat import org.wso2.carbon.device.application.mgt.common.services.ApplicationManager; import org.wso2.carbon.device.application.mgt.common.services.ApplicationReleaseManager; import org.wso2.carbon.device.application.mgt.common.services.ApplicationStorageManager; -import org.wso2.carbon.device.application.mgt.common.services.CategoryManager; import org.wso2.carbon.device.application.mgt.common.services.CommentsManager; import org.wso2.carbon.device.application.mgt.common.services.LifecycleStateManager; import org.wso2.carbon.device.application.mgt.common.services.SubscriptionManager; @@ -38,7 +37,6 @@ import org.wso2.carbon.device.application.mgt.core.util.ApplicationManagementUti import org.wso2.carbon.device.mgt.core.service.DeviceManagementProviderService; import org.wso2.carbon.ndatasource.core.DataSourceService; import org.wso2.carbon.user.core.service.RealmService; -import org.wso2.carbon.utils.Axis2ConfigurationContextObserver; import javax.naming.NamingException; @@ -80,13 +78,9 @@ public class ServiceComponent { ApplicationReleaseManager applicationReleaseManager = ApplicationManagementUtil .getApplicationReleaseManagerInstance(); - DataHolder.getInstance().setReleaseManager(applicationReleaseManager); + DataHolder.getInstance().setApplicationReleaseManager(applicationReleaseManager); bundleContext.registerService(ApplicationReleaseManager.class.getName(), applicationReleaseManager, null); - CategoryManager categoryManager = ApplicationManagementUtil.getCategoryManagerInstance(); - DataHolder.getInstance().setCategoryManager(categoryManager); - bundleContext.registerService(CategoryManager.class.getName(), categoryManager, null); - CommentsManager commentsManager = ApplicationManagementUtil.getCommentsManagerInstance(); DataHolder.getInstance().setCommentsManager(commentsManager); bundleContext.registerService(CommentsManager.class.getName(), commentsManager, null); diff --git a/components/application-mgt/org.wso2.carbon.device.application.mgt.core/src/main/java/org/wso2/carbon/device/application/mgt/core/util/ApplicationManagementUtil.java b/components/application-mgt/org.wso2.carbon.device.application.mgt.core/src/main/java/org/wso2/carbon/device/application/mgt/core/util/ApplicationManagementUtil.java index 51d9f29356..ea682c44b3 100644 --- a/components/application-mgt/org.wso2.carbon.device.application.mgt.core/src/main/java/org/wso2/carbon/device/application/mgt/core/util/ApplicationManagementUtil.java +++ b/components/application-mgt/org.wso2.carbon.device.application.mgt.core/src/main/java/org/wso2/carbon/device/application/mgt/core/util/ApplicationManagementUtil.java @@ -24,7 +24,6 @@ import org.wso2.carbon.device.application.mgt.common.exception.InvalidConfigurat import org.wso2.carbon.device.application.mgt.common.services.ApplicationManager; import org.wso2.carbon.device.application.mgt.common.services.ApplicationReleaseManager; import org.wso2.carbon.device.application.mgt.common.services.ApplicationStorageManager; -import org.wso2.carbon.device.application.mgt.common.services.CategoryManager; import org.wso2.carbon.device.application.mgt.common.services.CommentsManager; import org.wso2.carbon.device.application.mgt.common.services.LifecycleStateManager; import org.wso2.carbon.device.application.mgt.common.services.SubscriptionManager; @@ -55,12 +54,6 @@ public class ApplicationManagementUtil { return getInstance(extension, ApplicationReleaseManager.class); } - public static CategoryManager getCategoryManagerInstance() throws InvalidConfigurationException { - ConfigurationManager configurationManager = ConfigurationManager.getInstance(); - Extension extension = configurationManager.getExtension(Extension.Name.CategoryManager); - return getInstance(extension, CategoryManager.class); - } - public static CommentsManager getCommentsManagerInstance() throws InvalidConfigurationException { ConfigurationManager configurationManager = ConfigurationManager.getInstance(); Extension extension = configurationManager.getExtension(Extension.Name.CommentsManager); diff --git a/components/application-mgt/org.wso2.carbon.device.application.mgt.publisher.api/src/main/java/org/wso2/carbon/device/application/mgt/publisher/api/APIUtil.java b/components/application-mgt/org.wso2.carbon.device.application.mgt.publisher.api/src/main/java/org/wso2/carbon/device/application/mgt/publisher/api/APIUtil.java index 2ca87b04bf..ce4ee92588 100644 --- a/components/application-mgt/org.wso2.carbon.device.application.mgt.publisher.api/src/main/java/org/wso2/carbon/device/application/mgt/publisher/api/APIUtil.java +++ b/components/application-mgt/org.wso2.carbon.device.application.mgt.publisher.api/src/main/java/org/wso2/carbon/device/application/mgt/publisher/api/APIUtil.java @@ -25,7 +25,6 @@ import org.wso2.carbon.device.application.mgt.publisher.api.beans.ErrorResponse; import org.wso2.carbon.device.application.mgt.common.services.ApplicationManager; import org.wso2.carbon.device.application.mgt.common.services.ApplicationReleaseManager; import org.wso2.carbon.device.application.mgt.common.services.ApplicationStorageManager; -import org.wso2.carbon.device.application.mgt.common.services.CategoryManager; import org.wso2.carbon.device.application.mgt.common.services.LifecycleStateManager; import org.wso2.carbon.device.application.mgt.common.services.SubscriptionManager; diff --git a/components/application-mgt/org.wso2.carbon.device.application.mgt.publisher.api/src/main/java/org/wso2/carbon/device/application/mgt/publisher/api/services/ApplicationManagementAPI.java b/components/application-mgt/org.wso2.carbon.device.application.mgt.publisher.api/src/main/java/org/wso2/carbon/device/application/mgt/publisher/api/services/ApplicationManagementAPI.java index 64c833301c..4302402396 100644 --- a/components/application-mgt/org.wso2.carbon.device.application.mgt.publisher.api/src/main/java/org/wso2/carbon/device/application/mgt/publisher/api/services/ApplicationManagementAPI.java +++ b/components/application-mgt/org.wso2.carbon.device.application.mgt.publisher.api/src/main/java/org/wso2/carbon/device/application/mgt/publisher/api/services/ApplicationManagementAPI.java @@ -289,40 +289,6 @@ public interface ApplicationManagementAPI { required = true) @Valid Application application); - @POST - @Path("{appId}/release") - @Produces(MediaType.APPLICATION_JSON) - @Consumes(MediaType.MULTIPART_FORM_DATA) - @ApiOperation( - consumes = MediaType.MULTIPART_FORM_DATA, - produces = MediaType.APPLICATION_JSON, - httpMethod = "POST", - value = "Create an application release", - notes = "This will create a new application release", - tags = "Application Management", - extensions = { - @Extension(properties = { - @ExtensionProperty(name = SCOPE, value = "perm:application:create") - }) - } - ) - @ApiResponses( - value = { - @ApiResponse( - code = 201, - message = "OK. \n Successfully created an application release.", - response = ApplicationRelease.class), - @ApiResponse( - code = 500, - message = "Internal Server Error. \n Error occurred while releasing the application.", - response = ErrorResponse.class) - }) - - Response createApplicationRelease( - @Multipart(value = "applicationRelease", type = "application/json") ApplicationRelease applicationRelease, - @Multipart(value = "binaryFile") Attachment binaryFile, - @PathParam("appId") int applicationId); - @POST @Path("/upload-artifacts/{uuid}") diff --git a/components/application-mgt/org.wso2.carbon.device.application.mgt.publisher.api/src/main/java/org/wso2/carbon/device/application/mgt/publisher/api/services/impl/ApplicationManagementAPIImpl.java b/components/application-mgt/org.wso2.carbon.device.application.mgt.publisher.api/src/main/java/org/wso2/carbon/device/application/mgt/publisher/api/services/impl/ApplicationManagementAPIImpl.java index 586e847ba0..dadddad75a 100644 --- a/components/application-mgt/org.wso2.carbon.device.application.mgt.publisher.api/src/main/java/org/wso2/carbon/device/application/mgt/publisher/api/services/impl/ApplicationManagementAPIImpl.java +++ b/components/application-mgt/org.wso2.carbon.device.application.mgt.publisher.api/src/main/java/org/wso2/carbon/device/application/mgt/publisher/api/services/impl/ApplicationManagementAPIImpl.java @@ -70,11 +70,12 @@ public class ApplicationManagementAPIImpl implements ApplicationManagementAPI { private static Log log = LogFactory.getLog(ApplicationManagementAPIImpl.class); @GET + @Override @Consumes("application/json") public Response getApplications( - @QueryParam("query") String searchQuery, @QueryParam("offset") int offset, - @QueryParam("limit") int limit) { + @QueryParam("limit") int limit, + @QueryParam("query") String searchQuery) { ApplicationManager applicationManager = APIUtil.getApplicationManager(); ApplicationStorageManager applicationStorageManager = APIUtil.getApplicationStorageManager(); @@ -104,11 +105,11 @@ public class ApplicationManagementAPIImpl implements ApplicationManagementAPI { } catch (NotFoundException e) { return Response.status(Response.Status.NOT_FOUND).build(); } catch (ApplicationManagementException e) { - String msg = "Error occurred while getting the application list"; + String msg = "Error occurred while getting the application list for publisher "; log.error(msg, e); return Response.status(Response.Status.BAD_REQUEST).build(); } catch (ApplicationStorageManagementException e) { - log.error("Error occurred while getting the image artifacts of the application", e); + log.error("Error occurred while getting the image artifacts of the application for publisher", e); return APIUtil.getResponse(e, Response.Status.INTERNAL_SERVER_ERROR); } } @@ -271,39 +272,6 @@ public class ApplicationManagementAPIImpl implements ApplicationManagementAPI { } } - @Override - @POST - @Path("{appId}/release") - public Response createApplicationRelease(@Multipart("applicationRelease") ApplicationRelease applicationRelease, - @Multipart("binaryFile") Attachment binaryFile) { - ApplicationReleaseManager applicationReleaseManager = APIUtil.getApplicationReleaseManager(); - ApplicationStorageManager applicationStorageManager = APIUtil.getApplicationStorageManager(); - try { - applicationRelease = applicationReleaseManager.createRelease(applicationUUID, applicationRelease); - - if (binaryFile != null) { - applicationStorageManager.uploadReleaseArtifacts(applicationUUID, applicationRelease.getVersion(), - binaryFile.getDataHandler().getInputStream()); - } - return Response.status(Response.Status.CREATED).entity(applicationRelease).build(); - } catch (ApplicationManagementException e) { - log.error("Error while creating an application release for the application with UUID " + applicationUUID, - e); - return APIUtil.getResponse(e, Response.Status.INTERNAL_SERVER_ERROR); - } catch (IOException e) { - String errorMessage = - "Error while uploading binary file for the application release of the application with UUID " - + applicationUUID; - log.error(errorMessage, e); - return APIUtil.getResponse(new ApplicationManagementException(errorMessage, e), - Response.Status.INTERNAL_SERVER_ERROR); - } catch (ResourceManagementException e) { - log.error("Error occurred while uploading the releases artifacts of the application with the uuid " - + applicationUUID + " for the release " + applicationRelease.getVersion(), e); - return APIUtil.getResponse(e, Response.Status.INTERNAL_SERVER_ERROR); - } - } - @Override @POST @Path("/upload-image-artifacts/{uuid}") diff --git a/components/application-mgt/org.wso2.carbon.device.application.mgt.publisher.api/src/main/java/org/wso2/carbon/device/application/mgt/publisher/api/services/impl/ApplicationReleaseManagementAPIImpl.java b/components/application-mgt/org.wso2.carbon.device.application.mgt.publisher.api/src/main/java/org/wso2/carbon/device/application/mgt/publisher/api/services/impl/ApplicationReleaseManagementAPIImpl.java index dd37b1ae22..a34f57f6df 100644 --- a/components/application-mgt/org.wso2.carbon.device.application.mgt.publisher.api/src/main/java/org/wso2/carbon/device/application/mgt/publisher/api/services/impl/ApplicationReleaseManagementAPIImpl.java +++ b/components/application-mgt/org.wso2.carbon.device.application.mgt.publisher.api/src/main/java/org/wso2/carbon/device/application/mgt/publisher/api/services/impl/ApplicationReleaseManagementAPIImpl.java @@ -105,9 +105,8 @@ public class ApplicationReleaseManagementAPIImpl implements ApplicationReleaseMa applicationRelease = applicationStorageManager.uploadImageArtifacts(applicationId, applicationRelease, iconFileStream, bannerFileStream, attachments); -// ToDo applicationRelease.setUuid(UUID.randomUUID().toString()); - applicationRelease = applicationReleaseManager.createRelease(applicationUUID, applicationRelease); + applicationRelease = applicationReleaseManager.createRelease(applicationId, applicationRelease); return Response.status(Response.Status.CREATED).entity(applicationRelease).build(); diff --git a/components/application-mgt/org.wso2.carbon.device.application.mgt.store.api/src/main/java/org/wso2/carbon/device/application/mgt/store/api/APIUtil.java b/components/application-mgt/org.wso2.carbon.device.application.mgt.store.api/src/main/java/org/wso2/carbon/device/application/mgt/store/api/APIUtil.java index d4d919879c..8451ad8bb9 100644 --- a/components/application-mgt/org.wso2.carbon.device.application.mgt.store.api/src/main/java/org/wso2/carbon/device/application/mgt/store/api/APIUtil.java +++ b/components/application-mgt/org.wso2.carbon.device.application.mgt.store.api/src/main/java/org/wso2/carbon/device/application/mgt/store/api/APIUtil.java @@ -25,7 +25,6 @@ import org.wso2.carbon.device.application.mgt.publisher.api.beans.ErrorResponse; import org.wso2.carbon.device.application.mgt.common.services.ApplicationManager; import org.wso2.carbon.device.application.mgt.common.services.ApplicationReleaseManager; import org.wso2.carbon.device.application.mgt.common.services.ApplicationStorageManager; -import org.wso2.carbon.device.application.mgt.common.services.CategoryManager; import org.wso2.carbon.device.application.mgt.common.services.LifecycleStateManager; import org.wso2.carbon.device.application.mgt.common.services.SubscriptionManager; diff --git a/components/application-mgt/org.wso2.carbon.device.application.mgt.store.api/src/main/java/org/wso2/carbon/device/application/mgt/store/api/services/impl/ApplicationManagementAPIImpl.java b/components/application-mgt/org.wso2.carbon.device.application.mgt.store.api/src/main/java/org/wso2/carbon/device/application/mgt/store/api/services/impl/ApplicationManagementAPIImpl.java index 4afcf61d14..f700dde29a 100644 --- a/components/application-mgt/org.wso2.carbon.device.application.mgt.store.api/src/main/java/org/wso2/carbon/device/application/mgt/store/api/services/impl/ApplicationManagementAPIImpl.java +++ b/components/application-mgt/org.wso2.carbon.device.application.mgt.store.api/src/main/java/org/wso2/carbon/device/application/mgt/store/api/services/impl/ApplicationManagementAPIImpl.java @@ -16,12 +16,10 @@ * under the License. * */ -package org.wso2.carbon.device.application.mgt.publisher.api.services.impl; +package org.wso2.carbon.device.application.mgt.store.api.services.impl; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; -import org.apache.cxf.jaxrs.ext.multipart.Attachment; -import org.apache.cxf.jaxrs.ext.multipart.Multipart; import org.wso2.carbon.device.application.mgt.store.api.APIUtil; import org.wso2.carbon.device.application.mgt.store.api.FileStreamingOutput; import org.wso2.carbon.device.application.mgt.publisher.api.services.ApplicationManagementAPI; @@ -32,25 +30,16 @@ import org.wso2.carbon.device.application.mgt.common.Filter; import org.wso2.carbon.device.application.mgt.common.ImageArtifact; import org.wso2.carbon.device.application.mgt.common.exception.ApplicationManagementException; import org.wso2.carbon.device.application.mgt.common.exception.ApplicationStorageManagementException; -import org.wso2.carbon.device.application.mgt.common.exception.ResourceManagementException; import org.wso2.carbon.device.application.mgt.common.services.ApplicationManager; import org.wso2.carbon.device.application.mgt.common.services.ApplicationReleaseManager; import org.wso2.carbon.device.application.mgt.common.services.ApplicationStorageManager; import org.wso2.carbon.device.application.mgt.core.exception.NotFoundException; import org.wso2.carbon.device.application.mgt.core.util.Constants; -import org.wso2.carbon.device.mgt.core.dao.DeviceManagementDAOException; -import java.io.IOException; import java.io.InputStream; -import java.util.ArrayList; -import java.util.Arrays; import java.util.List; -import javax.validation.Valid; import javax.ws.rs.Consumes; -import javax.ws.rs.DELETE; import javax.ws.rs.GET; -import javax.ws.rs.POST; -import javax.ws.rs.PUT; import javax.ws.rs.Path; import javax.ws.rs.PathParam; import javax.ws.rs.Produces; diff --git a/pom.xml b/pom.xml index 9b4ba963f8..4a81d8c12d 100644 --- a/pom.xml +++ b/pom.xml @@ -171,6 +171,11 @@ org.wso2.carbon.certificate.mgt.core ${carbon.device.mgt.version} + + org.wso2.carbon.devicemgt + org.wso2.carbon.device.application.mgt.authhandler + ${carbon.device.mgt.version} + org.wso2.carbon.devicemgt org.wso2.carbon.device.application.mgt.core @@ -183,12 +188,12 @@ org.wso2.carbon.devicemgt - org.wso2.carbon.device.application.mgt.api + org.wso2.carbon.device.application.mgt.publisher.api ${carbon.device.mgt.version} org.wso2.carbon.devicemgt - org.wso2.carbon.device.application.mgt.extensions + org.wso2.carbon.device.application.mgt.store.api ${carbon.device.mgt.version} @@ -196,6 +201,11 @@ org.wso2.carbon.device.application.mgt.publisher.ui ${carbon.device.mgt.version} + + org.wso2.carbon.devicemgt + org.wso2.carbon.device.application.mgt.store.ui + ${carbon.device.mgt.version} + org.wso2.carbon.devicemgt org.wso2.carbon.policy.mgt.common @@ -267,11 +277,6 @@ org.wso2.carbon.device.mgt.analytics.data.publisher ${carbon.device.mgt.version} - - org.wso2.carbon.devicemgt - org.wso2.carbon.device.mgt.analytics.dashboard - ${carbon.device.mgt.version} - org.wso2.carbon.devicemgt org.wso2.carbon.device.mgt.server.feature @@ -347,6 +352,12 @@ zip ${carbon.device.mgt.version} + + org.wso2.carbon.devicemgt + org.wso2.carbon.device.application.mgt.store.ui.feature + zip + ${carbon.device.mgt.version} + org.wso2.carbon.devicemgt org.wso2.carbon.device.application.mgt.feature @@ -470,6 +481,18 @@ + + org.wso2.carbon + org.wso2.carbon.securevault + ${carbon.kernel.version} + test + + + org.apache.sling + org.apache.sling.testing.osgi-mock + ${apache.osgi.mock.version} + test + org.wso2.carbon.governance org.wso2.carbon.governance.api @@ -1224,7 +1247,12 @@ commons-codec ${version.commons.codec} - + + org.apache.httpcomponents + httpcore + ${apache.http.compnents.core} + test + commons-lang.wso2 commons-lang @@ -1594,6 +1622,42 @@ org.wso2.carbon.registry.resource ${carbon.registry.resource.version} + + org.powermock + powermock-api-mockito + ${power.mock.version} + test + + + org.powermock + powermock-module-testng + ${power.mock.version} + test + + + commons-dbcp.wso2 + commons-dbcp + ${commons.dbcp.version} + test + + + org.wso2.carbon.governance + org.wso2.carbon.governance.registry.extensions + ${carbon.governance.version} + test + + + org.slf4j + jcl-over-slf4j + + + + + org.slf4j + slf4j-nop + test + ${slf4j.nop.version} + @@ -1736,31 +1800,9 @@ ${carbon.p2.plugin.version} - org.apache.maven.plugins - maven-checkstyle-plugin - ${maven.checkstyle.plugin.version} - - - validate - validate - - - https://raw.githubusercontent.com/wso2/code-quality-tools/master/checkstyle/checkstyle.xml - - - https://raw.githubusercontent.com/wso2/code-quality-tools/master/checkstyle/suppressions.xml - - UTF-8 - true - false - false - true - - - check - - - + org.jacoco + jacoco-maven-plugin + ${jacoco.maven.plugin.version} @@ -1922,7 +1964,7 @@ [2.6.0,3.0.0) - 6.1.64 + 6.1.109 (6.0.0,7.0.0] @@ -1938,7 +1980,7 @@ [4.4.8, 5.0.0) - 2.7.16 + 3.2.0 2.5.11 1.1.wso2v1 1.9.0 @@ -2022,6 +2064,12 @@ 1.6.1 + + 2.3.2 + + + 4.4.3 + 2.1.7-wso2v7 1.5.11.wso2v15 @@ -2040,8 +2088,14 @@ 3.12.1.GA true - - 2.17 + + 0.7.8 + 0.7.5.201505241946 + 1.0b3 + 1.7.0 + 1.4.0.wso2v1 + 1.7.25 + - \ No newline at end of file +