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);