public ActionForward execute(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException, CommunicationException, NamingException
{
String dataSource = Settings.getInstance().getSiteInfo(CVUtility.getHostName(super.getServlet().getServletContext())).getDataSource();
AuthorizationHome authHome = (AuthorizationHome)CVUtility.getHomeObject("com.centraview.administration.authorization.AuthorizationHome", "Authorization");
try {
HttpSession session = request.getSession(false);
HashMap hm = new HashMap();
RecordPermissionForm permissionForm = (RecordPermissionForm)form;
if (permissionForm == null) {
permissionForm = new RecordPermissionForm();
}
permissionForm.setModify("");
permissionForm.setDeleten("");
permissionForm.setView("");
Vector vecview = new Vector();
Vector vecmodify = new Vector();
Vector vecdelete = new Vector();
Collection colview = new ArrayList();
Collection colmodify = new ArrayList();
Collection coldelete = new ArrayList();
int uid = Integer.parseInt(request.getParameter("contactID").toString());
request.setAttribute("userID",new Integer(uid));
Authorization authRemote = (Authorization)authHome.create();
hm = authRemote.getDefaultPermissions(uid);
if (! authRemote.getUserDefaultPermission(uid).equalsIgnoreCase("Yes")) {
if (hm != null) {