compare = NO_COMPARATOR_NAME;
}
Visibility v = Visibility.fromString(visibility);
ServerServicesProvider userSSP = (ServerServicesProvider)request.getSession().getAttribute(Params.GENERAL.REQUEST.USER_SSP);
String action = request.getParameter(Params.REPOSITORY.SHOW_BY_MOD.PARAMS.ACTION);
if (!StringUtils.isBlank(action)) {
String revision = f.getString(Params.REPOSITORY.SHOW_BY_MOD.FORM.REVISION);
f.set(Params.REPOSITORY.SHOW_BY_MOD.FORM.REVISION, "");
try {
ModuleDescriptor md = userSSP.getModuleManagementService().getModule(v.getId(), organisation, module, revision);
userSSP.getModuleManagementService().removeModule(new Long(md.getId()));
LOGGER.info(MessageFormat.format("deleted {0}|{1}|{2}", new Object[] {organisation, module, revision}));
} catch (org.jayasoft.woj.common.services.ServiceException e) {
LOGGER.warn(MessageFormat.format("cannot delete {0}|{1}|{2}", new Object[] {organisation, module, revision}), e);
}
}
AreaInfo[] revInfos = null;
List revs = Collections.EMPTY_LIST;
try {
revInfos = userSSP.getModuleManagementService().getAllAreaInfo(new Long(userLogged.getGroup().getId()), v, organisation, module);
revs = Arrays.asList(revInfos);
Collections.sort(revs, getComparator(compare, desc));
} catch (org.jayasoft.woj.common.services.ServiceException e) {
LOGGER.warn("cannot retrieve organisations", e);