tools.add(new InfoglueTool("PublishingTool", "ViewPublishingTool!V3.action", "", LabelController.getController(locale).getLocalizedString(locale, "tool.common.publishingTool.name"), "A place to manage your sites", "publishing", ""));
if(hasAccessTo(principal, "FormsTool.Read", true))
{
try
{
RepositoryVO repositoryVO = RepositoryController.getController().getRepositoryVOWithName("Infoglue form system");
if(repositoryVO != null)
{
SiteNodeVO siteNodeVO = SiteNodeController.getController().getRootSiteNodeVO(repositoryVO.getId());
if(siteNodeVO != null)
{
tools.add(new InfoglueTool("FormsTool", "ViewSiteNode.action?siteNodeId=" + siteNodeVO.getId(), "", LabelController.getController(locale).getLocalizedString(locale, "tool.common.formEditorTool.name"), "A place to manage your forms", "formeditor", ""));
}
}
}
catch (Exception e)
{
logger.error("Problem loading form system:" + e.getMessage(), e);
}
}
if(hasAccessTo(principal, "CalendarTool.Read", true))
{
try
{
RepositoryVO repositoryVO = RepositoryController.getController().getRepositoryVOWithName("Infoglue calendar system");
if(repositoryVO != null)
{
SiteNodeVO siteNodeVO = SiteNodeController.getController().getRootSiteNodeVO(repositoryVO.getId());
if(siteNodeVO != null)
{
tools.add(new InfoglueTool("CalendarTool", "ViewSiteNode.action?siteNodeId=" + siteNodeVO.getId(), "", LabelController.getController(locale).getLocalizedString(locale, "tool.common.calendarTool.name"), "A place to manage your calendars", "calendareditor", ""));
}
}