Registry.addEntry(registry, portletEntry);
clearUserData(rundata);
}
else
{
DynamicURI duri =
redirect(
rundata,
SecurityConstants.PARAM_MODE_UPDATE,
SecurityConstants.MID_MISSING_PARAMETER);
rundata.setRedirectURI(duri.toString());
resetForm(rundata);
}
}
else
{
DynamicURI duri =
redirect(
rundata,
SecurityConstants.PARAM_MODE_UPDATE,
SecurityConstants.MID_INVALID_ENTITY_NAME);
rundata.setRedirectURI(duri.toString());
resetForm(rundata);
logger.error(
this.getClass().getName()
+ ": Failed to find registry entry while trying to remove media types");
}
}
catch (Exception e)
{
DynamicURI duri =
redirect(
rundata,
SecurityConstants.PARAM_MODE_UPDATE,
SecurityConstants.MID_UPDATE_FAILED);
rundata.setRedirectURI(duri.toString());
resetForm(rundata);
logger.error("Exception", e);
}
}