|
|
@ -175,7 +175,10 @@ public class ApplicationManagerImpl implements ApplicationManager {
|
|
|
|
} catch (UserStoreException e) {
|
|
|
|
} catch (UserStoreException e) {
|
|
|
|
throw new ApplicationManagementException(
|
|
|
|
throw new ApplicationManagementException(
|
|
|
|
"User-store exception while checking whether the user " + userName + " of tenant " + tenantId
|
|
|
|
"User-store exception while checking whether the user " + userName + " of tenant " + tenantId
|
|
|
|
+ " has the publisher permission");
|
|
|
|
+ " has the publisher permission", e);
|
|
|
|
|
|
|
|
} catch (ApplicationManagementDAOException e) {
|
|
|
|
|
|
|
|
throw new ApplicationManagementException(
|
|
|
|
|
|
|
|
"DAO exception while getting applications for the user " + userName + " of tenant " + tenantId, e);
|
|
|
|
} finally {
|
|
|
|
} finally {
|
|
|
|
ConnectionManagerUtil.closeDBConnection();
|
|
|
|
ConnectionManagerUtil.closeDBConnection();
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -526,14 +529,15 @@ public class ApplicationManagerImpl implements ApplicationManager {
|
|
|
|
ApplicationRelease applicationRelease = DataHolder.getInstance().getApplicationReleaseManager()
|
|
|
|
ApplicationRelease applicationRelease = DataHolder.getInstance().getApplicationReleaseManager()
|
|
|
|
.getReleaseByUuid(applicationUuid);
|
|
|
|
.getReleaseByUuid(applicationUuid);
|
|
|
|
if (applicationRelease == null) {
|
|
|
|
if (applicationRelease == null) {
|
|
|
|
throw new NotFoundException(
|
|
|
|
throw new ApplicationManagementException(
|
|
|
|
"Application with UUID " + applicationUuid + " does not exist.");
|
|
|
|
"Application with UUID " + applicationUuid + " does not exist.");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return applicationRelease;
|
|
|
|
return applicationRelease;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
|
public ApplicationRelease updateRelease(int appId, ApplicationRelease applicationRelease) throws ApplicationManagementException {
|
|
|
|
public ApplicationRelease updateRelease(int appId, ApplicationRelease applicationRelease) throws
|
|
|
|
|
|
|
|
ApplicationManagementException {
|
|
|
|
return null;
|
|
|
|
return null;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
@ -787,8 +791,6 @@ public class ApplicationManagerImpl implements ApplicationManager {
|
|
|
|
!SortingOrder.DESC.toString().equals(filter.getSortBy())) {
|
|
|
|
!SortingOrder.DESC.toString().equals(filter.getSortBy())) {
|
|
|
|
return null;
|
|
|
|
return null;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (filter.getAppType() != null) {
|
|
|
|
if (filter.getAppType() != null) {
|
|
|
|
Boolean isValidRequest = false;
|
|
|
|
Boolean isValidRequest = false;
|
|
|
|
for (ApplicationType applicationType : ApplicationType.values()) {
|
|
|
|
for (ApplicationType applicationType : ApplicationType.values()) {
|
|
|
|