break;
case 31: // Proposal - from module table
try
{
ProposalHome home = (ProposalHome)ic.lookup("local/Proposal");
ProposalLocal remote = home.create();
remote.setDataSource(this.dataSource);
String proposalTitle = remote.getProposalName(linkId);
flvo.setRelatedFieldID(linkId);
flvo.setRelatedFieldValue(proposalTitle);
flvo.setRelatedTypeID(31);
flvo.setRelatedTypeValue("Project");
} catch (Exception e) {
logger.error("[getFileLink] Exception thrown.", e);
} //end of catch block (Exception)
break;
case 36: // Projects - from module table
try
{
ProjectLocalHome home = (ProjectLocalHome)ic.lookup("local/Project");
ProjectLocal remote = home.create();
remote.setDataSource(this.dataSource);
String projectTitle = remote.getProjectName(linkId);
flvo.setRelatedFieldID(linkId);
flvo.setRelatedFieldValue(projectTitle);
flvo.setRelatedTypeID(36);
flvo.setRelatedTypeValue("Project");
} catch (Exception e) {
logger.error("[getFileLink] Exception thrown.", e);
} //end of catch block (Exception)
break;
case 39: // Ticket - from module table
try
{
TicketLocalHome home = (TicketLocalHome)ic.lookup("local/Ticket");
TicketLocal remote = home.create();
remote.setDataSource(this.dataSource);
String ticketSubject = remote.getTicketName(linkId);
flvo.setRelatedFieldID(linkId);
flvo.setRelatedFieldValue(ticketSubject);
flvo.setRelatedTypeID(39);
flvo.setRelatedTypeValue("Ticket");
} catch (Exception e) {